OSDN Git Service

2011-05-11 Satoru Takabayashi <satorux@google.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-05-11  Satoru Takabayashi  <satorux@google.com>
2             Paul Pluzhnikov  <ppluzhnikov@google.com>
3
4         * gcc/doc/install.texi (Configuration): Document
5         --with-linker-hash-style.
6         * gcc/gcc.c (init_spec): Handle LINKER_HASH_STYLE.
7         * gcc/config.in: Add LINKER_HASH_STYLE.
8         * gcc/configure.ac: Add --with-linker-hash-style.
9         * gcc/configure: Regenerate.
10
11 2011-05-11  Richard Guenther  <rguenther@suse.de>
12
13         PR middle-end/48964
14         * gimple.c (iterative_hash_canonical_type): Fix typo.
15
16 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
17
18         * config/i386/i386.c (legitimize_tls_address)
19         <TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
20         expanders directly for TARGET_GNU2_TLS.  Determine pic and
21         __tls_get_addr symbol reference here.  Update call to
22         gen_tls_global_dynamic_{32,64} for added arguments.
23         <TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
24         expanders directly for TARGET_GNU2_TLS.  Determine
25         __tls_get_addr symbol reference here.  Update call to
26         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
27         unique UNSPEC REG_EQUIV to libcall block.
28         (ix86_tls_get_addr): Declare static.
29         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
30         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
31         Do not determine pic and __tls_get_addr symbol reference here. Do not
32         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
33         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
34         (tls_global_dynamic_64): Add operand 2.  Do not determine
35         __tls_get_addr symbol reference here.  Do not call
36         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
37         (tls_local_dynamic_base64): Ditto for operand 1.
38
39 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
40
41         * function.c (expand_function_start): Initialize stack_check_probe_note
42         only if the generic stack checking mechanism is used.
43
44 2011-05-11  Richard Guenther  <rguenther@suse.de>
45
46         PR tree-optimization/15256
47         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
48         (A & B) | C, combine (A op CST1) op CST2.
49         (tree_ssa_forward_propagate_single_use_vars): Only bother to
50         visit assigns that have uses.
51
52 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
53
54         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
55         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
56         (unpack_ts_type_common_value_fields): ...this.  Update comment.
57         (unpack_value_fields): Adjust for renaming.
58         (lto_input_ts_type_tree_pointers): Split into...
59         (lto_input_ts_type_common_tree_pointer): ...this and...
60         (lto_input_ts_type_non_common_tree_pointers): ...this.
61         (lto_input_tree_pointers): Adjust for above split.
62         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
63         (pack_ts_type_common_value_fields): ...this.  Update comment.
64         (lto_output_ts_type_tree_pointers): Split into...
65         (lto_output_ts_type_common_tree_pointers): ...this and...
66         (lto_output_ts_type_non_common_tree_pointers): ...this.
67         (lto_output_tree_pointers): Adjust for above split.
68         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
69         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
70         * stor-layout.c (vector_type_mode): Adjust location of mode field.
71         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
72         Define.
73         (struct tree_type): Split into...
74         (struct tree_type_common: ...this and...
75         (struct tree_type_with_lang_specific): ...this and...
76         (struct tree_type_non_common): ...this.  Adjust accessor macros
77         accordingly.
78         (TYPE_VALUES_RAW): Define.
79         (union tree_node): Update for above changes.
80         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
81         TS_TYPE_NON_COMMON.
82         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
83         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
84         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
85         * treestructu.def (TS_TYPE): Remove.
86         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
87         Define.
88
89 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
90
91         PR debug/48159
92         * tree-ssa.c (reset_debug_uses): New function.
93         * tree-flow.h (reset_debug_uses): New prototype.
94         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
95         * tree-loop-distribution.c (generate_loops_for_partition): Call
96         reset_debug_uses on the stmts that will be removed.  Keep around
97         all debug stmts, don't count them as bits in partition bitmap.
98         (generate_builtin): Don't count debug stmts or labels as bits in
99         partition bitmap.
100
101 2011-05-11  Richard Guenther  <rguenther@suse.de>
102
103         * gimple.c (gimple_type_hash_1): Merge with ...
104         (gimple_type_hash): ... this.
105         (gtc_visit): Remove mode parameter and simplify accordingly.
106         (gimple_types_compatible_p_1): Likewise.
107         (gimple_types_compatible_p): Likewise.
108         (iterative_hash_gimple_type): Likewise.
109         (visit): Likewise.
110         (gimple_type_eq): Adjust.
111
112 2011-05-11  Revital Eres  <revital.eres@linaro.org>
113
114         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
115         enters the branch create an anti edge in the opposite direction
116         to prevent the creation of reg-moves.
117         * modulo-sched.c: Adjust comment to reflect the fact we are
118         scheduling closing branch.
119         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
120         (stage_count): New field in struct partial_schedule.
121         (calculate_stage_count): New function.
122         (normalize_sched_times): Rename to reset_sched_times and handle
123         incrementing the sched time of the nodes by a constant value
124         passed as parameter.
125         (duplicate_insns_of_cycles): Skip closing branch.
126         (sms_schedule_by_order): Schedule closing branch.
127         (ps_insn_find_column): Handle closing branch.
128         (sms_schedule): Call reset_sched_times and adjust the code to
129         support scheduling of the closing branch.
130         (ps_insert_empty_row): Update calls to normalize_sched_times
131         and rotate_partial_schedule functions.
132
133 2011-05-11  Richard Guenther  <rguenther@suse.de>
134
135         PR middle-end/48953
136         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
137
138 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
139
140         * opts.c (finish_options): Move warning settings from process_options.
141         * toplev.c (process_options): Move warning settings to finish_options.
142
143 2011-05-11  Richard Guenther  <rguenther@suse.de>
144
145         PR tree-optimization/18041
146         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
147         (simplify_bitwise_binary): ... this.  Handle operand conversions
148         by applying them to the result instead.
149         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
150
151 2011-05-11  Richard Guenther  <rguenther@suse.de>
152
153         * gimple.c (gimple_canonical_types_compatible_p): Split out
154         from gimple_types_compatible_p and friends.  Do not recurse
155         to pointed-to types.
156         (gimple_canonical_type_eq): Use it.
157         (iterative_hash_canonical_type): Split out from
158         iterative_hash_gimple_type and friends.  Do not recurse
159         to pointed-to types.
160         (gimple_canonical_type_hash): Use it, allocate the hash here.
161
162 2011-05-11  Revital Eres  <revital.eres@linaro.org>
163
164         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
165         recognizing doloop.
166
167 2011-05-11  Revital Eres  <revital.eres@linaro.org>
168
169         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
170         instead of PREV_INSN.
171
172 2011-05-11  Revital Eres  <revital.eres@linaro.org>
173
174         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
175         * loop-doloop.c (doloop_condition_get): Likewise.
176         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
177         (doloop_end): New.
178         * config/arm/arm.md (*addsi3_compare0): Remove "*".
179
180 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
181
182         * tree.def (CASE_LABEL_EXPR): Add an operand.
183         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
184
185 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
186
187         * c-decl.c (c_override_global_bindings_to_false): Remove.
188         (global_bindings_p): Don't check
189         c_override_global_bindings_to_false.
190         * c-tree.h (c_override_global_bindings_to_false): Remove.
191         * c-typeck.c (composite_type): Don't set
192         c_override_global_bindings_to_false.
193
194 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
195
196         PR target/48857, 48495
197         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
198         (VSX_MODE): Ditto.
199         (VSX_MOVE_MODE): Ditto.
200         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
201         VSX vector types.  Add V2DImode.
202         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
203         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
204         (MODES_TIEABLE_P): Ditto.
205
206         * config/rs6000/rs6000.c (rs6000_emit_move): Use
207         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
208         VSX_VECTOR_MODE.
209         (init_cumulative_args): Ditto.
210         (rs6000_function_arg_boundary): Ditto.
211         (rs6000_function_arg_advance_1): Ditto.
212         (rs6000_function_arg): Ditto.
213         (rs6000_function_ok_for_sibcall): Ditto.
214         (emit_frame_save): Ditto.
215         (rs6000_function_value): Ditto.
216         (rs6000_libcall_value): Ditto.
217
218 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
219
220         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
221         i386/darwin-lib.h to $libgcc_tm_file.
222         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
223
224 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
225
226         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
227
228 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
229
230         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
231         * config/rs6000/rs6000-tables.opt: New file (generated).
232         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
233         rs6000/rs6000-tables.opt to extra_options.
234         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
235         * config/rs6000/rs6000.c (rs6000_select): Remove.
236         (processor_target_table): Move contents to rs6000-cpus.def.
237         (darwin_rs6000_override_options): Check
238         global_options_set.x_rs6000_cpu_index instead of
239         rs6000_select[1].string.
240         (rs6000_option_override_internal): Likewise.
241         (rs6000_handle_option): Don't assert that global structures are in
242         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
243         (rs6000_default_cpu): New variable.
244         (rs6000_file_start): Set it instead of local default_cpu.  Check
245         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
246         global_options_set.x_rs6000_tune_index instead of rs6000_select.
247         (rs6000_darwin_file_start): Check rs6000_default_cpu and
248         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
249         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
250         rs6000_select): Remove.
251         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
252         Remove.
253         (mcpu=, mtune=): Use Var, Init, Enum and Save.
254         * config/rs6000/t-rs6000
255         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
256         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
257         global_options_set.x_rs6000_cpu_index instead of
258         rs6000_select[1].string.
259         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
260         global_options_set.x_rs6000_cpu_index instead of
261         rs6000_select[1].string.
262
263 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
264
265         * config.gcc (libgcc_tm_file): Define instead of including files
266         from ../../libgcc/config/ in tm_file.
267         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
268         * configure: Regenerate.
269         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
270         libgcc_tm.h, cs-libgcc_tm.h): New.
271         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
272         (clean): Remove libgcc_tm.h.
273         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
274         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
275         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
276
277 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
278
279         PR target/48896
280         * config/avr/avr.c (avr_ret_register): Return unsigned int
281         instead of int.
282         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
283         it to avr_libcall_value.
284         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
285         expand_expr.
286         (avr_expand_binop_builtin): Ditto.
287         (avr_expand_unop_builtin): Ditto.
288
289 2011-05-10  DJ Delorie  <dj@redhat.com>
290
291         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
292         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
293         * config/rx/rx.c (rx_align_for_label): Add label and
294         uses_threshold parameters.  Do not align when the label is not
295         used enough.
296         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
297
298 2011-05-10  Richard Guenther  <rguenther@suse.de>
299
300         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
301         a series of conversions and apply foldings similar to what
302         fold-const does.
303         (tree_ssa_forward_propagate_single_use_vars): Call it.
304
305 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
306
307         PR tree-optimization/48611
308         PR tree-optimization/48794
309         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
310         referenced from RESX or EH_DISPATCH arguments.
311
312         PR debug/48928
313         * dfp.c (decimal_to_decnumber): Handle conversion from
314         dconst{1,2,m1,half}.
315
316 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
317
318         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
319         for !flag_prefer_avx128.
320         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
321
322 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
323
324         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
325         (fold_ternary_loc): Use expr_location_or.
326
327 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
328
329         PR debug/48853
330         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
331         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
332         Pmode and mem_mode is not VOIDmode.
333
334 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
335
336         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
337         TYPE_QUAL_RESTRICT): Convert to enum.
338
339 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
340
341         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
342         (const_pow2_1_to_8_operand): Ditto.
343         (const_pow2_1_to_128_operand): Ditto.
344         (const_pow2_1_to_32768_operand): Ditto.
345         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
346         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
347         in insn constraint to check integer value of operand 3.
348         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
349
350         (PINSR_MODE): New mode iterator.
351         (sse2p4_1): New mode attribute.
352         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
353         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
354         iterator.  Use const_int_operand instead of
355         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
356         exact_log2 in insn constraint to check integer value of operand 3.
357
358 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
359
360         * config/i386/sse.md (blendbits): Remove mode attribute.
361         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
362         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
363         Check integer value of operand 3 in insn constraint.
364
365 2011-05-09  Richard Guenther  <rguenther@suse.de>
366
367         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
368         for diagnostics.
369         (lto_symtab_merge): Likewise.  Do not register types here.
370         (lto_symtab_merge_decls_2): Likewise.
371         (lto_symtab_merge_decls_1): Likewise.
372         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
373         * gimple.c (enum gtc_mode): Declare.
374         (gimple_types_compatible_p): Make static.
375
376 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
377
378         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
379         temporary register to match Pmode.
380
381 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
382
383         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
384         and *vec_concatv4si_1_avx.
385
386 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
387
388         PR rtl-optimization/48927
389         * ira-conflicts.c (commutative_constraint_p): Use
390         recog_data.alternative_enabled_p to disable alternatives where
391         "enabled" attribute is false.
392         (get_dup_num): Ditto.
393         * ira-lives.c (single_reg_class): Ditto.
394         (ira_implicitly_set_insn_hard_regs): Ditto.
395
396 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
397
398         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
399         (dataflow_set_preserve_mem_locs): Likewise.
400
401 2011-05-09  Philipp Thomas  <pth@suse.de>
402
403         * config/mep/mep.c (mep_validate_vliw): Syntax description
404         should not be translated.
405
406 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
407
408         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
409         * config/mips/mips-tables.opt: New file (generated).
410         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
411         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
412         MIPS_ARCH_OPTION_NATIVE): Define.
413         * config/mips/mips.c (mips_cpu_info_table): Move contents to
414         mips-cpus.def.
415         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
416         mips_parse_cpu): Remove.
417         (mips_cpu_info_from_opt, mips_default_arch): New.
418         (mips_handle_option): Don't assert that global structures are in
419         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
420         (mips_option_override): Use new variables and functions to set
421         state of these options.  Use strcmp to check for individual CPU names.
422         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
423         definition.
424         * config/mips/mips.opt (march=): Use ToLower and Enum.
425         (mips): Use ToLower, Enum and Var.
426         (mtune=): Use ToLower and Enum.
427         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
428
429 2011-05-08  Jan Hubicka  <jh@suse.cz>
430
431         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
432         Arrange type pairs to be UID ordered.
433         (gimple_lookup_type_leader): Make inline.
434
435 2011-05-09  Nick Clifton  <nickc@redhat.com>
436
437         PR target/48899
438         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
439         PROCESSOR_DEFAULT.
440
441         PR target/48897
442         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
443         variable 's'.
444
445 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
446
447         * combine.c (simplify_comparison): Abstract out parts into...
448         (simplify_compare_const): ... new function.
449         (try_combine): Generalize parallel arithmetic/compare combining
450         to call simplify_compare_const() and CANONICALIZE_COMPARE().
451
452 2011-05-08  Jan Hubicka  <jh@suse.cz>
453
454         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
455         (cgraph_create_virtual_clone): Call hooks once virtual clone
456         is finished.
457         * cgraph.h (cgraph_clone_node): Update prototype.
458         * ipa-cp.c (ipcp_estimate_growth): Use
459         estimate_ipcp_clone_size_and_time.
460         * ipa-inline-transform.c (clone_inlined_nodes): Update.
461         * lto-cgraph.c (input_node): Update.
462         * ipa-inline.c (recursive_inlining): Update.
463         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
464         (evaluate_conditions_for_known_args): Break out from ...
465         (evaluate_conditions_for_edge): ... here.
466         (evaluate_conditions_for_ipcp_clone): New function.
467         (inline_node_duplication_hook): Update clone summary based
468         on parameter map.
469         (estimate_callee_size_and_time): Rename to ...
470         (estimate_node_size_and_time): take NODE instead of EDGE;
471         take POSSIBLE_TRUTHS as argument.
472         (estimate_callee_size_and_time): Update.
473         (estimate_ipcp_clone_size_and_time): New function.
474         (do_estimate_edge_time): Update.
475
476 2011-05-08  Richard Guenther  <rguenther@suse.de>
477
478         PR middle-end/48908
479         PR middle-end/48905
480         * expmed.c (expand_shift_1): Compute adjusted constant shift
481         amount manually.
482
483 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
484
485         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
486
487 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
488
489         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
490
491 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
492
493         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
494
495 2011-05-07  Jan Hubicka  <jh@suse.cz>
496
497         * ipa-inline-transform.c (inline_call): Account when program size
498         decreases.
499         * ipa-inline.c (relative_time_benefit): New function.
500         (edge_badness): Reorganize to be power 2 based; fix thinko when
501         computing badness for negative growth; update comments to match
502         reality; better dumps.
503
504 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
505
506         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
507         type to bool and adjust comment.
508         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
509         (fold_mathfn_compare): Remove calls to global_bindings_p.
510         (fold_inf_compare): Likewise.
511         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
512         * c-tree.h (global_bindings_p): Adjust prototype.
513         * c-decl.c (global_bindings_p): Return bool and simplify.
514
515 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
516
517         PR tree-optimization/48837
518         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
519         when accumulator transformation is performed.
520
521 2011-05-06  Jan Hubicka  <jh@suse.cz>
522
523         * i386.h (ix86_tune_indices): Add
524         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
525         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
526         * i386.c (initial_ix86_tune_features): Add
527         X86_SOFTARE_PREFETCHING_BENEFICIAL.
528         (software_prefetching_beneficial_p): Remove predicate.
529         (ix86_option_override_internal): Use new macro.
530
531 2011-05-06  Jan Hubicka  <jh@suse.cz>
532
533         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
534
535 2011-05-06  Jan Hubicka  <jh@suse.cz>
536
537         * cgraph.c (cgraph_add_thunk): Create real function node instead
538         of alias node; finalize it and mark needed/reachale; arrange visibility
539         to be right and add it into the corresponding same comdat group list.
540         (dump_cgraph_node): Dump thunks.
541         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
542         cgraph_function_with_gimple_body_p,
543         cgraph_first_function_with_gimple_body,
544         cgraph_next_function_with_gimple_body): New functions.
545         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
546         New macros.
547         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
548         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
549         * cgraphunit.c (cgraph_finalize_function): Only look into possible
550         devirtualization when optimizing.
551         (verify_cgraph_node): Verify thunks.
552         (cgraph_analyze_function): Analyze thunks.
553         (cgraph_mark_functions_to_output): Output thunks only in combination
554         with function they are assigned to.
555         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
556         alias into normal node.
557         (assemble_thunks): New functoin.
558         (cgraph_expand_function): Use it.
559         * lto-cgraph.c (lto_output_node): Stream thunks.
560         (input_overwrite_node): Stream in thunks.
561         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
562         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
563         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
564         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
565         (inline_analyze_function): Do not care about thunk jump functions.
566         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
567         * ipa-prop.c (ipa_prop_write_jump_functions): Use
568         cgraph_function_with_gimple_body_p.
569         * passes.c (do_per_function_toporder): Use
570         cgraph_function_with_gimple_body_p.
571         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
572         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
573         (function_called_by_processed_nodes_p): Likewise.
574
575 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
576
577         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
578         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
579         entries.
580         (mabi=): Replace with separate entries for mabi=altivec,
581         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
582         mabi=ieeelongdouble and mabi=ibmlongdouble.
583         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
584         check for -mabi=spe without SPE ABI support here.
585         (rs6000_handle_option): Replace OPT_mabi_ handling with
586         OPT_mabi_altivec and OPT_mabi_spe handling.
587
588 2011-05-06  Cary Coutant  <ccoutant@google.com>
589
590         * dwarf2out.c (contains_subprogram_definition): New function.
591         (should_move_die_to_comdat): Call it.
592
593 2011-05-06  Jeff Law  <law@redhat.com>
594
595         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
596         remove_ctrl_stmt_and_useless_edges.
597         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
598         (fixup_template_block, thread_single_edge): Likewise.
599         (mark_threaded_blocks): Use THREAD_TARGET.
600
601 2011-05-06  Alan Modra  <amodra@gmail.com>
602
603         PR target/48900
604         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
605         const0_rtx as the arg to the dummy __tls_get_addr libcall.
606
607 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
608
609         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
610         constraint modifier to "r".
611
612 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
613
614         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
615         fall through for OPT_mcmodel_.
616
617 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
618
619         * config/s390/s390.c (s390_asm_trampoline_template): Comment
620         instruction sizes.
621         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
622
623 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
624
625         PR target/47930
626         * config/arm/arm.opt (marm): Document it.
627         (mthumb): Reject negative variant.
628
629 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
630
631         PR target/48898
632         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
633         Fix typo in "ccvt" variable name.
634
635 2011-05-06  Tristan Gingold  <gingold@adacore.com>
636
637         PR target/48895
638         * config/vms/vms-ar.c (main): Remove cwd variable.
639
640 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
641
642         PR debug/48902
643         * var-tracking.c (prepare_call_arguments): Move else before #endif.
644
645 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
646
647         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
648         * gimplify.c (gimplify_switch_expr): Likewise.
649         * omp-low.c (expand_omp_sections): Likewise.
650         * tree-eh.c (lower_try_finally_switch): Likewise.
651         (lower_eh_dispatch): Likewise.
652         * tree.h (build_case_label): Declare.
653         * tree.c (build_case_label): Define.
654
655 2011-05-05  Jason Merrill  <jason@redhat.com>
656
657         PR c++/40975
658         * tree-inline.c (copy_tree_r): Use copy_statement_list.
659         (copy_statement_list): Don't recurse.
660         * stor-layout.c (copy_self_referential_tree_r): Don't allow
661         STATEMENT_LIST.
662
663 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
664
665         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
666         through from -mfpu= handling.
667         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
668
669 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
670
671         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
672         POST_MODIFY.
673
674 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
675
676         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
677         for 11.31.
678         (hppa[12]*-*-hpux11*): Ditto.
679         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
680         * config/ia64/hpux-unix2003.h: New.
681         * config/pa/pa-hpux1131.opt: New.
682         * config/pa/pa-hpux1131.h: New.
683         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
684         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
685         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
686
687 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
688
689         PR debug/48853
690         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
691         instead of mode as 3rd argument to recursive call.
692         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
693         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
694         VOIDmode.
695         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
696         don't give up if mode is Pmode and mem_mode is not VOIDmode.
697         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
698         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
699
700 2011-05-05  Julian Brown  <julian@codesourcery.com>
701
702         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
703         parenthesis in D-register case.
704
705 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
706
707         * opt-functions.awk (var_type_struct): Handle Enum options.
708         * optc-gen.awk: Don't check range of variables of character type.
709         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
710         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
711         rs6000_sdata_name, rs6000_explicit_options): Remove.
712         (rs6000_option_override_internal): Check for -malign-power here.
713         Use global_options_set instead of rs6000_explicit_options.
714         (rs6000_parse_fpu_option): Remove.
715         (rs6000_handle_option): Access variables via opts and opts_set
716         pointers.  Use error_at and warning_at.  Add fall-through
717         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
718         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
719         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
720         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
721         here.  Don't use rs6000_parse_fpu_option.
722         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
723         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
724         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
725         (mrecip=): Use Var.
726         (mspe): Use Var and Save.
727         (mtraceback=): Use Enum and Var.
728         (rs6000_traceback_type): New Enum and EnumValue entries.
729         (mfloat-gprs=): Use Enum, Var and Save.
730         (rs6000_float_gprs): New Enum and EnumValue entries.
731         (mlong-double-): use Var and Save.
732         (msched-costly-dep=, minsert-sched-nops=): Use Var.
733         (malign-): Use Enum and Var.
734         (rs6000_alignment_flags): New Enum and EnumValue entries.
735         (mfpu=): Use Enum.
736         (fpu_type_t): New Enum and EnumValue entries.
737         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
738         global_options_set instead of rs6000_explicit_options.
739         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
740         global_options_set instead of rs6000_explicit_options.
741         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
742         global_options_set instead of rs6000_explicit_options.
743         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
744         global_options_set instead of rs6000_explicit_options.
745         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
746         global_options_set instead of rs6000_explicit_options.
747         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
748         global_options_set instead of rs6000_explicit_options.
749         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
750         definition.
751         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
752         global_options_set instead of rs6000_explicit_options.
753         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
754         (rs6000_cmodel): New Enum and EnumValue entries.
755         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
756         global_options_set instead of rs6000_explicit_options.
757         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
758         (mtls-size=): Use Enum and Var.
759         (rs6000_tls_size): New Enum and EnumValue entries.
760
761 2011-05-05  Michael Matz  <matz@suse.de>
762
763         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
764         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
765         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
766         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
767         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
768         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
769         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
770         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
771         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
772         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
773         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
774         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
775         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
776         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
777         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
778         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
779
780 2011-05-05  Richard Guenther  <rguenther@suse.de>
781
782         * expmed.c (expand_variable_shift): Rename to ...
783         (expand_shift_1): ... this.  Take an expanded shift amount.
784         For rotates recurse directly not building trees for the shift amount.
785         (expand_variable_shift): Wrap around expand_shift_1.
786         (expand_shift): Adjust.
787
788 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
789
790         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
791
792 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
793
794         * tree.h (get_pending_sizes): Remove prototype.
795         (put_pending_size): Likewise.
796         (put_pending_sizes): Likewise.
797         * stor-layout.c (pending_sizes): Delete.
798         (get_pending_sizes): Likewise.
799         (put_pending_size): Likewise.
800         (put_pending_sizes): Likewise.
801         (variable_size): Do not call put_pending_size and tidy up.
802         * function.h (struct function): Remove dont_save_pending_sizes_p.
803         * lto-streamer-in.c (input_function): Do not stream it.
804         * lto-streamer-out.c (output_function): Likewise.
805         * tree-inline.c (initialize_cfun): Do not copy it.
806         * c-decl.c (store_parm_decls): Do not set it.
807         * omp-low.c (create_task_copyfn): Likewise.
808         * tree-optimize.c (tree_rest_of_compilation): Likewise.
809
810 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
811
812         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
813         conditions.
814         (*movdf_internal): Ditto.
815         (*movdf_internal_nointeger): Ditto.
816         (*movsf_internal): Ditto.
817
818 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
819
820         * c-decl.c (finish_decl): Don't call get_pending_sizes.
821         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
822         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
823         (c_variable_size): Remove.
824         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
825         call put_pending_sizes.
826         (get_parm_info): Add parameter expr.  Use it to set
827         arg_info->pending_sizes.
828         (store_parm_decls): Use arg_info->pending_sizes instead or calling
829         get_pending_sizes.
830         * c-parser.c (c_parser_parms_declarator): Update call to
831         c_parser_parms_list_declarator.
832         (c_parser_parms_list_declarator): Take parameter expr.  Update
833         call to push_parm_decl.  Update recursive call.  Don't call
834         get_pending_sizes.  Update calls to get_parm_info.
835         (c_parser_objc_method_definition): Update calls to
836         c_parser_objc_method_decl and objc_start_method_definition.
837         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
838         (c_parser_objc_method_decl): Add parameter expr.  Update call to
839         grokparm.
840         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
841         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
842         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
843
844 2011-05-05  Michael Hope  <michael.hope@linaro.org>
845
846         PR pch/45979
847         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
848         __ARM_EABI__ hosts.
849
850 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
851
852         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
853         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
854         (spu_output_mi_thunk): New function.
855
856 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
857
858         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
859         targetm.asm_out.print_operand.
860         * config/sol2.c: Include target.h.
861
862 2011-05-04  Jan Hubicka  <jh@suse.cz>
863
864         * ipa-inline.c (reset_edge_caches): New function.
865         (update_caller_keys): Add check_inlinablity_for; do not
866         reset edge caches; remove now unnecesary loop.
867         (update_callee_keys): Add comments; reset node_growth_cache of callee.
868         (update_all_callee_keys): Likewise.
869         (inline_small_functions): Sanity check cache; update code
870         recomputing it.
871
872 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
873
874         PR rtl-optimization/47612
875         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
876         as the last insn of the sequence to be moved.
877
878 2011-05-04  Tobias Burnus  <burnus@net-b.de>
879
880         PR fortran/48864
881         * doc/invoke.texi (Ofast): Document that it
882         enables Fortran's -fno-protect-parens.
883
884 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
885
886         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
887
888 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
889
890         * stor-layout.c (variable_size): Do not issue errors.
891
892 2011-05-04  Richard Guenther  <rguenther@suse.de>
893
894         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
895         for array-ref indices.
896         (tree_coverage_counter_addr): Likewise.
897         (build_fn_info_type): Use size_int for index types.
898         (build_gcov_info): Likewise.
899
900 2011-05-04  Richard Guenther  <rguenther@suse.de>
901
902         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
903         to build_int_cst.
904         * c-typeck.c (really_start_incremental_init): Use bitsize_int
905         for constructor indices.
906         (push_init_level): Likewise.
907
908 2011-05-04  Richard Guenther  <rguenther@suse.de>
909
910         * explow.c (promote_mode): Move variable declarations before code.
911
912 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
913
914         * tree.h (build_function_type_array): Declare.
915         (build_varargs_function_type_array): Declare.
916         (build_function_type_vec, build_varargs_function_type_vec): Define.
917         * tree.c (build_function_type_array_1): New function.
918         (build_function_type_array): New function.
919         (build_varargs_function_type_array): New function.
920
921 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
922
923         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
924         before setting STMT_VINFO_TYPE.
925
926 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
927
928         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
929         instead of spu_pass_by_reference.
930
931 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
932
933         * calls.c (emit_library_call_value_1): Invoke
934         promote_function_mode hook on libcall arguments.
935         * explow.c (promote_function_mode, promote_mode): Handle TYPE
936         argument being NULL.
937         * targhooks.c (default_promote_function_mode): Lisewise.
938         * config/s390/s390.c (s390_promote_function_mode): Likewise.
939         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
940
941         * doc/tm.texi: Document that TYPE argument might be NULL.
942
943 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
944
945         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
946
947 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
948
949         From Bernd Schmidt
950         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
951
952 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
953
954         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
955         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
956         Move ...
957         * mips-tfile.c: ... here.
958         Don't include coretypes.h, tm.h, filenames.h.
959         (saber_stop): Remove definition and all calls.
960         [__SABER__]: Remove.
961         (__LINE__): Remove default.
962         (Size_t, Ptrdiff_t): Remove definitions.
963         Replace by size_t, ptrdiff_t.
964         [!MIPS_DEBUGGING_INFO]: Remove.
965         (SHASH_SIZE, THASH_SIZE): Remove defaults.
966         (progname): Add const.
967         (STATIC): Remove.
968         Replace all uses by static.
969         (ALIGN_SYMTABLE_OFFSET): Remove default.
970         * mips-tdump.c: Don't include coretypes.h, tm.h.
971         Remove !MIPS_IS_STAB guard.
972         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
973         $(TM_H), filenames.h dependencies.
974         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
975
976 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
977
978         From Jie Zhang
979         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
980         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
981
982 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
983
984         From Bernd Schmidt
985         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
986         account and save/restore RETS.
987         (PROFILE_BEFORE_PROLOGUE): Define.
988         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
989         the push insn to use predecrement.
990
991 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
992
993         From Jie Zhang
994         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
995
996 2011-05-04  Nick Clifton  <nickc@redhat.com>
997
998         * config/mn10300/mn10300.c: Include cfgloop.h.
999         (DUMP): New macro.
1000         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
1001         Lcc or a FLcc insn into the instruction stream.
1002         (mn10300_block_contains_call): New function.  Returns true if the
1003         given basic block contains a CALL insn.
1004         (mn10300_loop_contains_call_insn): New function.  Returns true if
1005         the given loop contains a CALL insn.
1006         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
1007         to use the SETLB and Lcc or FLcc insns.
1008         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
1009         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
1010         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
1011         disable the SETLB optimization.
1012         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1013         __SETLB__ or __NO_SETLB__.
1014         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
1015         (movsf_internal): Handle MDR register.
1016         (cmpsi): Make visible.
1017         (setlb): New pattern.
1018         (Lcc): New pattern.
1019         (FLcc): New pattern.
1020
1021 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
1022
1023         PR target/48860
1024         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
1025         for reg<->xmm moves.
1026         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1027         (vec_concatv2di_rex64_sse): Ditto.
1028         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
1029         (*vec_extractv2di_1_rex64): Ditto.
1030
1031         Revert:
1032         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1033
1034         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1035         reg<->xmm moves.
1036         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
1037
1038 2011-05-04  Richard Guenther  <rguenther@suse.de>
1039
1040         * tree.h (int_const_binop): Remove notrunc argument.
1041         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
1042         create integer constants that are properly truncated.
1043         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
1044         (const_binop): Remove zero notrunc argument to int_const_binop.
1045         (size_binop_loc): Likewise.
1046         (fold_div_compare): Likewise.
1047         (maybe_canonicalize_comparison_1): Likewise.
1048         (fold_comparison): Likewise.
1049         (fold_binary_loc): Likewise.
1050         (multiple_of_p): Likewise.
1051         * expr.c (store_constructor): Likewise.
1052         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1053         (maybe_fold_stmt_addition): Likewise.
1054         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1055         * stor-layout.c (layout_type): Likewise.
1056         * tree-data-ref.c (tree_fold_divides_p): Likewise.
1057         * tree-sra.c (build_ref_for_offset): Likewise.
1058         (build_user_friendly_ref_for_offset): Likewise.
1059         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
1060         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1061         * tree-ssa-loop-niter.c (inverse): Likewise.
1062         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1063         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
1064         * tree-switch-conversion.c (check_range): Likewise.
1065         (build_constructors): Likewise.
1066         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
1067         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
1068         (extract_range_from_assert): Likewise.
1069         (vrp_int_const_binop): Likewise.
1070         (extract_range_from_binary_expr): Likewise.
1071         (extract_range_from_unary_expr): Likewise.
1072         (check_array_ref): Likewise.
1073         (find_case_label_range): Likewise.
1074         (simplify_div_or_mod_using_ranges): Likewise.
1075         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
1076         comparing case labels for merging.
1077
1078 2011-05-03  Mark Wielaard  <mjw@redhat.com>
1079
1080         * dwarf2out.c (debug_str_hash_forced): Removed.
1081         (gen_label_for_indirect_string): Removed.
1082         (get_debug_string_label): Removed.
1083         (AT_string_form): Generate label directly.
1084         (output_indirect_string): Test indirect_string_node for
1085         DW_FORM_strp instead of checking label and refcount.
1086         (prune_indirect_string): Removed.
1087         (prune_unused_types): Don't check debug_str_hash_forced or
1088         call prune_indirect_string.
1089
1090 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
1091
1092         PR other/48093
1093         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
1094
1095 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
1096
1097         PR debug/47994
1098         PR debug/47919
1099         * combine.c (try_combine): Skip debug insns at m_split tests.
1100
1101 2011-04-26  Mark Wielaard  <mjw@redhat.com>
1102
1103         PR42288
1104         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
1105         when info_section_emitted.
1106
1107 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
1108
1109         * config/mips/mips-opts.h: New.
1110         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
1111         to mips-opts.h.
1112         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
1113         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
1114         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
1115         via opts pointer.
1116         * config/mips/mips.h (enum mips_code_readable_setting): Move to
1117         mips-opts.h.
1118         (mips_abi, mips_code_readable): Don't declare.
1119         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
1120         (mabi=): Use Enum and Var.
1121         (mips_abi): New Enum and EnumValue entries.
1122         (mcode-readable=): Use Enum and Var.
1123         (mips_code_readable_setting): New Enum and EnumValue entries.
1124         (mr10k-cache-barrier=): Use Enum and Var.
1125         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
1126
1127 2011-05-03  Jan Hubicka  <jh@suse.cz>
1128
1129         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
1130         replace hash by pointer map.
1131         (cgraph_node_set_element_def, cgraph_node_set_element,
1132         const_cgraph_node_set_element, varpool_node_set_element_def,
1133         varpool_node_set_element, const_varpool_node_set_element): Remove.
1134         (free_cgraph_node_set, free_varpool_node_set): New function.
1135         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
1136         * tree-emutls.c: Free varpool node set.
1137         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
1138         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1139         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
1140         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1141         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
1142         Move here from ipa.c; implement using pointer_map
1143         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
1144         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1145         debug_cgraph_node_set, varpool_node_set_new,
1146         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1147         dump_varpool_node_set, debug_varpool_node_set):
1148         Move to ipa-uitls.c.
1149         * passes.c (ipa_write_summaries): Update.
1150
1151 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1152
1153         From Mike Frysinger:
1154         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
1155         bf542/bf544/bf547/bf548/bf549.
1156
1157 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
1158
1159         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
1160
1161 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1162
1163         From Bernd Schmidt:
1164         * config/bfin/bfin.md (MOVCC): New mode_macro.
1165         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
1166         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
1167         comments from generated assembly.
1168
1169 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1170
1171         From Bernd Schmidt
1172         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
1173         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
1174         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
1175         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
1176         * config/bfin/lib1funcs.asm (___muldi3): New function.
1177
1178 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1179
1180         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
1181         build_function_type_list instead of build_function_type.
1182         Rearrange initialization of `args' to do so.
1183
1184 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1185
1186         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
1187         instead of build_function_type.
1188
1189 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1190
1191         * config/rs6000/rs6000.c (spe_init_builtins): Call
1192         build_function_type_list instead of build_function_type.
1193         (paired_init_builtins, altivec_init_builtins): Likewise.
1194         (builtin_function_type): Likewise.
1195
1196 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1197
1198         * config/sh/sh.c (sh_media_init_builtins): Call
1199         build_function_type_list instead of build_function_type.
1200
1201 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1202
1203         * config/sparc/sparc.c (sparc_file_end): Call
1204         build_function_type_list instead of build_function_type.
1205
1206 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1207
1208         * config/alpha/alpha.c (alpha_init_builtins): Call
1209         build_function_type_list instead of build_function_type.
1210
1211 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1212
1213         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
1214         build_function_type_list instead of build_function_type.
1215
1216 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1217
1218         * config/iq2000/i2000.c (iq2000_init_builtins): Call
1219         build_function_type_list instead of build_function_type.
1220         Delete `endlink' variable.
1221
1222 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1223
1224         * config/avr/avr.c (avr_init_builtins): Call
1225         build_function_type_list instead of build_function_type.
1226
1227 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1228
1229         * config/picochip/picochip.c (picochip_init_builtins): Call
1230         build_function_type_list instead of build_function_type.
1231         Delete `endlink' variable.
1232
1233 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1234
1235         * config/bfin/bfin.c (bfin_init_builtins): Call
1236         build_function_type_list instead of build_function_type.
1237
1238 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1239
1240         From Bernd Schmidt
1241         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
1242         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
1243
1244 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1245
1246         From Jie Zhang:
1247         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
1248         libbffastfp overrides libgcc when -mfast-fp.
1249
1250 2011-05-03  Stuart Henderson <shenders@gcc.gnu.org>
1251
1252         Originally from Bernd Schmidt
1253         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
1254         * config/bfin/bfin.c (override_options): Test it and error if
1255         TARGET_FDPIC.
1256
1257 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1258
1259         Originally From Bernd Schmidt
1260         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
1261         FD-PIC.
1262
1263 2011-05-03  Jeff Law  <law@redhat.com>
1264
1265         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
1266         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
1267         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
1268         than accessing AUX field directly.  Free the AUX field before
1269         clearing it.
1270         (thread_block, thread_through_loop_header): Likewise.
1271         (thread_single_edge, mark_threaded_blocks): Likewise.
1272         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
1273         (register_jump_thread): Do not attempt to thread to a NULL edge.
1274
1275 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
1276
1277         * function.c (init_function_start): Call decide_function_section.
1278         * varasm.c (decide_function_section): New function.
1279         (assemble_start_function): When not using
1280         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
1281         or first_function_block_is_cold.
1282         * rtl.h (decide_function_section): Declare.
1283
1284 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
1285             Jakub Jelinek  <jakub@redhat.com>
1286
1287         PR target/48774
1288         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
1289         only succeed if req_mode is the same as set_mode.
1290
1291 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
1292
1293         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
1294         * genemit.c (gen_exp): Handle RETURN.
1295         * emit-rtl.c (verify_rtx_sharing): Likewise.
1296         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
1297         * rtl.c (copy_rtx): RETURN is shared.
1298         * rtl.h (enum global_rtl_index): Add GR_RETURN.
1299         (ret_rtx): New.
1300         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
1301         * config/s390/s390.c (s390_emit_epilogue): Likewise.
1302         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
1303         * config/cris/cris.c (cris_expand_return): Likewise.
1304         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
1305         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
1306         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
1307         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
1308         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
1309         Likewise.
1310         * config/v850/v850.c (expand_epilogue): Likewise.
1311         * config/bfin/bfin.c (bfin_expand_call): Likewise.
1312         * config/arm/arm.md (epilogue): Likewise.
1313         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
1314         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
1315         variable to ret_reg.
1316
1317 2011-05-03  Richard Guenther  <rguenther@suse.de>
1318
1319         PR lto/48846
1320         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1321         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
1322         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1323
1324 2011-05-03  Richard Guenther  <rguenther@suse.de>
1325
1326         * c-decl.c (grokdeclarator): Instead of looking at
1327         TREE_OVERFLOW check if the constant fits in the index type.
1328
1329 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1330
1331         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
1332         (vec_store_lanes<mode><mode>): Likewise.
1333
1334 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1335
1336         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
1337         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
1338         convert_optab_index values.
1339         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
1340         * genopinit.c (optabs): Initialize the new optabs.
1341         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
1342         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
1343         (expand_STORE_LANES): New functions.
1344         * tree.h (build_array_type_nelts): Declare.
1345         * tree.c (build_array_type_nelts): New function.
1346         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
1347         (vect_model_load_cost): Likewise.
1348         (vect_store_lanes_supported, vect_load_lanes_supported)
1349         (vect_record_strided_load_vectors): Declare.
1350         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
1351         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
1352         (vect_transform_strided_load): Split out statement recording into...
1353         (vect_record_strided_load_vectors): ...this new function.
1354         * tree-vect-stmts.c (create_vector_array, read_vector_array)
1355         (write_vector_array, create_array_ref): New functions.
1356         (vect_model_store_cost): Add store_lanes_p argument.
1357         (vect_model_load_cost): Add load_lanes_p argument.
1358         (vectorizable_store): Try to use store-lanes functions for
1359         interleaved stores.
1360         (vectorizable_load): Likewise load-lanes and loads.
1361         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
1362         to vect_model_store_cost.
1363         (vect_build_slp_tree): Likewise vect_model_load_cost.
1364
1365 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1366
1367         * hooks.h (hook_bool_mode_uhwi_false): Declare.
1368         * hooks.c (hook_bool_mode_uhwi_false): New function.
1369         * target.def (array_mode_supported_p): New hook.
1370         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
1371         * doc/tm.texi: Regenerate.
1372         * stor-layout.c (mode_for_array): New function.
1373         (layout_type): Use it.
1374         * config/arm/arm.c (arm_array_mode_supported_p): New function.
1375         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
1376
1377 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
1378
1379         PR target/48723
1380         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
1381         for -fstack-check if the size to allocate is negative.
1382
1383 2011-05-02  Lawrence Crowl  <crowl@google.com>
1384
1385         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
1386         (timevar_cond_start): New for starting a timer only when it is not
1387         already running.
1388         (timevar_cond_stop): New for stopping a timer when it was not already
1389         running.
1390
1391         * timevar.c (timevar_stop): Enable start/stop timers to start again.
1392         (timevar_cond_start): New as above.
1393         (timevar_cond_stop): New as above.
1394
1395         * timevar.def: Add start/stop timers for compiler phases,
1396         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
1397         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
1398         and TV_PHASE_FINALIZE.
1399         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
1400         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
1401         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
1402         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
1403         Make unused TV_OVERLOAD into a start/stop timer.
1404
1405         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
1406         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
1407         to indicate that they are start/stop timers.
1408
1409         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
1410         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
1411         Move initialization to do_compile.
1412         (do_compile): Add initialization from above.
1413         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
1414
1415         * c-decl.c (c_write_global_declarations): Add start/stop of
1416         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
1417
1418         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
1419         or TV_PARSE_INLINE, as appropriate.
1420         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
1421         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
1422
1423 2011-05-02  Jason Merrill  <jason@redhat.com>
1424
1425         PR c++/40975
1426         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
1427
1428 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
1429
1430         PR c/35445
1431         * c-decl.c (finish_decl): Only create a composite if the types are
1432         compatible.
1433
1434 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
1435
1436         * config/fr30/fr30-protos.h (Mmode): Don't define.
1437         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
1438         definition where used.
1439         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
1440         define.  Expand definitions where used.
1441         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
1442         Expand definitions where used.
1443         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
1444         rx_function_arg, rx_function_arg_advance,
1445         rx_function_arg_boundary): Expand definitions of those macros.
1446         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
1447         definition where used.
1448
1449 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1450
1451         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1452         reg<->xmm moves.
1453         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
1454         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
1455         with *movv2sf_internal_rex64_avx.
1456         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
1457         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
1458         Use %v prefix in insn mnemonic to handle TARGET_AVX.
1459         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
1460         "vex" in "prefix" attribute calculation.
1461         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
1462
1463 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
1464
1465         PR target/47951
1466         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
1467         inputs match the output.
1468
1469 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
1470
1471         PR target/47955
1472         * config/m68k/m68k.c (m68k_expand_prologue): Set
1473         current_function_static_stack_size.
1474
1475 2011-05-02   Jan Hubicka  <jh@suse.cz>
1476
1477         * lto-streamer.c (lto_streamer_cache_insert_1,
1478         lto_streamer_cache_lookup, lto_streamer_cache_create,
1479         lto_streamer_cache_delete): Use pointer map instead of hashtable.
1480         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
1481
1482 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
1483
1484         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
1485         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
1486         config/m68k/t-opts: New files.
1487         * config/m68k/m68k-tables.opt: New file (generated).
1488         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
1489         extra_options and m68k/t-opts to tmake_file.
1490         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
1491         (all_isas): Initialize using m68k-isas.def.
1492         (all_microarchs): Initialize using m68k-microarchs.def.
1493         (m68k_find_selection): Remove.
1494         (m68k_handle_option): Don't assert that global structures are in
1495         use.  Use error_at.  Access variables via opts pointer.  Don't
1496         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
1497         directly for -m68020-40 and -m68020-60.
1498         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
1499         m68k_tune_entry here.
1500         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
1501         to m68k-opts.h.
1502         (m68k_library_id_string): Remove declaration.
1503         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
1504         (m68k_library_id_string): New Variable.
1505         (march=, mcpu=, mtune=): Use Enum and Var.
1506
1507 2011-05-02  Richard Guenther  <rguenther@suse.de>
1508
1509         * varasm.c (output_constructor_regular_field): Compute zero-based
1510         index with double-ints.  Make sure to ICE instead of producing
1511         wrong code.
1512         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
1513         in asserts.  Properly use a signed type.
1514
1515 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1516
1517         * config/i386/sse.md (V): New mode iterator.
1518         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
1519         TARGET_SSE2.
1520         (V_256): Rename from AVX256MODE.
1521         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
1522         condition to all users.
1523         (VF1): Ditto.
1524         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
1525         condition to all users.
1526         (VF_128): Make V4SF mode unconditional.
1527         (VF_256): Rename from AVX256MODEF2P.
1528         (VI4F_128): Rename from SSEMODE4S.
1529         (VI8F_128): Rename from SSEMODE2D.
1530         (VI4F_256): Rename from AVX256MODE8P.
1531         (VI8F_256): Rename from AVX256MODE4P.
1532         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
1533         (ssescalarmodesuffix): Remove SF and DF modes.
1534         (SSEMODE124): Remove.
1535         (SSEMODE1248): Ditto.
1536         (SSEMODEF2P): Ditto.
1537         (AVXMODEF2P): Ditto.
1538         (AVXMODEFDP): Ditto.
1539         (AVXMODEFSP): Ditto.
1540         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
1541         unconditional.
1542         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
1543         unconditional.
1544         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
1545         xop_pcmov_<mode>256.  Use V mode iterator.
1546
1547         Adjust RTX patterns globally for renamed mode attributes.
1548
1549 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1550
1551         * haifa-sched.c (sched_emit_insn): Emit insn before first
1552         non-scheduled insn.  Inform back-end about new insn.  Add
1553         new insn to scheduled_insns list.
1554
1555 2011-05-02  Richard Guenther  <rguenther@suse.de>
1556
1557         PR tree-optimization/48822
1558         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
1559         (process_scc): Indicate which iteration we start.
1560
1561 2011-05-02  Jan Hubicka  <jh@suse.cz>
1562
1563         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
1564         (lto_section_overrun): New.
1565         * lto-section-out.c (append_block): Rename to ...
1566         (lto_append_block): ... this one; export.
1567         (lto_output_1_stream): Move lto lto-streamer.h
1568         (lto_output_data_stream): Update.
1569         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
1570         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
1571         functions.
1572
1573 2011-05-02  Richard Guenther  <rguenther@suse.de>
1574
1575         * tree.c (tree_code_counts): New global array.
1576         (record_node_allocation_statistics): Count individual tree codes.
1577         (dump_tree_statistics): Dump individual code stats.
1578
1579 2011-05-01  Jan Hubicka  <jh@suse.cz>
1580
1581         * ipa-inline.c (caller_growth_limits): Fix thinko when
1582         looking for largest stack frame.
1583         * ipa-inline.h (dump_inline_summary): Declare.
1584         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
1585         on stack usage.
1586         (dump_inline_summary): Export.
1587         (debug_inline_summary): Declare as DEBUG_FUNCTION.
1588
1589 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
1590
1591         * reginfo.c (memory_move_cost): Change rclass argument type form
1592         'enum reg_class' to reg_class_t.
1593         * reload.h (memory_move_cost): Update prototype.
1594         * postreload.c reload_cse_simplify_set): Change type dclass var to
1595         reg_class_t.
1596         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
1597         Update prototype.
1598         (ira_allocate_and_set_costs): Change aclass argument type form
1599         'enum reg_class' to reg_class_t.
1600         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
1601         Change aclass argument type to reg_class_t.
1602         (update_conflict_hard_reg_costs): Change type aclass and pref vars
1603         to reg_class_t.
1604         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
1605         memory_move_cost call.
1606
1607         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
1608         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
1609         Change type tmp var to reg_class_t.
1610
1611 2011-04-30  Jan Hubicka  <jh@suse.cz>
1612
1613         * ipa-inline.c (can_inline_edge_p): Disregard limits when
1614         inlining into function with flatten attribute.
1615         (want_inline_small_function_p): Be more realistic about inlining
1616         cold calls where callee size grows.
1617
1618 2011-04-30  Jan Hubicka  <jh@suse.cz>
1619
1620         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
1621         flags.
1622
1623 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
1624
1625         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1626         PRINT_OPERAND_PUNCT_VALID_P): Remove.
1627         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
1628         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
1629         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1630         (print_operand): Rename to...
1631         (sparc_print_operand): ...this. Make static. Adjust
1632         sparc_print_operand function call.
1633         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
1634         functions.
1635
1636 2011-04-30  Jan Hubicka  <jh@suse.cz>
1637
1638         PR middle-end/48752
1639         * ipa-inline.c (early_inliner): Disable when doing late
1640         addition of function.
1641
1642 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
1643
1644         * dwarf2out.c (get_address_mode): New inline.
1645         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
1646         if not dwarf_strict emit
1647         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
1648         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
1649         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
1650         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
1651         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
1652         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
1653         mem_loc_descriptor callers.
1654         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1655         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
1656         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
1657         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
1658         (base_types): New variable.
1659         (get_base_type_offset, calc_base_type_die_sizes,
1660         base_type_for_mode, mark_base_types, base_type_cmp,
1661         move_marked_base_types): New functions.
1662         (calc_die_sizes): Assert that die_offset is 0 or equal to
1663         next_die_offset.
1664         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
1665         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
1666         callers.  If not dwarf_strict, call mem_loc_descriptor even for
1667         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
1668         (gen_subprogram_die): Don't give up on call site parameters
1669         with non-integral or large integral modes.  Adjust
1670         mem_loc_descriptor callers.
1671         (prune_unused_types): Call prune_unused_types_mark on base_types
1672         vector entries.
1673         (resolve_addr): Call mark_base_types.
1674         (dwarf2out_finish): Call move_marked_base_types.
1675
1676         PR tree-optimization/48809
1677         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
1678         type.
1679         (gen_inbound_check): Don't compute index_expr - range_min in utype
1680         again, instead reuse SSA_NAME initialized in build_arrays.
1681         Remove two useless gsi_for_stmt calls.
1682
1683 2011-04-29  Jeff Law  <law@redhat.com>
1684
1685         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
1686
1687 2011-04-29  Martin Jambor  <mjambor@suse.cz>
1688
1689         * cgraph.h (cgraph_postorder): Remove declaration.
1690         * ipa-utils.h (ipa_free_postorder_info): Declare.
1691         (ipa_reverse_postorder): Likewise.
1692         * cgraphunit.c: Include ipa-utils.h.
1693         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
1694         * ipa-inline.c: Include ipa-utils.h.
1695         (ipa_inline): Update call to ipa_reverse_postorder.
1696         * ipa-pure-const.c (propagate_pure_const): Update call to
1697         ipa_reduced_postorder and ipa_print_order.  Call
1698         ipa_free_postorder_info to clean up.
1699         (propagate_nothrow): Likewise.
1700         * ipa-reference.c (propagate): Removed a useless call to
1701         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1702         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
1703         * ipa.c: Include ipa-utils.h.
1704         (ipa_profile): Update call to ipa_reverse_postorder.
1705         (cgraph_postorder): Moved to...
1706         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1707         (ipa_utils_print_order): Renamed to ipa_print_order.
1708         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1709         comments.
1710         (ipa_free_postorder_info): New function.
1711         * passes.c: Include ipa-utils.h.
1712         (do_per_function_toporder): Update call to ipa_reverse_postorder.
1713         (ipa_write_summaries): Likewise.
1714         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1715         (cgraphunit.o): Likewise.
1716         (ipa.o): Likewise.
1717         (ipa-inline.o): Likewise.
1718
1719 2011-04-29  Jan Hubicka  <jh@suse.cz>
1720
1721         * gcc.dg/tree-ssa/inline-10.c: New testcase.
1722         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1723         * ipa-inline.h (clause_t): Turn into unsigned int.
1724         * ipa-inline-analysis.c (add_clause): Do more simplification.
1725         (and_predicates): Shortcut more cases.
1726         (predicates_equal_p): Move forward; check that clauses are properly
1727         ordered.
1728         (or_predicates): Shortcut more cases.
1729         (edge_execution_predicate): Rewrite as...
1730         (set_cond_stmt_execution_predicate): ... this function; handle
1731         __builtin_constant_p.
1732         (set_switch_stmt_execution_predicate): New .
1733         (compute_bb_predicates): New.
1734         (will_be_nonconstant_predicate): Update TODO.
1735         (estimate_function_body_sizes): Use compute_bb_predicates
1736         and free them later, always try to estimate if stmt is constant.
1737         (estimate_time_after_inlining, estimate_size_after_inlining):
1738         Gracefully handle optimized out edges.
1739         (read_predicate): Fix off by one error.
1740
1741 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
1742
1743         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1744
1745 2011-04-27  Xinliang David Li  <davidxl@google.com>
1746
1747         * tree-profile.c (init_ic_make_global_vars): Set
1748         tls attribute on ic vars.
1749         * coverage.c (coverage_end_function): Initialize
1750         function_list with zero.
1751
1752 2011-04-29  Richard Guenther  <rguenther@suse.de>
1753
1754         * builtins.c (fold_builtin_classify_type): Use integer_type_node
1755         for the type of the result.
1756         (fold_builtin_isascii): Likewise.
1757         (fold_builtin_toascii): Use integer_type_node where appropriate.
1758         (fold_builtin_logb): Likewise.
1759         (fold_builtin_frexp): Likewise.
1760         (fold_builtin_strstr): Likewise.
1761         (fold_builtin_strpbrk): Likewise.
1762         (fold_builtin_fputs): Likewise.
1763         (fold_builtin_sprintf): Likewise.
1764         (fold_builtin_snprintf): Likewise.
1765         (fold_builtin_printf): Likewise.
1766         (do_mpfr_remquo): Use a proper type for the assigned constant.
1767         (do_mpfr_lgamma_r): Likewise.
1768         * dwarf2out.c (resolve_one_addr): Use size_int.
1769         * except.c (init_eh): Likewise.
1770         (assign_filter_values): Use integer_type_node for filter values.
1771         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
1772         indices.
1773         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
1774         for EH region numbers.
1775         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
1776         for the shift amount.
1777
1778 2011-04-29  Richard Guenther  <rguenther@suse.de>
1779
1780         * expr.h (expand_shift): Rename to ...
1781         (expand_variable_shift): ... this.
1782         (expand_shift): Take a constant shift amount.
1783         * expmed.c (expand_shift): Rename to ...
1784         (expand_variable_shift): ... this.
1785         (expand_shift): New wrapper around expand_variable_shift.
1786         * expr.c (convert_move, emit_group_load_1, emit_group_store,
1787         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
1788         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
1789         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
1790         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
1791         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
1792         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
1793         emit_store_flag_1, emit_store_flag): Likewise.
1794         * builtins.c (expand_builtin_signbit): Likewise.
1795         * calls.c (load_register_parameters): Likewise.
1796         * function.c (assign_parm_setup_block): Likewise.
1797         * lower-subreg.c (resolve_shift_zext): Likewise.
1798         * optabs.c (widen_bswap, expand_abs_nojump,
1799         expand_one_cmpl_abs_nojump, expand_float): Likewise.
1800         * spu/spu.c (spu_expand_extv): Likewise.
1801         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1802
1803 2011-04-29  Richard Guenther  <rguenther@suse.de>
1804
1805         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
1806         for the remapped region number.
1807         * predict.c (build_predict_expr): Use integer_type_node for the
1808         predict kind.
1809         * fold-const.c (fold_binary_loc): Use integer_type_node for
1810         the shift amount.  Use a proper type for the PLUS_EXPR operand.
1811
1812 2011-04-29  Michael Matz  <matz@suse.de>
1813
1814         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
1815         other trees that just builtins.
1816         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
1817
1818 2011-04-29  Richard Guenther  <rguenther@suse.de>
1819
1820         * tree-nested.c (get_trampoline_type): Use size_int.
1821         (get_nl_goto_field): Likewise.
1822         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
1823         for all indexes.
1824         (lower_eh_constructs_2): Likewise.
1825         (lower_resx): Likewise.
1826         (lower_eh_dispatch): Likewise.
1827         * tree-mudflap.c (mf_build_string): Use size_int.
1828         (mudflap_register_call): Use integer_type_node for the flag.
1829         (mudflap_enqueue_constant): Use size_int.
1830         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
1831         instead of rebuilding it.
1832
1833 2011-04-29  Richard Guenther  <rguenther@suse.de>
1834
1835         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
1836         Handle OBJ_TYPE_REF.
1837         (find_func_aliases_for_call): Use it more consistently.
1838
1839 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
1840
1841         * haifa-sched.c (last_nondebug_scheduled_insn): New.
1842         (rank_for_schedule): Use it.
1843         (schedule_block): Set it.
1844
1845 2011-04-28  David Li  <davidxl@google.com>
1846
1847         * tree.c (crc32_string): Use crc32_byte.
1848         (crc32_byte): New function.
1849         * tree.h (crc32_byte): New function.
1850         * gcov.c (read_graph_file): Handle new cfg_cksum.
1851         (read_count_file): Ditto.
1852         * profile.c (instrument_values): Ditto.
1853         (get_exec_counts): Ditto.
1854         (read_profile_edge_counts): Ditto.
1855         (compute_branch_probabilities): Ditto.
1856         (compute_value_histograms): Ditto.
1857         (branch_prob): Ditto.
1858         (end_branch_prob): Ditto.
1859         * coverage.c (read_counts_file): Ditto.
1860         (get_coverage_counts): Ditto.
1861         (tree_coverage_counter_addr): Ditto.
1862         (coverage_checksum_string): Ditto.
1863         (coverage_begin_output): Ditto.
1864         (coverage_end_function): Ditto.
1865         (build_fn_info_type): Ditto.
1866         (build_fn_info_value): Ditto.
1867         * libgcov.c (gcov_exit): Ditto.
1868         * gcov-dump.c (tag_function): Ditto.
1869         (compute_checksum): Remove.
1870
1871 2011-04-29  Alan Modra  <amodra@gmail.com>
1872
1873         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
1874         unspec plus offset.  Tidy macho code.
1875
1876 2011-04-29  Martin Jambor  <mjambor@suse.cz>
1877
1878         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
1879         node instead of a decl.  Update all callers.
1880         * cgraph.h: Update declaration.
1881
1882 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
1883
1884         PR tree-optimization/48765
1885         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
1886         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
1887         to indicate if loop aware SLP is being used.  Scan the statements
1888         and update the vectorization factor according to the type of
1889         vectorization before statement analysis.
1890         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
1891         pass it to vect_analyze_loop_operations.
1892         (vectorizable_reduction): Set number of copies to 1 in case of pure
1893         SLP statement.
1894         * tree-vect-stmts.c (vectorizable_conversion,
1895         vectorizable_assignment, vectorizable_shift,
1896         vectorizable_operation, vectorizable_type_demotion,
1897         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
1898         Likewise.
1899         (vectorizable_condition): Move the check that it is not SLP
1900         vectorization before the number of copies check.
1901         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
1902         to vectorize the loop using SLP.
1903
1904 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
1905
1906         PR middle-end/48597
1907         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
1908         inline asm.
1909
1910 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
1911
1912         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
1913         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
1914         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1915         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1916         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
1917         linux*.h headers.
1918         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
1919         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1920         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1921         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1922         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1923         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
1924         REG_NAME.
1925         * config/i386/linux.h (REG_NAME): Don't define.
1926         * config/i386/linux64.h (REG_NAME): Don't define.
1927         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
1928         Undefine before defining.
1929
1930 2011-04-28  Jan Hubicka  <jh@suse.cz>
1931
1932         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
1933         nonconstant_names array.
1934         (estimate_function_body_sizes): Build nonconstant_names array; handle
1935         BUILT_IN_CONSTANT_P.
1936
1937 2011-04-28  Richard Guenther  <rguenther@suse.de>
1938
1939         PR bootstrap/48804
1940         Revert
1941         2011-04-28  Richard Guenther  <rguenther@suse.de>
1942
1943         * tree-ssa-structalias.c (solve_constraints): Build succ graph
1944         as late as possible.
1945
1946 2011-04-28  Richard Guenther  <rguenther@suse.de>
1947
1948         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
1949         (debug_constraint): Do it here.
1950         (dump_constraints): And here.
1951         (rewrite_constraints): And here.
1952         (dump_constraint_edge): Remove.
1953         (dump_constraint_graph): Rewrite to produce DOT output.
1954         (solve_constraints): Build succ graph as late as possible.
1955         Dump constraint graphs before and after solving.
1956
1957 2011-04-28  Richard Guenther  <rguenther@suse.de>
1958
1959         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1960         New function split out from ...
1961         (find_func_aliases): ... here.  Call it.
1962         (find_func_aliases_for_call): Likewise.
1963
1964 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1965
1966         * internal-fn.h (internal_fn_name_array): Declare.
1967         (internal_fn_flags_array): Likewise.
1968
1969 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
1970
1971         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
1972         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
1973         Move from sse.md.
1974         (ssemodefsuffix): Remove.
1975         (ssevecmodesuffix): New mode attribute.
1976         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
1977         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
1978         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
1979         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
1980         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
1981         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
1982         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
1983         ssemodesuffix mode attribute.
1984         (float splitters): Use ssevecmodesuffix mode attribute.
1985         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
1986         (sseinsmode): Rename from avxvecmode.
1987         (avxsizesuffix): Rename from avxmodesuffix.
1988         (sseintvecmode): Rename from avxpermvecmode.
1989         (ssedoublevecmode): Rename from ssedoublesizemode.
1990         (ssehalfvecmode): Rename from avxhalfvecmode.
1991         (ssescalarmode): Rename from avxscalarmode.
1992         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
1993         templates for ssemodesuffix mode attribute.
1994         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
1995         mode attribute.
1996
1997         Adjust RTX patterns globally for renamed mode attributes.
1998
1999 2011-04-27  Jan Hubcika  <jh@suse.cz>
2000
2001         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
2002         * ipa-inline-analysis.c: Include alloc-pool.h.
2003         (edge_predicate_pool): New.
2004         (trye_predicate_p): New function
2005         (false_predicate_p): New function.
2006         (add_clause): Sanity check that false clauses are "optimized";
2007         never add clauses to predicate that is already known to be false.
2008         (and_predicate): Use flase_predicate_p.
2009         (evaulate_predicate): Rename to ...
2010         (evaluate_predicate): ... this one; update all callers; assert
2011         that false is not listed among possible truths.
2012         (dump_predicate): Use true_predicate_p.
2013         (account_size_time): Use false_predicate_p.
2014         (evaulate_conditions_for_edge): Rename to ...
2015         (evaluate_conditions_for_edge) ... this one.
2016         (edge_set_predicate): New function.
2017         (inline_edge_duplication_hook): Duplicate edge predicates.
2018         (inline_edge_removal_hook): Free edge predicates.
2019         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
2020         (dump_inline_summary): Update.
2021         (estimate_function_body_sizes): Set edge predicates.
2022         (estimate_calls_size_and_time): Handle predicates.
2023         (estimate_callee_size_and_time): Update.
2024         (remap_predicate): Add toplev_predicate; update comment.
2025         (remap_edge_predicates): New function.
2026         (inline_merge_summary): Compute toplev predicate; update.
2027         (read_predicate): New function.
2028         (read_inline_edge_summary): Use it.
2029         (inline_read_section): Likewise.
2030         (write_predicate): New function.
2031         (write_inline_edge_summary): Use it.
2032         (inline_write_summary): Likewise.
2033         (inline_free_summary): Free alloc pool and edge summary vec.
2034
2035 2011-04-27  Richard Guenther  <rguenther@suse.de>
2036
2037         * tree-ssa-structalias.c (changed_count): Remove.
2038         (changed): Use a bitmap.
2039         (unify_nodes): Adjust.
2040         (do_sd_constraint): Likewise.
2041         (do_ds_constraint): Likewise.
2042         (do_complex_constraint): Likewise.
2043         (solve_graph): Likewise.
2044
2045 2011-04-27  Jan Hubicka  <jh@suse.cz>
2046
2047         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
2048
2049 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
2050
2051         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
2052         (avx_vperm2f128_*_operand): Ditto.
2053         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
2054         Use avx_vpermilp_parallel in insn condition.
2055         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
2056         Use avx_vperm2f128_parallel in insn condition.
2057
2058 2011-04-27  Richard Guenther  <rguenther@suse.de>
2059
2060         * Makefile.in (tree-ssa-structalias.o): Remove
2061         gt-tree-ssa-structalias.h dependency.
2062         (GTFILES): Remove tree-ssa-structalias.c.
2063         * tree.c (allocate_decl_uid): New function.
2064         (make_node_stat): Use it.
2065         (copy_node_stat): Likewise.
2066         * tree.h (allocate_decl_uid): Declare.
2067         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
2068         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
2069         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
2070         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
2071         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
2072         (struct heapvar_map): Likewise.
2073         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
2074         heapvar_insert): Likewise.
2075         (make_heapvar_for): Rename to ...
2076         (make_heapvar): ... this.  Simplify.
2077         (fake_var_decl_obstack): New global var.
2078         (build_fake_var_decl): New function.
2079         (make_constraint_from_heapvar): Adjust.
2080         (handle_lhs_call): Likewise.
2081         (create_function_info_for): Likewise.
2082         (intra_create_variable_infos): Likewise.
2083         (init_alias_vars): Allocate fake_var_decl_obstack.
2084         (init_alias_heapvars, delete_alias_heapvars): Remove.
2085         (compute_points_to_sets): Do not call init_alias_heapvars.
2086         (ipa_pta_execute): Likewise.
2087         (delete_points_to_sets): Free fake_var_decl_obstack.
2088
2089 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2090
2091         * config/spu/divmovti4.c (union qword_UTItype): New data type.
2092         (si_from_UTItype, si_to_UTItype): New functions.
2093         (__udivmodti4): Use them to implement type-punning.
2094         * config/spu/multi3.c (union qword_TItype): New data type.
2095         (si_from_TItype, si_to_TItype): New functions.
2096         (__multi3): Use them to implement type-punning.
2097
2098 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2099
2100         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
2101
2102 2011-04-27  Jan Hubicka  <jh@suse.cz>
2103
2104         * ipa-prop.c (function_insertion_hook_holder): New holder.
2105         (ipa_add_new_function): New function.
2106         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
2107         Register/deregister holder.
2108
2109 2011-04-27  Richard Guenther  <rguenther@suse.de>
2110
2111         PR tree-optimization/48772
2112         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
2113
2114 2011-04-27  Richard Guenther  <rguenther@suse.de>
2115
2116         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
2117         TARGET_MEM_REF handling.
2118
2119 2011-04-27  Nick Clifton  <nickc@redhat.com>
2120
2121         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
2122         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
2123         (REG_CLASS_NAMES): Likewise.
2124         (REG_CLASS_CONTENTS): Likewise.
2125         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
2126         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
2127         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
2128         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
2129         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
2130         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
2131         duplicate register classes.
2132         (frv_class_likely_spilled_p): Likewise.
2133         (frv_register_move_cost): Likewise.
2134
2135         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
2136         end of the regno_reg_class array.
2137
2138 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
2139
2140         PR c/48742
2141         * c-typeck.c (build_binary_op): Don't wrap arguments if
2142         int_operands is true.
2143
2144 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
2145
2146         PR target/48767
2147         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
2148         targetm.calls.must_pass_in_stack for void type.
2149
2150 2011-04-26  Jan Hubicka  <jh@suse.cz>
2151
2152         * cgraphbuild.c (build_cgraph_edges): Update call
2153         of cgraph_create_edge and cgraph_create_indirect_edge.
2154         * cgraph.c (cgraph_create_edge_including_clones,
2155         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
2156         cgraph_update_edges_for_call_stmt_node): Do not take nest
2157         argument; do not initialize call_stmt_size/time.
2158         (dump_cgraph_node): Do not dump nest.
2159         (cgraph_clone_edge): Do not take loop_nest argument;
2160         do not propagate it; do not clone call_stmt_size/time.
2161         (cgraph_clone_node): Likewise.
2162         (cgraph_create_virtual_clone): Update.
2163         * cgraph.h (struct cgraph_edge): Remove
2164         call_stmt_size/call_stmt_time/loop_nest.
2165         (cgraph_create_edge, cgraph_create_indirect_edge,
2166         cgraph_create_edge_including_clones, cgraph_clone_node): Update
2167         prototype.
2168         * tree-emutls.c (gen_emutls_addr): Update.
2169         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
2170         loop_nest; handle indirect calls, too.
2171         (clone_inlined_nodes): Do not care about updating inline summaries.
2172         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
2173         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
2174         stream call_stmt_size/call_stmt_time/loop_nest.
2175         * ipa-inline.c (edge_badness): Update.
2176         (ipa_inline): dump summaries after inlining.
2177         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
2178         New.
2179         (inline_edge_summary): New function.
2180         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
2181         (inline_edge_removal_hook): Handle edge summaries.
2182         (inline_edge_duplication_hook): New hook.
2183         (inline_summary_alloc): Alloc hooks.
2184         (initialize_growth_caches): Do not register removal hooks.
2185         (free_growth_caches); Do not free removal hook.
2186         (dump_inline_edge_summary): New function.
2187         (dump_inline_summary): Use it.
2188         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
2189         (inline_update_callee_summaries): New function.
2190         (inline_merge_summary): Use it.
2191         (do_estimate_edge_time, do_estimate_edge_growth): Update.
2192         (read_inline_edge_summary): New function.
2193         (inline_read_section): Use it.
2194         (write_inline_edge_summary): New function.
2195         (inline_write_summary): Use it.
2196         (inline_free_summary): Free edge new holders.
2197         * tree-inline.c (copy_bb): Update.
2198
2199 2011-04-26  Jason Merrill  <jason@redhat.com>
2200
2201         * tree-eh.c (lower_try_finally_switch): Create the label along with
2202         the CASE_LABEL_EXPR.
2203
2204 2011-04-26  David S. Miller  <davem@davemloft.net>
2205             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2206
2207         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
2208         * configure: Regenerate.
2209
2210 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
2211
2212         PR target/48258
2213         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
2214         reduction.
2215         (VEC_reduc): New code iterator and splitters for vector reduction.
2216         (VEC_reduc_name): Ditto.
2217         (VEC_reduc_rtx): Ditto.
2218         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
2219         (reduc_<VEC_reduc_name>_v4sf): Ditto.
2220
2221         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2222         support for extracting SF on VSX.
2223
2224         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
2225         generating xscvspdp.
2226         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
2227         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
2228         double add, minimum, maximum vector reduction.
2229         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
2230         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
2231         optimize double vector reduction.
2232         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
2233
2234 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
2235
2236         * config/fr30/fr30.h (inhibit_libc): Don't define.
2237         * config/m32r/m32r-protos.h: Correct comment.
2238         * config/v850/v850.h (GHS_default_section_names,
2239         GHS_current_section_names): Use tree, not union tree_node *.
2240
2241 2011-04-26  Xinliang David Li  <davidxl@google.com>
2242
2243         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2244         * c-family/c-opts.c (c_common_handle_option): Set
2245         warn_maybe_uninitialized.
2246         * opts.c (common_handle_option): Ditto.
2247         * common.opt:  New option.
2248         * tree-ssa.c (warn_uninit): Add one more parameter.
2249         (warn_uninitialized_var): Pass warning code.
2250         * tree-flow.h: Interface change.
2251
2252
2253 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2254
2255         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
2256         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
2257         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
2258
2259 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2260
2261         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
2262         * config/mips/mips.opt (mmips-tfile): Remove.
2263
2264         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
2265         mips-tdump reference to ...
2266         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
2267         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
2268         reference by Tru64 UNIX.
2269
2270 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
2271
2272         PR debug/48768
2273         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
2274         is error_mark_node, set value to NULL.
2275
2276         PR tree-optimization/48734
2277         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2278         if return value from maybe_fold_*_comparsions isn't something
2279         the code is prepared to handle.
2280
2281 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
2282
2283         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
2284         mode check.
2285         (ext_QIreg_nomode_operands): Remove.
2286         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
2287         (*andsi_1): Ditto.
2288         (*andhi_1): Ditto.
2289
2290 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
2291
2292         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
2293
2294 2011-04-26  Richard Guenther  <rguenther@suse.de>
2295
2296         * c-typeck.c (build_unary_op): Do not expand array-refs via
2297         pointer arithmetic.  Only adjust qualifiers for function types.
2298
2299 2011-04-26  Richard Guenther  <rguenther@suse.de>
2300
2301         PR middle-end/48694
2302         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
2303         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
2304         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
2305         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
2306
2307 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
2308
2309         * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
2310         * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2311         * doc/extend.texi: Document __underlying_type.
2312
2313 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
2314
2315         * config/rs6000/titan.md (automata_option "progress"): Remove.
2316
2317 2011-04-25  Jeff Law  <law@redhat.com>
2318
2319         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
2320
2321 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2322
2323         * system.h (ENUM_BITFIELD): Remove.
2324
2325 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
2326             Eric Botcazou  <ebotcazou@adacore.com>
2327
2328         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
2329         for STORE_FLAG_VALUE==-1 case.
2330
2331 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
2332
2333         PR target/43804
2334         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
2335         LEGITIMATE_PIC_OPERAND_P.
2336
2337 2011-04-24  Jan Hubicka  <jh@suse.cz>
2338
2339         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
2340         WPA hack.
2341         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
2342         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
2343         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
2344         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
2345         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
2346         Sanity check predicate length.
2347         (remap_predicate): Likewise; sanity check jump functions.
2348         (inline_read_section, inline_write_summary): Sanity check
2349         predicate length.
2350
2351 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2352
2353         PR other/48748
2354         * doc/extend.texi (Type Traits): Document __is_standard_layout,
2355         __is_literal_type, and __is_trivial; update throughout about
2356         possibly cv-qualified void types.
2357
2358 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
2359
2360         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
2361         testsuite and make it version agnostic.
2362
2363 2011-04-22  Jan Hubicka  <jh@suse.cz>
2364
2365         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
2366
2367 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
2368
2369         PR c/48685
2370         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2371         to VOID_TYPE even around MODIFY_EXPR.
2372
2373 2011-04-22  Mike Stump  <mikestump@comcast.net>
2374
2375         * gensupport.c (read_md_rtx): Fix typo in comment.
2376         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
2377         comment.
2378
2379 2011-04-22  Jan Hubicka  <jh@suse.cz>
2380
2381         * gengtype.c (open_base_files): Add ipa-inline.h include.
2382         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
2383         ipa-prop.c; update all uses.
2384         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
2385         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
2386         merge summary of inlined function into former caller.
2387         * ipa-inline.c (max_benefit): Remove.
2388         (edge_badness): Compensate for removal of benefits.
2389         (update_caller_keys): Use
2390         reset_node_growth_cache/reset_edge_growth_cache.
2391         (update_callee_keys): Likewise.
2392         (update_all_callee_keys): Likewise.
2393         (inline_small_functions): Do not collect max_benefit; do not reset
2394         estimated_growth; call free_growth_caches and initialize_growth_caches.
2395         * ipa-inline.h (struct condition, type clause_t, struct predicate,
2396         struct size_time_entry): New structures.
2397         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
2398         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
2399         and estimated_growth.
2400         (edge_growth_cache_entry): New structure.
2401         (node_growth_cache, edge_growth_cache): New global vars.
2402         (estimate_growth): Turn into inline.
2403         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
2404         initialize_growth_caches, free_growth_caches): Declare.
2405         (estimate_edge_growth): Rewrite.
2406         (estimate_edge_time): Implement as inline cache lookup.
2407         (reset_node_growth_cache, reset_edge_growth_cache): New inline
2408         functions.
2409         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
2410         (NUM_CONDITIONS): New constant.
2411         (predicate_conditions): New enum.
2412         (IS_NOT_CONSTANT): New constant.
2413         (edge_removal_hook_holder): New var.
2414         (node_growth_cache, edge_growth_cache): New global vars.
2415         (true_predicate, single_cond_predicate, false_predicate,
2416         not_inlined_predicate, add_condition, add_clause, and_predicates,
2417         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
2418         dump_clause, dump_predicate, account_size_time,
2419         evaulate_conditions_for_edge): New functions.
2420         (inline_summary_alloc): Move to heap.
2421         (inline_node_removal_hook): Clear condition and entry vectors.
2422         (inline_edge_removal_hook): New function.
2423         (initialize_growth_caches, free_growth_caches): New function.
2424         (dump_inline_summary): Update.
2425         (edge_execution_predicate): New function.
2426         (will_be_nonconstant_predicate): New function.
2427         (estimate_function_body_sizes): Compute BB and constantness predicates.
2428         (compute_inline_parameters): Do not clear estimated_growth.
2429         (estimate_edge_size_and_time): New function.
2430         (estimate_calls_size_and_time): New function.
2431         (estimate_callee_size_and_time): New function.
2432         (remap_predicate): New function.
2433         (inline_merge_summary): New function.
2434         (do_estimate_edge_time): New function based on...
2435         (estimate_edge_time): ... this one.
2436         (do_estimate_edge_growth): New function.
2437         (do_estimate_growth): New function based on....
2438         (estimate_growth): ... this one.
2439         (inline_analyze_function): Analyze after deciding on jump functions.
2440         (inline_read_section): New function.
2441         (inline_read_summary): Use it.
2442         (inline_write_summary): Write all the new data.
2443         * ipa-prop.c (ipa_get_param_decl_index): Export.
2444         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
2445         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
2446         Declare.
2447         (ipa_get_lattice): Move here from ipa-cp.c
2448         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
2449         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
2450         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
2451         cgraph_edge_inlinable_p): Remove.
2452         * cgraphunit.c: Include ipainline.h
2453         (cgraph_process_new_functions): Update call of
2454         compute_inline_parameters.
2455
2456 2011-04-22  Richard Guenther  <rguenther@suse.de>
2457
2458         * tree.c (build_int_cst): Properly create canonicalized integer
2459         constants.
2460         (build_int_cst_type): Remove scary comments.
2461
2462 2011-04-22  Xinliang David Li  <davidxl@google.com>
2463
2464         * toplev.c (process_options): Enable -Werror=coverage-mismatch
2465         by default when -Wno-error is not specified.
2466         * opts-global.c (decode_options): Remove call to
2467         control_warning_options.
2468
2469 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
2470
2471         PR tree-optimization/48717
2472         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2473         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2474
2475 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
2476
2477         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
2478         definition where used.
2479
2480 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
2481
2482         PR c/48716
2483         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2484         TREE_STATIC variables declared inside of some OpenMP construct.
2485
2486 2011-04-22  Martin Jambor  <mjambor@suse.cz>
2487
2488         PR middle-end/48585
2489         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
2490
2491 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
2492
2493         PR c/36750
2494         * c-typeck.c (pop_init_level): Do not warn about initializing
2495         with ` = {0}'.
2496
2497 2011-04-22  Alan Modra  <amodra@gmail.com>
2498
2499         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
2500         when returning call_cookie.
2501         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
2502         pointers, to functions with no more vector args than the current
2503         function, and some non-local calls for ABI_V4.
2504         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
2505         sibcall_nonlocal_aix64): Combine to ..
2506         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
2507         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
2508         (sibcall_value_nonlocal_aix<mode>): ..likewise.
2509         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
2510         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
2511         operand.
2512         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
2513         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
2514         sibcall_value_symbolic_64): Delete.
2515
2516 2011-04-21  Xinliang David Li  <davidxl@google.com>
2517
2518         * cgraph.h: Remove pid.
2519         * cgraph.c: Remove pid.
2520         * value-prof.c (init_node_map): New function.
2521         (del_node_map): New function.
2522         (find_func_by_funcdef_no): New function.
2523         (gimple_ic_transform): Call new function.
2524         * cgraphunit.c (cgraph_finalize_function): Remove pid.
2525         * function.c (get_last_funcdef_no): New function.
2526         * function.h (get_last_funcdef_no): New function.
2527         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
2528         to libgcov function.
2529         (tree-profiling): Call node map init and delete function.
2530
2531 2011-04-21  Ian Lance Taylor  <iant@google.com>
2532
2533         * godump.c (go_format_type): Use exported Go name for anonymous
2534         field name.
2535
2536 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2537
2538         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
2539         Call builtin_function_type_list instead of builtin_function_type.
2540         (UNARY, BINARY, TRINARY, QUAD): Likewise.
2541
2542 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2543
2544         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
2545         build_function_type_list instead of build_function_type.
2546         Delete variable `endlink'.
2547
2548 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2549
2550         * config/s390/s390.c (s390_init_builtins): Call
2551         build_function_type_list instead of build_function_type.
2552
2553 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2554
2555         * config/ia64/ia64.c (ia64_init_builtins): Call
2556         build_function_type_list instead of builtin_function_type.
2557
2558 2011-04-21  Easwaran Raman  <eraman@google.com>
2559
2560         * cfgexpand.c (stack_var): Remove OFFSET...
2561         (add_stack_var): ...and its reference here...
2562         (expand_stack_vars): ...and here.
2563         (stack_var_cmp): Sort by descending order of size.
2564         (partition_stack_vars): Change heuristic.
2565         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
2566         (dump_stack_var_partition): Add newline after each partition.
2567
2568 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
2569             Jeff Law  <law@redhat.com>
2570
2571         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
2572         * gengtype.c (matching_file_name_substitute): Likewise.
2573
2574 2011-04-21  Richard Guenther  <rguenther@suse.de>
2575
2576         PR lto/48703
2577         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
2578
2579 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
2580
2581         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2582
2583 2011-04-21  Richard Guenther  <rguenther@suse.de>
2584
2585         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
2586         file name.
2587
2588 2011-04-21  Richard Guenther  <rguenther@suse.de>
2589
2590         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2591         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
2592         Use DECL_P, not SSA_VAR_P.
2593         (ptr_derefs_may_alias_p): Likewise.
2594         (ptr_deref_may_alias_ref_p_1): Likewise.
2595         (decl_refs_may_alias_p): Likewise.
2596         (refs_may_alias_p_1): Likewise.
2597         (ref_maybe_used_by_call_p_1): Likewise.
2598         (call_may_clobber_ref_p_1): Likewise.
2599         (indirect_ref_may_alias_decl_p): Assume indirect refrences
2600         are either MEM_REF or TARGET_MEM_REF.
2601         (indirect_refs_may_alias_p): Likewise.
2602         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
2603         for MEM_EXPR of indirect calls.
2604
2605 2011-04-21  Tristan Gingold  <gingold@adacore.com>
2606
2607         * vmsdbgout.c (write_srccorr): Compute file length from the string.
2608         (dst_file_info_struct): Remove flen field.
2609         (lookup_filename): Remove code that set flen field.
2610
2611 2011-04-21  Tristan Gingold  <gingold@adacore.com>
2612
2613         * config/ia64/ia64.c (ia64_start_function): Add a guard.
2614
2615 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
2616
2617         PR target/48708
2618         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2619         vec_extract and vec_concat for non-SSE4_1 targets.
2620
2621 2011-04-21  Richard Guenther  <rguenther@suse.de>
2622
2623         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
2624         return statements.
2625
2626 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
2627
2628         * config/i386/cygming.h (union tree_node, TREE): Don't define or
2629         undefine.
2630         (FILE): Don't undefine.
2631
2632 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
2633
2634         * config/alpha/alpha.c (struct machine_function): Use rtx, not
2635         struct rtx_def *.
2636         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
2637         struct rtx_def *.
2638         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2639         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
2640         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
2641         rtx_def *.
2642         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
2643         definitions where used.
2644         * config/microblaze/microblaze.h (struct microblaze_args): Use
2645         rtx, not struct rtx_def *.
2646         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
2647         rtx_def *.
2648         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
2649         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
2650         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
2651         not struct rtx_def *.
2652         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
2653         struct rtx_def *.
2654         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
2655         rtx_def *.
2656         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
2657
2658 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2659
2660         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
2661         operand_equal_p to compare DR_BASE_ADDRESSes.
2662         (vect_check_interleaving): Likewise.
2663
2664 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2665
2666         PR target/46329
2667         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
2668         for all Neon struct constants.
2669
2670 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2671
2672         * target.def (legitimate_constant_p): New hook.
2673         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
2674         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
2675         * doc/tm.texi: Regenerate.
2676         * hooks.h (hook_bool_mode_rtx_true): Declare.
2677         * hooks.c (hook_bool_mode_rtx_true): Define.
2678         * system.h (LEGITIMATE_CONSTANT_P): Poison.
2679         * calls.c (precompute_register_parameters): Replace uses of
2680         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
2681         (emit_library_call_value_1): Likewise.
2682         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
2683         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
2684         * ira-costs.c (scan_one_insn): Likewise.
2685         * recog.c (general_operand, immediate_operand): Likewise.
2686         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
2687         * reload1.c (init_eliminable_invariants): Likewise.
2688
2689         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
2690         mode argument.
2691         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
2692         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
2693         argument.
2694         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2695         * config/alpha/predicates.md (input_operand): Update call to
2696         alpha_legitimate_constant_p.
2697
2698         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2699         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2700         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2701         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2702         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2703         (arm_legitimate_constant_p): New functions.
2704         (arm_cannot_force_const_mem): Make static.
2705
2706         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2707
2708         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2709         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2710         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2711         instead of bfin_legitimate_constant_p.
2712         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
2713         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2714
2715         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2716
2717         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2718
2719         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2720         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2721         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2722         (frv_legitimate_constant_p): Make static.  Add a mode argument.
2723
2724         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2725         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2726         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2727
2728         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2729         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2730         * config/i386/i386.c (legitimate_constant_p): Rename to...
2731         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
2732         argument.
2733         (ix86_cannot_force_const_mem): Update accordingly.
2734         (ix86_legitimate_address_p): Likewise.
2735         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2736         * config/i386/i386.md: Update commentary.
2737
2738         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2739         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2740         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2741         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
2742
2743         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2744
2745         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2746         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2747         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2748         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
2749
2750         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2751         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2752         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2753
2754         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2755         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2756         (m32r_legitimate_constant_p): New function.
2757
2758         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2759         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2760         LEGITIMATE_CONSTANT_P.
2761         (LEGITIMATE_CONSTANT_P): Delete.
2762         * config/m68k/m68k.c (m68k_expand_prologue): Call
2763         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2764         (m68k_legitimate_constant_p): New function.
2765         * config/m68k/m68k.md: Update comments.
2766
2767         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2768         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2769         (mcore_legitimate_constant_p): New function.
2770
2771         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
2772         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
2773         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
2774         Add a mode argument.
2775         (mep_legitimate_address): Update accordingly.
2776         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2777
2778         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
2779         Delete.
2780         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
2781         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
2782         static.  Check OP's mode for VOIDmode.
2783         (microblaze_legitimate_constant_p): New function.
2784         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2785
2786         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
2787         * config/mips/mips.c (mips_legitimate_constant_p): New function.
2788         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
2789         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2790         * config/mips/predicates.md: Update comments.
2791
2792         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
2793         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
2794         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2795         (mmix_legitimate_constant_p): Make static, return a bool, and take
2796         a mode argument.
2797         (mmix_print_operand_address): Update accordingly.
2798
2799         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
2800         Delete.
2801         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2802         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
2803         static.  Add a mode argument.
2804         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2805
2806         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
2807
2808         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
2809         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2810         (pa_legitimate_constant_p): New function.
2811
2812         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
2813
2814         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
2815         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2816         (pdp11_legitimate_constant_p): New function.
2817
2818         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
2819         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2820         (rs6000_legitimate_constant_p): New function.
2821
2822         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
2823         (rx_legitimate_constant_p): ...this.
2824         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
2825         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
2826         (rx_legitimate_constant_p): ...this.
2827         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2828         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
2829
2830         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
2831         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
2832         * config/s390/s390.c (legitimate_constant_p): Rename to...
2833         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
2834         and add a mode argument.
2835         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2836
2837         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
2838
2839         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
2840         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2841         (sh_legitimate_constant_p): New function.
2842
2843         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
2844         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
2845         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2846         (legitimate_constant_p): Rename to...
2847         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
2848         argument.
2849         (constant_address_p): Update accordingly.
2850
2851         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
2852         argument and return a bool.
2853         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
2854         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2855         (spu_legitimate_constant_p): Add a mode argument and return a bool.
2856         (spu_rtx_costs): Update accordingly.
2857         * config/spu/predicates.md (vec_imm_operand): Likewise.
2858
2859         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
2860
2861         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
2862         * config/v850/v850.c (v850_legitimate_constant_p): New function.
2863         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2864
2865         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
2866         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
2867         * config/vax/vax.c (legitimate_constant_p): Likewise.
2868
2869         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
2870         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2871         (xtensa_legitimate_constant_p): New function.
2872
2873 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2874
2875         * target.def (cannot_force_const_mem): Add a mode argument.
2876         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
2877         * doc/tm.texi: Regenerate.
2878         * hooks.h (hook_bool_mode_rtx_false): Declare.
2879         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
2880         (hook_bool_mode_const_rtx_true): Likewise.
2881         (hook_bool_mode_rtx_false): New function.
2882         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
2883         to be non-VOID.  Update call to cannot_force_const_mem.
2884         (find_reloads): Update accordingly.
2885         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
2886         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
2887         argument.
2888         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
2889         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
2890         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
2891         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
2892         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
2893         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
2894         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
2895         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2896         (m68k_cannot_force_const_mem): ...this new function.
2897         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
2898         argument.
2899         (mips_const_insns, mips_legitimize_const_move): Update calls.
2900         (mips_secondary_reload_class): Likewise.
2901         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2902         (pa_cannot_force_const_mem): ...this new function.
2903         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
2904         (rs6000_cannot_force_const_mem): ...this new function.
2905         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
2906         argument.
2907         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
2908         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
2909         to...
2910         (xtensa_cannot_force_const_mem): ...this new function.
2911
2912 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
2913
2914         * config/mips/mips.c (mips16_build_function_stub): Call
2915         build_function_type_list instead of build_function_type.
2916         (mips16_build_call_stub): Likewise.
2917
2918 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
2919
2920         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
2921         instead of build_function_type.
2922
2923 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
2924
2925         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
2926         instead of build_function_type.
2927
2928 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
2929
2930         PR target/48678
2931         * config/i386/i386.md (insv): Change operand 0 constraint to
2932         "register_operand".  Change operand 1 and 2 constraint to
2933         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
2934         * config/i386/sse.md (sse4_1_pinsrb): Export.
2935         (sse2_pinsrw): Ditto.
2936         (sse4_1_pinsrd): Ditto.
2937         (sse4_1_pinsrq): Ditto.
2938         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
2939         * config/i386/i386.c (ix86_expand_pinsr): New.
2940
2941 2011-04-20  Easwaran Raman  <eraman@google.com>
2942
2943         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
2944         containing union type only with -fstrict-aliasing.
2945
2946 2011-04-20  Jim Meyering  <meyering@redhat.com>
2947
2948         Remove useless if-before-free tests.
2949         * calls.c (expand_call, save_area): Likewise.
2950         * cfgcleanup.c (try_forward_edges): Likewise.
2951         * collect2.c (collect_execute): Likewise.
2952         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
2953         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
2954         * coverage.c (coverage_checksum_string): Likewise.
2955         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
2956         * cselib.c (cselib_init): Likewise.
2957         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
2958         (df_set_clean_cfg): Likewise.
2959         * function.c (free_after_compilation): Likewise.
2960         * gcc.c (do_spec_1, main): Likewise.
2961         * gcov.c (create_file_names): Likewise.
2962         * gensupport.c (identify_predicable_attribute): Likewise.
2963         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
2964         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
2965         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
2966         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
2967         * ipa-pure-const.c (local_pure_const): Likewise.
2968         * ipa-reference.c (propagate): Likewise.
2969         * ira-costs.c (free_ira_costs): Likewise.
2970         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
2971         * matrix-reorg.c (mat_free): Likewise.
2972         * prefix.c (get_key_value): Likewise.
2973         * profile.c (compute_value_histograms): Likewise.
2974         * reload1.c (free_reg_equiv): Likewise.
2975         * sched-deps.c (free_deps): Likewise.
2976         * sel-sched-ir.c (fence_clear): Likewise.
2977         * sese.c (set_rename, if_region_set_false_region): Likewise.
2978         * tree-data-ref.c (free_rdg): Likewise.
2979         * tree-eh.c (lower_try_finally): Likewise.
2980         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
2981         * tree-ssa-live.c (delete_var_map): Likewise.
2982         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
2983         * tree-ssa-pre.c (phi_trans_add): Likewise.
2984
2985 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
2986
2987         PR tree-optimization/48611
2988         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
2989         beyond ERT_MUST_NOT_THROW region.
2990
2991 2011-04-20  Catherine Moore  <clm@codesourcery.com>
2992
2993         * config/mips/mips.opt (mfix-24k): New.
2994         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
2995         * config/mips/mips.md (length): Increase by 4 for stores if
2996         fixing 24K errata.
2997         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
2998         all noreorder if fixing 24K errata.
2999         * doc/invoke.texi: Document mfix-24k.
3000
3001 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
3002
3003         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
3004         quad-word modes, reduce to 9-bit index range when above 1016 limit.
3005
3006 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
3007
3008         * config/arm/arm.c (arm_gen_constant): Move movw support ....
3009         (const_ok_for_op): ... to here.
3010
3011 2011-04-20  Kai Tietz  <ktietz@redhat.com>
3012
3013         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
3014         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
3015
3016 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
3017
3018         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
3019
3020 2011-04-20  Richard Guenther  <rguenther@suse.de>
3021
3022         PR tree-optimization/47892
3023         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
3024         are if-convertible.
3025
3026 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
3027
3028         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
3029
3030 2011-04-20  Tristan Gingold  <gingold@adacore.com>
3031
3032         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
3033
3034 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
3035
3036         PR target/18145
3037
3038         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
3039         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3040         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3041         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
3042         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
3043
3044         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
3045         New prototype.
3046
3047         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
3048         (avr_asm_named_section, avr_asm_output_aligned_common,
3049         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
3050         New functions to update...
3051         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
3052         (avr_asm_init_sections): Overwrite section callbacks for
3053         data_section, bss_section.
3054         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
3055         from here to...
3056         (avr_file_end): ...here.
3057
3058 2011-04-20  Richard Guenther  <rguenther@suse.de>
3059
3060         PR middle-end/48695
3061         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
3062         objects and types here.  Adjust for their offset before comparing.
3063
3064 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
3065
3066         * tree-vect-stmts.c (vectorizable_store): Only chain one related
3067         statement per copy.
3068
3069 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
3070
3071         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
3072         (GIMPLE_H): Include $(INTERNAL_FN_H).
3073         (OBJS-common): Add internal-fn.o.
3074         (internal-fn.o): New rule.
3075         * internal-fn.def: New file.
3076         * internal-fn.h: Likewise.
3077         * internal-fn.c: Likewise.
3078         * gimple.h: Include internal-fn.h.
3079         (GF_CALL_INTERNAL): New gf_mask.
3080         (gimple_statement_call): Put fntype into a union with a new
3081         internal_fn field.
3082         (gimple_build_call_internal): Declare.
3083         (gimple_build_call_internal_vec): Likewise.
3084         (gimple_call_same_target_p): Likewise.
3085         (gimple_call_internal_p): New function.
3086         (gimple_call_internal_fn): Likewise.
3087         (gimple_call_fntype): Return null for internal calls.
3088         (gimple_call_set_fntype): Assert that the function is not internal.
3089         (gimple_call_set_fn): Likewise.
3090         (gimple_call_set_fndecl): Likewise.
3091         (gimple_call_set_internal_fn): New function.
3092         (gimple_call_addr_fndecl): Handle null functions.
3093         (gimple_call_return_type): Likewise null types.
3094         * gimple.c (gimple_build_call_internal_1): New function.
3095         (gimple_build_call_internal): Likewise.
3096         (gimple_build_call_internal_vec): Likewise.
3097         (gimple_call_same_target_p): Likewise.
3098         (gimple_call_flags): Handle calls to internal functions.
3099         (gimple_call_fnspec): New function.
3100         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
3101         (gimple_has_side_effects): Handle null functions.
3102         (gimple_rhs_has_side_effects): Likewise.
3103         (gimple_call_copy_skip_args): Handle calls to internal functions.
3104         * cfgexpand.c (expand_call_stmt): Likewise.
3105         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
3106         * gimple-fold.c (gimple_fold_call): Handle null functions.
3107         (gimple_fold_stmt_to_constant_1): Don't fold
3108         calls to internal functions.
3109         * gimple-low.c (gimple_check_call_args): Handle calls to internal
3110         functions.
3111         * gimple-pretty-print.c (dump_gimple_call): Likewise.
3112         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
3113         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
3114         (do_warn_unused_result): Likewise.
3115         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
3116         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
3117         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
3118         the target of a call.
3119         (initialize_hash_element): Update accordingly.
3120         (hashable_expr_equal_p): Use gimple_call_same_target_p.
3121         (iterative_hash_hashable_expr): Handle calls to internal functions.
3122         (print_expr_hash_elt): Likewise.
3123         * tree-ssa-pre.c (can_value_number_call): Likewise.
3124         (eliminate): Handle null functions.
3125         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
3126         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
3127         (find_func_aliases): Likewise.
3128         * value-prof.c (gimple_ic_transform): Likewise.
3129         (gimple_indirect_call_to_profile): Likewise.
3130         * lto-streamer-in.c (input_gimple_stmt): Likewise.
3131         * lto-streamer-out.c (output_gimple_stmt): Likewise.
3132
3133 2011-04-19  Jan Hubicka  <jh@suse.cz>
3134
3135         * ipa-inline-transform.c (save_inline_function_body): Add comments.
3136         * ipa-inline.c (inline_small_functions): Compute summaries first,
3137         populate heap later.
3138
3139 2011-04-19  Jan Hubicka  <jh@suse.cz>
3140
3141         * cgraph.h (save_inline_function_body): Remove.
3142         * ipa-inline-transform.c: New file, broke out of...
3143         * ipa-inline.c: ... this one; Update toplevel comment.
3144         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
3145         make global.
3146         (update_noncloned_frequencies): Move to ipa-inline-transform.c
3147         (cgraph_mark_inline_edge): Rename to inline_call; move to
3148         ipa-inline-transform.c.
3149         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
3150         move to ipa-inline-transform.c
3151         (recursive_inlining, inline_small_functions, flatten_function,
3152         ipa_inline, inline_always_inline_functions,
3153         early_inline_small_functions): Update.
3154         (inline_transform): Move to ipa-inline-transform.c.
3155         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
3156         Declare.
3157         * Makefile.in (ipa-inline-transform.o): New file.
3158         * cgraphunit.c (save_inline_function_body): Move to
3159         ipa-inline-transform.c
3160
3161 2011-04-19  DJ Delorie  <dj@redhat.com>
3162
3163         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
3164         registers if we already know there aren't any.
3165         (m32c_emit_epilogue): Don't emit a barrier here.
3166         (m32c_emit_eh_epilogue): Likewise.
3167         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
3168         operands at expand time.
3169         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
3170         int" wchar type.
3171         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
3172         duplicates.  Provide aliases instead.
3173         * config/m32c/prologue.md (eh_return): Emit a barrier here.
3174         (eh_epilogue): Add a "(return)" here as a hint to other parts of
3175         the compiler.
3176
3177 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
3178
3179         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
3180         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
3181         (general_or_i64_p, sparc_register_move_cost): New function.
3182
3183 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3184
3185         * doc/install.texi (Configuration, --enable-threads): Remove mach.
3186         Add lynx, mipssde.  Sort table.
3187
3188 2011-04-19  Xinliang David Li  <davidxl@google.com>
3189
3190         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
3191         not negative.
3192
3193 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
3194
3195         PR target/48678
3196         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
3197         is a SUBREG with non-MODE_INT mode inside of it.
3198
3199 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3200
3201         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
3202         also according to actual contants.
3203         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
3204         (gimple_fold_call): Use it.
3205         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
3206
3207 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3208
3209         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
3210         non-pointer assignments.
3211
3212 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3213
3214         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
3215         account anc_offset and otr_type from the indirect edge info.
3216         * ipa-prop.c (get_ancestor_addr_info): New function.
3217         (compute_complex_ancestor_jump_func): Assignment analysis moved to
3218         get_ancestor_addr_info, call it.
3219         (ipa_note_param_call): Do not initialize information about polymorphic
3220         calls, return the indirect call graph edge.  Remove the last
3221         parameter, adjust all callers.
3222         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
3223         parameters.  Initialize polymorphic information in the indirect edge.
3224
3225 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3226
3227         PR lto/48148
3228         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
3229         the types if they have different enumeration identifiers.
3230
3231 2011-04-19  Jan Hubicka  <jh@suse.cz>
3232
3233         * cgraph.h (cgraph_optimize_for_size_p): Declare.
3234         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
3235         * predict.c (cgraph_optimize_for_size_p): Break out from ...
3236         (optimize_function_for_size_p) ... here.
3237
3238 2011-04-19  Richard Guenther  <rguenther@suse.de>
3239
3240         PR lto/48207
3241         * tree.c (free_lang_data): Do not reset the decl-assembler-name
3242         langhook.
3243
3244 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3245
3246         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
3247         if DECL_NO_INLINE_WARNING_P is set on the function.
3248
3249 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
3250
3251         PR fortran/47976
3252         * reload1.c (inc_for_reload): Return void. All callers changed.
3253         (emit_input_reload_insns): Don't try to delete previous output
3254         reloads to a register, or record spill_reg_store for autoincs.
3255
3256 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
3257
3258         * gengtype.h: Updated copyright year.
3259         (struct input_file_st): Add inpisplugin field.
3260         (type_fileloc): New function.
3261         * gengtype.c
3262         (write_typed_struct_alloc_def): Add gcc_assert.
3263         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
3264         (write_typed_alloc_defns): Don't output for plugin files.
3265         (input_file_by_name): Clear inpisplugin field.
3266         (main): Set inpisplugin field for plugin files.
3267
3268 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
3269
3270         * gengtype-state.c (string_eq): New.
3271         (read_state): Use string_eq instead of strcmp when creating the
3272         state_ident_tab.
3273
3274 2011-04-19  Wei Guozhi  <carrot@google.com>
3275
3276         PR target/47855
3277         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
3278         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
3279         linkage.
3280         * config/arm/constraints.md (Uu): New constraint.
3281         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
3282
3283 2011-04-19  Tristan Gingold  <gingold@adacore.com>
3284
3285         * config.gcc (-*-*-*vms): Added.
3286         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
3287         definitions moved.
3288         * config/vms/vms-ld.c: New file.
3289         * config/vms/vms-ar.c: New file.
3290         * config/vms/t-vmsnative: New file.
3291
3292 2011-04-18  Xinliang David Li  <davidxl@google.com>
3293
3294         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
3295
3296 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
3297
3298         PR middle-end/48661
3299         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
3300         if TREE_TYPE (v) is non-NULL.
3301
3302         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
3303         gimple_get_virt_mehtod_for_binfo.
3304         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
3305         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
3306         callers.
3307         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
3308
3309 2011-04-18  Michael Matz  <matz@suse.de>
3310             Steve Ellcey  <sje@cup.hp.com>
3311
3312         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
3313         use its mode as source mode if it isn't VOIDmode.
3314
3315 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
3316
3317         * doc/passes.texi: Fill crossref nodes.
3318
3319 2011-04-18  Jim Meyering  <meyering@redhat.com>
3320
3321         Fix doubled-word typos in comments and strings
3322         * config/alpha/vms-unwind.h: s/for for/for/
3323         * config/arm/unwind-arm.h: Likewise.
3324         * config/microblaze/microblaze.c: Likewise.
3325         * config/sh/constraints.md: s/in in/in/
3326         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
3327
3328 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
3329
3330         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
3331         (AVX_FLOAT_MODE_P): Ditto.
3332         (AVX128_VEC_FLOAT_MODE_P): Ditto.
3333         (AVX256_VEC_FLOAT_MODE_P): Ditto.
3334         (AVX_VEC_FLOAT_MODE_P): Ditto.
3335         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
3336         (UNSPEC_MASKSTORE): Ditto.
3337         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
3338         Merge from <sse>_movmsk<ssemodesuffix> and
3339         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
3340         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
3341         iterator.
3342         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
3343         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
3344         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
3345
3346 2011-04-18  Jan Hubicka  <jh@suse.cz>
3347
3348         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
3349
3350         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
3351         (want_inline_function_called_once_p): Break out the logic from
3352         ipa_inline.
3353         (edge_badness): Ensure that profile is not misupdated.
3354         (lookup_recursive_calls): Prioritize by call frequencies.
3355         (inline_small_functions): Move program size estimates here;
3356         actually process whole queue even when unit growth has been
3357         met. (to properly compute inline_failed reasons and for the
3358         case unit size decrease.) Revisit comments on recursive inlining.
3359         (ipa_inline): Remove unit summary code; first inline hot calls
3360         of functions called once, cold calls next.
3361         (order, nnodes): Remove unused variables.
3362         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
3363         (GTFILES): Remove ipa-inline.c
3364         * sel-sched.c (fill_insns): Silence uninitialized var warning.
3365
3366 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3367
3368         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
3369
3370 2011-04-18  Jie Zhang  <jie@codesourcery.com>
3371             Richard Earnshaw  <rearnsha@arm.com>
3372
3373         * arm.c (neon_builtin_type_bits): Remove.
3374         (typedef enum neon_builtin_mode): New.
3375         (T_MAX): Don't define.
3376         (typedef enum neon_builtin_datum): Remove bits, codes[],
3377         num_vars and base_fcode.  Add mode, code and fcode.
3378         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
3379         VAR10): Change accordingly.
3380         (neon_builtin_data[]): Change accordingly
3381         (arm_init_neon_builtins): Change accordingly.
3382         (neon_builtin_compare): Remove.
3383         (locate_neon_builtin_icode): Remove.
3384         (arm_expand_neon_builtin): Change accordingly.
3385
3386         * arm.h (enum arm_builtins): Move to ...
3387         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
3388
3389         * arm.c (arm_builtin_decl): Declare.
3390         (TARGET_BUILTIN_DECL): Define.
3391         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
3392         (arm_builtin_decls[]): New.
3393         (arm_init_neon_builtins): Store builtin declarations in
3394         arm_builtin_decls[].
3395         (arm_init_tls_builtins): Likewise.
3396         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
3397         (arm_builtin_decl): New.
3398
3399 2011-04-18  Richard Guenther  <rguenther@suse.de>
3400
3401         * tree.c (upper_bound_in_type): Build properly canonicalized
3402         INTEGER_CSTs.
3403         (lower_bound_in_type): Likewise.
3404
3405 2011-04-18  Richard Guenther  <rguenther@suse.de>
3406
3407         * gimple.h (gimple_call_addr_fndecl): New function.
3408         (gimple_call_fndecl): Use it.
3409         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
3410         for direct calls.
3411         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
3412         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
3413
3414 2011-04-18  Richard Guenther  <rguenther@suse.de>
3415
3416         PR middle-end/48650
3417         * tree.c (build_string): STRING_CST is now derived from tree_typed.
3418
3419 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3420
3421         PR lto/48492
3422         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
3423         DECL_IN_CONSTANT_POOL without RTL.
3424
3425 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
3426             Ira Rosen  <ira.rosen@linaro.org>
3427
3428         PR target/48252
3429         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
3430         to match neon_vzip/vuzp/vtrn_internal.
3431         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
3432         outputs explicitly dependent on both inputs.
3433         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
3434
3435 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
3436
3437         PR tree-optimization/48616
3438         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
3439         whether the shift is by scalar or vector based on whether all SLP
3440         scalar stmts have the same rhs.
3441
3442 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
3443
3444         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
3445         memory operands.
3446
3447 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
3448
3449         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
3450         registers.
3451
3452 2011-04-17  Jan Hubicka  <jh@suse.cz>
3453
3454         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
3455         * cgrpahunit.c (cgraph_finalize_function): Do not set
3456         finalized_by_frontend.
3457         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3458         finalized_by_frontend.
3459
3460 2011-04-17  Jan Hubicka  <jh@suse.cz>
3461
3462         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
3463         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
3464         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
3465         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
3466         method.
3467         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
3468         gimple-fold.c
3469         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
3470
3471 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
3472
3473         PR lto/48538
3474         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
3475         is non-null before accessing it.
3476         (input_cgraph): Remove trailing spaces.
3477
3478 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3479
3480         * params.def (sms-min-sc): New param flag.
3481         * modulo-sched.c (sms_schedule): Use it.
3482         * doc/invoke.texi (sms-min-sc): Document it.
3483
3484 2011-04-17  Jan Hubicka  <jh@suse.cz>
3485
3486         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
3487         present, also set gimple_call_set_cannot_inline.
3488         * ipa-inline.c: Update toplevel comment.
3489         (MAX_TIME): Remove.
3490         (cgraph_clone_inlined_nodes): Fix linebreaks.
3491         (cgraph_check_inline_limits): Restructure to ...
3492         (caller_growth_limits): ... this one; be more tolerant
3493         on growth in nested inline chains; add explanatory comment;
3494         fix stack accounting thinko introduced by previous patch.
3495         (cgraph_default_inline_p): Remove.
3496         (report_inline_failed_reason): New function.
3497         (can_inline_edge_p): New function.
3498         (can_early_inline_edge_p): New function.
3499         (leaf_node_p): Move upwards in file.
3500         (want_early_inline_function_p): New function.
3501         (want_inline_small_function_p): New function.
3502         (want_inline_self_recursive_call_p): New function.
3503         (cgraph_edge_badness): Rename to ...
3504         (edge_badness) ... this one; fix linebreaks.
3505         (update_edge_key): Update call of edge_baddness; add
3506         detailed dump about queue updates.
3507         (update_caller_keys): Use can_inline_edge_p and
3508         want_inline_small_function_p.
3509         (cgraph_decide_recursive_inlining): Rename to...
3510         (recursive_inlining): Use can_inline_edge_p and
3511         want_inline_self_recursive_call_p; simplify and remove no longer
3512         valid FIXME.
3513         (cgraph_set_inline_failed): Remove.
3514         (add_new_edges_to_heap): Use can_inline_edge_p and
3515         want_inline_small_function_p.
3516         (cgraph_decide_inlining_of_small_functions): Rename to ...
3517         (inline_small_functions): ... this one; cleanup; use
3518         can/want predicates; cleanup debug ouput; work edges till fibheap
3519         is exhausted and do not stop once unit growth is reached; remove
3520         later loop processing remaining edges.
3521         (cgraph_flatten): Rename to ...
3522         (flatten_function): ... this one; use can_inline_edge_p
3523         and can_early_inline_edge_p predicates.
3524         (cgraph_decide_inlining): Rename to ...
3525         (ipa_inline): ... this one; remove unreachable nodes before
3526         inlining functions called once; simplify the pass.
3527         (cgraph_perform_always_inlining): Rename to ...
3528         (inline_always_inline_functions): ... this one; use
3529         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
3530         (cgraph_decide_inlining_incrementally): Rename to ...
3531         (early_inline_small_functions): ... this one; simplify
3532         using new predicates; cleanup; make dumps prettier.
3533         (cgraph_early_inlining): Rename to ...
3534         (early_inliner): newer inline regular functions into always-inlines;
3535         fix updating of call stmt summaries.
3536         (pass_early_inline): Update for new names.
3537         (inline_transform): Fix formating.
3538         (gate_cgraph_decide_inlining): Rename to ...
3539         (pass_ipa_inline): ... this one.
3540         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
3541         * ipa-inline-analysis.c (dump_inline_summary): Update.
3542         (compute_inline_parameters): Do not compute disregard_inline_limits;
3543         look for mismatching arguments.
3544         (estimate_growth): Fix handlig of non-trivial self recursion.
3545         (inline_read_summary): Do not read info->disregard_inline_limits.
3546         (inline_write_summary): Do not write info->disregard_inline_limits.
3547         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
3548         and move all checks into can_inline_edge_p predicate; re-enable code
3549         comparing optimization levels.
3550         (expand_call_inline): Do not test inline_forbidden_into_p.
3551         * Makefile.in (ipa-inline.o): Update arguments.
3552
3553 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3554
3555         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
3556
3557 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3558
3559         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
3560
3561 2011-04-17  Michael Matz  <matz@suse.de>
3562
3563         PR tree-optimization/48622
3564         PR lto/48645
3565         * ipa-inline-analysis.c (inline_read_summary): Read size/time
3566         in same order as they're written.
3567
3568 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3569
3570         * config/pa/predicates.md: Reorganize and simplify predicates.
3571         Eliminate duplicate code checks.
3572         (arith_operand): Rename to arith14_operand
3573         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
3574         * config/pa/pa.md: Use renamed operands.
3575         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
3576         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
3577         arith11_operand, adddi3_operand, indexed_memory_operand,
3578         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
3579         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
3580         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
3581         move_dest_operand, move_src_operand, prefetch_cc_operand,
3582         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
3583         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
3584         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
3585         div_operand, int5_operand, movb_comparison_operator,
3586         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
3587         arith_double_operand, ireg_operand, lhs_lshift_operand,
3588         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
3589         integer_store_memory_operand): Likewise.
3590         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
3591         (integer_store_memory_operand, read_only_operand,
3592         function_label_operand, borx_reg_operand,
3593         non_hard_reg_operand): Likewise.
3594         (eq_neq_comparison_operator): Delete unused operator.
3595         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
3596         function_label_operand.
3597         (emit_move_sequence): Likewise.
3598
3599 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
3600
3601         * config/i386/sse.md (sseunpackmode): New mode attribute.
3602         (ssepackmode): Ditto.
3603         (vec_pack_trunc_<mode>): Macroize expander from
3604         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
3605         (vec_unpacks_lo_<mode>): Macroize expander from
3606         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3607         (vec_unpacks_hi_<mode>): Macroize expander from
3608         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3609         (vec_unpacku_lo_<mode>): Macroize expander from
3610         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3611         (vec_unpacku_hi_<mode>): Macroize expander from
3612         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3613         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
3614         ix86_expand_sse4_unpack.
3615         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
3616
3617 2011-04-16  Jan Hubicka  <jh@suse.cz>
3618
3619         * cgraphbuild.c: Include ipa-inline.h.
3620         (reset_inline_failed): Use initialize_inline_failed.
3621         * cgraph.c: Include ipa-inline.h.
3622         (cgraph_create_node_1): Do not initialize estimated_growth.
3623         (initialize_inline_failed): More to ipa-inline-analysis.c
3624         (dump_cgraph_node): Do not dump inline flags.
3625         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
3626         and disregard_inline_limits flags.
3627         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
3628         time, size, estimated_growth.
3629         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
3630         Update.
3631         * cgraphunit.c (cgraph_decide_is_function_needed): Use
3632         DECL_DISREGARD_INLINE_LIMITS.
3633         (cgraph_analyze_function): Do not initialize
3634         node->local.disregard_inline_limits.
3635         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3636         inlinable, versionable and disregard_inline_limits.
3637         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3638         cgraph_check_inline_limits, cgraph_default_inline_p,
3639         cgraph_edge_badness, update_caller_keys, update_callee_keys,
3640         add_new_edges_to_heap): Update.
3641         (cgraph_decide_inlining_of_small_function): Update; set
3642         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
3643         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
3644         cgraph_decide_inlining_incrementally): Update.
3645         * ipa-inline.h (inline_summary): Add inlinable, versionable,
3646         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
3647         time, size and estimated_growth parameters.
3648         (estimate_edge_growth): Update.
3649         (initialize_inline_failed): Declare.
3650         * ipa-split.c: Include ipa-inline.h
3651         (execute_split_functions): Update.
3652         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
3653         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
3654         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
3655         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
3656         estimated_growth to INT_MIN.
3657         (inline_node_duplication_hook): Likewise.
3658         (dump_inline_summary): Dump new fields.
3659         (compute_inline_parameters): Update.
3660         (estimate_edge_time, estimate_time_after_inlining,
3661         estimate_size_after_inlining, estimate_growth, inline_read_summary,
3662         inline_write_summary):
3663         (initialize_inline_failed): Move here from cgraph.c.
3664         * tree-sra.c: Include ipa-inline.h.
3665         (ipa_sra_preliminary_function_checks): Update.
3666         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
3667         ipa-inline.h.
3668
3669 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
3670
3671         * config/i386/sse.md (V16): New mode iterator.
3672         (VI1, VI8): Ditto.
3673         (AVXMODEQI, AVXMODEDI): Remove.
3674         (sse2, sse3): New mode attribute.
3675         (mov<mode>): Use V16 mode iterator.
3676         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
3677         (push<mode>1): Use V16 mode iterator.
3678         (movmisalign<mode>): Ditto.
3679         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3680         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
3681         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3682         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
3683         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
3684         avx_movdqu<avxmodesuffix>.
3685         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
3686         *avx_movdqu<avxmodesuffix>.
3687         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
3688         avx_lddqu<avxmodesuffix>.
3689         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
3690         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
3691         avx_movnt<AVXMODEDI:mode>.
3692         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
3693         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
3694
3695 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
3696
3697         PR target/48629
3698         * haifa-sched.c (prune_ready_list, schedule_block): Use
3699         sched_pressure_p rather than flag_sched_pressure.
3700
3701 2011-04-15  Pat Haugen <pthaugen@us.ibm.com>
3702
3703         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3704         cgraph_get_node instead of cgraph_get_create_node.
3705
3706 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
3707
3708         * cfgexpand.c (expand_debug_expr): Use
3709         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3710
3711 2011-04-15  Michael Matz  <matz@suse.de>
3712
3713         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3714         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3715         * function.c (gimplify_parameters): Ditto.
3716         * gimplify.c (gimplify_vla_decl): Ditto.
3717
3718         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3719         (gimple_call_set_alloca_for_var): New inline function.
3720         (gimple_call_alloca_for_var_p): Ditto.
3721         * gimple.c (gimple_build_call_from_tree): Remember
3722         CALL_ALLOCA_FOR_VAR_P state.
3723         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3724
3725         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3726         calls if they were for VLA objects.
3727
3728 2011-04-15  Martin Jambor  <mjambor@suse.cz>
3729
3730         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3731         of ADR_EXPRs.
3732
3733 2011-04-15  Martin Jambor  <mjambor@suse.cz>
3734
3735         PR middle-end/48601
3736         * tree-emutls.c (lower_emutls_function_body): Call
3737         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
3738         result is non-NULL.
3739
3740 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
3741
3742         * c-decl.c (detect_field_duplicates): Call
3743         objc_detect_field_duplicates instead of objc_get_interface_ivars.
3744
3745 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
3746
3747         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3748         * gimple.c (gimple_asm_clobbers_memory_p): Define.
3749         * ipa-pure-const.c (check_stmt): Call it.
3750         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3751
3752 2011-04-15  Richard Guenther  <rguenther@suse.de>
3753
3754         PR tree-optimization/48290
3755         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3756         Properly decide inhibiting propagation based on the valueized
3757         operand.  Do loop-closed SSA form preserving here ...
3758         (init_copy_prop): ... not here.
3759
3760 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
3761
3762         PR target/48612
3763         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3764         (*ieee_smax<mode>3): Likewise.
3765
3766 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3767
3768         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3769         Replace match_operand with match_dup for the third operand in
3770         these expanders.
3771
3772 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
3773
3774         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
3775         to track processing of conditionals.  Update all callers.
3776         (try_combine, simplify_if_then_else): Update.
3777
3778 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
3779
3780         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
3781         -fsched-pressure.
3782
3783 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
3784
3785         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
3786         instead of match_operand for operand 3.
3787
3788 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
3789
3790         * recog.h (insn_operand_data): Add an "allows_mem" field.
3791         * genoutput.c (output_operand_data): Initialize it.
3792         * optabs.c (maybe_legitimize_operand_same_code): New function.
3793         (maybe_legitimize_operand): Use it when matching the original
3794         op->value.
3795
3796 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3797
3798         * gimplify.c: Fix issues in comments throughout.
3799         (voidify_wrapper_expr): Fix long line.
3800         (build_stack_save_restore): Likewise.
3801         (gimplify_loop_expr): Likewise.
3802         (gimplify_compound_lval): Likewise.
3803         (gimplify_init_ctor_eval): Likewise.
3804         (gimplify_modify_expr_rhs): Likewise.
3805         (omp_notice_threadprivate_variable): Likewise.
3806
3807 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3808
3809         * cfgexpand.c (expand_call_stmt): Convert the function type to the
3810         original one if this is not a builtin function.
3811
3812 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
3813
3814         PR target/48605
3815         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
3816         offset it as needed based on top 2 bits in operands[3], change
3817         MEM mode to SFmode and mask those 2 bits away from operands[3].
3818
3819 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3820
3821         * c-parser.c (c_parser_objc_protocol_definition): Updated for
3822         change from objc_declare_protocols() to objc_declare_protocol().
3823
3824 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
3825
3826         * config/i386/sse.md (sse4_1): New mode attribute.
3827         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
3828         avx_blend<ssemodesuffix><avxmodesuffix> and
3829         sse4_1_blend<ssemodesuffix> using VF mode iterator.
3830         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
3831         avx_blendv<ssemodesuffix><avxmodesuffix> and
3832         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
3833         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
3834         avx_dp<ssemodesuffix><avxmodesuffix> and
3835         sse4_1_dp<ssemodesuffix> using VF mode iterator.
3836         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
3837         (sse4_1_packusdw): Merge with *avx_packusdw.
3838         (sse4_1_pblendvb): Merge with *avx_pblendvb.
3839         (sse4_1_pblendw): Merge with *avx_pblendw.
3840         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
3841         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
3842         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
3843         VF mode iterator.
3844         (sse4_1_round<ssescalarmodesuffix>): Merge with
3845         *avx_round<ssescalarmodesuffix>.
3846         (aesenc): Merge with *avx_aesenc.
3847         (aesenclast): Merge with *avx_aesenclast.
3848         (aesdec): Merge with *avx_aesdec.
3849         (aesdeclast): Merge with *avx_aesdeclast.
3850         (pclmulqdq): Merge with *pclmulqdq.
3851         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
3852         New predicate.
3853         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
3854
3855 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
3856
3857         PR middle-end/48608
3858         * cfgexpand.c (get_decl_align_unit): Renamed to ...
3859         (align_local_variable): This.  Update DECL_ALIGN.
3860         (add_stack_var): Updated.
3861         (expand_one_stack_var): Likewise.
3862
3863 2011-04-14  Richard Guenther  <rguenther@suse.de>
3864
3865         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
3866         Remove.
3867         (dse_initialize_block_local_data, dse_leave_block,
3868         record_voperand_set, get_stmt_uid): Likewise.
3869         (dse_possible_dead_store_p): Allow any kind of killing stmt.
3870         (dse_optimize_stmt): Remove voperand set handling code.
3871         Simplify and improve to handle any kind of killing stmt.
3872         (dse_record_phi): Remove.
3873         (dse_enter_block): Simplify.
3874         (tree_ssa_dse): Likewise.
3875         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
3876
3877 2011-04-14  Jan Hubicka  <jh@suse.cz>
3878
3879         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
3880         * cgraph.h (struct inline_summary): Move to ipa-inline.h
3881         (cgraph_local_info): Remove inline_summary.
3882         * ipa-cp.c: Include ipa-inline.h.
3883         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
3884         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
3885         accesor.
3886         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
3887         (input_overwrite_node): Do not set inline summary.
3888         (input_node): Do not stream inline summary.
3889         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
3890         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
3891         growth; we do not have inline parameters computed for that anyway.
3892         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
3893         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
3894         (inline_summary_t): New type and VECtor.
3895         (debug_inline_summary, dump_inline_summaries): Declare.
3896         (inline_summary): Use VOCtor.
3897         (estimate_edge_growth): Kill hack computing call stmt size directly.
3898         * lto-section-in.c (lto_section_name): Add inline section.
3899         * ipa-inline-analysis.c: Include lto-streamer.h
3900         (node_removal_hook_holder, node_duplication_hook_holder): New holders
3901         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
3902         (inline_summary_vec): Define.
3903         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
3904         dump_inline_summaries): New functions.
3905         (estimate_function_body_sizes): Properly compute size/time of outgoing
3906         calls.
3907         (compute_inline_parameters): Alloc inline_summary; do not compute
3908         size/time of incomming calls.
3909         (estimate_edge_time): Avoid missing time summary hack.
3910         (inline_read_summary): Read inline summary info.
3911         (inline_write_summary): Write inline summary info.
3912         (inline_free_summary): Free all hooks and inline summary vector.
3913         * lto-streamer.h: Add LTO_section_inline_summary section.
3914         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
3915         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
3916
3917 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3918
3919         * tree-vectorizer.h (vect_strided_store_supported): Add a
3920         HOST_WIDE_INT argument.
3921         (vect_strided_load_supported): Likewise.
3922         (vect_permute_store_chain): Return void.
3923         (vect_transform_strided_load): Likewise.
3924         (vect_permute_load_chain): Delete.
3925         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
3926         count argument.  Check that the count is a power of two.
3927         (vect_strided_load_supported): Likewise.
3928         (vect_permute_store_chain): Return void.  Update after above changes.
3929         Assert that the access is supported.
3930         (vect_permute_load_chain): Likewise.
3931         (vect_transform_strided_load): Return void.
3932         * tree-vect-stmts.c (vectorizable_store): Update calls after
3933         above interface changes.
3934         (vectorizable_load): Likewise.
3935         (vect_analyze_stmt): Don't check for strided powers of two here.
3936
3937 2011-04-14  Richard Guenther  <rguenther@suse.de>
3938
3939         PR tree-optimization/48590
3940         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3941         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3942         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
3943         BUILT_IN_STACK_SAVE.
3944         * tree-ssa-dce.c (propagate_necessity): Handle
3945         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3946
3947 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3948
3949         * c-parser.c (c_parser_objc_class_declaration): Updated call to
3950         objc_declare_class.
3951
3952 2011-04-14  Richard Guenther  <rguenther@suse.de>
3953
3954         * tree.h (get_object_alignment_1): Declare.
3955         * builtins.c (get_object_alignment_1): Split out worker from ...
3956         (get_object_alignment): ... here.
3957         * fold-const.c (get_pointer_modulus_and_residue): Use
3958         get_object_alignment_1.
3959
3960 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3961
3962         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
3963         type parameter.
3964         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
3965         parameter.  Generalise code to handle arrays as well as vectors.
3966         (vect_setup_realignment): Update accordingly.
3967         * tree-vect-stmts.c (vectorizable_store): Likewise.
3968         (vectorizable_load): Likewise.
3969
3970 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3971
3972         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
3973         within the per-copy loop.
3974
3975 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3976
3977         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
3978         in the dump file.
3979
3980 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3981
3982         * doc/options.texi (Negative): Explicitly mention that the
3983         Negative chain must be circular.
3984
3985 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
3986
3987         * function.h (block_chainon): Declare.
3988         * function.c (block_chainon): Define.
3989
3990 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
3991             Eric Weddington  <eric.weddington@atmel.com>
3992             Georg-Johann Lay <avr@gjlay.de>
3993
3994         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
3995         New Includes
3996         (avr_init_builtins, avr_expand_builtin,
3997         avr_expand_delay_cycles, avr_expand_unop_builtin,
3998         avr_expand_binop_builtin ): New functions.
3999         (avr_builtin_id): New enum
4000         (struct avr_builtin_description): New struct
4001         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
4002         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
4003
4004         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
4005         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
4006         UNSPECV_DELAY_CYCLES): new enumeration values
4007         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
4008         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
4009         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
4010         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
4011         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
4012         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
4013         "fmulsu"): New insns
4014
4015         * config/avr/avr-c.c: fix line endings
4016         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
4017         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
4018         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
4019         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
4020         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
4021
4022         * doc/extend.texi (AVR Built-in Functions): New node
4023         (Target Builtins): Add documentation of AVR
4024         built-in functions.
4025
4026 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
4027
4028         PR target/44643
4029         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
4030         alone. Error if non-const data has attribute progmem.
4031
4032 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4033
4034         * tree.h (struct tree_constructor): Include tree_typed instead of
4035         tree_common.
4036         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
4037         TS_TYPED instead of TS_COMMON.
4038
4039 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
4040
4041         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
4042         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
4043         (sse2_psadbw): Merge with *avx_psadbw.
4044         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
4045         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
4046         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
4047         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
4048         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
4049         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
4050         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
4051         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
4052         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
4053         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
4054         (ssse3_palignrti): Merge with *avx_palignrti.
4055
4056 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4057
4058         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
4059         * tree-ssanames.c (fini_ssanames): VEC_free it.
4060         (make_ssa_name_fn): Update for VECness of free_ssanames.
4061         (release_ssa_name, release_dead_ssa_names): Likewise.
4062         * tree.h (struct tree_ssa_name): Include tree_typed instead of
4063         tree_common.
4064         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
4065         TS_TYPED instead of TS_COMMON.
4066
4067 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4068
4069         * postreload-gcse.c (gcse_after_reload_main): Add calls to
4070         statistics_counter_event.
4071         * tree-ssa-copyrename.c (stats): Define.
4072         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
4073         statistics_counter_event.
4074         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
4075         (bswap_stats, widen_mul_stats): Define.
4076         (insert_reciprocals): Increment rdivs_inserted.
4077         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
4078         rfuncs_inserted.  Add calls to statistics_counter_event.
4079         (execute_cse_sincos_1): Increment inserted.
4080         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
4081         statistics_counter_event.
4082         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
4083         of bswap_stats.  Add calls to statistics_counter_event.
4084         (convert_mult_to_widen): Increment widen_mults_inserted.
4085         (convert_plusminus_to_widen): Increment maccs_inserted.
4086         (convert_mult_to_fma): Increment fmas_inserted.
4087         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
4088         calls to statistics_counter_event.
4089
4090 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
4091
4092         PR rtl-optimization/48455
4093         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
4094         `temp_costs->mem_cost'.
4095
4096 2011-04-13  Jan Hubicka  <jh@suse.cz>
4097
4098         * ipa-inline.h: New file.
4099         * ipa-inline-analysis.c: New file. Broken out of ...
4100         * ipa-inline.c: ... this file; update toplevel comment;
4101         include ipa-inline.h
4102         (inline_summary): Move to ipa-inline.h
4103         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
4104         ipa-inline-analysis.c.
4105         (cgraph_estimate_time_after_inlining): Rename to
4106         estiamte_time_after_inlining; move to ipa-inline-analysis.c
4107         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
4108         to estimate_edge_growth.
4109         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
4110         rename to estimate_size_after_inlining.
4111         (cgraph_mark_inline_edge): Update for new naming convention.
4112         (cgraph_check_inline_limits): Likewise.
4113         (cgraph_edge_badness): Likewise.
4114         (cgraph_decide_recursive_inlining): Likewise.
4115         (cgraph_decide_inlining_of_small_functions): Likewise.
4116         (cgraph_decide_inlining_incrementally): Likewise.
4117         (cgraph_estimate_growth): Rename to estimate_growth; move to
4118         ipa-inline-analysis.c.
4119         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
4120         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
4121         (compute_inline_parameters): Likewise.
4122         (compute_inline_parameters_for_current): Likewise.
4123         (pass_inline_parameters): Likewise.
4124         (inline_indirect_intraprocedural_analysis): Likewise.
4125         (analyze_function): Rename to inline_analyze_function; likewise.
4126         (add_new_function): Move to ipa-inline-analysis.c.
4127         (inline_generate_summary): Likewise.
4128         (inline_read_summary): Likewise.
4129         (inline_write_summary): Likewise.
4130         * Makefile.in (ipa-inline-analysis.c): New file.
4131
4132 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4133
4134         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
4135         * configure: Regenerate.
4136
4137 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4138
4139         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
4140         instead of tree_common.
4141         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
4142         Likewise.
4143         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
4144         TS_TYPED rather than TS_COMMON.
4145         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
4146
4147 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
4148
4149         PR target/45263
4150         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
4151         r20 around calls of __tablejump_elpm__
4152
4153 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
4154
4155         PR middle-end/48591
4156         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
4157         NULL.
4158         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
4159
4160 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
4161
4162         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
4163         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
4164         (cfi_vec): New typedef.
4165         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
4166         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
4167         (cie_cfi_vec): New static variable.
4168         (cie_cfi_head): Delete.
4169         (add_cfi): Accept a cfi_vec * as first argument. All callers and
4170         declaration changed. Use vector rather than list operations.
4171         (new_cfi): Don't initialize the dw_cfi_next field.
4172         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
4173         rather than list operations.
4174         (lookup_cfa): Use vector rather than list operations.
4175         (output_cfis): New argument upto. Accept a cfi_vec rather than
4176         a dw_cfi_ref list head as argument. All callers changed.
4177         Iterate over the vector using upto as a maximum index.
4178         (output_all_cfis): New static function.
4179         (output_fde): Use vector rather than list operations. Use the
4180         new upto argument for output_cfis rather than manipulating a
4181         list.
4182         (dwarf2out_begin_prologue): Change initializations to match
4183         new struct members.
4184         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
4185         from the vector length rather than searching for the end of a list.
4186         Use output_all_cfis.
4187         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
4188
4189 2011-04-13  Nick Clifton  <nickc@redhat.com>
4190
4191         * config/rx/rx.md (movmemsi): Do not use this pattern when
4192         volatile pointers are involved.
4193
4194 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
4195
4196         * config/i386/sse.md (pinsrbits): Remove.
4197         (sse2_packsswb): Merge with *avx_packsswb.
4198         (sse2_packssdw): Merge with *avx_packssdw.
4199         (sse2_packuswb): Merge with *avx_packuswb.
4200         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
4201         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
4202         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
4203         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
4204         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
4205         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
4206         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
4207         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
4208         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
4209         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
4210         (sse2_loadld): Merge with *avx_loadld.
4211         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
4212         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
4213         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
4214         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
4215         (vec_concatv2di): Merge with *vec_concatv2di_avx.
4216
4217 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
4218
4219         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
4220         calling TREE_CHAIN.
4221         * print-tree.c (print_node): Likewise.
4222         * tree-inline.c (copy_tree_r): Likewise.
4223         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
4224         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
4225         instead of TS_COMMON.
4226         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
4227         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
4228         (copy_node_stat): Zero TREE_CHAIN only if necessary.
4229         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
4230         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
4231         ...and these...
4232         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
4233         * tree.h: ...here.
4234         (TREE_CHAIN): Check for a TS_COMMON structure.
4235         (TREE_TYPE): Check for a TS_TYPED structure.
4236
4237 2011-04-12  Pat Haugen <pthaugen@us.ibm.com>
4238
4239         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4240         cgraph_get_create_node instead of cgraph_node.
4241
4242 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4243
4244         * c-parser.c (c_parser_initelt): Updated call to
4245         objc_build_message_expr.
4246         (c_parser_postfix_expression): Likewise.
4247
4248 2011-04-12  Kai Tietz  <ktietz@redhat.com>
4249
4250         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
4251         MASK_MS_BITFIELD_LAYOUT bit.
4252
4253 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4254
4255         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
4256         assert it is always true.
4257         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
4258         moves.
4259
4260 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4261
4262         * c-parser.c (c_lex_one_token): Rewritten conditional used when
4263         compiling Objective-C to be more efficient.
4264
4265 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
4266
4267         * opts-common.c (decode_cmdline_options_to_array): Remove variable
4268         argv_copied.
4269
4270 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4271
4272         * recog.h, genoutput.c, optabs.c: Revert last patch.
4273
4274 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4275
4276         PR target/48090
4277         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
4278
4279 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4280
4281         * recog.h (insn_operand_data): Add an "allows_mem" field.
4282         * genoutput.c (output_operand_data): Initialize it.
4283         * optabs.c (maybe_legitimize_operand_same_code): New function.
4284         (maybe_legitimize_operand): Use it when matching the original
4285         op->value.
4286
4287 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4288
4289         * genpreds.c (process_define_predicate): Move most processing
4290         to gensupport.c.  Continue to validate the expression.
4291         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
4292         (process_define_predicate): Move processing to gensupport.c.
4293         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
4294         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
4295         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
4296         argument.
4297         (valid_predicate_name_p): New function, split out from old
4298         genpreds.c:process_define_predicate.
4299         (process_define_predicate): New function, combining code from
4300         old genpreds.c and genrecog.c functions.
4301         (process_rtx): Call it for DEFINE_PREDICATE and
4302         DEFINE_SPECIAL_PREDICATE.
4303
4304 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4305
4306         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
4307         size of a '%A' memory reference.
4308         (T_DREG, T_QREG): New neon_builtin_type_bits.
4309         (arm_init_neon_builtins): Assert that the load and store operands
4310         are neon_struct_operands.
4311         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
4312         (NEON_ARG_MEMORY): New builtin_arg.
4313         (neon_dereference_pointer): New function.
4314         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
4315         Handle NEON_ARG_MEMORY.
4316         (arm_expand_neon_builtin): Update after above interface changes.
4317         Use NEON_ARG_MEMORY for loads and stores.
4318         * config/arm/predicates.md (neon_struct_operand): New predicate.
4319         * config/arm/iterators.md (V_two_elem): Tweak formatting.
4320         (V_three_elem): Use BLKmode for accesses that have no associated mode.
4321         (V_four_elem): Tweak formatting.
4322         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
4323         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
4324         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
4325         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
4326         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
4327         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
4328         (neon_vst4<mode>): Replace pointer operand with a memory operand.
4329         Use %A in the output template.
4330         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
4331         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
4332         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
4333         the width of the memory access.  Remove post-increment.
4334         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
4335
4336 2011-04-12  Nick Clifton  <nickc@redhat.com>
4337
4338         * config/v850/v850.c (expand_prologue): Do not use the CALLT
4339         instruction for interrupt handlers if the target is the basic V850
4340         architecture.
4341         (expand_epilogue): Likewise.
4342
4343 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4344
4345         PR rtl-optimization/48549
4346         * combine.c (propagate_for_debug): Also stop after BB_END of
4347         this_basic_block.  Process LAST and just stop processing after it.
4348         (combine_instructions): If last_combined_insn has been deleted,
4349         set last_combined_insn to its PREV_INSN.
4350
4351 2011-04-12  Richard Guenther  <rguenther@suse.de>
4352
4353         PR tree-optimization/46076
4354         * gimple.h (struct gimple_statement_call): Add fntype field.
4355         (gimple_call_fntype): Adjust.
4356         (gimple_call_set_fntype): New function.
4357         * gimple.c (gimple_build_call_1): Set the call function type.
4358         * gimplify.c (gimplify_call_expr): Preserve the function
4359         type the frontend used for the call.
4360         (gimplify_modify_expr): Likewise.
4361         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
4362         function type.
4363         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
4364         function type.
4365         * tree-ssa.c (useless_type_conversion_p): Function pointer
4366         conversions are useless.
4367
4368 2011-04-12  Martin Jambor  <mjambor@suse.cz>
4369
4370         * cgraph.h (cgraph_node): Remove function declaration.
4371         (cgraph_create_node): Declare.
4372         (cgraph_get_create_node): Likewise.
4373         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
4374         Updated all callers.
4375         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
4376         the decl does not already exist.  Call cgraph_get_create_node instead
4377         of cgraph_node.
4378         (cgraph_get_create_node): New function.
4379         (cgraph_same_body_alias): Update comment.
4380         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
4381         assert it does not return NULL.
4382         (cgraph_update_edges_for_call_stmt): Likewise.
4383         (cgraph_clone_edge): Likewise.
4384         (cgraph_create_virtual_clone): Likewise.
4385         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
4386         instead of cgraph_node.
4387         (cgraph_add_new_function): Call cgraph_create_node or
4388         cgraph_get_create_node instead of cgraph_node.
4389         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
4390         instead of cgraph_node.
4391         (record_eh_tables): Likewise.
4392         (mark_address): Likewise.
4393         (mark_load): Likewise.
4394         (build_cgraph_edges): Call cgraph_get_create_node instead
4395         of cgraph_node.
4396         (rebuild_cgraph_edges): Likewise.
4397         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
4398         instead of cgraph_node.
4399         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
4400         cgraph_node.
4401         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
4402         cgraph_create_node instead of cgraph_node.
4403         * c-decl.c (finish_function): Call cgraph_get_create_node instead
4404         of cgraph_node.
4405         * lto-cgraph.c (input_node): Likewise.
4406         * lto-streamer-in.c (input_function): Likewise.
4407         * varasm.c (mark_decl_referenced): Likewise.
4408         (assemble_alias): Likewise.
4409
4410 2011-04-12  Martin Jambor  <mjambor@suse.cz>
4411
4412         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
4413         instead of cgraph_node and assert it does not return NULL.
4414         * lto-streamer-in.c (lto_read_body): Likewise.
4415         * omp-low.c (new_omp_context): Likewise.
4416         (create_task_copyfn): Likewise.
4417         * tree-emutls.c (lower_emutls_function_body): Likewise.
4418         * matrix-reorg.c (transform_allocation_sites): Likewise.
4419
4420 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4421
4422         PR c/48552
4423         * c-typeck.c (build_asm_expr): Error out on attempts to use
4424         void type outputs or inputs for constraints that allow reg or
4425         don't allow memory.
4426
4427 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
4428             Richard Earnshaw  <rearnsha@arm.com>
4429
4430         PR target/48250
4431         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
4432         to use sign-magnitude offsets. Reject unsupported unaligned
4433         cases. Add detailed description in comments.
4434         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
4435         condition from TARGET_32BIT to TARGET_ARM.
4436
4437 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
4438
4439         * tree.h (struct typed_tree): New.
4440         (struct tree_common): Include it instead of tree_base.
4441         (TREE_TYPE): Update for new location of type field.
4442         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
4443         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
4444         (union tree_node): Add typed field.
4445         * treestruct.def (TS_TYPED): New.
4446         * lto-streamer.c (check_handled_ts_structures): Handle it.
4447         * tree.c (MARK_TS_TYPED): New macro.
4448         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
4449
4450 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
4451
4452         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
4453         (force_nonfallthru): Do not alter the loop nest if no basic block
4454         was created.
4455
4456 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
4457
4458         * config/i386/sse.md (VI): New mode iterator.
4459         (SSEMODEI): Remove.
4460         (AVX256MODEI): Ditto.
4461         (AVXMODEF4P): Ditto.
4462         (avxvecpsmode): Ditto.
4463         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
4464         (sse2_andnot<mode>3): New expander.
4465         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
4466         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
4467         (<any_logic:code><mode>3): Use VI mode iterator.
4468         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
4469         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
4470         (*andnottf3): Handle AVX three-operand constraints.
4471         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
4472
4473 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4474             Robert Millan  <rmh@gnu.org>
4475
4476         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
4477         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
4478         GNU_USER_DYNAMIC_LINKER64): Define.
4479         (REG_NAME): Don't undefine.
4480         (MD_UNWIND_SUPPORT): Undefine.
4481         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
4482         (REG_NAME): Don't undefine.
4483         (MD_UNWIND_SUPPORT): Undefine.
4484         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
4485
4486 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4487
4488         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
4489         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
4490
4491 2011-04-11  Xinliang David Li  <davidxl@google.com>
4492
4493         * value-profile.c (check_ic_target): New function.
4494         (gimple_ic_transform): Sanity check indirect call target.
4495         * gimple-low.c (gimple_check_call_args): Interface change.
4496         (gimple_check_call_matching_types): New function.
4497         * tree-inline.c (tree_can_inline_p): Call new function.
4498
4499 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
4500
4501         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
4502         tree-pretty-print.h & realmpfr.h.
4503
4504 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
4505
4506         PR middle-end/48464
4507         * ira.c (setup_pressure_classes): Fix typo in loop condition.
4508         (setup_allocno_and_important_classes): Ditto.
4509
4510 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4511
4512         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
4513         GNU_USER_DYNAMIC_LINKER.
4514         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
4515         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4516         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
4517         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4518         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4519         GNU_USER_TARGET_OS_CPP_BUILTINS.
4520         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
4521         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4522         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4523         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4524         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
4525         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4526         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4527         GNU_USER_TARGET_OS_CPP_BUILTINS.
4528         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4529         GNU_USER_DYNAMIC_LINKER.
4530         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4531         GNU_USER_TARGET_OS_CPP_BUILTINS.
4532         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
4533         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4534         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
4535         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4536         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
4537         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
4538         GNU_USER_DYNAMIC_LINKER64): Remove.
4539         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
4540         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4541         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4542         GNU_USER_DYNAMIC_LINKER.
4543         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4544         GNU_USER_TARGET_OS_CPP_BUILTINS.
4545         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4546         GNU_USER_TARGET_OS_CPP_BUILTINS.
4547         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
4548         to GNU_USER_TARGET_OS_CPP_BUILTINS.
4549         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4550         GNU_USER_TARGET_OS_CPP_BUILTINS.
4551         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
4552         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
4553         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4554         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
4555         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4556         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4557         GNU_USER_DYNAMIC_LINKER.
4558         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4559         GNU_USER_TARGET_OS_CPP_BUILTINS.
4560         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
4561         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4562         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4563         GNU_USER_DYNAMIC_LINKER.
4564         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4565         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4566         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
4567         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4568         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4569         GNU_USER_DYNAMIC_LINKER.
4570         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
4571         GNU_USER_DYNAMIC_LINKERN32.
4572         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
4573         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
4574         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
4575         GNU_USER_DYNAMIC_LINKER32.
4576         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
4577         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4578         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4579         GNU_USER_DYNAMIC_LINKER.
4580         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4581         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4582         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
4583         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4584         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4585         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
4586         GNU_USER_DYNAMIC_LINKER32.
4587         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4588         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
4589         GNU_USER_DYNAMIC_LINKER.
4590         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
4591         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4592         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4593         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
4594         GNU_USER_DYNAMIC_LINKER64.
4595         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
4596         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4597         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4598         GNU_USER_DYNAMIC_LINKER.
4599         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
4600         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4601         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4602         GNU_USER_DYNAMIC_LINKER.
4603         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
4604         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4605         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4606         GNU_USER_DYNAMIC_LINKER32.
4607         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4608         GNU_USER_DYNAMIC_LINKER64.
4609         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4610         GNU_USER_DYNAMIC_LINKER64.
4611         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
4612         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4613         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
4614         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4615         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4616
4617 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4618
4619         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
4620         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
4621         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
4622         GNU_USER_DYNAMIC_LINKER.
4623         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4624         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
4625         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
4626         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
4627         GNU_USER_DYNAMIC_LINKER64.
4628         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4629         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
4630         GNU_USER_LINK_EMULATION.
4631         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
4632         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
4633         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
4634         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
4635         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
4636         CPP_SPEC, CC1_SPEC): Remove.
4637         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
4638         (GNU_USER_DYNAMIC_LINKER): Define.
4639         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
4640         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
4641         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
4642         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
4643         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
4644         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
4645         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4646         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
4647         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
4648         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
4649         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
4650         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
4651         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
4652         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
4653         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
4654         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4655         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4656         GNU_USER_DYNAMIC_LINKER.
4657         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4658         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4659         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4660         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4661         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4662         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4663         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
4664         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
4665         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
4666         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
4667
4668 2011-04-11  Kai Tietz  <ktietz@redhat.com>
4669
4670         PR target/9601
4671         PR target/11772
4672         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
4673         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
4674         comment.
4675         (ix86_is_msabi_thiscall): Removed.
4676         (ix86_is_type_thiscall): Likewise.
4677         (ix86_get_callcvt): New function.
4678         (ix86_comp_type_attributes): Simplify check.
4679         (ix86_function_regparm): Use ix86_get_callcvt for calling
4680         convention attribute checks.
4681         (ix86_return_pops_args): Likewise.
4682         (ix86_static_chain): Likewise.
4683         (x86_this_parameter): Likewise.
4684         (x86_output_mi_thunk): Likewise.
4685         (ix86_function_type_abi): Optimize check for types without attributes.
4686         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
4687         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
4688         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
4689         by flag-values.
4690         (IX86_BASE_CALLCVT): Helper macro.
4691         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4692         Use ix86_get_callcvt for calling convention attribute checks and avoid
4693         symbol-decoration for stdcall in TARGET_RTD case.
4694         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
4695         Likewise.
4696         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4697         for declaration.
4698
4699 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
4700
4701         * config/i386/sse.md (VI_128): New mode iterator.
4702         (VI12_128): Rename from SSEMODE12.
4703         (VI14_128): Rename from SSEMODE14.
4704         (VI124_128): New mode iterator.
4705         (VI24_128): Rename from SSEMODE248.
4706         (VI248_128): Rename from SSEMODE248.
4707         (SSEMODE124C8): Remove.
4708         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4709         (*sse2_<plusminus_insn><mode>3): Merge with
4710         *avx_<plusminus_insn><mode>3.
4711         (*mulv8hi3): Merge with *avx_mulv8hi3.
4712         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4713         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4714         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4715         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4716         (ashr<mode>3): Merge with *avx_ashr<mode>3.
4717         (lshr<mode>3): Merge with *avx_lshr<mode>3.
4718         (ashl<mode>3): Merge with *avx_ashl<mode>3.
4719         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4720         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4721         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4722         (*<smaxmin:code>v8hi3): Ditto.
4723         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4724         (*<smaxmin:code>v16qi3): Ditto.
4725         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4726         (*sse2_eq<mode>3): Ditto.
4727         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4728         (*sse2_gt<mode>3): Ditto.
4729         (vcondv2di): Split out of vcond<mode>.
4730         (vconduv2di): Split out of vcondu<mode>.
4731
4732 2011-04-11  Richard Guenther  <rguenther@suse.de>
4733
4734         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4735         before calling tree_low_cst.
4736
4737 2011-04-11  Richard Guenther  <rguenther@suse.de>
4738
4739         * stor-layout.c (layout_type): Compute all array index size operations
4740         in the original type.
4741         (initialize_sizetypes): Add comment.
4742         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4743
4744 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4745
4746         * common.opt (Tbss=, Tdata=, Ttext=): New options.
4747
4748 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4749
4750         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4751         of cgraph_node, handle NULL return value.
4752         (cgraph_global_info): Likewise.
4753         (cgraph_rtl_info): Likewise.
4754         * tree-inline.c (estimate_num_insns): Likewise.
4755         * gimplify.c (unshare_body): Likewise.
4756         (unvisit_body): Likewise.
4757         (gimplify_body): Likewise.
4758         * predict.c (optimize_function_for_size_p): Likewise.
4759         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4760         (call_may_clobber_ref_p_1): Likewise.
4761         * varasm.c (function_section_1): Likewise.
4762         (assemble_start_function): Likewise.
4763
4764 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4765
4766         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4767         of cgraph_node.
4768         * final.c (rest_of_clean_state): Likewise.
4769         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4770         * passes.c (pass_init_dump_file): Likewise.
4771         (execute_all_ipa_transforms): Likewise.
4772         (function_called_by_processed_nodes_p): Likewise.
4773         * predict.c (maybe_hot_frequency_p): Likewise.
4774         (probably_never_executed_bb_p): Likewise.
4775         (compute_function_frequency): Likewise.
4776         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
4777         (unnest_nesting_tree_1): Likewise.
4778         (lower_nested_functions): Likewise.
4779         * tree-optimize.c (execute_fixup_cfg): Likewise.
4780         (tree_rest_of_compilation): Likewise.
4781         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
4782         * tree-sra.c (ipa_early_sra): Likewise.
4783         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4784         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
4785         * ipa.c (record_cdtor_fn): Likewise.
4786         * ipa-inline.c (cgraph_early_inlining): Likewise.
4787         (compute_inline_parameters_for_current): Likewise.
4788         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4789         * ipa-pure-const.c (local_pure_const): Likewise.
4790         * ipa-split.c (split_function): Likewise.
4791         (execute_split_functions): Likewise.
4792         * cgraphbuild.c (build_cgraph_edges): Likewise.
4793         (rebuild_cgraph_edges): Likewise.
4794         (cgraph_rebuild_references): Likewise.
4795         (remove_cgraph_callee_edges): Likewise.
4796         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
4797         (verify_cgraph_node): Likewise.
4798         (cgraph_analyze_functions): Likewise.
4799         (cgraph_preserve_function_body_p): Likewise.
4800         (save_inline_function_body): Likewise.
4801         (save_inline_function_body): Likewise.
4802         * tree-inline.c (copy_bb): Likewise.
4803         (optimize_inline_calls): Likewise.
4804
4805 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4806
4807         PR tree-optimization/48195
4808         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
4809         ipa_check_create_edge_args.
4810         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
4811         ipa_check_create_edge_args.
4812         * ipa-inline.c (inline_generate_summary): Do not call
4813         ipa_check_create_node_params and ipa_check_create_edge_args.
4814         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
4815         ipa_check_create_edge_args.
4816
4817 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
4818
4819         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
4820         instead of loop.
4821         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4822         * function.c (record_hard_reg_sets): Likewise.
4823         * ira.c (compute_regs_asm_clobbered): Likewise.
4824         * sched-deps.c (sched_analyze_1): Likewise.
4825         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
4826
4827 2011-04-09  Xinliang David Li  <davidxl@google.com>
4828
4829         PR tree-optimization/PR48484
4830         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
4831         has_valid_pred lazily
4832
4833 2011-04-09  Duncan Sands  <baldrick@free.fr>
4834
4835         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
4836
4837 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4838
4839         * combine.c (combine_validate_cost): Adjust comments.  Set registered
4840         cost of I0 to zero at the end, if any.
4841
4842 2011-04-08  Xinliang David Li  <davidxl@google.com>
4843
4844         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
4845         to insane profile data.
4846
4847 2011-04-08  Xinliang David Li  <davidxl@google.com>
4848
4849         * ipa-cp.c (ipcp_update_profiling): Correct
4850          negative scale factor due to insane profile data.
4851
4852 2011-04-08  Xinliang David Li  <davidxl@google.com>
4853
4854         * final.c (dump_basic_block_info): New function.
4855         (final): Dump basic block.
4856         (final_scan_insn): Remove old dump.
4857
4858 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
4859
4860         PR target/47829
4861         * config.gcc (i386-*-freebsd): Disable unwind table generation for
4862         crtbegin/crtend.
4863
4864 2011-04-08  Michael Matz  <matz@suse.de>
4865
4866         PR middle-end/48389
4867         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
4868         functions.
4869         (rebuild_jump_labels): Call rebuild_jump_labels_1.
4870         * rtl.h (rebuild_jump_labels_chain): Declare.
4871         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
4872         insns inserted on edges.
4873
4874 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
4875
4876         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
4877         * config/arm/arm-arches.def: New.
4878         * config/arm/arm-opts.h: New.
4879         * config/arm/genopt.sh: New.
4880         * config/arm/arm-tables.opt: New (generated).
4881         * config/arm/arm.c (arm_handle_option, arm_target_help,
4882         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
4883         (all_architectures): Get most table contents from arm-arches.def.
4884         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
4885         arm_selected_tune here.
4886         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
4887         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
4888         (march=, mcpu=, mtune=): Use Enum and Var.
4889         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
4890         (arm.o): Update dependencies.
4891
4892 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
4893
4894         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
4895         of header_file.
4896         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
4897         (write_typed_alloc_defns): Likewise.
4898         (main): Calls write_typed_alloc_defns with output_header.
4899
4900 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
4901
4902         PR inline-asm/48435
4903         * ira-color.c (setup_profitable_hard_regs): Add comments.
4904         Don't take prohibited hard regs into account.
4905         (setup_conflict_profitable_regs): Rename to
4906         get_conflict_profitable_regs.
4907         (check_hard_reg_p): Check prohibited hard regs.
4908
4909 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
4910
4911         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
4912         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
4913         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
4914
4915 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4916
4917         PR target/48366
4918         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
4919         move from floating point to shift amount register.
4920         (emit_move_sequence): Remove secondary reload support for floating
4921         point to shift amount amount register copies.
4922         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
4923         amount register copies.
4924         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
4925         register, return false if mode isn't a scalar integer mode.
4926         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
4927
4928 2011-04-08  Richard Guenther  <rguenther@suse.de>
4929
4930         * gimple.c (gimple_call_flags): Remove kludge.
4931
4932 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4933
4934         * sel-sched.c (sel_region_init): Move call to
4935         sel_setup_region_sched_flags after setup_current_loop_nest.
4936
4937 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
4938
4939         PR rtl-optimization/48272
4940         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
4941         init_insn_reg_pressure_info.  Adjust a caller.
4942         * sched-int.h (init_insn_reg_pressure_info): Declare.
4943         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
4944         when sched-pressure is enabled.
4945
4946 2011-04-08  Richard Guenther  <rguenther@suse.de>
4947
4948         * gimple.c (gimple_set_modified): Do not queue calls to
4949         MODIFIED_NORETURN_CALLS here ...
4950         * tree-ssa-operands.c (update_stmt_operands): ... but here.
4951
4952 2011-04-08  Richard Guenther  <rguenther@suse.de>
4953
4954         PR lto/48467
4955         * toplev.c (lang_dependent_init): Do not open asm_out_file
4956         in WPA mode, nor perform debug machinery initialization.
4957         (finalize): Do not unlink asm_out_file in WPA mode.
4958
4959 2011-04-08  Richard Guenther  <rguenther@suse.de>
4960
4961         * gimple.h (gimple_call_fntype): New function.
4962         (gimple_call_return_type): Use it.
4963         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
4964         * gimple-low.c (gimple_check_call_args): Likewise.
4965         * gimple.c (gimple_call_flags): Likewise.
4966         (gimple_call_arg_flags): Likewise.
4967         (gimple_call_return_flags): Likewise.
4968         * tree-cfg.c (verify_gimple_call): Likewise.
4969         (do_warn_unused_result): Likewise.
4970         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
4971         * value-prof.c (gimple_ic_transform): Fix fndecl check.
4972
4973 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
4974
4975         PR rtl-optimization/48235
4976         * sel-sched.c (code_motion_process_successors): Recompute the last
4977         insn in basic block if control flow changed.
4978         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
4979         Update condition for ilist_remove.
4980
4981 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4982
4983         PR rtl-optimization/48302
4984         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
4985         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
4986         it to record added preheader blocks.
4987         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
4988         on to sel_add_loop_preheaders.
4989         (sel_region_init): Move call to setup_current_loop_nest after
4990         sel_init_bbs.
4991
4992 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4993
4994         PR target/48273
4995         * cfgloop.h (loop_has_exit_edges): New helper.
4996         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
4997         non-clonable.
4998         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
4999         that have no exit edges.
5000
5001 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5002
5003         PR rtl-optimization/48442
5004         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
5005         all callers.  Adjust assert.
5006
5007 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
5008
5009         PR tree-optimization/48377
5010         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
5011         is_packed to true even for types with smaller TYPE_ALIGN than
5012         TYPE_SIZE.
5013
5014 2011-04-08  Richard Guenther  <rguenther@suse.de>
5015
5016         PR bootstrap/48513
5017         * doc/tm.texi: Re-generate.
5018
5019 2011-04-08  Wei Guozhi  <carrot@google.com>
5020
5021         PR target/47855
5022         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
5023         * config/arm/arm.c (arm_attr_length_push_multi): New function.
5024         * config/arm/arm.md (*push_multi): Change the length computation to
5025         call a C function.
5026
5027 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
5028
5029         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
5030         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
5031         * doc/tm.texi: Regenerate.
5032         * system.h (ASM_OUTPUT_BSS): Poison.
5033         * varasm.c (asm_output_bss): Remove function.
5034         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
5035
5036         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
5037         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
5038         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
5039         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5040         Likewise.
5041         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5042         Likewise.
5043         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5044         Likewise.
5045         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5046
5047 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
5048
5049         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
5050         EnumValue lines.
5051
5052 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
5053
5054         * config/m68k/m68k.c (m68k_handle_option): Don't handle
5055         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
5056         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
5057         OPT_mcpu32.
5058         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5059         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
5060         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
5061         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
5062         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
5063         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
5064         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5065         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
5066         options.  Don't map other m68k options manually.  Don't handle
5067         old-style options as canonical.
5068         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5069         * doc/install.texi (m68k-*-*): Document binutils version requirement.
5070
5071 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
5072
5073         * basic-block.h (force_nonfallthru): Move to...
5074         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
5075         (force_nonfallthru): ...here.
5076         * cfghooks.c (force_nonfallthru): New function.
5077         * cfgrtl.c (force_nonfallthru): Rename into...
5078         (rtl_force_nonfallthru): ...this.
5079         (commit_one_edge_insertion): Do not set AUX field.
5080         (commit_edge_insertions): Do not discover new basic blocks.
5081         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
5082         (cfg_layout_rtl_cfg_hooks): Likewise.
5083         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
5084         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
5085         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
5086
5087 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
5088
5089         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5090         Remove macros.
5091
5092 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
5093
5094         * config/i386/sse.md: Update copyright year.
5095         (avxcvtvecmode): Remove.
5096         (sse_movhlps): Merge with *avx_movhlps.
5097         (sse_movlhps): Merge with *avx_movlhps.
5098         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
5099         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
5100         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
5101         (sse_loadhps): Merge with *avx_loadhps.
5102         (sse_storelps): Merge with *avx_storelps.
5103         (sse_loadlps): Merge with *avx_loadlps.
5104         (sse_movss): Merge with *avx_movss.
5105         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
5106         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
5107         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
5108         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
5109         (vec_set<mode>_0): Ditto.
5110         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
5111         (sse4_1_insertps): Merge with *avx_insertps.
5112         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
5113         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
5114         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
5115         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
5116         (sse2_storehpd): Merge with *avx_storehpd.
5117         (sse2_loadhpd): Merge with *avx_loadhpd.
5118         (sse2_loadlpd): Merge with *avx_loadlpd.
5119         (sse2_movsd): Merge with *avx_movsd.
5120         (*vec_concatv2df): Merge with *vec_concatv2df.
5121
5122 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
5123
5124         PR debug/48343
5125         * combine.c (combine_instructions): Add last_combined_insn,
5126         update it if insn is after it, pass it to all try_combine calls.
5127         (try_combine): Add last_combined_insn parameter, pass it instead of
5128         i3 to propagate_for_debug.
5129
5130 2011-04-07  Nick Clifton  <nickc@redhat.com>
5131
5132         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
5133         to handle MDR <-> data register transfers.
5134         (movhi_internal): Likewise.
5135
5136 2011-04-07  Alan Modra  <amodra@gmail.com>
5137
5138         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
5139         previous stack info.
5140
5141 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5142
5143         PR target/43920
5144         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
5145         flow_find_cross_jump.  Swap variables to implement backward replacement.
5146         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
5147
5148 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5149
5150         PR target/43920
5151         * cfgcleanup.c (walk_to_nondebug_insn): New function.
5152         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
5153         and bb2.
5154         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
5155         src1 or src2.  Redirect edges to the last basic block.  Update
5156         frequency and count on multiple basic blocks in case of fallthru.
5157
5158 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5159
5160         PR target/43920
5161         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
5162         function.
5163         (old_insns_match_p): Change return type.  Replace return false/true
5164         with return dir_none/dir_both.  Use can_replace_by.
5165         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
5166         direction from dir_p.  Register replacement direction in dir, last_dir
5167         and afterlast_dir.  Handle new return type of old_insns_match_p using
5168         merge_dir.  Return replacement direction in dir_p.
5169         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
5170         return type of old_insns_match_p.
5171         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
5172         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
5173         flow_find_cross_jump.
5174         * basic-block.h (enum replace_direction): New type.
5175         (flow_find_cross_jump): Add parameter to declaration.
5176
5177 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
5178
5179         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
5180         (AVXMODEDCVTPS2DQ): Ditto.
5181         (VEC_FLOAT_MODE): Ditto.
5182         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
5183         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5184         (<any_logic:code><mode>3): Use VF mode iterator.
5185         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
5186         Use VF mode iterator.
5187         (copysign<mode>3): Use VF mode iterator.
5188         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
5189         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5190         (*<any_logic:code><MODEF:mode>3): Merge with
5191         *avx_<any_logic:code><MODEF:mode>3.
5192         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
5193         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
5194         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
5195         (avx_cvtdq2ps<avxmodesuffix>): Remove.
5196         (sse2_cvtdq2ps): Use %v modifier.
5197         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
5198         (avx_cvtps2dq<avxmodesuffix>): Remove.
5199         (sse2_cvtps2dq): Use %v modifier.
5200         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
5201         (avx_cvttps2dq<avxmodesuffix>): Remove.
5202         (sse2_cvttps2dq): Use %v modifier.
5203         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
5204         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
5205         (sse2_cvtsd2siq): Fix insn template.
5206         (sse2_cvtsd2siq_2): Ditto.
5207         (sse2_cvttsd2siq): Ditto.
5208         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
5209         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
5210
5211 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
5212
5213         * gcov-io.c: Use GCC Runtime Library Exception.
5214
5215 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
5216
5217         PR debug/48466
5218         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
5219         as base_reg whatever register reg has been eliminated to, instead
5220         of hardcoding STACK_POINTER_REGNUM.
5221
5222 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
5223
5224         * doc/tm.texi.in: Document C target hooks as separate from general
5225         target hooks.
5226         * doc/tm.texi: Regenerate.
5227         * genhooks.c (struct hook_desc): Add docname field.
5228         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
5229         docname field.
5230         (hook_array): Include c-target.def.
5231         (emit_documentation): Use docname field in output.
5232         (emit_init_macros): Take docname argument.  Only emit definitions
5233         for hooks matching docname.
5234         (main): Expect additional arguments in all cases.  Pass argument
5235         to emit_init_macros.
5236         * target.def: Move initial macro definitions and comments to
5237         target-hooks-macros.h.
5238         (gcc_targetcm): Move to c-family/c-target.def.
5239         * target.h (targetcm): Move declaration to c-family/c-target.h.
5240         * targhooks.c (default_handle_c_option): Move to
5241         c-family/c-opts.c.
5242         * targhooks.h (default_handle_c_option): Move declaration to
5243         c-family/c-common.h.
5244         * target-hooks-macros.h: New file.
5245         * config.gcc (target_has_targetcm): Define and use to add to
5246         c_target_objs and cxx_target_objs.
5247         * config/default-c.c: New file.
5248         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
5249         of target.h and target-def.h.
5250         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
5251         (darwin_objc_construct_string, darwin_cfstring_ref_p,
5252         darwin_check_cfstring_format_arg): Make static.
5253         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5254         TARGET_STRING_OBJECT_REF_TYPE_P,
5255         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
5256         * config/darwin-protos.h (darwin_objc_construct_string,
5257         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
5258         declare.
5259         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5260         TARGET_STRING_OBJECT_REF_TYPE_P,
5261         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
5262         * config/t-darwin (darwin-c.o): Update dependencies.
5263         * system.h (TARGET_HAS_TARGETCM): Poison.
5264         * Makefile.in (TARGET_H): Update.
5265         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
5266         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
5267         (default-c.o): New target.
5268         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
5269         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
5270         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
5271         c-target.def.
5272         (build/genhooks.o): Update dependencies.
5273
5274 2011-04-06  Richard Guenther  <rguenther@suse.de>
5275
5276         * ipa-inline.c (enum inlining_mode): Remove.
5277         (cgraph_flatten): Use some other token.
5278         (cgraph_edge_early_inlinable_p): New function, split out from ...
5279         (cgraph_perform_always_inlining): New function, split out from ...
5280         (cgraph_decide_inlining_incrementally): ... here.
5281         (cgraph_mark_inline_edge): Adjust.
5282         (cgraph_early_inlining): Re-structure.
5283         (pass_early_inline): Require SSA form.
5284
5285 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
5286             Julian Brown  <julian@codesourcery.com>
5287             Mark Shinwell  <shinwell@codesourcery.com>
5288
5289         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
5290         LO_REGS only for Thumb-1.
5291         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
5292         be used in short instructions when optimising for size on Thumb-2.
5293
5294 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5295
5296         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
5297         associated with user returns to be preserved.
5298
5299 2011-04-06  Tristan Gingold  <gingold@adacore.com>
5300
5301         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
5302         symbol_queue_size, DBXOUT_DECR_NESTING,
5303         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
5304         if XCOFF_DEBUGGING_INFO.
5305
5306 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
5307
5308         * config/i386/i386.md (attribute isa): New.
5309         (attribute enabled): New.
5310         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
5311         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
5312         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
5313         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
5314         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
5315         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5316         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
5317         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
5318
5319         * config/i386/sse.md (VF): New mode iterator.
5320         (VF1): Ditto.
5321         (VF2): Ditto.
5322         (VF_128): Ditto.
5323         (SSEMODEF4): Remove.
5324         (attribute sse): Handle V8SF and V4DF modes.
5325         (<absneg:code><mode>2): Use VF mode iterator.
5326         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
5327         mode iterator.
5328         (<plusminus_insn><mode>3): Use VF mode iterator.
5329         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5330         Use VF mode iterator.
5331         (<sse>_vm<plusminus_insn><mode>3): Merge with
5332         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
5333         (mul<mode>3): Use VF mode iterator.
5334         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
5335         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
5336         mode iterator.
5337         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
5338         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
5339         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
5340         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
5341         mode iterator.
5342         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
5343         Use VF1 mode iterator.
5344         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
5345         (sqrt<VF2:mode>2): New expander.
5346         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
5347         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
5348         and sqrtv2df2.  Use VF mode iterator.
5349         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
5350         mode iterator.
5351         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
5352         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
5353         Use VF1 mode iterator.
5354         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
5355         (<smaxmin:code><mode>3): Use VF mode iterator.
5356         (*<smaxmin:code><mode>3_finite): Merge with
5357         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
5358         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5359         (<sse>_vm<smaxmin:code><mode>2): Merge with
5360         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
5361         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
5362         mode iterator.
5363         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
5364         mode iterator.
5365         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
5366         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
5367         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
5368         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
5369         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
5370         VF mode iterator.
5371         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
5372         Use VF_128 mode iterator.
5373         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
5374         mode iterator.
5375         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
5376         VF_128 mode iterator.
5377         (vcond<mode>): Use VF mode iterator.
5378         * config/i386/predicates.md (sse_comparison_operator): Merge with
5379         avx_comparison_float_operator.  Do not declare as special_predicate.
5380         * config/i386/i386.c (struct builtin_description): Update for renamed
5381         compare patterns.
5382         (ix86_expand_args_builtin): Ditto.
5383         (ix86_expand_sse_compare_mask): Ditto.
5384
5385 2011-04-06  Richard Guenther  <rguenther@suse.de>
5386
5387         * tree-inline.c (estimate_num_insns): For calls simply account
5388         for all passed arguments and a used return value.
5389
5390 2011-04-06  Richard Guenther  <rguenther@suse.de>
5391
5392         PR tree-optimization/47663
5393         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
5394         call_stmt_time fields.
5395         (cgraph_edge_inlinable_p): Declare.
5396         (cgraph_edge_recursive_p): New inline function.
5397         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
5398         (cgraph_clone_edge): Copy it.
5399         * ipa-inline.c (cgraph_estimate_edge_time): New function.
5400         Account for call stmt time.
5401         (cgraph_estimate_time_after_inlining): Take edge argument.
5402         (cgraph_estimate_edge_growth): Account call stmt size.
5403         (cgraph_estimate_size_after_inlining): Take edge argument.
5404         (cgraph_mark_inline_edge): Adjust.
5405         (cgraph_check_inline_limits): Likewise.
5406         (cgraph_recursive_inlining_p): Remove.
5407         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
5408         (cgraph_decide_recursive_inlining): Take edge argument and
5409         adjust.
5410         (cgraph_decide_inlining_of_small_functions): Do not avoid
5411         diags for recursive inlining here.
5412         (cgraph_flatten): Adjust.
5413         (cgraph_decide_inlining_incrementally): Likewise.
5414         (estimate_function_body_sizes): Remove call cost handling.
5415         (compute_inline_parameters): Initialize caller edge call costs.
5416         (cgraph_estimate_edge_growth): New function.
5417         (cgraph_estimate_growth): Use it.
5418         (cgraph_edge_badness): Likewise.
5419         (cgraph_check_inline_limits): Take an edge argument.
5420         (cgraph_decide_inlining_of_small_functions): Adjust.
5421         (cgraph_decide_inlining): Likewise.
5422         * tree-inline.c (estimate_num_insns): Only account for call
5423         return value if it is used.
5424         (expand_call_inline): Avoid diagnostics on recursive inline
5425         functions here.
5426         * lto-cgraph.c (lto_output_edge): Output edge call costs.
5427         (input_edge): Input edge call costs.
5428
5429 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5430
5431         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
5432
5433 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
5434
5435         * doc/invoke.texi (Spec Files): Fix typo.
5436
5437 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5438
5439         * profile.c (branch_prob): Move declaration of local variable.  Remove
5440         obsolete ??? comment.  Expand the location explicitly instead of using
5441         the LOCATION_FILE and LOCATION_LINE macros.
5442
5443 2011-04-06  Wei Guozhi  <carrot@google.com>
5444
5445         PR target/47855
5446         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
5447         (arm_cond_branch): Likewise.
5448         (arm_cond_branch_reversed): Likewise.
5449         (arm_jump): Likewise.
5450         (push_multi): Likewise.
5451         * config/arm/constraints.md (Py): New constraint.
5452
5453 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5454
5455         PR bootstrap/48471
5456         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
5457         Move these...
5458         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
5459         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
5460         #ifdef DBX_DEBUGGING_INFO.
5461
5462 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
5463
5464         PR bootstrap/48403
5465         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
5466         if old and new states differ.
5467
5468 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
5469
5470         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
5471         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
5472         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5473         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
5474         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
5475         mcfv4e): Use Alias.
5476         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
5477         ColdFire options to -mcpu= options.
5478
5479 2011-04-05  Jeff Law  <law@redhat.com>
5480
5481         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
5482         check if BB is a successor of LOOP->header and return
5483         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
5484
5485 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
5486
5487         * cprop.c (struct reg_use): Remove.
5488         (reg_use_table): Make an array of RTX.
5489         (find_used_regs, constprop_register, local_cprop_pass,
5490         bypass_block): Simplify users of reg_use_table.
5491         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
5492         on one of the uses found by find_used_regs.
5493
5494 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5495
5496         PR bootstrap/48469
5497         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
5498         declaration.
5499
5500 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5501
5502         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
5503         as an rtx.
5504         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
5505
5506 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
5507
5508         PR middle-end/48441
5509         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
5510
5511 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5512
5513         * combine.c: Include obstack.h.
5514         (struct insn_link): Define.
5515         (uid_log_links): Adjust type.
5516         (FOR_EACH_LOG_LINK): New macro.
5517         (insn_link_obstack): Declare.
5518         (alloc_insn_link): Define.
5519         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
5520         type of link variables.
5521         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
5522         (try_combine, record_promoted_values, distribute_notes): Likewise.
5523         (distribute_links): Likewise.  Tweak prototype.
5524         (clear_log_links): Delete.
5525         (adjust_for_new_dest): Call alloc_insn_link.
5526         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
5527
5528 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5529
5530         * gcse.c (modify_mem_list): Convert to an array of VECs.
5531         (canon_modify_mem_list, compute_transp): Tweak formatting.
5532         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
5533         (load_killed_in_block_p): Likewise.
5534         (record_last_mem_set_info): Likewise.
5535         (clear_modify_mem_tables): Likewise.
5536
5537 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5538
5539         PR middle-end/48461
5540         * function.c (emit_use_return_register_into_block): Only define if
5541         HAVE_return.
5542
5543 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
5544
5545         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
5546
5547 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
5548
5549         * config/rx/rx-opts.h: New.
5550         * config/rx/rx.c (rx_cpu_type): Remove.
5551         (rx_handle_option): Don't assert that global structures are in
5552         use.  Access variables via opts pointer.  Defer most handling of
5553         OPT_mint_register_.  Use error_at.
5554         (rx_option_override): Handle deferred OPT_mint_register_ here.
5555         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
5556         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
5557         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
5558         (rx_cpu_types): New Enum and EnumValue entries.
5559         (mint-register=): Use Defer and use Var accordingly.
5560
5561 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5562
5563         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
5564         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
5565         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
5566         Move these...
5567         (debug_free_queue, debug_nesting, symbol_queue_index):
5568         ...and these...
5569         * dbxout.c: ...to here.  Make static.
5570
5571 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5572
5573         * gcse.c (modify_pair): Define.  Define a VEC of it.
5574         (canon_modify_mem_list): Convert to an array of VECs.
5575         (free_insn_expr_list_list): Delete.
5576         (clear_modify_mem_tables): Call VEC_free instead.
5577         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
5578         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
5579         (canon_list_insert, compute_transp): Likewise.
5580
5581 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5582
5583         PR target/43920
5584         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
5585         for size.
5586
5587 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5588
5589         PR target/43920
5590         * function.c (emit_use_return_register_into_block): New function.
5591         (thread_prologue_and_epilogue_insns): Use
5592         emit_use_return_register_into_block.
5593
5594 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5595
5596         PR target/43920
5597         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
5598         insn.
5599
5600 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5601
5602         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
5603
5604 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
5605
5606         * config/arm/arm.md (define_constants for unspec): Replace with
5607         define_c_enum.
5608         (define_constants for unspecv): Replace with define_c_enum.
5609         * config/arm/neon.md (define_constants for unspec): Replace with
5610         define_c_enum.
5611
5612 2011-04-04  Richard Henderson  <rth@redhat.com>
5613
5614         PR bootstrap/48400
5615         * dwarf2out.c (output_line_info): Always emit line info from
5616         at least one section.
5617         (dwarf2out_init): Create text_section_line_info here ...
5618         (set_cur_line_info_table): ... not here.
5619
5620 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
5621
5622         PR target/48380
5623         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
5624         not called.
5625
5626         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
5627
5628 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
5629
5630         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
5631         (expr_equiv_p): Remove.
5632         (insert_set_in_table): Look at <dest, src> pair instead of expr.
5633         (hash_scan_set): Update call to insert_set_in_table.
5634         (dump_hash_table): Dump <dest, src> pair.
5635         (lookup_set): Simplify.  Lookup <dest, src> pair.
5636         (compute_transp): Remove, fold heavily simplified code into...
5637         (compute_local_properties): ...here.  Expect COMP and TRANSP
5638         unconditionally.
5639         (find_avail_set): Take set directly from struct expr.
5640         (find_bypass-set): Likewise.
5641         (bypass_block): Likewise.
5642         (cprop_insn): Likewise.  Remove redundant INSN_P test.
5643
5644         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
5645         checks on form of COND from find_implicit_sets to here.
5646         (find_implicit_sets): Cleanup control flow. Split critical edges
5647         if it exposes implicit sets.  Allocate/resize implicit_sets as
5648         necessary.
5649         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
5650         changed something.  Run df_analyze after find_implicit_sets if any
5651         edges were split.  Do not allocate implicit_sets here.
5652
5653         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
5654         (gcse_obstack): Renamed to cprop_obstack.
5655         (GNEW, GNEWVEC, GNEWVAR): Remove.
5656         (gmalloc): Remove.
5657         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
5658         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
5659         (gcse_alloc): Likewise, and rename to cprop_alloc.
5660         (alloc_gcse_men, free_gcse_mem): Remove.
5661         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
5662         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
5663         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
5664
5665         * cprop.c (oprs_not_set_p): Remove.
5666         (mark_set, mark_clobber): Remove.
5667         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
5668         (reg_not_set_p): New function.
5669         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
5670         (cprop_insn): Likewise.
5671         (cprop_jump): Use FOR_EACH_EDGE.
5672
5673 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
5674
5675         PR bootstrap/48403
5676         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
5677         (rank_for_schedule): Use scheduled_insns vector instead of
5678         last_scheduled_insn.
5679         (ok_for_early_queue_removal): Likewise.
5680         (queue_to_ready): Search forward in nonscheduled_insns_begin if
5681         we have a dbg_cnt.
5682         (choose_ready): Likewise.
5683         (commit_schedule): Use VEC_iterate.
5684         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
5685         a dbg_cnt, use it and ensure the first insn is in the ready list.
5686         (haifa_sched_init): Allocate scheduled_insns.
5687         (sched_extend_ready_list): Don't allocate it; reserve space.
5688         (haifa_sched_finish): Free it.
5689
5690 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
5691
5692         * optc-gen.awk: Always remove type from Variable entry before
5693         recording in var_seen.
5694
5695 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
5696
5697         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
5698         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5699         call to tidy_fallthru_edges.
5700
5701 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
5702
5703         * doc/options.texi (ToLower): Document.
5704         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
5705         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5706         * opts.h (cl_option): Add cl_tolower field.
5707         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5708         arguments with lowercase strings.
5709         * config/rx/rx.opt (mcpu=): Add ToLower.
5710         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5711         argument.
5712
5713 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
5714
5715         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5716
5717 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
5718
5719         * config/vax/vax.c: Include reload.h.
5720
5721 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
5722
5723         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5724         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5725         (sparc_preferred_reload_class): New function.
5726
5727 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
5728
5729         PR debug/48401
5730         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5731         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5732
5733 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
5734
5735         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5736         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5737
5738 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
5739
5740         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5741         (ASM_OUTPUT_ALIGNED_BSS): Define.
5742
5743 2011-04-03  Michael Matz  <matz@suse.de>
5744
5745         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5746         and next_slot members.
5747         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5748         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5749         (lto_streamer_cache_append): Declare.
5750         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5751         unsigned index, remove offset parameter, ensure that we append
5752         or update existing entries.
5753         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5754         parameter, update next_slot for append.
5755         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5756         parameter.
5757         (lto_streamer_cache_insert_at): Likewise.
5758         (lto_streamer_cache_append): New function.
5759         (lto_streamer_cache_lookup): Use unsigned index.
5760         (lto_streamer_cache_get): Likewise.
5761         (lto_record_common_node): Don't test tree_node_can_be_shared.
5762         (preload_common_node): Adjust call to lto_streamer_cache_insert.
5763         (lto_streamer_cache_delete): Don't free offsets member.
5764         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5765         (lto_output_string_with_length): Use lto_output_data_stream.
5766         (lto_output_tree_header): Remove ix parameter, don't write it.
5767         (lto_output_builtin_tree): Likewise.
5768         (lto_write_tree): Adjust callers to above, don't track and write
5769         offset, write unsigned index.
5770         (output_unreferenced_globals): Don't emit all global vars.
5771         (write_global_references): Use unsigned indices.
5772         (lto_output_decl_state_refs): Likewise.
5773         (write_symbol): Likewise.
5774         * lto-streamer-in.c (lto_input_chain): Move earlier.
5775         (input_function): Use unsigned index.
5776         (input_alias_pairs): Don't read and then ignore all global vars.
5777         (lto_materialize_tree): Remove ix_p parameter, don't read index,
5778         don't pass it back, use lto_streamer_cache_append.
5779         (lto_register_var_decl_in_symtab): Use unsigned index.
5780         (lto_register_function_decl_in_symtab): Likewise.
5781         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
5782         index.
5783         (lto_get_builtin_tree): Don't read index, use
5784         lto_streamer_cache_append.
5785         (lto_read_tree): Adjust call to lto_materialize_tree.
5786
5787         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
5788         don't use function calls in arguments to MIN.
5789
5790         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
5791         twice.
5792
5793         * gimple.c (gimple_type_leader_entry): Mark deletable.
5794
5795 2011-04-03  Alan Modra  <amodra@gmail.com>
5796
5797         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
5798
5799 2011-04-03  Michael Matz  <matz@suse.de>
5800
5801         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
5802         an integer.
5803         * tree.h (tree_decl_non_common.vindex): Adjust comment.
5804
5805 2011-04-03  Michael Matz  <matz@suse.de>
5806
5807         * cgraphbuild.c (record_reference): Canonicalize constructor values.
5808         * gimple-fold.c (canonicalize_constructor_val): Accept being called
5809         without function context.
5810         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
5811         current_function_decl and cfun.
5812
5813 2011-04-03  Michael Matz  <matz@suse.de>
5814
5815         * tree.c (decl_init_priority_insert): Don't create entry for
5816         default priority.
5817         (decl_fini_priority_insert): Ditto.
5818         (fields_compatible_p, find_compatible_field): Remove.
5819         * tree.h (fields_compatible_p, find_compatible_field): Remove.
5820         * gimple.c (gimple_compare_field_offset): Adjust block comment.
5821
5822 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
5823
5824         * combine.c (try_combine): Remove useless local variable.
5825
5826 2011-04-03  Richard Guenther  <rguenther@suse.de>
5827             Ira Rosen  <ira.rosen@linaro.org>
5828
5829         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
5830         non-variable offsets and compare the remaining bases of the two
5831         accesses instead of looking for exact same data-ref.
5832
5833 2011-04-02  Kai Tietz  <ktietz@redhat.com>
5834
5835         PR target/48416
5836         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
5837
5838         * i386.c (ix86_is_msabi_thiscall): New helper function.
5839         (ix86_is_type_thiscall): New helper function.
5840         (ix86_comp_type_attributes): Handle thiscall for method-functions
5841         special.
5842         (init_cumulative_args): Likewise.
5843         (find_drap_reg): Likewise.
5844         (ix86_static_chain): Likewise.
5845         (x86_this_parameter): Likewise.
5846         (x86_output_mi_thunk): Likewise.
5847
5848 2011-04-01  Olivier Hainque  <hainque@adacore.com>
5849             Nicolas Setton  <setton@adacore.com>
5850             Eric Botcazou  <ebotcazou@adacore.com>
5851
5852         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
5853         (add_gnat_descriptive_type_attribute): New function.
5854         (gen_array_type_die): Call it.
5855         (gen_enumeration_type_die): Likewise.
5856         (gen_struct_or_union_type_die): Likewise.
5857         (modified_type_die): Likewise.
5858         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
5859         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
5860         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
5861
5862 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
5863
5864         PR bootstrap/48148
5865         * dwarf2out.c (resolve_addr): Don't call force_decl_die
5866         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
5867
5868         Revert:
5869         2011-03-17  Richard Guenther  <rguenther@suse.de>
5870
5871         PR bootstrap/48148
5872         * lto-cgraph.c (input_overwrite_node): Clear the abstract
5873         origin for decls in other ltrans units.
5874         (input_varpool_node): Likewise.
5875
5876 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
5877
5878         PR middle-end/48335
5879         * expr.c (expand_assignment): Handle all possibilities
5880         if TO_RTX is CONCAT.
5881         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
5882         (store_split_bit_field): If SUBREG_REG (op0) or
5883         op0 itself has smaller mode than word, return it
5884         for offset 0 and const0_rtx for out-of-bounds stores.
5885         If word is const0_rtx, skip it.
5886
5887 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
5888
5889         * config/h8300/h8300.c (print_operand_address): Rename to...
5890         (h8300_print_operand_address): ...this. Make static. Adjust comments.
5891         Call h8300_print_operand and h8300_print_operand_address instead of
5892         print_operand and print_operand_address. Declare.
5893         (print_operand): Renake to...
5894         (h8300_print_operand): ...this. Make static. Adjust comments.
5895         Call h8300_print_operand instead of print_operand. Declare.
5896         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
5897         (h8300_register_move_cost): Likewise.
5898         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
5899         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
5900         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
5901         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
5902         * config/h8300/h8300-protos.h (print_operand): Delete.
5903         (print_operand_address): Delete.
5904
5905 2011-04-01  Richard Henderson  <rth@redhat.com>
5906
5907         PR 48400
5908         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
5909         in strict mode before dwarf4.  Re-order tests to early out
5910         before switching sections.
5911
5912 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
5913
5914         * config/h8300/constraints.md: New file.
5915         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
5916         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
5917         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
5918         * config/h8300/predicates.md (bit_operand): Likewise.
5919         (incdec_operand): Use satisfies_constraint_M and
5920         satisfies_constraint_O.  Don't use C code block.
5921         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
5922         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
5923         (compute_mov_length): Use satisfies_constraint_G.
5924         (fix_bit_operand): Use satisfies_constraint_U.
5925         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
5926         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
5927         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
5928         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
5929         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
5930         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
5931         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5932         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
5933         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
5934         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
5935         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
5936         (EXTRA_MEMORY_CONSTRAINT): Delete.
5937
5938 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
5939             Michael Meissner  <meissner@linux.vnet.ibm.com>
5940
5941         PR target/48262
5942         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
5943         operands, as per the specifications.
5944
5945         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
5946         (vec_extract_evenv4sf): Ditto.
5947         (vec_extract_evenv8hi): Ditto.
5948         (vec_extract_evenv16qi): Ditto.
5949         (vec_extract_oddv4si): Ditto.
5950
5951 2011-03-31  Mark Wielaard  <mjw@redhat.com>
5952
5953         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
5954         high_pc attribute if the CU has no associated code. Only output
5955         DW_AT_entry_pc for CU if not generating strict dwarf and
5956         dwarf_version < 4.
5957
5958 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
5959
5960         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
5961         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
5962         out of ...
5963         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
5964         * final.c (final_start_function): Call the new function rather
5965         than using a NULL argument for dwarf2out_frame_debug.
5966
5967         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
5968         that contains the prologue.
5969
5970         * haifa-sched.c (queue_insn): New arg REASON.  All callers
5971         changed.  Print it in debugging output.
5972
5973         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
5974
5975         * sched-ebb.c (begin_schedule_ready): Remove second argument.
5976         Split most of the code into...
5977         (begin_move_insn): ... here.  New function.
5978         (ebb_sched_info): Add a pointer to it.
5979         * haifa-sched.c (scheduled_insns): New static variable.
5980         (sched_extend_ready_list): Allocate it.
5981         (schedule_block): Use it to record the order of scheduled insns.
5982         Perform RTL changes to move insns only after all scheduling
5983         decisions have been made.
5984         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
5985         begin_move_insn field.
5986         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
5987         * sched-int.h (struct haifa_sched_info): Remove second argument
5988         from begin_schedule_ready hook.  Add new member begin_move_insn.
5989         * sched-rgn.c (begin_schedule_ready): Remove second argument.
5990         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
5991
5992         * haifa-sched.c (prune_ready_list): New function, broken out of
5993         schedule_block.
5994         (schedule_block): Use it.
5995
5996 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5997
5998         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
5999
6000 2011-04-01  Kai Tietz  <ktietz@redhat.com>
6001
6002         * config.gcc (*-*-mingw*): Allow as option the
6003         posix threading model.
6004         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
6005         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
6006         definition.
6007         (CPP_SPEC): Add pthread/no-pthread handling.
6008         (LIB_SPEC): Likewise.
6009         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
6010         (LIB_SPEC): Likewise.
6011         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
6012         flag to pass -pthread option for shared libgcc build.
6013         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
6014         for shared libgcc build.
6015         * config/i386/t-mingw-pthread: New file.
6016         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
6017         New define to enable use of library pthread by default.
6018         * config/i386/mingw.opt (pthread): New driver option.
6019         (no-pthread): New driver option.
6020         * config/i386/cygming.opt: Make sure trailing empty line is retained.
6021         * config/i386/mingw-w64.opt: Likewise.
6022
6023 2011-04-01  Gary Funck <gary@intrepid.com>
6024
6025         * c-decl.c (grokdeclarator): Fix formatting.
6026
6027 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6028
6029         * expr.c (emit_block_move_via_movmem): Use n_generator_args
6030         instead of n_operands.
6031         (set_storage_via_setmem): Likewise.
6032         * optabs.c (maybe_gen_insn): Likewise.
6033         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
6034         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
6035         (mips_expand_builtin_direct): Likewise.
6036         * config/spu/spu.c (expand_builtin_args): Likewise.
6037
6038 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6039
6040         * recog.h (insn_data_d): Add n_generator_args.
6041         * genoutput.c (data): Likewise.
6042         (output_insn_data): Print it.
6043         (max_opno, num_dups): Delete.
6044         (scan_operands): Just fill in "d->operand[...]".
6045         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
6046
6047 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6048
6049         * gensupport.h (pattern_stats): New structure.
6050         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
6051         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
6052         (max_operand_1, max_operand_vec): Delete.
6053         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
6054
6055 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
6056
6057         * emit-rtl.c (emit_pattern_after_setloc): New function.
6058         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
6059         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
6060         (emit_pattern_after): New function.
6061         (emit_insn_after, emit_jump_insn_after): Call it.
6062         (emit_call_insn_after, emit_debug_insn_after): Likewise.
6063         (emit_pattern_before_setloc): New function.
6064         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
6065         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
6066         Likewise.
6067         (emit_pattern_before): New function.
6068         (emit_insn_before, emit_jump_insn_before): Call it.
6069         (emit_call_insn_before, emit_debug_insn_before): Likewise.
6070
6071 2011-03-31  Richard Henderson  <rth@redhat.com>
6072
6073         * dwarf2out.c (dw_separate_line_info_ref): Remove.
6074         (dw_separate_line_info_entry): Remove.
6075         (enum dw_line_info_opcode): New.
6076         (dw_line_info_entry): Use it.
6077         (dw_line_info_table, dw_line_info_table_p): New.
6078         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
6079         (line_info_table, line_info_label_num): Remove.
6080         (line_info_table_in_use): Remove.
6081         (separate_line_info_table): Remove.
6082         (separate_line_info_table_allocated): Remove.
6083         (separate_line_info_table_in_use): Remove.
6084         (LINE_INFO_TABLE_INCREMENT): Remove.
6085         (line_info_label_num): New.
6086         (cur_line_info_table): New.
6087         (text_section_line_info, cold_text_section_line_info): New.
6088         (separate_line_info): New.
6089         (SEPARATE_LINE_CODE_LABEL): Remove.
6090         (print_dwarf_line_table): Remove.
6091         (debug_dwarf): Don't dump it.
6092         (output_one_line_info_table): New.
6093         (output_line_info): Use it.
6094         (new_line_info_table): New.
6095         (set_cur_line_info_table): New.
6096         (dwarf2out_switch_text_section): Use it.
6097         (dwarf2out_begin_function): Likewise.
6098         (push_dw_line_info_entry): New.
6099         (dwarf2out_source_line): Rewrite for new line info tables.
6100         (dwarf2out_init): Remove dead initailizations.
6101
6102 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
6103
6104         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
6105         various flags.
6106         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
6107         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
6108         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
6109         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
6110         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
6111         * opt-functions.awk (flag_init, switch_bit_fields): New.
6112         (switch_flags): Don't handle flags moved to bit-fields.  Don't
6113         generate CL_MISSING_OK or CL_SAVE.
6114         * optc-gen.awk: Update to generate bit-field output as well as
6115         flags field.
6116         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
6117         bit-field instead of CL_REJECT_DRIVER flag.
6118         * opts-common.c (generate_canonical_option,
6119         decode_cmdline_option): Use bit-fields instead of CL_* flags.
6120         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
6121         instead of CL_REJECT_NEGATIVE flag.
6122         * toplev.c (print_switch_values): Use cl_report bit-field instead
6123         of CL_REPORT flag.
6124
6125 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6126
6127         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
6128         a zero minimum index only if it is redundant.
6129
6130 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
6131
6132         PR rtl-optimization/48381
6133         * ira-color.c (assign_hard_reg): Use hard reg set intersection
6134         instead of ira_class_hard_reg_index for calculating conflicting
6135         hard registers.
6136
6137 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
6138
6139         * cprop.c: Clean up hash table building.
6140         (reg_avail_info): Remove.
6141         (oprs_available_p): Remove.
6142         (record_last_reg_set_info): Remove.
6143         (record_last_set_info): Remove.
6144         (reg_available_p): New function.
6145         (gcse_constant_p): Do not treat unfolded conditions as constants.
6146         (make_set_regs_unavailable): New function.
6147         (hash_scan_set): Simplify with new reg_available_p.
6148         (compute_hash_table_work): Traverse insns stream only once.
6149         Do not compute reg_avail_info. Traverse insns in reverse order.
6150         Record implicit sets after recording explicit sets from the block.
6151
6152 2011-03-31  Michael Matz  <matz@suse.de>
6153
6154         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
6155
6156 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
6157
6158         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
6159         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
6160         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6161         (h8300_mode_dependent_address_p): New function.
6162         (h8300_get_index): Make static.
6163
6164 2011-03-31  Jeff Law  <law@redhat.com>
6165
6166         * reload1.c (elimination_effects): Fix typo in recent change.
6167
6168         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
6169         typo potentially leading to null pointer dereference.
6170
6171         * caller-save.c (new_saved_hard_reg): Eliminate return value.
6172         (setup_save_areas): Corresponding changes to avoid useless
6173         assignments.
6174
6175         * jump.c (reversed_comparison_code_parts): Avoid successive return
6176         statements when REVERSE_CONDITION is defined.
6177
6178         * expr.c (expand_assignment): Avoid useless assignments.
6179         (expand_expr_real_1): Likewise.
6180         (expand_expr_real_2): Avoid useless statements.
6181
6182         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
6183
6184         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6185
6186         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
6187         statements.
6188
6189         * stmt.c (expand_expr_stmt): Avoid useless assignment.
6190
6191 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
6192
6193         PR target/47109
6194         * doc/tm.texi.in (TARGET_VERSION): Remove.
6195         * doc/tm.texi: Regenerate.
6196         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
6197         * collect2.c (main): Don't use TARGET_VERSION.
6198         * mips-tdump.c (main): Don't use TARGET_VERSION.
6199         * mips-tfile.c (main): Don't use TARGET_VERSION.
6200         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
6201         * config/rs6000/vxworksae.h: Remove.
6202         * config/alpha/alpha.h (TARGET_VERSION): Remove.
6203         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
6204         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
6205         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
6206         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6207         * config/arm/arm.h (TARGET_VERSION): Remove.
6208         * config/arm/coff.h (TARGET_VERSION): Remove.
6209         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
6210         * config/arm/elf.h (TARGET_VERSION): Remove.
6211         * config/arm/freebsd.h (TARGET_VERSION): Remove.
6212         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
6213         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
6214         * config/arm/pe.h (TARGET_VERSION): Remove.
6215         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
6216         * config/arm/semi.h (TARGET_VERSION): Remove.
6217         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
6218         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
6219         * config/arm/vxworks.h (TARGET_VERSION): Remove.
6220         * config/avr/avr.h (TARGET_VERSION): Remove.
6221         * config/bfin/bfin.h (TARGET_VERSION): Remove.
6222         * config/fr30/fr30.h (TARGET_VERSION): Remove.
6223         * config/frv/frv.h (TARGET_VERSION): Remove.
6224         * config/h8300/h8300.h (TARGET_VERSION): Remove.
6225         * config/i386/cygwin.h (TARGET_VERSION): Remove.
6226         * config/i386/darwin.h (TARGET_VERSION): Remove.
6227         * config/i386/darwin64.h (TARGET_VERSION): Remove.
6228         * config/i386/djgpp.h (TARGET_VERSION): Remove.
6229         * config/i386/freebsd.h (TARGET_VERSION): Remove.
6230         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
6231         * config/i386/gnu.h (TARGET_VERSION): Remove.
6232         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
6233         * config/i386/i386elf.h (TARGET_VERSION): Remove.
6234         * config/i386/linux.h (TARGET_VERSION): Remove.
6235         * config/i386/linux64.h (TARGET_VERSION): Remove.
6236         * config/i386/lynx.h (TARGET_VERSION): Remove.
6237         * config/i386/mingw32.h (TARGET_VERSION): Remove.
6238         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
6239         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
6240         * config/i386/netware.h (TARGET_VERSION): Remove.
6241         * config/i386/nto.h (TARGET_VERSION): Remove.
6242         * config/i386/openbsd.h (TARGET_VERSION): Remove.
6243         * config/i386/vxworks.h (TARGET_VERSION): Remove.
6244         * config/ia64/elf.h (TARGET_VERSION): Remove.
6245         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
6246         * config/ia64/hpux.h (TARGET_VERSION): Remove.
6247         * config/ia64/linux.h (TARGET_VERSION): Remove.
6248         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6249         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
6250         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6251         * config/lm32/lm32.h (TARGET_VERSION): Remove.
6252         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
6253         * config/m32c/m32c.h (TARGET_VERSION): Remove.
6254         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
6255         * config/m32r/m32r.h (TARGET_VERSION): Remove.
6256         * config/m68k/linux.h (TARGET_VERSION): Remove.
6257         * config/m68k/m68k.h (TARGET_VERSION): Remove.
6258         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
6259         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
6260         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
6261         * config/mep/mep.h (TARGET_VERSION): Remove.
6262         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
6263         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6264         * config/mips/iris6.h (MACHINE_TYPE): Remove.
6265         * config/mips/linux.h (TARGET_VERSION): Remove.
6266         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
6267         * config/mips/vxworks.h (TARGET_VERSION): Remove.
6268         * config/mmix/mmix.h (TARGET_VERSION): Remove.
6269         * config/mn10300/linux.h (TARGET_VERSION): Remove.
6270         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
6271         * config/pa/pa.h (TARGET_VERSION): Remove.
6272         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
6273         * config/picochip/picochip.h (TARGET_VERSION): Remove.
6274         * config/rs6000/aix.h (TARGET_VERSION): Remove.
6275         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
6276         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
6277         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
6278         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
6279         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
6280         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
6281         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
6282         * config/rs6000/linux.h (TARGET_VERSION): Remove.
6283         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
6284         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
6285         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
6286         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
6287         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
6288         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
6289         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
6290         * config/s390/linux.h (TARGET_VERSION): Remove.
6291         * config/s390/s390.h (TARGET_VERSION): Remove.
6292         * config/s390/tpf.h (TARGET_VERSION): Remove.
6293         * config/score/score.h (TARGET_VERSION): Remove.
6294         * config/sh/linux.h (TARGET_VERSION): Remove.
6295         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
6296         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
6297         * config/sh/sh.h (TARGET_VERSION): Remove.
6298         * config/sh/sh64.h (TARGET_VERSION): Remove.
6299         * config/sh/superh.h (TARGET_VERSION): Remove.
6300         * config/sh/vxworks.h (TARGET_VERSION): Remove.
6301         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
6302         * config/sparc/linux.h (TARGET_VERSION): Remove.
6303         * config/sparc/linux64.h (TARGET_VERSION): Remove.
6304         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
6305         TARGET_NAME32, TARGET_NAME): Remove.
6306         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
6307         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
6308         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
6309         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
6310         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
6311         * config/spu/spu.h (TARGET_VERSION): Remove.
6312         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
6313         * config/v850/v850.h (TARGET_VERSION): Remove.
6314         * config/vax/linux.h (TARGET_VERSION): Remove.
6315         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
6316         * config/xtensa/elf.h (TARGET_VERSION): Remove.
6317         * config/xtensa/linux.h (TARGET_VERSION): Remove.
6318
6319 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6320
6321         PR target/48142
6322         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
6323         frame-related from frame-unrelated adjustments to the stack pointer.
6324
6325 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
6326
6327         * common.opt (fdebug-types-section): Move earlier.
6328         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
6329
6330 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
6331
6332         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
6333         var.
6334
6335 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
6336
6337         * tree.h (CASE_CHAIN): Define.
6338         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
6339         (gimple_redirect_edge_and_branch): Likewise.
6340
6341 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
6342
6343         PR middle-end/48367
6344         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
6345         calculation.
6346
6347 2011-03-30  Jeff Law  <law@redhat.com>
6348
6349         * PR bootstrap/48371
6350         * reload1.c (reload): Fix botch in last change.
6351
6352         * reload.h (struct reload): Fix typo introduced in last change.
6353
6354 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6355
6356         * config/arm/arm.opt (mhard-float, msoft-float): Mark
6357         Undocumented.  Remove help text.
6358         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
6359         -mhard-float.
6360
6361 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6362
6363         * doc/options.texi (NegativeAlias): Document.
6364         (Alias): Mention NegativeAlias.
6365         * opt-functions.awk: Handle NegativeAlias.
6366         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
6367         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
6368         * opts.h (CL_NEGATIVE_ALIAS): Define.
6369         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
6370         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
6371         OPT_mspe_.
6372         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
6373         Alias entries.
6374         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6375         mno-spe and mno-isel instead of mspe=no and -misel=no.
6376
6377 2011-03-29  Mark Wielaard  <mjw@redhat.com>
6378
6379         * common.opt (fdebug-types-section): New flag.
6380         * doc/invoke.texi: Document new -fno-debug-types-section flag.
6381         * dwarf2out.c (use_debug_types): New define.
6382         (struct die_struct): Mark die_id with GTY desc use_debug_types.
6383         (print_die): Guard output of type unit signatures using
6384         use_debug_types.
6385         (build_abbrev_table): Replace assert of dwarf_version >= 4
6386         with assert on use_debug_types.
6387         (size_of_die): Likewise.
6388         (unmark_dies): Likewise.
6389         (value_format): Decide AT_ref_external form on use_debug_types.
6390         (output_die): Replace dwarf_version version check guard with
6391         use_debug_types where appropriate.
6392         (modified_type_die): Likewise.
6393         (gen_reference_type_die): Likewise.
6394         (dwarf2out_start_source_file): Likewise.
6395         (dwarf2out_end_source_file): Likewise.
6396         (prune_unused_types_walk_attribs): Likewise.
6397         (dwarf2out_finish): Likewise.
6398
6399 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
6400
6401         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
6402
6403 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6404
6405         PR rtl-optimization/48332
6406         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
6407         mode of input operand N and modeN to its actual mode.
6408
6409 2011-03-30  Jeff Law  <law@redhat.com>
6410
6411         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
6412         define accessor macro.
6413         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
6414         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
6415         (reg_equiv_init): Likewise.
6416         (reg_equivs_size): New variable.
6417         (reg_equiv_init_size): Remove.
6418         (allocate_initial_values): Move prototype to here from....
6419         * integrate.h (allocate_initial_values): Remove prototype.
6420         * integrate.c: Include reload.h.
6421         (allocate_initial_values): Corresponding changes.
6422         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
6423         (fix_reg_equiv_init, no_equiv): Corresponding changes.
6424         (update_equiv_regs): Corresponding changes.
6425         (ira): Corresponding changes.
6426         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
6427         (push_secondary_reload): Corresponding changes.
6428         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
6429         (make_memloc, find_reloads_address): Corresponding changes.
6430         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
6431         (find_reloads_address_1): Corresponding changes.
6432         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
6433         (refers_to_regno_for_reload_p): Corresponding changes.
6434         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
6435         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
6436         * reload1.c: Include ggc.h.
6437         (grow_reg_equivs): New function.
6438         (replace_pseudos_in, reload): Corresponding changes.
6439         (calculate_needs_all_insns, alter_regs): Corresponding changes.
6440         (eliminate_regs_1, elimination_effects): Corresponding changes.
6441         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
6442         (delete_output_reload): Likewise.
6443         * caller-save.c (mark_referenced_regs): Corresponding changes.
6444         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
6445         * frv/predicates.md (frv_load_operand): Corresponding changes.
6446         * microblaze/microblaze.c (double_memory_operand): Corresponding
6447         changes.
6448         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
6449         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
6450         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
6451         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
6452         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
6453         changes.
6454         * pa/pa.c (emit_move_sequence): Corresponding changes.
6455         * vax/vax.c (nonindexed_address_p): Corresponding changes.
6456
6457 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6458
6459         PR target/47551
6460         * config/arm/arm.c (coproc_secondary_reload_class): Handle
6461         structure modes.  Don't check neon_vector_mem_operand for
6462         vector or structure modes.
6463
6464 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6465             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6466
6467         PR target/43590
6468         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
6469         operand 1 and reshuffle the operands to match.
6470         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
6471
6472 2011-03-30  Christian Schüler  <cschueler@gmx.de>
6473
6474         PR driver/48208
6475         * config/c.opt (F): Added 'Driver' to -F option.
6476
6477         PR driver/48260
6478         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
6479           handler function.
6480         * config/darwin.opt: Added '-arch' option.
6481
6482 2011-03-30  Nick Clifton  <nickc@redhat.com>
6483
6484         * config/rx/rx.md: Add peepholes and patterns to combine
6485         extending loads and simple arithmetic instructions.
6486         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
6487         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
6488         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
6489         modes to use pre-decrement and post-increment addressing.
6490         (rx_is_restricted_memory_address): Add range checking of REG+INT
6491         addresses.
6492         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
6493         (rx_memory_move_cost): Adjust cost of stores.
6494         (rx_adjust_insn_length): New function.
6495
6496 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
6497
6498         PR c/48305
6499         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6500         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
6501         matching arg00/arg01 types.
6502
6503 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
6504
6505         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
6506         last_location to UNKNOWN_LOCATION.
6507
6508 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
6509
6510         PR target/48349
6511         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
6512         FLOAT_SSE_REGS.
6513
6514 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6515             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6516
6517         PR bootstrap/48337
6518         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
6519         Init(PROCESSOR_V7).
6520         (sparc_cpu): Likewise.
6521         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
6522         PROCESSOR_V7.
6523
6524 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6525
6526         PR target/48336
6527         PR middle-end/48342
6528         PR rtl-optimization/48345
6529         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
6530         hard regs for given mode from profitable regs when doing secondary
6531         allocation.
6532
6533 2011-03-29  Jeff Law  <law@redhat.com>
6534
6535         PR bootstrap/48327
6536         * tree-ssa-threadupdate.c (struct redirection_data): Remove
6537         do_not_duplicate field.
6538         (lookup_redirection_data): Corresponding changes.
6539         (create_duplicates): Always create a template block.
6540         (redirect_edges): Remove code which reused the original block
6541         when it was going to become unreachable code.
6542         (thread_block): Don't set do_not_duplicate field.
6543
6544 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
6545
6546         * lto-opts.c (register_user_option_p, lto_register_user_option):
6547         Make type argument unsigned.
6548         * lto-streamer.h (lto_register_user_option): Make type argument
6549         unsigned.
6550         * opth-gen.awk: Make CL_* macros unsigned.
6551         * opts-common.c (find_opt): Make lang_mask argument unsigned.
6552         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6553         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
6554         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
6555         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
6556         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
6557         (find_opt): Make lang_mask argument unsigned.
6558
6559 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6560
6561         PR rtl-optimization/48331
6562         PR rtl-optimization/48334
6563         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
6564         for any used algorithm.
6565
6566 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6567
6568         * ira-conflicts.c (build_object_conflicts): Add unused attribute
6569         to parent_max.
6570
6571 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
6572
6573         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
6574         (alpha_option_override): Don't set alpha_sr_alias_set.
6575         (emit_frame_store_1): Use gen_frame_mem rather than calling
6576         set_mem_alias_set.
6577         (alpha_expand_epilogue): Ditto.
6578
6579 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
6580
6581         PR tree-optimization/48290
6582         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
6583         vectorization, check that relevant phis in the basic block after
6584         the inner loop are really inner loop's exit phis.
6585
6586 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
6587
6588         PR debug/48190
6589         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
6590         (cached_dw_loc_list_def): New structure.
6591         (cached_dw_loc_list): New typedef.
6592         (cached_dw_loc_list_table): New variable.
6593         (cached_dw_loc_list_table_hash): New function.
6594         (cached_dw_loc_list_table_eq): Likewise.
6595         (add_location_or_const_value_attribute): Take a bool cache_p.
6596         Cache the list when the parameter is true.
6597         (gen_formal_parameter_die): Update caller.
6598         (gen_variable_die): Likewise.
6599         (dwarf2out_finish): Likewise.
6600         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
6601         while generating debug info for the decl.
6602         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
6603         (dwarf2out_init): Initialize cached_dw_loc_list_table.
6604         (resolve_addr): Cache the result of resolving a chain of
6605         location lists.
6606
6607 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
6608
6609         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
6610         conflict object hard regset nodes have intersecting hard reg sets.
6611
6612         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
6613         after regstat_init_n_sets_and_refs.
6614
6615         * ira.c: Add more comments at the top.
6616         (setup_stack_reg_pressure_class, setup_pressure_classes):
6617         Add comments how we compute the register pressure classes.
6618         (setup_allocno_and_important_classes): Add more comments.
6619         (setup_class_translate_array, reorder_important_classes)
6620         (setup_reg_class_relations): Add comments.
6621
6622         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
6623         start of the file.
6624
6625         * ira-color.c: Add 2011 to the Copyright line.
6626         (assign_hard_reg):  Add more comments.
6627         (improve_allocation): Ditto.
6628
6629         * ira-costs.c: Add 2011 to the Copyright line.
6630         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
6631         comments.
6632         (setup_regno_cost_classes_by_mode): Ditto.
6633
6634         Initial patches from ira-improv branch:
6635
6636         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
6637
6638         * ira-build.c (ira_create_object): Remove initialization of
6639         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
6640         (ira_create_allocno): Remove initialization of
6641         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6642         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
6643         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6644         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
6645         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
6646         Initialize ALLOCNO_ADD_DATA.
6647         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
6648         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
6649         ALLOCNO_REG.
6650         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
6651         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
6652
6653         * ira.c (ira_reallocate): Remove.
6654         (setup_pressure_classes): Call
6655         ira_init_register_move_cost_if_necessary.  Use
6656         ira_register_move_cost instead of ira_get_register_move_cost.
6657         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
6658         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
6659
6660         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
6661         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6662         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
6663         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
6664         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
6665         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
6666         Fix formatting.
6667         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
6668         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6669         (struct allocno_color_data): New.
6670         (allocno_color_data_t): New typedef.
6671         (allocno_color_data): New definition.
6672         (ALLOCNO_COLOR_DATA): New macro.
6673         (struct object_color_data): New.
6674         (object_color_data_t): New typedef.
6675         (object_color_data): New definition.
6676         (OBJECT_COLOR_DATA): New macro.
6677         (update_copy_costs, calculate_allocno_spill_cost): Call
6678         ira_init_register_move_cost_if_necessary.  Use
6679         ira_register_move_cost instead of ira_get_register_move_cost.
6680         (move_spill_restore, update_curr_costs): Ditto.
6681         (allocno_spill_priority): Make it inline.
6682         (color_pass): Allocate and free allocno_color_dat and object_color_data.
6683         (struct coalesce_data, coalesce_data_t): New.
6684         (allocno_coalesce_data): New definition.
6685         (ALLOCNO_COALESCE_DATA): New macro.
6686         (merge_allocnos, coalesced_allocno_conflict_p): Use
6687         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
6688         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
6689         (coalesce_allocnos): Ditto.
6690         (setup_coalesced_allocno_costs_and_nums): Ditto.
6691         (collect_spilled_coalesced_allocnos): Ditto.
6692         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
6693         (setup_slot_coalesced_allocno_live_ranges): Ditto.
6694         (coalesce_spill_slots): Ditto.
6695         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
6696         free allocno_coalesce_data.
6697
6698         * ira-conflicts.c: Fix formatting.
6699         (process_regs_for_copy): Call
6700         ira_init_register_move_cost_if_necessary.  Use
6701         ira_register_move_cost instead of ira_get_register_move_cost.
6702         (build_object_conflicts): Optimize.
6703
6704         * ira-costs.c (record_reg_classes): Optimize.  Call
6705         ira_init_register_move_cost_if_necessary.  Use
6706         ira_register_move_cost, ira_may_move_in_cost, and
6707         ira_may_move_out_cost instead of ira_get_register_move_cost and
6708         ira_get_may_move_cost.
6709         (record_address_regs): Ditto.
6710         (scan_one_insn): Optimize.
6711         (find_costs_and_classes): Optimize.
6712         (process_bb_node_for_hard_reg_moves): Call
6713         ira_init_register_move_cost_if_necessary.  Use
6714         ira_register_move_cost instead of ira_get_register_move_cost.
6715
6716         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6717         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6718         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6719         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6720         definitions.
6721         (ira_initiate_emit_data, ira_finish_emit_data)
6722         (create_new_allocno): New functions.
6723         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
6724         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6725         Use ira_register_move_cost instead of ira_get_register_move_cost.
6726
6727         * ira-int.h: Fix some comments.
6728         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6729         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6730         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6731         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
6732         add_data.
6733         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
6734         bitfield after mode.  Make hard_regno a short int.  Make
6735         hard_regno short.  Remove first_coalesced_allocno and
6736         next_coalesced_allocno.  Move mem_optimized_dest_p,
6737         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6738         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
6739         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6740         temp, colorable_p.  Add new member add_data.
6741         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6742         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6743         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6744         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6745         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6746         (ALLOCNO_ADD_DATA): New macro.
6747         (ira_emit_data_t): New typedef.
6748         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
6749         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6750         from struct ira_allocno.
6751         (ALLOCNO_EMIT_DATA): New macro.
6752         (ira_allocno_emit_data, allocno_emit_reg): New.
6753         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
6754         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
6755         (OBJECT_ADD_DATA): New macro.
6756         (ira_reallocate): Remove.
6757         (ira_initiate_emit_data, ira_finish_emit_data): New.
6758         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6759         (ira_init_register_move_cost_if_necessary): New.
6760         (ira_object_conflict_iter_next): Merge into
6761         ira_object_conflict_iter_cond.
6762         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
6763
6764         * ira-live.c (process_single_reg_class_operands): Call
6765         ira_init_register_move_cost_if_necessary.  Use
6766         ira_register_move_cost instead of ira_get_register_move_cost.
6767
6768         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
6769
6770         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6771
6772         * ira-costs.c: Fix formatting.
6773         (cost_classes, cost_classes_num): Remove.
6774         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
6775         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
6776         (cost_classes_del, cost_classes_htab): New.
6777         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
6778         (initiate_regno_cost_classes, setup_cost_classes): New.
6779         (setup_regno_cost_classes_by_aclass): New.
6780         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
6781         (record_reg_classes): Use regno_cost_classes instead of
6782         cost_classes.  Move checking opposite operand up.
6783         (record_address_regs): Use regno_cost_classes
6784         instead of cost_classes.
6785         (scan_one_insn): Ditto.  Use always general register.
6786         (print_allocno_costs): Use regno_cost_classes instead of
6787         cost_classes.
6788         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
6789         (find_costs_and_classes): Set up cost classes for each registers.
6790         Use also their mode for this.  Use regno_cost_classes instead of
6791         cost_classes.
6792         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
6793         cost_classes.
6794         (free_ira_costs, ira_init_costs): Don't use cost_classes.
6795         (ira_costs, ira_set_pseudo_classes): Call
6796         initiate_regno_cost_classes and finish_regno_cost_classes.
6797
6798         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
6799
6800         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
6801
6802         * target.def (ira_cover_classes): Remove.
6803
6804         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
6805
6806         * doc/tm.texi.in: Ditto.
6807
6808         * ira-conflicts.c: Remove mentioning cover classes from the file.
6809         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
6810         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
6811
6812         * targhooks.c (default_ira_cover_classes): Remove.
6813
6814         * targhooks.h (default_ira_cover_classes): Ditto.
6815
6816         * haifa-sched.c: Remove mentioning cover classes from the file.
6817         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
6818         ira_pressure_classes and ira_pressure_classes_num instead of
6819         ira_reg_class_cover_size and ira_reg_class_cover.  Use
6820         sched_regno_pressure_class instead of sched_regno_cover_class.
6821         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
6822         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6823
6824         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
6825         classes from the file.
6826         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
6827         (struct object_hard_regs, struct object_hard_regs_node): New.
6828         (struct ira_object): New members profitable_hard_regs,
6829         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
6830         (struct ira_allocno): Rename cover_class to aclass.  Rename
6831         cover_class_cost and updated_cover_class_cost to class_cost and
6832         updated_class_cost.  Remove splay_removed_p and
6833         left_conflict_size.  Add new members colorable_p.
6834         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
6835         (ALLOCNO_COLORABLE_P): New macro.
6836         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
6837         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
6838         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
6839         (OBJECT_...): Rename parameter C to O.
6840         (OBJECT_PROFITABLE_HARD_REGS): New macro.
6841         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
6842         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
6843         (struct target_ira_int): New members x_ira_max_memory_move_cost,
6844         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
6845         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
6846         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
6847         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
6848         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
6849         x_ira_reg_class_subunion.
6850         (ira_max_memory_move_cost, ira_max_register_move_cost)
6851         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
6852         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
6853         (ira_important_class_nums, ira_reg_class_superunion): New macros.
6854         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
6855         (ira_reg_class_union): Rename to ira_reg_class_subunion.
6856         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6857         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6858         (ira_tune_allocno_costs_and_cover_classes): Rename to
6859         ira_tune_allocno_costs.
6860         (ira_debug_hard_regs_forest): New.
6861         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
6862         (ira_object_conflict_iter_next): Fix comments.
6863         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
6864         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
6865         cover_class to aclass.
6866         (ira_allocate_and_accumulate_costs): Ditto.
6867         (ira_allocate_and_set_or_copy_costs): Ditto.
6868
6869         * opts.c (decode_options): Remove ira_cover_class check.
6870
6871         * ira-color.c: Remove mentioning cover classes from the file.  Use
6872         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
6873         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
6874         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
6875         (splay-tree.h): Remove include.
6876         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
6877         before copy_freq_compare_func.
6878         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
6879         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
6880         New definitions.
6881         (hard_regs_roots, hard_regs_node_vec): Ditto.
6882         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
6883         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
6884         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
6885         (create_new_object_hard_regs_node): Ditto.
6886         (add_new_object_hard_regs_node_to_forest): Ditto.
6887         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
6888         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
6889         Ditto.
6890         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
6891         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
6892         (remove_unused_object_hard_regs_nodes): Ditto.
6893         (enumerate_object_hard_regs_nodes): Ditto.
6894         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
6895         (object_hard_regs_subnode_t): Ditto.
6896         (struct object_hard_regs_subnode): Ditto.
6897         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
6898         (setup_object_hard_regs_subnode_index): Ditto.
6899         (get_object_hard_regs_subnodes_num): Ditto.
6900         (form_object_hard_regs_nodes_forest): Ditto.
6901         (finish_object_hard_regs_nodes_tree): Ditto.
6902         (finish_object_hard_regs_nodes_forest): Ditto.
6903         (allocnos_have_intersected_live_ranges_p): Rename to
6904         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
6905         (pseudos_have_intersected_live_ranges_p): Rename to
6906         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
6907         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
6908         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
6909         (update_copy_costs): Remove assert.  Skip cost update if the hard
6910         reg does not belong the class.
6911         (assign_hard_reg): Process only profitable hard regs.
6912         (uncolorable_allocnos_num): Make it scalar.
6913         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
6914         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
6915         and ira_reg_class_max_nregs.
6916         (bucket_allocno_compare_func): Check frequency first.
6917         (sort_bucket): Add compare function as a parameter.
6918         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
6919         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
6920         (push_allocno_to_stack): Rewrite for checking new allocno
6921         colorability.
6922         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
6923         (push_only_colorable): Pass new parameter to sort_bucket.
6924         (push_allocno_to_spill): Remove.
6925         (allocno_spill_priority_compare): Make it inline and rewrite.
6926         (splay_tree_allocate, splay_tree_free): Remove.
6927         (allocno_spill_sort_compare): New function.
6928         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
6929         build and use splay tree.  Choose first allocno in uncolorable
6930         allocno bucket to spill.  Remove setting spill cost.
6931         (all_conflicting_hard_regs): Remove.
6932         (setup_allocno_available_regs_num): Check only profitable hard
6933         regs.  Print info about hard regs nodes.
6934         (setup_allocno_left_conflicts_size): Remove.
6935         (put_allocno_into_bucket): Don't call
6936         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
6937         (improve_allocation): New.
6938         (color_allocnos): Call setup_profitable_hard_regs,
6939         form_object_hard_regs_nodes_forest, improve_allocation,
6940         finish_object_hard_regs_nodes_forest.  Setup spill cost.
6941         (print_loop_title): Use pressure classes.
6942         (color_allocnso): Ditto.
6943         (do_coloring): Remove allocation and freeing splay_tree_node_pool
6944         and allocnos_for_spilling.
6945         (ira_sort_regnos_for_alter_reg): Don't setup members
6946         {first,next}_coalesced_allocno.
6947         (color): Remove allocating and freeing removed_splay_allocno_vec.
6948         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
6949         prohibited_class_mode_regs.
6950
6951         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
6952         formatting.
6953         (update_allocno_pressure_excess_length): Use pressure classes.
6954         (inc_register_pressure, dec_register_pressure): Check for pressure
6955         class.
6956         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
6957         pressure class.  Use ira_reg_class_nregs instead of
6958         ira_reg_class_max_nregs.
6959         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
6960         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
6961         (single_reg_class): Use ira_reg_class_nregs instead of
6962         ira_reg_class_max_nregs.
6963         (process_bb_node_lives): Use pressure classes.
6964
6965         * ira-emit.c: Remove mentioning cover classes from the file.  Use
6966         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
6967         (change_loop): Use pressure classes.
6968         (modify_move_list): Call ira_set_allocno_class instead of
6969         ira_set_allocno_cover_class.
6970
6971         * ira-build.c: Remove mentioning cover classes from the file.  Use
6972         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
6973         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
6974         ALLOCNO_UPDATED_CLASS_COST instead of
6975         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
6976         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
6977         (ira_create_allocno): Remove initialization of
6978         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
6979         ALLOCNO_COLORABLE_P.
6980         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6981         Update conflict regs for the objects.
6982         (create_cap_allocno): Remove assert.  Don't propagate
6983         ALLOCNO_AVAILABLE_REGS_NUM.
6984         (ira_free_allocno_costs): New function.
6985         (finish_allocno): Change a part of code into call of
6986         ira_free_allocno_costs.
6987         (low_pressure_loop_node_p): Use pressure classes.
6988         (object_range_compare_func): Don't compare classes.
6989         (setup_min_max_conflict_allocno_ids): Ditto.
6990
6991         * loop-invariant.c: Remove mentioning cover classes from the file.
6992         Use ira_pressure_classes and ira_pressure_classes_num instead of
6993         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
6994         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
6995         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6996         Use reg_allocno_class instead of reg_cover_class.
6997         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
6998         STACK_REG_COVER_CLASS.
6999         (get_regno_cover_class): Rename to get_regno_pressure_class.
7000         (move_loop_invariants): Initialize and finalize regstat.
7001
7002         * ira.c: Remove mentioning cover classes from the file.  Add
7003         comments about coloring without cover classes.  Use ALLOCNO_CLASS
7004         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
7005         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
7006         setup_class_subset_and_memory_move_costs.
7007         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
7008         (setup_cover_and_important_classes): Rename to
7009         setup_allocno_and_important_classes.
7010         (setup_class_translate_array): New.
7011         (setup_class_translate): Call it for allocno and pressure classes.
7012         (cover_class_order): Rename to allocno_class_order.
7013         (comp_reg_classes_func): Use ira_allocno_class_translate instead
7014         of ira_class_translate.
7015         (reorder_important_classes): Set up ira_important_class_nums.
7016         (setup_reg_class_relations): Set up ira_reg_class_superunion.
7017         (print_class_cover): Rename to print_classes.  Add parameter.
7018         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7019         Print pressure classes too.
7020         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
7021         setup_reg_subclasses.
7022         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7023         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7024         (setup_prohibited_class_mode_regs): Use
7025         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
7026         (clarify_prohibited_class_mode_regs): New function.
7027         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
7028         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
7029         (ira_init_once): Initialize them.
7030         (free_register_move_costs): Process them.
7031         (ira_init): Move calls of find_reg_classes and
7032         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
7033         Call clarify_prohibited_class_mode_regs.
7034         (ira_no_alloc_reg): Remove.
7035         (too_high_register_pressure_p): Use pressure classes.
7036
7037         * sched-deps.c: Remove mentioning cover classes from the file.
7038         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
7039         ira_pressure_classes and ira_pressure_classes_num instead of
7040         ira_reg_class_cover_size and ira_reg_class_cover.
7041         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
7042         sched_regno_pressure_class instead of sched_regno_cover_class.
7043         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
7044         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7045
7046         * ira.h: Add 2010 to Copyright.
7047         (ira_no_alloc_reg): Remove external.
7048         (struct target_ira): Rename x_ira_hard_regno_cover_class,
7049         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
7050         x_ira_class_translate to x_ira_hard_regno_allocno_class,
7051         x_ira_allocno_classes_num, x_ira_allocno_classes, and
7052         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
7053         x_ira_pressure_classes, x_ira_pressure_class_translate, and
7054         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
7055         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
7056         x_ira_no_alloc_regs.
7057         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7058         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
7059         ira_allocno_classes_num and ira_allocno_classes.
7060         (ira_class_translate): Rename to ira_allocno_class_translate.
7061         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
7062         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
7063         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7064         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
7065         (ira_no_alloc_regs): New.
7066
7067         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
7068         classes from the file.  Use ALLOCNO_CLASS instead of
7069         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
7070         ALLOCNO_COVER_CLASS_COST.
7071         (regno_cover_class): Rename to regno_aclass.
7072         (record_reg_classes): Use ira_reg_class_subunion instead of
7073         ira_reg_class_union.
7074         (record_address_regs): Check overflow.
7075         (scan_one_insn): Ditto.
7076         (print_allocno_costs): Print total mem cost fore regional allocation.
7077         (print_pseudo_costs): Use REG_N_REFS.
7078         (find_costs_and_classes): Use classes intersected with them on the
7079         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
7080         ira_reg_class_union.  Use ira_allocno_class_translate and
7081         regno_aclass instead of ira_class_translate and regno_cover_class.
7082         Modify code for finding regno_aclass.  Setup preferred classes for
7083         the next pass.
7084         (setup_allocno_cover_class_and_costs): Rename to
7085         setup_allocno_class_and_costs.  Use regno_aclass instead of
7086         regno_cover_class.  Use ira_set_allocno_class instead of
7087         ira_set_allocno_cover_class.
7088         (init_costs, finish_costs): Use regno_aclass instead of
7089         regno_cover_class.
7090         (ira_costs): Use setup_allocno_class_and_costs instead of
7091         setup_allocno_cover_class_and_costs.
7092         (ira_tune_allocno_costs_and_cover_classes): Rename to
7093         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
7094         by processing objects.  Use ira_reg_class_max_nregs instead of
7095         ira_reg_class_nregs.
7096
7097         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
7098
7099         * sched-int.h: Remove mentioning cover classes from the file.
7100         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
7101
7102         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
7103         classes from the file.
7104         (struct reg_pref): Rename coverclass into allocnoclass.
7105         (reg_cover_class): Rename to reg_allocno_class.
7106
7107         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
7108
7109         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
7110
7111         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
7112
7113         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
7114
7115         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
7116
7117         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
7118
7119         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
7120
7121         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
7122
7123         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
7124
7125         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
7126
7127         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
7128         (i386_ira_cover_classes): Ditto.
7129
7130         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
7131
7132         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
7133
7134         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
7135
7136         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
7137
7138         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
7139
7140         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
7141
7142         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
7143         (mips_ira_cover_classes): Ditto.
7144
7145         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
7146
7147         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
7148
7149         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
7150
7151         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
7152
7153         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
7154
7155         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
7156         (IRA_COVER_CLASSES_VSX): Ditto.
7157
7158         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
7159         (rs6000_ira_cover_classes): Ditto.
7160
7161         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
7162
7163         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
7164
7165         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
7166
7167         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
7168
7169         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
7170
7171         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
7172
7173         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
7174
7175         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
7176
7177         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
7178
7179         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
7180
7181 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
7182
7183         PR debug/48253
7184         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
7185         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
7186         dw_fde_unlikely_section_end_label, cold_in_std_section,
7187         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
7188         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
7189         fields.
7190         (output_fde): Use dw_fde_second_{begin,end} if second is
7191         true, otherwise dw_fde_{begin,end}.
7192         (output_call_frame_info): Test dw_fde_second_begin != NULL
7193         instead of dw_fde_switched_sections.
7194         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
7195         fields, initialize new fields.  Initialize in_std_section
7196         unconditionally from the first partition.
7197         (dwarf2out_end_epilogue): Don't override dw_fde_end when
7198         dw_fde_second_begin is non-NULL.
7199         (dwarf2out_switch_text_section): Stop initializing removed
7200         dw_fde_struct fields, initialize new fields, initialize
7201         also dw_fde_end here.  Set dw_fde_switch_cfi even when
7202         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
7203         (struct var_loc_list_def): Add last_before_switch field.
7204         (arange_table, arange_table_allocated, arange_table_in_use,
7205         ARANGE_TABLE_INCREMENT, add_arange): Removed.
7206         (size_of_aranges): Count !in_std_section and !second_in_std_section
7207         hunks in fdes, instead of looking at arange_table_in_use.
7208         (output_aranges): Add aranges_length argument, don't call
7209         size_of_aranges here.  Instead of using aranges_table*
7210         emit ranges for fdes when !in_std_section resp.
7211         !second_in_std_section.
7212         (dw_loc_list): Break ranges crossing section switch.
7213         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
7214         use dw_fde_second_end instead of dw_fde_end as end of last range.
7215         (gen_subprogram_die): Don't call add_arange.  Use
7216         dw_fde_{begin,end} for first partition and if switched
7217         section dw_fde_second_{begin,end} for the second.
7218         (var_location_switch_text_section_1,
7219         var_location_switch_text_section): New functions.
7220         (dwarf2out_begin_function): Initialize cold_text_section even
7221         when function_section () isn't text_section.
7222         (prune_unused_types): Don't walk arange_table.
7223         (dwarf2out_finish): Don't needlessly test
7224         flag_reorder_blocks_and_partition when testing cold_text_section_used.
7225         If info_section_emitted, call size_of_aranges and if it indicates
7226         non-empty .debug_aranges, call output_aranges with the computed
7227         size.  Stop using removed dw_fde_struct fields, use
7228         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
7229         for second.
7230
7231         PR debug/48203
7232         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
7233         create ENTRY_VALUE if incoming or address of incoming's MEM
7234         is a hard REG.
7235         * dwarf2out.c (mem_loc_descriptor): Don't emit
7236         DW_OP_GNU_entry_value of DW_OP_fbreg.
7237         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
7238         on ENTRY_VALUE is able to find the canonical parameter VALUE.
7239         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
7240         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
7241         ENTRY_VALUE_EXPs.
7242         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
7243         is a REG_P or MEM_P with REG_P address, compute hash directly
7244         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
7245         (preserve_only_constants): Don't clear VALUES forwaring
7246         ENTRY_VALUE to some other VALUE.
7247
7248 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
7249
7250         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
7251         instead of GEN_INT.
7252
7253 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7254
7255         * cfgexpand.c (expand_gimple_cond): Always set the source location and
7256         block before expanding the statement.
7257         (expand_gimple_stmt_1): Likewise.  Set them here...
7258         (expand_gimple_stmt): ...and not here.  Tidy.
7259         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
7260         unknown.
7261
7262 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
7263
7264         * Makefile.in: New rule for cprop.o.
7265         * gcse.c: Move constant/copy propagation to cprop.c.
7266         (compute_local_properties): Only handle expression tables.
7267         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
7268         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
7269         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
7270         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7271         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
7272         compute_cprop_data, find_used_regs, try_replace_reg,
7273         find_avail_set, cprop_jump, constprop_register, cprop_insn,
7274         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
7275         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
7276         find_bypass_set, reg_killed_on_edge, bypass_block,
7277         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
7278         execute_rtl_cprop, pass_rtl_cprop): Move to...
7279         * cprop.c: ...here.  New file, constant/copy propagation for RTL
7280         moved from gcse.c to here with minor cleanups in duplicated code.
7281
7282 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
7283
7284         * config/i386/i386.c (flag_opts): Fix a typo in
7285         -mavx256-split-unaligned-store.
7286
7287 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
7288
7289         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7290         LIBCALL_VALUE): Remove macros.
7291         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7292         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7293         (h8300_function_value, h8300_libcall_value,
7294         h8300_function_value_regno_p): New functions.
7295
7296 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
7297
7298         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
7299
7300 2011-03-28  Jeff Law  <law@redhat.com>
7301
7302         * tree-ssa-threadupdate.c (redirect_edges): Call
7303         create_edge_and_update_destination_phis as needed.
7304         (create_edge_and_update_destination_phis): Accept new BB argument.
7305         All callers updated.
7306         (thread_block): Do not update the profile when threading around
7307         intermediate blocks.
7308         (thread_single_edge): Likewise.
7309         (determine_bb_domination_status): If BB is not a successor of the
7310         loop header, return NONDOMINATING.
7311         (register_jump_thread): Note when we register a jump thread around
7312         an intermediate block.
7313         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
7314         (thread_across_edge): Use it.
7315
7316 2011-03-28  Tristan Gingold  <gingold@adacore.com>
7317
7318         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
7319         when for_return is 2.
7320
7321 2011-03-28  Jeff Law  <law@redhat.com>
7322
7323         * var-tracking.c (canonicalize_values_mark): Delete unused
7324         lhs assignment.
7325         (canonicalize_values_star, set_variable_part): Likewise.
7326         (clobber_variable_part, delete_variable_part): Likewise.
7327
7328 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
7329
7330         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
7331
7332 2011-03-28  Martin Jambor  <mjambor@suse.cz>
7333
7334         * tree-inline.c (expand_call_inline): Do not check that destination
7335         node is analyzed.
7336         (optimize_inline_calls): Assert that destination node is analyzed.
7337         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
7338         not call tree_lowering_passes.
7339         * cgraph.h (cgraph_analyze_function): Declare.
7340         * cgraphunit.c (cgraph_analyze_function): Make public.
7341
7342 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
7343
7344         * config/sparc/sparc-opts.h: New.
7345         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
7346         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
7347         (sparc_option_override): Store processor_type enumeration rather
7348         than string in cpu_default.  Remove name and enumeration from
7349         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
7350         without using sparc_select.  Use target_flags_explicit instead of
7351         fpu_option_set.
7352         * config/sparc/sparc.h (enum processor_type): Move to
7353         sparc-opts.h.
7354         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
7355         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
7356         HeaderInclude entry.
7357         (mcpu=, mtune=): Use Var and Enum.
7358         (sparc_processor_type): New Enum and EnumValue entries.
7359
7360 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7361             Iain Sandoe  <iains@gcc.gnu.org>
7362
7363         PR target/48245
7364         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
7365
7366 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7367
7368         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
7369         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
7370         Insert new statements at it in lieu of STMT.
7371         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
7372         * tree-vect-stmts.c (vectorizable_store): Likewise.
7373         (vectorizable_load): Likewise.
7374
7375 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
7376
7377         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
7378         (divtf3): Ditto.
7379         (multf3): Ditto.
7380         (subtf3): Ditto.
7381
7382 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7383
7384         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
7385         unaligned 256bit load/store.
7386         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
7387         (*avx_movdqu<avxmodesuffix>): Likewise.
7388
7389 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7390
7391         PR target/48288
7392         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
7393         * config/pa/pa.md (iordi3): Use new predicate in expander.
7394         (iorsi3): Likewise.
7395
7396 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
7397
7398         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
7399         FUNCTION_VALUE_REGNO_P): Remove macros.
7400         * config/mips/mips-protos.h (mips_function_value): Remove.
7401         * config/mips/mips.c (mips_function_value): Rename to...
7402         (mips_function_value_1): ... this. Make static.  Handle receiving
7403         the function type in 'fn_decl_or_type' argument.
7404         (mips_function_value, mips_libcall_value,
7405         mips_function_value_regno_p): New function.
7406         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7407         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7408
7409 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7410
7411         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
7412         and -mavx256-split-unaligned-store.
7413         (ix86_option_override_internal): Split 32-byte AVX unaligned
7414         load/store by default.
7415         (ix86_avx256_split_vector_move_misalign): New.
7416         (ix86_expand_vector_move_misalign): Use it.
7417
7418         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
7419         -mavx256-split-unaligned-store.
7420
7421         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
7422         256bit load/store.  Generate unaligned store on misaligned memory
7423         operand.
7424         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
7425         256bit load/store.
7426         (*avx_movdqu<avxmodesuffix>): Likewise.
7427
7428         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
7429         -mavx256-split-unaligned-store.
7430
7431 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
7432
7433         PR target/38598
7434         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
7435         Update commentary.
7436
7437 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
7438
7439         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
7440         opno arguments with an expand_operand.  Use create_input_operand.
7441         (mips_prepare_builtin_target): Delete.
7442         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
7443         functions.
7444         (mips_expand_builtin_direct): Use create_output_operand and
7445         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
7446         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
7447         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
7448
7449 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
7450
7451         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
7452         function.
7453         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7454
7455 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
7456
7457         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
7458         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
7459         basic blocks and call commit_edge_insertions directly.
7460         (fixup_abnormal_edges): Move from here to...
7461         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
7462         on the edges and return whether some have actually been inserted.
7463         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
7464         compensation code.
7465
7466 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
7467
7468         PR rtl-optimization/48144
7469         * sel-sched-ir.c (merge_history_vect): Factor out from ...
7470         (merge_expr_data): ... here.
7471         (av_set_intersect): Rename to av_set_code_motion_filter.
7472         Update all callers.  Call merge_history_vect when an expression
7473         is found in both sets.
7474         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
7475
7476 2011-03-26  Alan Modra  <amodra@gmail.com>
7477
7478         * config/rs6000/predicates.md (word_offset_memref_op): Handle
7479         cmodel medium addresses.
7480         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
7481         64-bit gpr loads and stores.
7482         (rs6000_secondary_reload_ppc64): New function.
7483         * config/rs6000/rs6000-protos.h: Declare it.
7484         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
7485
7486 2011-03-26  Alan Modra  <amodra@gmail.com>
7487
7488         PR target/47487
7489         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
7490         GNU Go in traceback table.
7491
7492 2011-03-25  Richard Henderson  <rth@redhat.com>
7493
7494         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
7495         if there are exactly 6 operands.
7496         (set_storage_via_setmem): Similarly.
7497
7498 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7499
7500         * collect2.c (write_c_file_stat): Handle backslash
7501         as right-hand directory separator.
7502         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
7503         checking just for slash.
7504         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
7505         instead of checking for trailing slash.
7506         * gcc.c (record_temp_file): Use filename_cmp instead
7507         of strcmp.
7508         (do_spec_1): Likewise.
7509         (replace_outfile_spec_function): Likewise.
7510         (is_directory): Use filename_ncmp instead of strncmp.
7511         (print_multilib_info): Likewise.
7512         * gcov.c (find_source): Use filename_cmp instead
7513         instead of strcmp.
7514         (make_gcov_file_name): Fix order of slash/backslash
7515         checks.
7516         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
7517         (add_standard_paths): Likewise.
7518         * mips-tfile.c (saber_stop): Handle backslash.
7519         * prefix.c (update_path): Use filename_ncmp instead of
7520         strncmp.
7521         * profile.c (output_location): Use filename_cmp instead
7522         of strcmp.
7523         * read-md.c (handle_toplevel_file): Handle backslash.
7524         * tlink.c (frob_extension):  Likewise.
7525         * tree-cfg.c (same_line_p): Use filename_cmp instead of
7526         strcmp.
7527         * tree-dump.c (dequeue_and_dump): Handle backslash.
7528         * tree.c (get_file_function_name): Likewise.
7529         * gengtype.c (read_input_list): Likewise.
7530         (get_file_realbasename): Likewise.
7531         (get_output_file_with_visibility): Use filename_cmp
7532         instead of strcmp.
7533
7534 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
7535
7536         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
7537         case to VFPv1.
7538
7539 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
7540
7541         * fold-const.c (expr_location_or): New function.
7542         (fold_truth_not_expr): Call it.
7543
7544 2011-03-25  Jeff Law  <law@redhat.com>
7545
7546         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
7547         va_end.
7548         * c-family/c-common.c (def_fn_type): Likewise.
7549         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
7550         * emit-rtl.c (gen_rtvec): Likewise.
7551         * lto/lto-lang.c (def_fn_type): Likewise.
7552
7553 2011-03-25  Richard Guenther  <rguenther@suse.de>
7554
7555         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
7556         also generate copies.
7557         (fini_copy_prop): Handle constant values properly.
7558
7559 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
7560
7561         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
7562         mode size instead of bitsize with DWARF2_ADDR_SIZE.
7563         (hash_loc_operands, compare_loc_operands): Handle
7564         DW_OP_GNU_entry_value.
7565
7566 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7567
7568         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
7569         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
7570         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
7571         comment and use macro TARGET_64BIT_MS_ABI instead.
7572         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
7573         and change default behavior for 32-bit MS_ABI.
7574         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
7575         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
7576         32-bit, too.
7577         (ix86_cfun_abi): Likewise.
7578         (ix86_maybe_switch_abi): Adjust comment.
7579         (init_cumulative_args): Check for bit-ness in MS_ABI case.
7580         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
7581         instead of checking for SYSV_ABI.
7582         (ix86_nsaved_sseregs): Likewise.
7583         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
7584         to 16 bytes.
7585         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
7586         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
7587         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
7588         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
7589         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
7590
7591 2011-03-25  Richard Guenther  <rguenther@suse.de>
7592
7593         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
7594         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7595         (verify_gimple): Remove.
7596         * tree-cfg.c (verify_gimple_call): Merge verification
7597         from verify_stmts.
7598         (verify_gimple_phi): Merge verification from verify_stmts.
7599         (verify_gimple_label): New function.
7600         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
7601         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7602         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
7603         (verify_stmts): Rename to verify_gimple_in_cfg.
7604         (verify_gimple_in_cfg): New function.
7605         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
7606         * tree-ssa.c (verify_ssa): Likewise.
7607         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
7608
7609 2011-03-25  Richard Guenther  <rguenther@suse.de>
7610
7611         * passes.c (init_optimization_passes): Add FRE pass after
7612         early SRA.
7613
7614 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
7615             Andrew Stubbs  <ams@codesourcery.com>
7616
7617         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
7618         for Cortex-A8.
7619         (arm_movdi_vfp_cortexa8): New pattern.
7620         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
7621         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
7622         instructions when tuning for Cortex-A8.  Set attribute "arch".
7623         * config/arm/arm.md: Move include arm-tune.md up a bit.
7624         (define_attr "arch"): Add "onlya8" and "nota8" values.
7625         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
7626
7627 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
7628
7629         PR bootstrap/48282
7630         Revert:
7631         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7632
7633         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7634         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
7635         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7636         * passes.c (init_optimization_passes): Move
7637         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7638
7639 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7640
7641         * c-typeck.c (comptypes_internal): Replace target
7642         hook call of comp_type_attributes by version in tree.c file.
7643         * gimple.c (gimple_types_compatible_p_1): Likewise.
7644         * tree-ssa.c (useless_type_conversion_p): Likewise.
7645         * tree.c (build_type_attribute_qual_variant): Likewise.
7646         (attribute_value_equal): New static helper function.
7647         (comp_type_attributes): New function.
7648         (merge_attributes): Use attribute_value_equal for comparison.
7649         (attribute_list_contained): Likewise.
7650         * tree.h (comp_type_attributes): New prototype.
7651
7652 2011-03-25  Richard Guenther  <rguenther@suse.de>
7653
7654         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
7655         of complex types at -O0.
7656         (verify_gimple_assign_binary): Likewise.
7657         (verify_gimple_assign_ternary): Likewise.
7658
7659 2011-03-24  Mark Wielaard  <mjw@redhat.com>
7660
7661         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
7662         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7663
7664 2011-03-24  Mark Wielaard  <mjw@redhat.com>
7665
7666         PR debug/48041
7667         * dwarf2out.c (output_abbrev_section): Only write table when
7668         abbrev_die_table_in_use > 1.
7669
7670 2011-02-24  Richard Henderson  <rth@redhat.com>
7671
7672         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
7673         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
7674         (alpha_expand_unaligned_load_words): Use extql.
7675         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
7676         (emit_insxl): Handle all modes for consistency.
7677
7678 2011-02-24  Richard Henderson  <rth@redhat.com>
7679
7680         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
7681         (alpha_expand_unaligned_load): Likewise.
7682         (alpha_expand_unaligned_store): Likewise.
7683         (alpha_expand_unaligned_load_words): Likewise.
7684         (alpha_expand_unaligned_store_words): Likewise.
7685         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
7686         (alpha_split_lock_test_and_set_12): Likewise.
7687         (print_operand, alpha_fold_builtin_extxx): Likewise.
7688         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
7689         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
7690         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
7691         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
7692         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
7693         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
7694         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
7695         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
7696         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
7697         (extwl, extll, extql): Similarly.
7698         (inswh, inslh, insqh): Similarly.
7699         (mskbl, mskwl, mskll, mskql): Similarly.
7700         (mskwh, msklh, mskqh): Similarly.
7701
7702 2011-02-24  Richard Henderson  <rth@redhat.com>
7703
7704         * config/alpha/alpha.md (attribute isa): Add er, ner.
7705         (attribute enabled): Handle them.
7706         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7707
7708 2011-02-24  Richard Henderson  <rth@redhat.com>
7709
7710         * config/alpha/alpha.md (attribute isa): Add vms.
7711         (attribute enabled): Handle it.
7712         (*movsf): Merge *movsf_{nofix,fix,nofp}.
7713         (*movdf): Merge *movdf_{nofix,fix,nofp}.
7714         (*movtf): Rename from *movtf_internal for consistency.
7715         (*movsi): Merge with *movsi_nt_vms.
7716         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7717         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7718         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7719         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7720
7721 2011-02-24  Richard Henderson  <rth@redhat.com>
7722
7723         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7724         (extendqisi2, extendhisi2): Likewise.
7725         (extendqidi2): Simplify BWX/non-BWX expansions.
7726         (extendhidi2): Similarly.
7727
7728 2011-02-24  Richard Henderson  <rth@redhat.com>
7729
7730         * config/alpha/alpha.md (attribute isa): New.
7731         (attribute enabled): New.
7732         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7733         (zero_extendqisi2, zero_extendqidi2): Similarly.
7734         (zero_extendhisi2, zero_extendhidi2): Similarly.
7735         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7736
7737 2011-02-24  Richard Henderson  <rth@redhat.com>
7738
7739         * config/alpha/predicates.md (input_operand): Revert last change;
7740         update comment to mention 32-bit VMS rather than Windows.
7741
7742 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7743
7744         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7745         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
7746         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7747         * passes.c (init_optimization_passes): Move
7748         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7749
7750 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7751
7752         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7753
7754 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
7755
7756         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7757         correctly.
7758
7759 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
7760
7761         PR debug/48204
7762         * simplify-rtx.c (simplify_const_unary_operation): Call
7763         real_convert when changing mode class with FLOAT_EXTEND.
7764
7765 2011-03-24  Nick Clifton  <nickc@redhat.com>
7766
7767         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7768         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7769         * config/rx/rx.c (rx_option_override): Set align_jumps,
7770         align_loops and align_labels if not set by the user.
7771         (rx_align_for_label): New function.
7772         (rx_max_skip_for_label): New function.
7773         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
7774         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
7775         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
7776         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
7777         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
7778
7779 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7780
7781         PR rtl-optimization/48263
7782         * optabs.c (expand_binop_directly): Reinstate convert_modes code
7783         and original commutative_p handling.  Use maybe_gen_insn.
7784
7785 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7786
7787         * reload.c (find_reloads_subreg_address): Add address_reloaded
7788         parameter and return true there if the full address has been
7789         reloaded.
7790         (find_reloads_toplev): Pass address_reloaded flag.
7791         (find_reloads_address_1): Don't use address_reloaded parameter.
7792
7793 2011-03-24  Jeff Law  <law@redhat.com>
7794
7795         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
7796         unused variable "ann".
7797         (remove_unused_locals): Likewise.
7798
7799         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
7800         statement.
7801
7802         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
7803         after it is freed.
7804
7805 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7806
7807         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
7808         for invalid symbolic addresses.
7809         (s390_secondary_reload): Don't use s390_check_symref_alignment for
7810         larl operands.
7811
7812 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7813
7814         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
7815         the argument in calls to fold_truth_not_expr.
7816
7817 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7818
7819         * tree.c (record_node_allocation_statistics): New function.
7820         (make_node_stat, copy_node_stat, build_string): Call it.
7821         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
7822         (build1_stat, build_omp_clause): Likewise.
7823
7824 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7825
7826         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
7827         last commit.
7828
7829 2011-03-24  Richard Guenther  <rguenther@suse.de>
7830
7831         PR tree-optimization/48271
7832         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
7833         blocks that still exist.
7834
7835 2011-03-24  Richard Guenther  <rguenther@suse.de>
7836
7837         PR tree-optimization/48270
7838         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
7839         not free datarefs before ddrs.
7840
7841 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7842
7843         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
7844         from the address built for a reference with variable offset.
7845
7846 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
7847
7848         PR target/48237
7849         * config/i386/i386.md (*movdf_internal_rex64): Do not split
7850         alternatives that can be handled with movq or movabsq insn.
7851         (*movdf_internal): Disable for !TARGET_64BIT.
7852         (*movdf_internal_nointeger): Ditto.
7853         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
7854
7855 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7856
7857         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7858         (FUNCTION_ARG_ADVANCE): Likewise.
7859         * tm.texi.in: Change references to them to hook references.
7860         * tm.texi: Regenerate.
7861         * targhooks.c (default_function_arg): Eliminate check for target macro.
7862         (default_function_incoming_arg): Likewise.
7863         (default_function_arg_advance): Likewise.
7864         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7865         (function_arg_advance): Likewise.
7866         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7867
7868 2011-03-24  Richard Guenther  <rguenther@suse.de>
7869
7870         PR middle-end/48269
7871         * tree-object-size.c (addr_object_size): Do not double-account
7872         for MEM_REF offsets.
7873
7874 2011-03-24  Diego Novillo  <dnovillo@google.com>
7875
7876         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
7877         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
7878         (lto_input_data_block): Move from lto-opts.c.  Make extern.
7879         Update all users.
7880         (lto_input_string): Rename from input_string.  Make extern.
7881         Update all users.
7882         * lto-streamer-out.c (lto_output_string_with_length): Rename from
7883         output_string_with_length.
7884         Output 0 to indicate a non-NULL string.  Update all callers to
7885         not emit 0.
7886         (lto_output_string): Rename from output_string.  Make extern.
7887         Update all users.
7888         (lto_output_decl_state_streams): Make extern.
7889         (lto_output_decl_state_refs): Make extern.
7890         * lto-streamer.h (lto_input_string): Declare.
7891         (lto_input_data_block): Declare.
7892         (lto_output_string): Declare.
7893         (lto_output_string_with_length): Declare.
7894         (lto_output_decl_state_streams): Declare.
7895         (lto_output_decl_state_refs): Declare.
7896
7897 2011-03-24  Richard Guenther  <rguenther@suse.de>
7898
7899         PR tree-optimization/46562
7900         * tree.c (build_invariant_address): New function.
7901         * tree.h (build_invariant_address): Declare.
7902         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
7903         a renamed function moved ...
7904         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
7905         Take valueization callback parameter.
7906         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
7907         * gimple-fold.h: New file.
7908         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
7909         (ccp_fold, fold_const_aggregate_ref,
7910         fold_ctor_reference, fold_nonarray_ctor_reference,
7911         fold_array_ctor_reference, fold_string_cst_ctor_reference,
7912         get_base_constructor): Move ...
7913         * gimple-fold.c: ... here.
7914         (gimple_fold_stmt_to_constant_1): New function
7915         split out from ccp_fold.  Take a valueization callback parameter.
7916         Valueize all operands.
7917         (gimple_fold_stmt_to_constant): New wrapper function.
7918         (fold_const_aggregate_ref_1): New function split out from
7919         fold_const_aggregate_ref.  Take a valueization callback parameter.
7920         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
7921         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
7922         invariant POINTER_PLUS_EXPRs to invariant form.
7923         (vn_valueize): New function.
7924         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
7925         * tree-vrp.c (vrp_valueize): New function.
7926         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
7927         to fold statements to constants.
7928         * tree-ssa-pre.c (eliminate): Properly guard propagation of
7929         function declarations.
7930         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
7931         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
7932
7933 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7934
7935         * config/h8300/predicates.md (jump_address_operand): Fix register
7936         mode check.
7937
7938 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
7939
7940         * doc/invoke.texi (max-stores-to-sink): Document.
7941         * params.h (MAX_STORES_TO_SINK): Define.
7942         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
7943         if either vectorization or if-conversion is disabled.
7944         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
7945         tree-vect-data-refs.c vect_equal_offsets.
7946         (dr_equal_offsets_p): New function.
7947         (find_data_references_in_bb): Remove static.
7948         * tree-data-ref.h (find_data_references_in_bb): Declare.
7949         (dr_equal_offsets_p): Likewise.
7950         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
7951         (vect_drs_dependent_in_basic_block): Update calls to
7952         vect_equal_offsets.
7953         (vect_check_interleaving): Likewise.
7954         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
7955         (cond_if_else_store_replacement): Rename to...
7956         (cond_if_else_store_replacement_1): ... this.  Change arguments and
7957         documentation.
7958         (cond_if_else_store_replacement): New function.
7959         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
7960         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
7961
7962 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
7963
7964         PR target/46934
7965         * config/arm/arm.md (casesi): Use the gen_int_mode() function
7966         to subtract lower bound instead of GEN_INT().
7967
7968 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
7969
7970         PR other/48179
7971         PR other/48221
7972         PR other/48234
7973         * doc/extend.texi (Alignment): Move section to match order in TOC.
7974         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
7975         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
7976
7977 2011-03-23  Jeff Law  <law@redhat.com>
7978
7979         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
7980         before removing the edge.
7981
7982         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
7983         it may have been freed by redirect_branch_edge or
7984         redirect_edge_succ_nodup.
7985
7986 2011-03-23  Richard Guenther  <rguenther@suse.de>
7987
7988         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
7989         (check_va_list_escapes): Likewise.
7990         (check_all_va_list_escapes): Likewise.
7991
7992 2011-03-23  Richard Guenther  <rguenther@suse.de>
7993
7994         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
7995         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
7996         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
7997         (alias.o): Likewise.
7998         (ipa-type-escape.o): Remove.
7999         (ipa-struct-reorg.o): Likewise.
8000         (GTFILES): Remove ipa-struct-reorg.c.
8001         * alias.c: Do not include ipa-type-escape.h.
8002         * tree-ssa-alias.c: Likewise.
8003         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
8004         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
8005         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
8006         and ipa-type-escape passes.
8007         * tree-pass.h (pass_ipa_type_escape): Remove.
8008         (pass_ipa_struct_reorg): Likewise.
8009         * ipa-struct-reorg.h: Remove.
8010         * ipa-struct-reorg.c: Likewise.
8011         * ipa-type-escape.h: Likewise.
8012         * ipa-type-escape.c: Likewise.
8013         * doc/invoke.texi (-fipa-struct-reorg): Remove.
8014         (--param struct-reorg-cold-struct-ratio): Likewise.
8015         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8016         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8017         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
8018
8019 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8020
8021         * config/s390/2084.md: Enable all insn reservations also for z9_ec
8022         cpu attribute value.
8023         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
8024         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
8025         * config/s390/s390.c (processor_flags_table): New constant array.
8026         (s390_handle_arch_option): Remove.
8027         (s390_handle_option): Remove s390_handle_arch_option invocations
8028         and OPT_mwarn_framesize_ handling.
8029         (s390_option_override): Remove s390_handle_arch_option invocation.
8030         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
8031         warnings.
8032         * config/s390/s390.md (cpu attribute): Add z9_ec value.
8033         * config/s390/s390.opt (s390_tune, s390_arch)
8034         (march=): Replace s390_arch_option enum and values with
8035         processor_type.  Set variable name to s390_arch.  Set
8036         initialization value.
8037         (mtune=): Replace s390_arch_option with processor_type.  Set
8038         variable name to s390_tune.  Set initialization value.
8039
8040 2011-03-23  Julian Brown  <julian@codesourcery.com>
8041
8042         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
8043         accesses which are not naturally aligned.
8044
8045 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
8046
8047         PR target/47553
8048         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
8049
8050 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
8051
8052         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
8053         parameter from "int" to "enum insn_code".
8054         (expand_operand_type): New enum.
8055         (expand_operand): New structure.
8056         (create_expand_operand): New function.
8057         (create_fixed_operand, create_output_operand): Likewise
8058         (create_input_operand, create_convert_operand_to): Likewise.
8059         (create_convert_operand_from, create_address_operand): Likewise.
8060         (create_integer_operand): Likewise.
8061         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
8062         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8063         (expand_insn, expand_jump_insn): Likewise.
8064         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
8065         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
8066         (expand_movstr, expand_builtin___clear_cache): Likewise.
8067         (expand_builtin_lock_release): Likewise.
8068         * explow.c (allocate_dynamic_stack_space): Likewise.
8069         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
8070         and use the default handling in that case.
8071         * expmed.c (check_predicate_volatile_ok): Delete.
8072         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
8073         (emit_cstore): Likewise.
8074         * expr.c (emit_block_move_via_movmem): Likewise.
8075         (set_storage_via_setmem, expand_assignment): Likewise.
8076         (emit_storent_insn, try_casesi): Likewise.
8077         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
8078         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
8079         (expand_vec_shift_expr, expand_binop_directly): Likewise.
8080         (expand_twoval_unop, expand_twoval_binop): Likewise.
8081         (expand_unop_direct, emit_indirect_jump): Likewise.
8082         (emit_conditional_move, vector_compare_rtx): Likewise.
8083         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
8084         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
8085         (expand_sync_lock_test_and_set): Likewise.
8086         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
8087         (emit_unop_insn): Likewise.
8088         (expand_copysign_absneg): Change icode to an insn_code.
8089         (create_convert_operand_from_type): New function.
8090         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
8091         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8092         (expand_insn, expand_jump_insn): Likewise.
8093         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
8094         than const_int_operand for operand 2.
8095
8096 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8097
8098         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
8099         if possible.
8100
8101 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8102
8103         * emit-rtl.c (emit_pattern_before_noloc): New function.
8104         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
8105         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
8106         (emit_pattern_after_noloc): New function.
8107         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
8108         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
8109
8110 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8111
8112         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
8113         (__ffsDI2): Likewise.
8114
8115 2011-03-22  Richard Henderson  <rth@redhat.com>
8116
8117         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
8118         of !TARGET_ABI_OPEN_VMS.
8119         (alpha_trampoline_init, alpha_start_function): Likewise.
8120         (alpha_expand_epilogue, alpha_file_start): Likewise.
8121         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
8122         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
8123         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
8124         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
8125         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
8126
8127 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8128
8129         * config/s390/s390-opts.h: New.
8130         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
8131         s390_arch_flags, s390_warn_framesize, s390_stack_size,
8132         s390_stack_guard): Remove.
8133         (s390_handle_arch_option): Return void.  Take enum
8134         s390_arch_option value instead of string and searching array.
8135         (s390_handle_option): Don't assert that global structures are in
8136         use.  Access variables via opts pointer.  Use error_at.  Don't use
8137         sscanf for -mstack-guard= or -mstack-size=.  Update call to
8138         s390_handle_arch_option.
8139         (s390_option_override): Update call to s390_handle_arch_option.
8140         (s390_emit_prologue): Use %d format for s390_stack_size in
8141         diagnostic.  Use %wd for HOST_WIDE_INT.
8142         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
8143         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
8144         * config/s390/s390.opt (config/s390/s390-opts.h): New
8145         HeaderInclude entry.
8146         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
8147         s390_arch_flags, s390_warn_framesize): New Variable entries.
8148         (s390_arch_option): New Enum and EnumValue entries.
8149         (march=): Use Enum instead of Var.
8150         (mstack-guard=, mstack-size=): Use UInteger and Var.
8151         (mtune=): Use Enum.
8152
8153 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8154
8155         * config/score/score.c (score_handle_option): Don't assert that
8156         global structures are in use.  Access target_flags via opts
8157         pointer.  Use value of -march= option to determine target_flags
8158         settings.
8159         * config/score/score.opt (march=): Use Enum.
8160         (score_arch): New Enum and EnumValue entries.
8161
8162 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8163
8164         * config/mep/mep.c (option_mtiny_specified): Remove.
8165         (mep_option_override): Move register handling for -mivc2 from
8166         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
8167         instead of option_mtiny_specified.
8168         (mep_handle_option): Access target_flags via opts pointer.  Don't
8169         assert that global structures are in use.  Defer part of -mivc2
8170         handling and move it to mep_option_override.
8171         * config/mep/mep.opt (IVC2): New Mask entry.
8172         (mivc2): Use Var and Defer instead of Mask.
8173
8174 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8175
8176         * config/v850/v850-opts.h: New.
8177         * config/v850/v850.c (small_memory): Replace with
8178         small_memory_physical_max array.  Make that array static const.
8179         (v850_handle_memory_option): Take integer value of argument.  Take
8180         gcc_options pointer, option text and location.  Return void.
8181         Update for changes to small memory structures.
8182         (v850_handle_option): Access target_flags via opts pointer.  Don't
8183         assert that global structures are in use.  Update calls to
8184         v850_handle_memory_option.
8185         (v850_encode_data_area): Update references to small memory settings.
8186         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
8187         (enum small_memory_type): Move to v850-opts.h.
8188         * config/v850/v850.opt (config/v850/v850-opts.h): New
8189         HeaderInclude entry.
8190         (small_memory_max): New Variable entry.
8191         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
8192         (mtda, mzda): Likewise.
8193
8194 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8195
8196         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
8197         pointer.  Don't assert that global structures are in use.
8198
8199 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8200
8201         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
8202         via opts pointer.  Don't assert that global structures are in use.
8203
8204 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8205
8206         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
8207         (munix=93): Use Var.
8208         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
8209         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
8210         * config/pa/pa-opts.h: New.
8211         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
8212         (pa_handle_option): Don't assert that global structures are in
8213         use.  Access target_flags via opts pointer.  Don't handle
8214         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
8215         OPT_munix_98 here.
8216         (pa_option_override): Handle deferred OPT_mfixed_range_.
8217
8218 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8219
8220         * config/mn10300/mn10300-opts.h: New.
8221         * config/mn10300/mn10300.c (mn10300_processor,
8222         mn10300_tune_string): Remove.
8223         (mn10300_handle_option): Don't assert that global structures are
8224         in use.  Access mn10300_processor via opts pointer.  Don't handle
8225         OPT_mtune_ here.
8226         * config/mn10300/mn10300.h (enum processor_type): Move to
8227         mn10300-opts.h.
8228         (mn10300_processor): Remove.
8229         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
8230         HeaderInclude entry.
8231         (mn10300_processor): New Variable entry.
8232         (mtune=): Use Var.
8233
8234 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8235
8236         * config/microblaze/microblaze.c: Don't include opts.h.
8237         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
8238         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
8239         (mno-clearbss): Use Var and Warn.
8240
8241 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8242
8243         * config/m32r/m32r-opts.h: New.
8244         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
8245         (m32r_handle_option): Don't assert that global structures are in
8246         use.  Access target_flags and m32r_cache_flush_func via opts
8247         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
8248         OPT_mno_flush_trap here.
8249         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
8250         include of m32r-opts.h.
8251         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
8252         HeaderInclude entry.
8253         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
8254         (mmodel=): Use Enum and Var.
8255         (m32r_model): New Enum and EnumValue entries.
8256         (mno-flush-trap): Use Var.
8257         (msdata=): Use Enum and Var.
8258         (m32r_sdata): New Enum and EnumValue entries.
8259
8260 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8261
8262         * config/m32c/m32c.c: Don't include opts.h.
8263         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
8264         m32c_handle_option): Remove.
8265         (m32c_option_override): Check global_options_set.x_target_memregs
8266         instead of target_memregs_set.
8267         * config/m32c/m32c.h (target_memregs): Remove.
8268         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
8269         variable.
8270
8271 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8272
8273         * config/iq2000/iq2000-opts.h: New.
8274         * config/iq2000/iq2000.c: Don't include opts.h.
8275         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
8276         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
8277         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
8278         HeaderInclude entry.
8279         (iq2000_tune): New Variable entry.
8280         (march=): Add comment.  Use Enum.
8281         (iq2000_arch): New Enum and EnumValue entries.
8282         (mcpu=): Use Enum and Var.
8283         (iq2000_tune): New Enum and EnumValue entries.
8284
8285 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8286
8287         * config/ia64/ia64-opts.h: New.
8288         * config/ia64/ia64.c (ia64_tune): Remove.
8289         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
8290         here.  Use error_at.
8291         (ia64_option_override): Handle deferred OPT_mfixed_range_.
8292         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
8293         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
8294         HeaderInclude entry.
8295         (ia64_tune): New Variable entry.
8296         (mfixed-range=): Use Defer and Var.
8297         (mtune=): Use Enum and Var.
8298         (ia64_tune): New Enum and EnumValue entries.
8299
8300 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8301
8302         * config/frv/frv-opts.h: New.
8303         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
8304         frv-opts.h.
8305         (frv_cpu_type): Remove.
8306         * config/frv/frv.c: Don't include opts.h.
8307         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
8308         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
8309         (frv_cpu_type): New Variable entry.
8310         (frv_cpu): New Enum and EnumValue entries.
8311
8312 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8313
8314         * config/cris/cris.c (cris_handle_option): Access target_flags via
8315         opts pointer.  Don't assert that global structures are in use.
8316         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
8317         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
8318
8319 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8320
8321         * config/bfin/bfin-opts.h: New.
8322         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
8323         bfin_si_revision, bfin_workarounds): Remove.
8324         (bfin_cpus): Make static const.
8325         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
8326         not bfin_lib_id_given.
8327         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
8328         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
8329         pointer. Use error_at.  Don't assert that global structures are in use.
8330         * config/bfin/bfin.h: Include bfin-opts.h.
8331         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
8332         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
8333         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
8334         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
8335         entries.
8336
8337 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8338
8339         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
8340         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
8341         or -msoft-float here.
8342         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
8343         -msoft-float and -mhard-float.
8344         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
8345         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8346         msoft-float.
8347         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
8348         -msoft-float.
8349         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
8350         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
8351         not mhard-float.
8352         (LIBGCC_SPEC): Don't handle -msoft-float.
8353         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
8354         -mhard-float.
8355         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8356         msoft-float.
8357         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
8358         -mfloat-abi=*, not -msoft-float and -mhard-float.
8359         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
8360         -msoft-float.
8361         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
8362         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
8363         mhard-float and msoft-float.
8364         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
8365         mfloat-abi=soft in comments, not mhard-float and msoft-float.
8366         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8367         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
8368         mhard-float.
8369         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
8370         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
8371         msoft-float.
8372         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
8373         not mhard-float.
8374         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
8375         not msoft-float.
8376
8377 2011-03-22  Richard Henderson  <rth@redhat.com>
8378
8379         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
8380         TARGET_ABI_WINDOWS_NT.
8381         (alpha_output_function_end_prologue): Likewise.
8382         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
8383         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8384         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
8385         (trap, *movsi_nt_vms): Likewise.
8386         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
8387         (*tablejump_osf_nt_internal): Remove.
8388         * config/alpha/predicates.md (input_operand): Only test Pmode.
8389
8390 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8391
8392         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
8393         via opts pointer.  Use error_at.  Don't assert that global
8394         structures are in use.
8395
8396 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8397
8398         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
8399         (ix86_handle_option): Access ix86_isa_flags and
8400         ix86_isa_flags_explicit via opts pointer.  Don't assert that
8401         global structures are in use.
8402         (ix86_function_specific_save, ix86_function_specific_restore):
8403         Update ix86_isa_flags_explicit field name.
8404         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
8405         (ix86_isa_flags_explicit): Rename TargetSave entry to
8406         x_ix86_isa_flags_explicit.
8407
8408 2011-03-22  Richard Henderson  <rth@redhat.com>
8409
8410         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
8411         (alpha_option_override, direct_return): Likewise.
8412         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
8413         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
8414         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
8415         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8416         (alpha_expand_epilogue, alpha_end_function): Likewise.
8417         (alpha_init_libfuncs): Likewise.
8418         (struct machine_function): Remove unicosmk members.
8419         (print_operand) ['t']: Remove.
8420         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
8421         unicosmk_output_module_name, unicosmk_output_common,
8422         current_section_align, unicosmk_output_text_section_asm_op,
8423         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
8424         unicosmk_section_type_flags, unicosmk_unique_section,
8425         unicosmk_asm_named_section, unicosmk_insert_attributes,
8426         unicosmk_output_align, unicosmk_defer_case_vector,
8427         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
8428         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
8429         unicosmk_output_ssib, unicosmk_add_call_info_word,
8430         unicosmk_extern_head, unicosmk_output_default_externs,
8431         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
8432         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
8433         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
8434         * config/alpha/alpha-protos.h: Update.
8435         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
8436         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
8437         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
8438         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
8439         (*mulsi_se, mulvsi3): Likewise.
8440         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
8441         (*divmodsi_internal, call, call_value, realign): Likewise.
8442         (moddi3, umoddi3): Likewise; remove duplicate expander.
8443         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
8444         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
8445         (*movdi_nofix): Remove r/U alternative.
8446         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
8447         * config/alpha/constraints.md ("U"): Remove.
8448         * config/alpha/predicates.md (call_operand"): Don't test
8449         TARGET_ABI_UNICOSMK.
8450
8451 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8452
8453         * target.def (handle_option): Take gcc_options and
8454         cl_decoded_option pointers and location_t.
8455         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
8456         * doc/tm.texi: Regenerate.
8457         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
8458         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
8459         * lto-opts.c (lto_reissue_options): Generate option structure for
8460         targetm.handle_option call.
8461         * opts.c (target_handle_option): Update call to
8462         targetm.handle_option.  Remove assertions about values now passed
8463         down to hook.
8464         * targhooks.c (default_target_handle_option): New.
8465         * targhooks.h (default_target_handle_option): Declare.
8466         * config/alpha/alpha.c: Include opts.h.
8467         (alpha_handle_option): Update to new hook interface.
8468         * config/arm/arm.c: Include opts.h.
8469         (arm_handle_option): Update to new hook interface.
8470         * config/arm/t-arm (arm.o): Update dependencies.
8471         * config/bfin/bfin.c: Include opts.h.
8472         (bfin_handle_option): Update to new hook interface.
8473         * config/cris/cris.c: Include opts.h.
8474         (cris_handle_option): Update to new hook interface.
8475         * config/frv/frv.c: Include opts.h.
8476         (frv_handle_option): Update to new hook interface.
8477         * config/i386/i386.c: Include opts.h.
8478         (ix86_handle_option): Update to new hook interface.
8479         (ix86_valid_target_attribute_inner_p): Generate option structure
8480         for call to ix86_handle_option.
8481         * config/i386/t-i386 (i386.o): Update dependencies.
8482         * config/ia64/ia64.c: Include opts.h.
8483         (ia64_handle_option): Update to new hook interface.
8484         * config/ia64/t-ia64 (ia64.o): Update dependencies.
8485         * config/iq2000/iq2000.c: Include opts.h.
8486         (iq2000_handle_option): Update to new hook interface.
8487         * config/m32c/m32c.c: Include opts.h.
8488         (m32c_handle_option): Update to new hook interface.
8489         * config/m32r/m32r.c: Include opts.h.
8490         (m32r_handle_option): Update to new hook interface.
8491         * config/m68k/m68k.c: Include opts.h.
8492         (m68k_handle_option): Update to new hook interface.
8493         * config/mep/mep.c: Include opts.h.
8494         (mep_handle_option): Update to new hook interface.
8495         * config/microblaze/microblaze.c: Include opts.h.
8496         (microblaze_handle_option): Update to new hook interface.
8497         * config/mips/mips.c: Include opts.h.
8498         (mips_handle_option): Update to new hook interface.
8499         * config/mn10300/mn10300.c: Include opts.h.
8500         (mn10300_handle_option): Update to new hook interface.
8501         * config/pa/pa.c: Include opts.h.
8502         (pa_handle_option): Update to new hook interface.
8503         * config/pdp11/pdp11.c: Include opts.h.
8504         (pdp11_handle_option): Update to new hook interface.
8505         * config/rs6000/rs6000.c: Include opts.h.
8506         (rs6000_handle_option): Update to new hook interface.
8507         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8508         * config/rx/rx.c: Include opts.h.
8509         (rx_handle_option): Update to new hook interface.
8510         * config/s390/s390.c: Include opts.h.
8511         (s390_handle_option): Update to new hook interface.
8512         * config/score/score.c: Include opts.h.
8513         (score_handle_option): Update to new hook interface.
8514         * config/sh/sh.c: Include opts.h.
8515         (sh_handle_option): Update to new hook interface.
8516         * config/sparc/sparc.c: Include opts.h.
8517         (sparc_handle_option): Update to new hook interface.
8518         * config/v850/v850.c: Include opts.h.
8519         (v850_handle_option): Update to new hook interface.
8520
8521 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8522
8523         * gcc.c (driver_unknown_option_callback): Only permit and save
8524         unknown -Wno- options.
8525         (driver_wrong_lang_callback): Save options directly instead of via
8526         driver_unknown_option_callback.
8527
8528 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
8529
8530         * combine.c (simplify_set): Try harder to find the best CC mode when
8531         simplifying a nested COMPARE on the RHS.
8532
8533 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8534
8535         * config/alpha/gnu.h: Remove.
8536         * config/arc: Remove directory.
8537         * config/arm/netbsd.h: Remove.
8538         * config/arm/t-pe: Remove.
8539         * config/crx: Remove directory.
8540         * config/i386/netbsd.h: Remove.
8541         * config/m68hc11: Remove directory.
8542         * config/m68k/uclinux-oldabi.h: Remove.
8543         * config/mcore/mcore-pe.h: Remove.
8544         * config/mcore/t-mcore-pe: Remove.
8545         * config/netbsd-aout.h: Remove.
8546         * config/rs6000/gnu.h: Remove.
8547         * config/sh/sh-symbian.h: Remove.
8548         * config/sh/symbian-base.c: Remove.
8549         * config/sh/symbian-c.c: Remove.
8550         * config/sh/symbian-cxx.c: Remove.
8551         * config/sh/symbian-post.h: Remove.
8552         * config/sh/symbian-pre.h: Remove.
8553         * config/sh/t-symbian: Remove.
8554         * config/svr3.h: Remove.
8555         * config/vax/netbsd.h: Remove.
8556         * config.build: Don't handle i[34567]86-*-pe.
8557         * config.gcc: Remove handling of deprecations for most deprecated
8558         targets.
8559         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
8560         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
8561         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
8562         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
8563         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
8564         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
8565         Remove cases.
8566         * config.host: Don't handle i[34567]86-*-pe.
8567         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
8568         (ASM_SPEC32): Don't handle -mcall-gnu.
8569         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
8570         -mcall-gnu.
8571         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
8572         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
8573         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8574         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
8575         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
8576         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
8577         conditional on SYMBIAN.
8578         * configure.ac: Don't handle powerpc*-*-gnu*.
8579         * configure: Regenerate.
8580         * doc/extend.texi (interrupt attribute): Don't mention CRX.
8581         * doc/install-old.texi (m6811, m6812): Don't mention.
8582         * doc/install.texi (arc-*-elf*): Don't document multilib option.
8583         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
8584         (m68k-uclinuxoldabi): Don't mention.
8585         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
8586         Remove.
8587         (-mcall-gnu): Remove.
8588         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
8589         families): Remove constraint documentation.
8590
8591 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
8592
8593         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
8594         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
8595         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8596
8597 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8598
8599         PR target/48226
8600         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
8601         vector when peeking at the next token for vector, don't expand the
8602         keywords.
8603
8604 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
8605
8606         * config/avr/avr-protos.h (expand_epilogue): Change prototype
8607         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
8608         * config/avr/avr.c (init_cumulative_args)
8609         (avr_function_arg_advance): Use it.
8610         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
8611         sibcall epilogues.
8612         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
8613         (avr_function_ok_for_sibcall): ...this new function.
8614         (avr_lookup_function_attribute1): New static Function.
8615         (avr_naked_function_p, interrupt_function_p)
8616         (signal_function_p, avr_OS_task_function_p)
8617         (avr_OS_main_function_p): Use it.
8618         * config/avr/avr.md ("sibcall", "sibcall_value")
8619         ("sibcall_epilogue"): New expander.
8620         ("*call_insn", "*call_value_insn"): New insn.
8621         ("call_insn", "call_value_insn"): Remove
8622         ("call", "call_value", "epilogue"): Change expander to handle
8623         sibling calls.
8624
8625 2011-03-21  Nick Clifton  <nickc@redhat.com>
8626
8627         * doc/invoke.texi (Overall Options): Move closing brace to end of
8628         options list.
8629         (Optimization Options): Add missing @gol.
8630         (Directory Options): Likewise.
8631         (i386 and x86-64 Options): Likewise.
8632         (RS6000 and PowerPC Options): Likewise.
8633         (i386 and x86-64 Windows Options): Likewise.
8634         (V850 Options): Add text missing from descriptions.
8635
8636 2011-03-22  Richard Henderson  <rth@redhat.com>
8637
8638         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
8639         (avr_incoming_return_addr_rtx): New.
8640         (emit_push_byte): New.
8641         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
8642         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
8643         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
8644         (emit_pop_byte): New.
8645         (expand_epilogue): Use it.  Pop frame pointer by bytes.
8646         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
8647         (INCOMING_RETURN_ADDR_RTX): New.
8648         (INCOMING_FRAME_SP_OFFSET): New.
8649         (ARG_POINTER_CFA_OFFSET): New.
8650         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
8651         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
8652         (pophi): Remove.
8653
8654         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
8655
8656 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8657
8658         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8659         (FUNCTION_ARG_ADVANCE): Likewise.
8660         * tm.texi.in: Change references to them to hook references.
8661         * tm.texi: Regenerate.
8662         * targhooks.c (default_function_arg): Eliminate check for target
8663         macro.
8664         (default_function_incoming_arg): Likewise.
8665         (default_function_arg_advance): Likewise.
8666         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8667         (function_arg_advance): Likewise.
8668         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8669
8670 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8671
8672         * tree.c (build_call_1): New function.
8673         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
8674
8675 2011-03-22  Richard Guenther  <rguenther@suse.de>
8676
8677         PR tree-optimization/48228
8678         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
8679         for single-arg PHIs.
8680
8681 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
8682
8683         PR rtl-optimization/48143
8684         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
8685         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
8686         sse2_cvtps2pd): Likewise.
8687
8688 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8689
8690         * recog.c (canonicalize_change_group): Use validate_unshare_change.
8691
8692 2011-03-22  Richard Guenther  <rguenther@suse.de>
8693
8694         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
8695         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
8696         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
8697         and REALIGN_LOAD_EXPR.
8698         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8699         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8700         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8701         DOT_PROD_EXPR case ...
8702         (expand_expr_real_2): ... here.
8703         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8704         and REALIGN_LOAD_EXPR.
8705         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8706         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8707         (vect_create_epilog_for_reduction): Likewise.
8708         (vectorizable_reduction): Likewise.
8709         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8710         * tree-vect-stmts.c (vectorizable_load): Likewise.
8711
8712 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
8713
8714         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8715
8716 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8717
8718         * config/s390/s390.c (s390_delegitimize_address): Fix offset
8719         handling for PLTOFF/GOTOFF.
8720
8721 2011-03-22  Nick Clifton  <nickc@redhat.com>
8722
8723         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8724         trailing backslash from the end of the macro definition.
8725
8726 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8727
8728         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8729         and PLT unspecs.
8730
8731 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
8732
8733         * expr.h (prepare_operand): Move to...
8734         * optabs.h (prepare_operand): ...here and change the insn code
8735         parameter from "int" to "enum insn_code".
8736         (insn_operand_matches): Declare.
8737         * expr.c (init_expr_target): Use insn_operand_matches.
8738         (compress_float_constant): Likewise.
8739         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8740         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8741         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
8742         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8743         Likewise.
8744         (gen_cond_trap): Likewise.
8745         (prepare_operand): Likewise.  Change icode to an insn_code.
8746         (insn_operand_matches): New function.
8747         * reload.c (find_reloads_address_1): Use insn_operand_matches.
8748         * reload1.c (gen_reload): Likewise.
8749         * targhooks.c (default_secondary_reload): Likewise.
8750
8751 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
8752
8753         * config/alpha/alpha.md (unspec): New define_c_enum.
8754         (unspecv): Ditto.
8755
8756 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
8757
8758         PR debug/48214
8759         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8760         between a call and its CALL_ARG_LOCATION note.
8761
8762 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
8763
8764         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8765
8766 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
8767
8768         PR c/42544
8769         PR c/48197
8770         * c-common.c (shorten_compare): If primopN is first sign-extended
8771         to opN and then zero-extended to result type, set primopN to opN.
8772
8773 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
8774
8775         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
8776         for barrier handlers.
8777
8778 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8779
8780         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
8781         UNSPEC constants to be in the unspec enumeration, and redefine
8782         all UNSPECV constants to be in the unspecv enumeration, so that
8783         dumps print which unspec/unspec_volatile this is.
8784         * config/rs6000/vector.md (UNSPEC_*): Ditto.
8785         * config/rs6000/paired.md (UNSPEC_*): Ditto.
8786         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
8787         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
8788         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
8789
8790         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
8791         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
8792         UNSPECV_LWSYNC, since these are used as unspec_volatile.
8793         * config/rs6000/sync.md (isync, lwsync): Ditto.
8794
8795 2011-03-21  Richard Guenther  <rguenther@suse.de>
8796
8797         * params.def (lto-min-partition): Fix typo.
8798
8799 2011-03-21  Richard Guenther  <rguenther@suse.de>
8800
8801         PR c/47939
8802         * c-decl.c (grokdeclarator): Drop to the main variant only
8803         for array types.  Drop flag_gen_aux_info check.
8804
8805 2011-03-21  Richard Guenther  <rguenther@suse.de>
8806
8807         PR translation/47911
8808         * params.def (lto-partitions): Fix typo.
8809         (lto-min-partition): Fix wording.
8810
8811 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
8812
8813         * config/rs6000/t-freebsd: Remove duplication from file.
8814
8815 2011-03-21  Richard Guenther  <rguenther@suse.de>
8816
8817         PR middle-end/47661
8818         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
8819
8820 2011-03-21  Richard Guenther  <rguenther@suse.de>
8821
8822         PR lto/48210
8823         * params.def (lto-partitions): Require at least 1 partition.
8824
8825 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8826
8827         * gthr-solaris.h: Remove.
8828         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
8829         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
8830         (LIB_SPEC): Likewise.
8831         * config/sol2.opt (threads): Remove.
8832         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
8833         (sparc*-*-solaris2*): Likewise.
8834         * configure.ac (enable_threads): Enable solaris support.
8835         * configure: Regenerate.
8836         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
8837         * doc/install.texi (Configuration, --enable-threads=lib): Remove
8838         solaris.
8839
8840 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8841
8842         * config.gcc: Obsolete *-*-solaris2.8*.
8843         * doc/install.texi (Specific, *-*-solaris2*): Document it.
8844
8845 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8846
8847         PR bootstrap/48135
8848         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
8849         reference.  Solaris 8 perl works.
8850
8851 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8852
8853         PR bootstrap/48135
8854         * doc/install.texi (Prerequisites): Move jar etc. up.
8855         Explain support library version requirements.
8856
8857 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8858
8859         PR bootstrap/48135
8860         * doc/install.texi (Prerequisites): Move Perl to build
8861         requirements.  Always necessary on Solaris 2 with Sun ld.
8862
8863 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8864
8865         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
8866         binutils 2.21.
8867         (Specific, i?86-*-solaris2.[89]): Likewise.
8868         (Specific, i?86-*-solaris2.10): Likewise.
8869         (Specific, mips-sgi-irix6): Likewise.
8870         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
8871         Update for binutils 2.21.
8872
8873 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8874
8875         * configure.ac (gcc_cv_lto_plugin): Fix typo.
8876         Allow -fuse-linker-plugin for non-default plugin linker.
8877         * configure: Regenerate.
8878
8879 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
8880
8881         PR bootstrap/48167
8882         * gengtype.c (files_rules): Added rule for cp/parser.h.
8883
8884 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
8885
8886         PR target/48213
8887         * config/s390/s390.c (s390_delegitimize_address): Don't call
8888         lowpart_subreg if orig_x has BLKmode.
8889
8890 2011-03-21  Kai Tietz  <ktietz@redhat.com>
8891
8892         PR target/12171
8893         * doc/plugins.texi: Adjust documentation for plugin register_callback.
8894         * tree.h (attribute_spec): Add new member affects_type_identity.
8895         * attribs.c (empty_attribute_table): Adjust attribute_spec
8896         initializers.
8897         * config/alpha/alpha.c: Likewise.
8898         * config/arc/arc.c: Likewise.
8899         * config/arm/arm.c: Likewise.
8900         * config/avr/avr.c: Likewise.
8901         * config/bfin/bfin.c: Likewise.
8902         * config/crx/crx.c: Likewise.
8903         * config/darwin.h: Likewise.
8904         * config/h8300/h8300.c: Likewise.
8905         * config/i386/cygming.h: Likewise.
8906         * config/i386/i386.c: Likewise.
8907         * config/ia64/ia64.c: Likewise.
8908         * config/m32c/m32c.c: Likewise.
8909         * config/m32r/m32r.c: Likewise.
8910         * config/m68hc11/m68hc11.c: Likewise.
8911         * config/m68k/m68k.c: Likewise.
8912         * config/mcore/mcore.c: Likewise.
8913         * config/mep/mep.c: Likewise.
8914         * config/microblaze/microblaze.c: Likewise.
8915         * config/mips/mips.c: Likewise.
8916         * config/rs6000/rs6000.c: Likewise.
8917         * config/rx/rx.c: Likewise.
8918         * config/sh/sh.c: Likewise.
8919         * config/sol2.h: Likewise.
8920         * config/sparc/sparc.c: Likewise.
8921         * config/spu/spu.c: Likewise.
8922         * config/stormy16/stormy16.c: Likewise.
8923         * config/v850/v850.c: Likewise.
8924
8925 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
8926
8927         * simplify-rtx.c (simplify_binary_operation_1): Handle
8928         (xor (and A B) C) case when B and C are both constants.
8929
8930 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
8931
8932         * tree-dfa.c (add_referenced_var): Fix typo in comment.
8933
8934 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
8935
8936         PR bootstrap/48168
8937         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
8938
8939 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
8940
8941         PR rtl-optimization/48156
8942         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
8943         assume df and df_lr are not NULL.
8944
8945 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8946
8947         PR debug/48023
8948         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
8949         between a call and its CALL_ARG_LOCATION note.
8950
8951 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
8952
8953         PR debug/48178
8954         * config/sh/sh.c (find_barrier): Don't emit a constant pool
8955         between a call and its corresponding CALL_ARG_LOCATION note.
8956
8957 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
8958
8959         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
8960         instead of loop. Use HARD_REGISTER_NUM_P predicate.
8961         * haifa-sched.c (setup_ref_regs): Ditto.
8962         * caller-save.c (add_used_regs_1): Ditto.
8963         * dse.c (look_for_hardregs): Ditto.
8964         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
8965         * sched-rgn.c (check_live_1): Ditto.
8966
8967 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
8968
8969         * c-decl.c (diagnose_mismatched_decls): Give an error for
8970         redefining a typedef with variably modified type.
8971
8972 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
8973
8974         * c-decl.c (grokfield): Don't allow typedefs for structures or
8975         unions with no tag by default.
8976         * doc/extend.texi (Unnamed Fields): Update.
8977
8978 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
8979
8980         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
8981         Rewrite using indirect functions.
8982         (lwp_slwpcb): Ditto.
8983         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
8984         (avx_vinsertf128<mode>): Ditto.
8985
8986 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8987
8988         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
8989         unspecs.
8990
8991 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8992
8993         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
8994         splitting between a call and its corresponding CALL_ARG_LOCATION note.
8995
8996 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
8997
8998         PR rtl-optimization/48170
8999         * gcse.c (hoist_code): Remove bogus asserts.
9000
9001 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
9002
9003         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
9004         computation for prologue/epilogue.
9005
9006 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9007
9008         * Makefile.in (check-consistency): Remove.
9009
9010 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
9011
9012         PR debug/48176
9013         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
9014         arange_table_in_use is 0, but either text_section_used or
9015         cold_text_section_used is true.  Don't call it if
9016         !info_section_emitted.
9017
9018 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
9019
9020         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
9021         FUNCTION_VALUE_REGNO_P): Remove.
9022         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
9023         Remove.
9024         * config/avr/avr.c (avr_ret_register): Make static inline.
9025         (avr_function_value_regno_p): New function.
9026         (avr_libcall_value): Make static. Add 'func' argument.
9027         (avr_function_value): Make static. Rename 'func' argument to
9028         'fn_decl_or_type', forward it to avr_libcall_value. Call
9029         avr_ret_register function instead of RET_REGISTER macro.
9030         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9031
9032 2011-03-18  Jason Merrill  <jason@redhat.com>
9033
9034         PR c++/23372
9035         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
9036
9037 2011-03-18  Richard Guenther  <rguenther@suse.de>
9038
9039         * doc/install.texi (--enable-gold): Remove.
9040         (--with-plugin-ld): Document.
9041         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
9042
9043 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
9044
9045         PR middle-end/47790
9046         * expr.c (optimize_bitfield_assignment_op): Revamp to work
9047         again after expansion changes.
9048
9049 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
9050
9051         * combine.c (try_combine): Do simplification only call of
9052         subst() on i2 even when i1 is present. Update comments.
9053
9054 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
9055
9056         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
9057         and UNSPEC_PCREL_SYMOFF.
9058
9059 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9060
9061         * config/s390/s390.md: Use define_c_enum for the unspec constant
9062         definitions.
9063
9064 2011-03-18  Richard Henderson  <rth@redhat.com>
9065             Jakub Jelinek  <jakub@redhat.com>
9066
9067         PR bootstrap/48161
9068         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
9069         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
9070
9071 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9072
9073         PR middle-end/47725
9074         * combine.c (cant_combine_insn_p): Don't check zero/sign
9075         extended hard registers.
9076
9077 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9078
9079         PR middle-end/47725
9080         * combine.c (cant_combine_insn_p): Check zero/sign extended
9081         hard registers.
9082
9083 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
9084
9085         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9086         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
9087         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
9088         Change return type to bool.
9089         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9090
9091 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9092
9093         PR debug/48163
9094         * var-tracking.c (prepare_call_arguments): If CALL target
9095         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
9096         pc instead of looking it up using cselib_lookup and use
9097         Pmode for it if x has VOIDmode.
9098         * dwarf2out.c (gen_subprogram_die): If also both first and
9099         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
9100
9101         PR debug/48163
9102         * function.c (assign_parms): For data.passed_pointer parms
9103         use MEM of data.entry_parm instead of data.entry_parm itself
9104         as DECL_INCOMING_RTL.
9105         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
9106         also when passed and declared mode is the same, DECL_RTL
9107         is a MEM with pseudo as address and DECL_INCOMING_RTL is
9108         a MEM too.
9109
9110 2011-03-16  Jeff Law  <law@redhat.com>
9111
9112         PR rtl-optimization/37273
9113         * ira-costs.c (scan_one_insn): Detect constants living in memory and
9114         handle them like argument loads from stack slots.  Do not double
9115         count memory for memory constants and argument loads from stack slots.
9116
9117 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9118
9119         PR debug/48160
9120         * var-tracking.c (prepare_call_arguments): Check SUBREG.
9121
9122 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9123
9124         PR target/48171
9125         * config/i386/i386.opt: Add Save to -mavx and -mfma.
9126
9127 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9128
9129         PR bootstrap/48153
9130         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
9131         if dwarf_strict.
9132         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
9133         Clear call_arg_locations and call_arg_loc_last always.
9134
9135         PR middle-end/48152
9136         * var-tracking.c (prepare_call_arguments): If argument needs to be
9137         passed by reference, adjust argtype and mode.
9138
9139 2011-03-17  Richard Guenther  <rguenther@suse.de>
9140
9141         PR middle-end/48134
9142         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
9143         a value make sure to fold the statement.
9144
9145 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
9146
9147         PR target/43872
9148         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
9149         return condition with !cfun->calls_alloca.
9150
9151 2011-03-17  Richard Guenther  <rguenther@suse.de>
9152
9153         PR bootstrap/48148
9154         * lto-cgraph.c (input_overwrite_node): Clear the abstract
9155         origin for decls in other ltrans units.
9156         (input_varpool_node): Likewise.
9157
9158 2011-03-17  Richard Guenther  <rguenther@suse.de>
9159
9160         PR middle-end/48165
9161         * tree-object-size.c (compute_object_offset): Properly return
9162         the offset operand of MEM_REFs as sizetype.
9163
9164 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9165
9166         PR rtl-optimization/48141
9167         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
9168         * dse.c: Include params.h.
9169         (active_local_stores_len): New variable.
9170         (add_wild_read, dse_step1): Clear it when setting active_local_stores
9171         to NULL.
9172         (record_store, check_mem_read_rtx): Decrease it when removing
9173         from the chain.
9174         (scan_insn): Likewise.  Increase it when adding to chain, if it
9175         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
9176         set active_local_stores to NULL before the addition.
9177         * Makefile.in (dse.o): Depend on $(PARAMS_H).
9178
9179         PR rtl-optimization/48141
9180         * dse.c (record_store): If no positions are needed in an insn
9181         that cannot be deleted, at least unchain it from active_local_stores.
9182
9183 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
9184
9185         PR debug/47510
9186         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
9187         (lookup_type_die_strip_naming_typedef): ... here.
9188         (get_context_die): Use it.
9189         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
9190         the anonymous struct named by the naming typedef.
9191
9192 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9193
9194         PR target/48154
9195         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
9196         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9197
9198 2011-03-16  Jeff Law  <law@redhat.com>
9199
9200         * tree-vrp.c (identify_jump_threads): Slightly simplify type
9201         check for operands of conditional.  Allow type to be a pointer.
9202
9203 2011-03-16  Richard Guenther  <rguenther@suse.de>
9204
9205         PR tree-optimization/48149
9206         * fold-const.c (fold_binary_loc): Fold
9207         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
9208
9209 2011-03-16  Richard Guenther  <rguenther@suse.de>
9210
9211         PR tree-optimization/26134
9212         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
9213         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
9214         (non_rewritable_mem_ref_base): Handle complex type component
9215         accesses, constrain offsets for vector and complex extracts
9216         more properly.
9217
9218 2011-03-16  Richard Guenther  <rguenther@suse.de>
9219
9220         PR tree-optimization/48146
9221         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
9222         operands avoiding the need for renaming.
9223
9224 2011-03-16  Richard Guenther  <rguenther@suse.de>
9225
9226         * gimple-fold.c (maybe_fold_reference): Open-code relevant
9227         constant folding.  Move MEM_REF canonicalization first.
9228         Rely on fold_const_aggregate_ref for initializer folding.
9229         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
9230
9231 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
9232
9233         PR middle-end/48136
9234         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9235         arg0/arg1 or their arguments are always fold converted to matching
9236         types.
9237
9238         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
9239         to nargs.
9240
9241 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9242
9243         PR lto/46944
9244         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
9245         Handle in-tree gold.
9246         (ld_vers): Extract binutils version for gold.
9247         (gcc_cv_ld_hidden): Handle gold here.
9248         (gcc_cv_lto_plugin): Determine level of linker plugin support.
9249         * configure: Regenerate.
9250         * config.in: Regenerate.
9251         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
9252         -fuse-linker-plugin otherwise.
9253         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
9254         (LINK_COMMAND_SPEC): Use it.
9255         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
9256
9257 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
9258
9259         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
9260         * calls.c: Remove debug.h include.
9261         (emit_call_1): Don't call virtual_call_token debug hook.
9262         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
9263         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
9264         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
9265         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
9266         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
9267         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
9268         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
9269         dwarf2out_virtual_call): Remove.
9270         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
9271         copy_call_info and virtual_call hooks.
9272         (dwarf2out_init): Don't initialize vcall_insn_table,
9273         debug_dcall_section and debug_vcall_section.
9274         (prune_unused_types): Don't mark nodes from dcall_table.
9275         (dwarf2out_finish): Don't output dcall or vcall tables.
9276         * final.c (final_scan_insn): Don't call direct_call or
9277         virtual_call debug hooks.
9278         * debug.h (struct gcc_debug_hooks): Remove direct_call,
9279         virtual_call_token, copy_call_info and virtual_call hooks.
9280         (debug_nothing_uid): Remove prototype.
9281         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
9282         copy_call_info and virtual_call hooks.
9283         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9284         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
9285         * debug.c (do_nothing_debug_hooks): Likewise.
9286         (debug_nothing_uid): Remove.
9287         * doc/invoke.texi (-fenable-icf-debug): Remove.
9288         * common.opt (-fenable-icf-debug): Likewise.
9289
9290         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
9291         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
9292         call's MEM.  Handle functions returning aggregate through a hidden
9293         first pointer.  For virtual calls add clobbered pc to call arguments
9294         chain.
9295         * dwarf2out.c (gen_subprogram_die): Emit
9296         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
9297         can't be emitted.
9298
9299         PR debug/45882
9300         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
9301         * rtl.h (ENTRY_VALUE_EXP): Define.
9302         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
9303         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
9304         * print-rtl.c (print_rtx): Likewise.
9305         * gengtype.c (adjust_field_rtx_def): Likewise.
9306         * var-tracking.c (vt_add_function_parameter): Adjust
9307         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
9308         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
9309         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
9310         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
9311         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
9312
9313         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
9314         Call var_location debug hook even on CALL_INSNs.
9315         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
9316         * rtl.def (ENTRY_VALUE): New.
9317         * dwarf2out.c: Include cfglayout.h.
9318         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9319         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
9320         (struct call_arg_loc_node): New type.
9321         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
9322         tail_call_site_count): New variables.
9323         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
9324         DW_TAG_GNU_call_site_parameter.
9325         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
9326         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
9327         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
9328         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
9329         and DW_AT_GNU_all_source_call_sites.
9330         (mem_loc_descriptor): Handle ENTRY_VALUE.
9331         (add_src_coords_attributes): Don't add enything if
9332         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
9333         (dwarf2out_abstract_function): Save and clear call_arg_location,
9334         call_site_count and tail_call_site_count around dwarf2out_decl call.
9335         (gen_call_site_die): New function.
9336         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
9337         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
9338         (dwarf2out_function_decl): Clear call_arg_locations,
9339         call_arg_loc_last, set call_site_count and tail_call_site_count
9340         to -1 and free block_map.
9341         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
9342         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
9343         followed by any real instructions.
9344         (dwarf2out_begin_function): Set call_site_count and
9345         tail_call_site_count to 0.
9346         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
9347         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
9348         attempt to force a DIE for it and worst case remove the attribute.
9349         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
9350         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
9351         the decl itself.
9352         * var-tracking.c: Include tm_p.h.
9353         (vt_stack_adjustments): For calls call note_register_arguments.
9354         (argument_reg_set): New variable.
9355         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
9356         ensure the VALUE is resolved.
9357         (call_arguments): New variable.
9358         (prepare_call_arguments): New function.
9359         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
9360         (struct expand_loc_callback_data): Add ignore_cur_loc field.
9361         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
9362         always use the best expression.
9363         (vt_expand_loc): Add ignore_cur_loc argument.
9364         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
9365         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
9366         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
9367         note for all calls.
9368         (vt_add_function_parameter): Use cselib_lookup_from_insn.
9369         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
9370         argument.  Don't call cselib_preserve_only_values and
9371         cselib_reset_table.
9372         (note_register_arguments): New function.
9373         (vt_initialize): Compute argument_reg_set.  Call
9374         vt_add_function_parameters before processing basic blocks instead of
9375         afterwards.  For calls call prepare_call_arguments before calling
9376         cselib_process_insn.
9377         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
9378         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
9379         (var-tracking.o): Depend on $(TM_P_H).
9380         * cfglayout.h (insn_scope): New prototype.
9381         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
9382         * cfglayout.c (insn_scope): No longer static.
9383         * insn-notes.def (CALL_ARG_LOCATION): New.
9384         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
9385         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
9386         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
9387         nothing for DECL_EXTERNAL BLOCK_VARS.
9388
9389 2011-03-16  Alan Modra  <amodra@gmail.com>
9390
9391         PR target/45844
9392         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
9393         create invalid offset address for vsx splat insn.
9394         * config/rs6000/predicates.md (splat_input_operand): New.
9395         * config/rs6000/vsx.md (vsx_splat_*): Use it.
9396
9397 2011-03-15  Xinliang David Li  <davidxl@google.com>
9398
9399         PR c/47837
9400         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
9401         (normalize_preds): New function.
9402         (is_use_properly_guarded): Normalize def predicates.
9403
9404 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9405
9406         PR target/46788
9407         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
9408         in the output template.
9409
9410 2011-03-15  Richard Guenther  <rguenther@suse.de>
9411
9412         PR middle-end/47650
9413         * tree-pretty-print.c (dump_function_declaration): Properly
9414         dump unprototyped and varargs function types.
9415
9416 2011-03-15  Richard Guenther  <rguenther@suse.de>
9417
9418         PR tree-optimization/13954
9419         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
9420         and friends.
9421
9422 2011-03-15  Richard Guenther  <rguenther@suse.de>
9423
9424         PR tree-optimization/48037
9425         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
9426         selects into BIT_FIELD_REFs.
9427         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
9428         vector select.
9429
9430 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
9431
9432         PR tree-optimization/48129
9433         * builtins.c (fold_builtin_snprintf): Convert to type of
9434         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
9435         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
9436
9437 2011-03-15  Richard Guenther  <rguenther@suse.de>
9438
9439         PR tree-optimization/41490
9440         * tree-ssa-dce.c (propagate_necessity): Handle returns without
9441         value but with VUSE.
9442         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
9443         return statements.
9444         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
9445         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
9446         * tree-tailcall.c (find_tail_calls): Ignore returns.
9447
9448 2011-03-15  Richard Guenther  <rguenther@suse.de>
9449
9450         PR middle-end/48031
9451         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
9452         or variable-indexed array accesses when in gimple form.
9453
9454 2011-03-15  Richard Guenther  <rguenther@suse.de>
9455
9456         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
9457
9458 2011-03-15  Alan Modra  <amodra@gmail.com>
9459
9460         PR target/48032
9461         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
9462         presume symbol_refs without a symbol_ref_decl are suitably
9463         aligned, nor other trees we may see here.  Handle anchor symbols.
9464         (legitimate_constant_pool_address_p): Comment.  Add mode param.
9465         Check cmodel=medium addresses.  Adjust all calls.
9466         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
9467         creating cmodel=medium optimized access to locals.
9468         * config/rs6000/constraints.md (R): Pass QImode to
9469         legitimate_constant_pool_address_p.
9470         * config/rs6000/predicates.md (input_operand): Pass mode to
9471         legitimate_constant_pool_address_p.
9472         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
9473         Update prototype.
9474
9475 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
9476
9477         PR target/48053
9478         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
9479         64-bit constants being loaded into registers other than GPRs such
9480         as loading 0 into a VSX register.
9481
9482 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9483
9484         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
9485
9486 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9487
9488         PR middle-end/47917
9489         * builtins.c (fold_builtin_snprintf): New function.
9490         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
9491         (fold_builtin_4): Likewise.
9492
9493         PR middle-end/38878
9494         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
9495         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
9496         and C - X == X also strip nops from +/-/p+ operand.
9497         When optimizing -X == C, fold C to arg0's type.
9498
9499         PR debug/47946
9500         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
9501         emit it as add_AT_int instead of add_AT_unsigned.
9502
9503 2011-03-14  Tom Tromey  <tromey@redhat.com>
9504
9505         * unwind-dw2.c: Include sys/sdt.h if it exists.
9506         (_Unwind_DebugHook): Use STAP_PROBE2.
9507         * config.in, configure: Rebuild.
9508         * configure.ac: Check for sys/sdt.h.
9509
9510 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
9511
9512         * config/i386/i386.md (ROUND_FLOOR): New constant.
9513         (ROUND_CEIL): Ditto.
9514         (ROUND_TRUNC): Ditto.
9515         (ROUND_MXCSR): Ditto.
9516         (ROUND_NO_EXC): Ditto.
9517         (rint<mode>2): Use new defines instead of numerical constants.
9518         (floor<mode>2): Ditto.
9519         (ceil<mode>2): Ditto.
9520         (btrunc<mode>2): Ditto.
9521         * config/i386/i386-builtin-types.def: Define ROUND function type
9522         aliases.
9523         * config/i386/i386.c (enum ix86_builtins): Add
9524         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
9525         (struct builtin_description): Add
9526         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
9527         (ix86_expand_sse_round): New static function.
9528         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
9529         function types.
9530         (ix86_builtin_vectorized_function): Handle
9531         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9532
9533 2011-03-14  Tom Tromey  <tromey@redhat.com>
9534
9535         * c-parser.c (c_parser_asm_string_literal): Clear
9536         warn_overlength_strings.
9537
9538 2011-03-14  Tom Tromey  <tromey@redhat.com>
9539
9540         * c-parser.c (disable_extension_diagnostics): Save
9541         warn_overlength_strings.
9542         (restore_extension_diagnostics): Restore warn_overlength_strings.
9543
9544 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9545
9546         * BASE-VER: Change to 4.7.0.
9547
9548 2011-03-14  Richard Guenther  <rguenther@suse.de>
9549
9550         PR middle-end/48098
9551         * tree.c (build_vector_from_val): Adjust assert to requirements
9552         and reality.
9553
9554 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9555
9556         PR bootstrap/48102
9557         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
9558
9559 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
9560
9561         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
9562         terms of target_flags_explicit. Adjust copyright year.
9563
9564         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
9565         * config/rs6000/t-freebsd: New file. Add override for
9566         LIB2FUNCS_EXTRA.
9567
9568 2011-03-13  Chris Demetriou  <cgd@google.com>
9569
9570         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
9571         (-fno-diagnostics-show-option): this, to reflect current default.
9572         (-Werror=): Update text about -fno-diagnostics-show-option.
9573
9574 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
9575
9576         PR target/48053
9577         * config/rs6000/predicates.md (easy_vector_constant_add_self,
9578         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
9579         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
9580         mode is not V2DImode or V2DFmode.
9581         (vspltis_constant): Do not handle V2DImode and V2DFmode.
9582         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
9583         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
9584         registers to 0.
9585         (movdi_internal64): Likewise.
9586
9587 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
9588
9589         PR tree-optimization/47127
9590         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
9591         parameter.
9592         (set_cloog_options): Same.
9593         (scop_to_clast): Same.
9594         (print_clast_stmt): Do not call cloog_state_malloc and
9595         cloog_state_free.
9596         (print_generated_program): Same.
9597         (gloog): Same.
9598         * graphite-clast-to-gimple.h (cloog_state): Declared.
9599         (scop_to_clast): Adjust declaration.
9600         * graphite.c (cloog_state): Defined here.
9601         (graphite_initialize): Call cloog_state_malloc.
9602         (graphite_finalize): Call cloog_state_free.
9603
9604 2011-03-11  Jason Merrill  <jason@redhat.com>
9605
9606         * attribs.c (lookup_attribute_spec): Take const_tree.
9607         * tree.h: Adjust.
9608
9609 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
9610
9611         * config/sparc/sparc.c (sparc_option_override): Use
9612         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
9613
9614 2011-03-11  Richard Guenther  <rguenther@suse.de>
9615
9616         PR tree-optimization/48067
9617         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
9618         multiplication result will be only used once on the target
9619         stmt.
9620
9621 2011-03-11  Richard Guenther  <rguenther@suse.de>
9622
9623         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
9624
9625 2011-03-11  Richard Guenther  <rguenther@suse.de>
9626
9627         PR lto/48073
9628         * tree.c (find_decls_types_r): Do not walk types only reachable
9629         from IDENTIFIER_NODEs.
9630
9631 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
9632
9633         PR middle-end/48044
9634         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
9635         all vnode->force_output nodes as needed.
9636
9637 2011-03-11  Jason Merrill  <jason@redhat.com>
9638
9639         PR c++/48069
9640         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
9641         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
9642
9643 2011-03-11  Martin Jambor  <mjambor@suse.cz>
9644
9645         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
9646         cgraph_node.
9647
9648 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
9649
9650         PR tree-optimization/48063
9651         * ipa-inline.c (cgraph_decide_inlining): Don't try to
9652         inline functions called once if !tree_can_inline_p (node->callers).
9653
9654 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
9655
9656         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
9657         extra_objs.
9658         * config/score/score3.c: Delete.
9659         * config/score/score3.h: Delete.
9660         * config/score/mul-div.S: Delete.
9661         * config/score/sfp-machine.h: Add new file.
9662         * config/score/constraints.md: Add new file.
9663         * config/score/t-score-softfp: Add new file.
9664         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9665         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
9666         (score7_extra_constraint): Delete.
9667         (score7_option_override): Remove unused code.
9668         * config/score/score.c: Remove score3 and score5 define and code.
9669         * config/score/score.h: Remove score3 and score5 define and code.
9670         * config/score/score.md: Remove score3 template and unusual insn.
9671         * config/score/score.opt: Remove score3 and score5 options.
9672
9673 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9674
9675         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
9676         when _HPUX_SOURCE is defined.
9677         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
9678
9679 2011-03-10  Jason Merrill  <jason@redhat.com>
9680
9681         PR c++/48029
9682         * stor-layout.c (layout_type): Don't set structural equality
9683         on arrays of incomplete type.
9684         * tree.c (type_hash_eq): Handle comparing them properly.
9685
9686 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
9687
9688         PR debug/48043
9689         * config/s390/s390.c (s390_delegitimize_address): Make sure the
9690         result mode matches original rtl mode.
9691
9692 2011-03-10  Nick Clifton  <nickc@redhat.com>
9693
9694         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
9695         (andsi3, andsi3_flags): Fix timings for three operand alternative.
9696
9697 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
9698
9699         PR rtl-optimization/47866
9700         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9701         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9702         if target wasn't scalar.
9703         * function.c (assign_stack_temp_for_type): Assert that neither
9704         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9705         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9706         macro.
9707         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9708
9709 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9710
9711         * config/s390/s390-protos.h (s390_label_align): New prototype.
9712         * config/s390/s390.c (s390_label_align): New function.
9713         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9714
9715 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
9716
9717         PR target/47755
9718         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9719         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
9720         (output_vec_const_move): Ditto.
9721
9722 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
9723
9724         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9725         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9726         * config/mips/mips.c (mips_preferred_reload_class): Make static.
9727         Change 'rclass' argument and result type to reg_class_t.
9728         (TARGET_PREFERRED_RELOAD_CLASS): Define.
9729
9730 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
9731
9732         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9733         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9734         (TARGET_MEMORY_MOVE_COST): Define.
9735         (avr_register_move_cost, avr_memory_move_cost): New Functions.
9736
9737 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
9738
9739         PR debug/47881
9740         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9741         removed anything.
9742
9743         PR tree-optimization/48022
9744         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9745         for EQ/NE_EXPR.
9746
9747 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
9748
9749         PR debug/47991
9750         * var-tracking.c (find_use_val): Return NULL for
9751         cui->sets && cui->store_p BLKmode MEMs.
9752
9753 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
9754
9755         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9756         Remove.
9757         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9758         xstormy16_print_operand_address): Remove.
9759         * config/stormy16/stormy16.c (xstormy16_print_operand,
9760         xstormy16_print_operand_address): Make static.
9761         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9762
9763 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
9764
9765         PR target/47862
9766         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9767         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9768         before definition.
9769
9770 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
9771
9772         PR bootstrap/48000
9773         * cfgloopmanip.c (fix_bb_placements): Return immediately
9774         if FROM is BASE_LOOP's header.
9775
9776 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
9777
9778         * gimplify.c (gimplify_function_tree): Fix building calls
9779         to __builtin_return_address.
9780
9781 2011-03-07  Alan Modra  <amodra@gmail.com>
9782
9783         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
9784         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
9785         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
9786         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
9787         return_mode args.
9788         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
9789         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
9790         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
9791         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
9792         * config/rs6000/rs6000.c
9793         (rs6000_elf_end_indicate_exec_stack): Rename to..
9794         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
9795         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
9796         (rs6000_file_start): ..here.
9797         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
9798         file scope variables.
9799         (call_ABI_of_interest): New function.
9800         (init_cumulative_args): Set above vars when function return value
9801         is a float, vector, or small struct.
9802         (rs6000_function_arg_advance_1): Likewise for function args.
9803         (rs6000_va_start): Set rs6000_passes_float if variable arg function
9804         references float args.
9805
9806 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
9807
9808         * doc/cfg.texi: Remove "See" before @ref.
9809         * doc/invoke.texi: Likewise.
9810
9811 2011-03-05  Jason Merrill  <jason@redhat.com>
9812
9813         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
9814
9815 2011-03-05  Anthony Green  <green@moxielogic.com>
9816
9817         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
9818
9819 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
9820
9821         PR rtl-optimization/47899
9822         * cfgloopmanip.c (fix_bb_placements): Fix first argument
9823         to flow_loop_nested_p when moving the loop upward.
9824
9825 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
9826
9827         PR target/47719
9828         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
9829
9830 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
9831
9832         PR tree-optimization/47967
9833         * ipa-cp.c (build_const_val): Return NULL instead of creating
9834         VIEW_CONVERT_EXPR for mismatching sizes.
9835         (ipcp_create_replace_map): Return NULL if build_const_val failed.
9836         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
9837         give up on versioning.
9838
9839 2011-03-05  Alan Modra  <amodra@gmail.com>
9840
9841         PR target/47986
9842         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
9843         full cmodel medium/large lo_sum + high addresses.
9844
9845 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9846
9847         * config/s390/s390.c (s390_decompose_address): Reject non-literal
9848         pool references in UNSPEC_LTREL_OFFSET.
9849
9850 2011-03-04  Jan Hubicka  <jh@suse.cz>
9851
9852         PR lto/47497
9853         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
9854         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
9855         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
9856         Add node pointers.
9857         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
9858         cgraph_add_thunk): Add node pointers.
9859         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
9860         associated to right node.
9861         (input_node): Update use of cgraph_same_body_alias
9862         and cgraph_add_thunk.
9863
9864 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
9865
9866         * config/i386/i386.opt (mprefer-avx128): New flag.
9867         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
9868         modes when the flag -mprefer-avx128 is on.
9869
9870 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
9871
9872         * dwarf2out.c (compare_loc_operands): Fix address handling.
9873
9874 2011-03-04  Alan Modra  <amodra@gmail.com>
9875
9876         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
9877
9878 2011-03-04  Richard Guenther  <rguenther@suse.de>
9879
9880         PR middle-end/47968
9881         * expmed.c (extract_bit_field_1): Prefer vector modes that
9882         vec_extract patterns can handle.
9883
9884 2011-03-04  Richard Guenther  <rguenther@suse.de>
9885
9886         PR middle-end/47975
9887         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
9888
9889 2011-03-04  Richard Henderson  <rth@redhat.com>
9890
9891         * explow.c (emit_stack_save): Remove 'after' parameter.
9892         (emit_stack_restore): Likewise.
9893         * expr.h: Update to match.
9894         * builtins.c, calls.c, stmt.c: Likewise.
9895         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
9896         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
9897         * function.c (expand_function_end): Insert the emit_stack_save
9898         sequence before parm_birth_insn instead of after.
9899
9900 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
9901
9902         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
9903         (ssse3_pmaddubsw128): Ditto.
9904         (ssse3_pmaddubsw): Ditto.
9905
9906 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
9907
9908         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
9909
9910 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
9911
9912         PR c/47963
9913         * gimplify.c (omp_add_variable): Only call omp_notice_variable
9914         on TYPE_SIZE_UNIT if it is a DECL.
9915
9916         PR debug/47283
9917         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
9918         first operand is not is_gimple_mem_ref_addr, try to fold it.
9919         If the operand still isn't is_gimple_mem_ref_addr, clear
9920         MEM_EXPR on op0.
9921
9922 2011-03-03  Richard Guenther  <rguenther@suse.de>
9923
9924         PR middle-end/47283
9925         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
9926         match comment.
9927         (refs_may_alias_p_1): For release branches return true if
9928         we are confused by our input.
9929
9930 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9931
9932         * config/s390/s390.c (s390_function_value): Rename to ...
9933         (s390_function_and_libcall_value): ... this.
9934         (s390_function_value): New function.
9935         (s390_libcall_value): New function.
9936         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
9937         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
9938         target macro definitions.
9939         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
9940
9941 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
9942
9943         * config/i386/freebsd64.h (CC1_SPEC): Define.
9944         * config/i386/linux64.h (CC1_SPEC): Define.
9945         * config/i386/x86-64.h (CC1_SPEC): Don't define.
9946
9947 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
9948
9949         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9950         Remove.
9951         * config/stormy16/stormy16.c: Include reload.h.
9952         (xstormy16_memory_move_cost): New function.
9953         (TARGET_MEMORY_MOVE_COST): Define.
9954
9955 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
9956
9957         PR rtl-optimization/47925
9958         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
9959         with side effects.  Remove the more-specific check for volatile asms.
9960
9961 2011-03-02  Alan Modra  <amodra@gmail.com>
9962
9963         PR target/47935
9964         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
9965         toc relative addresses for valid offsets.
9966
9967 2011-03-01  Richard Guenther  <rguenther@suse.de>
9968
9969         PR tree-optimization/47890
9970         * tree-vect-loop.c (get_initial_def_for_induction): Set
9971         related stmt properly.
9972
9973 2011-03-01  Richard Guenther  <rguenther@suse.de>
9974
9975         PR lto/47924
9976         * lto-streamer.c (lto_record_common_node): Also register
9977         the canonical type.
9978
9979 2011-03-01  Richard Guenther  <rguenther@suse.de>
9980
9981         PR lto/46911
9982         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9983         Do not stream DECL_ABSTRACT_ORIGIN.
9984         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9985         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9986         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9987         Do not stream DECL_ABSTRACT_ORIGIN.
9988         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9989         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9990
9991 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
9992
9993         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
9994         FUNCTION_VALUE_REGNO_P): Remove.
9995         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
9996         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
9997         Add 'outgoing' argument.
9998         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
9999         function.
10000         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10001         TARGET_FUNCTION_VALUE_REGNO_P): Define.
10002
10003 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
10004
10005         PR debug/28047
10006         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
10007         (lookup_filename): Likewise.
10008         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
10009
10010 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
10011             Jakub Jelinek  <jakub@redhat.com>
10012
10013         PR middle-end/47893
10014         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
10015         (assign_stack_local_1): Change last argument type to int.
10016         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
10017         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
10018         don't record padding space into frame_space_list nor use those areas.
10019         (assign_stack_local): Adjust caller.
10020         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
10021         of assign_stack_local, pass 0 as last argument.
10022         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
10023         callers.
10024
10025 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
10026
10027         PR debug/47283
10028         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
10029         Use target address_mode and pointer_mode hooks instead of hardcoded
10030         Pmode and ptr_mode.  Handle some simple cases of extending if
10031         POINTERS_EXTEND_UNSIGNED < 0.
10032         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
10033         Call convert_debug_memory_address.
10034         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
10035         convert_debug_memory_address.
10036
10037         PR middle-end/46790
10038         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
10039         * configure: Regenerated.
10040         * config.in: Regenerated.
10041         * varasm.c (default_function_section): Return NULL
10042         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
10043
10044 2011-02-28  Martin Jambor  <mjambor@suse.cz>
10045
10046         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
10047         the description to match the printed values.
10048
10049 2011-02-28  Richard Guenther  <rguenther@suse.de>
10050
10051         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
10052         of the copied scope tree.
10053
10054 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10055
10056         * doc/extend.texi (Function Attributes): Avoid deeply (and
10057         wrongly) nested tables.
10058
10059 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
10060
10061         PR middle-end/47903
10062         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
10063         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
10064         r isn't op0 nor op1.
10065
10066 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
10067
10068         * config/avr/avr.md: Remove magic comment for emacs.
10069
10070 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
10071
10072         PR target/45261
10073         * config/avr/avr.c (avr_option_override): Use error on bad options.
10074         (avr_help): New function.
10075         (TARGET_HELP): Define.
10076
10077 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
10078
10079         PR target/42240
10080         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
10081         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
10082
10083 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
10084
10085         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
10086         (ARM Options): Ditto.
10087         (i386 and x86-64 Options): Ditto.
10088         (RX Options): Ditto.
10089         (SPARC Options): Ditto.
10090
10091 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
10092
10093         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
10094         FreeBSD 6 and later.  Generally use cpu generic.
10095
10096 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
10097
10098         * doc/cpp.texi: Update copyright years.
10099
10100 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
10101
10102         PR target/46898
10103         * config/lm32/lm32.md (ashrsi3): Added needed variable.
10104
10105 2011-02-25  Jon Beniston  <jon@beniston.com>
10106
10107         PR target/46898
10108         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
10109         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
10110         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
10111         (lm32_block_move_inline): Add type cast to remove warning.
10112         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
10113         (gen_int_relational): Move declarations to start of function.
10114
10115 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
10116
10117         PR tree-optimization/45470
10118         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
10119         can throw internally only.
10120         * tree-vect-stmts.c (vectorizable_call): Likewise.
10121
10122 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
10123
10124         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
10125         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10126         * config/stormy16/stormy16-protos.h
10127         (xstormy16_preferred_reload_class): Remove.
10128         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
10129         static. Change 'rclass' argument and return type to reg_class_t.
10130         (TARGET_PREFERRED_RELOAD_CLASS,
10131         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10132
10133 2011-02-24  Richard Guenther  <rguenther@suse.de>
10134
10135         * lto-streamer-in.c (input_bb): Do not find referenced vars
10136         in debug statements.
10137
10138 2011-02-23  Jason Merrill  <jason@redhat.com>
10139
10140         * common.opt (fabi-version): Document v5 and v6.
10141
10142 2011-02-23  Richard Guenther  <rguenther@suse.de>
10143
10144         PR tree-optimization/47849
10145         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
10146
10147 2011-02-23  Jie Zhang  <jie@codesourcery.com>
10148
10149         * opts-common.c (decode_cmdline_option): Print empty string
10150         argument as "" in decoded->orig_option_with_args_text.
10151         * gcc.c (execute): Print empty string argument as ""
10152         in the verbose output.
10153         (do_spec_1): Keep empty string argument.
10154
10155 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
10156
10157         * config.gcc: Declare score-* and crx-* obsolete.
10158
10159 2011-02-23  Jie Zhang  <jie@codesourcery.com>
10160
10161         PR rtl-optimization/47763
10162         * web.c (web_main): Ignore naked clobber when replacing register.
10163
10164 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
10165
10166         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10167         Remove.
10168
10169 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
10170
10171         PR doc/47848
10172         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
10173
10174 2011-02-22  Mike Stump  <mikestump@comcast.net>
10175
10176         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
10177         assembler.
10178         * configure: Regenerate.
10179
10180 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
10181
10182         PR rtl-optimization/46002
10183         * ira-color.c (update_copy_costs): Change class intersection
10184         test to reg_class_contents[] test of 'hard_regno'.
10185
10186 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
10187
10188         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
10189         than Driver option.
10190         * config/hpux11.opt (mt): Likewise.
10191         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
10192         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
10193         * config/vax/elf.opt (mno-asm-pic): Likewise.
10194         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
10195
10196 2011-02-21  Mike Stump  <mikestump@comcast.net>
10197
10198         PR target/47822
10199         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
10200         tree so we can get save the type.
10201         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
10202         for CFString instead of trying to use past the end of the builtins.
10203         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
10204         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
10205         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
10206         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
10207         Rename to darwin_builtin_cfstring.
10208         (darwin_init_cfstring_builtins): Return the built type.
10209
10210 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
10211
10212         PR target/47840
10213         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
10214         (_mm256_insert_epi64): Use _mm_insert_epi64.
10215
10216 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
10217
10218         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10219         * config/stormy16/stormy16-protos.h
10220         (xstormy16_mode_dependent_address_p): Remove.
10221         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
10222         Make static. Change return type to bool. Change argument type to
10223         const_rtx. Remove dead code.
10224         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10225
10226 2011-02-21  Richard Guenther  <rguenther@suse.de>
10227
10228         PR lto/47820
10229         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10230         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10231         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
10232         TUs context.
10233         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10234         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10235
10236 2011-02-20  Richard Guenther  <rguenther@suse.de>
10237
10238         PR lto/47822
10239         * tree.c (free_lang_data_in_decl): Clean builtins from
10240         the TU decl BLOCK_VARS.
10241
10242 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
10243
10244         PR debug/47620
10245         PR debug/47630
10246         * haifa-sched.c (fix_tick_ready): Skip tick computation
10247         for debug insns.
10248
10249 2011-02-19  Richard Guenther  <rguenther@suse.de>
10250
10251         PR lto/47647
10252         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
10253         Remove lazy BLOCK_VARS streaming.
10254         (lto_input_ts_block_tree_pointers): Likewise.
10255         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
10256
10257 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
10258
10259         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
10260
10261 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
10262
10263         * config/i386/biarch32.h, config/i386/mach.h,
10264         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
10265
10266 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
10267
10268         PR target/47800
10269         * config/i386/i386.md (peephole2 for shift and plus): Use
10270         operands[1] original mode in the first insn.
10271
10272 2011-02-18  Mike Stump  <mikestump@comcast.net>
10273
10274         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
10275
10276 2011-02-18  Jan Hubicka  <jh@suse.cz>
10277
10278         PR middle-end/47788
10279         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
10280         to zero when the function is not inlinable at all.
10281
10282 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10283
10284         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
10285         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10286         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
10287         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
10288         * config/pa/t-pa64: Likewise.
10289         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10290
10291 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
10292
10293         PR driver/47787
10294         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
10295
10296 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10297
10298         PR target/47792
10299         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
10300
10301 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
10302
10303         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
10304         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
10305         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
10306         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10307         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
10308         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
10309         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
10310         m32r_load_postinc_p, m32r_store_preinc_predec_p,
10311         m32r_legitimate_address_p): New functions.
10312         * config/m32r/constraints.md (constraint "S"): Don't use
10313         STORE_PREINC_PREDEC_P.
10314         (constraint "U"): Don't use LOAD_POSTINC_P.
10315
10316 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
10317
10318         PR rtl-optimization/46178
10319         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
10320         compute ira_hard_regno_cover_class[].
10321
10322 2011-02-18  Richard Guenther  <rguenther@suse.de>
10323
10324         PR lto/47798
10325         * lto-streamer.h (lto_global_var_decls): Declare.
10326         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
10327         statics for global var processing.
10328
10329 2011-02-18  Richard Guenther  <rguenther@suse.de>
10330
10331         PR tree-optimization/47737
10332         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
10333         edge dominance check.
10334
10335 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
10336
10337         PR debug/47780
10338         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
10339         avoid invalid rtx sharing.
10340
10341 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
10342
10343         * doc/cpp.texi (Obsolete Features): Add background on the
10344         origin of assertions.
10345
10346 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
10347
10348         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
10349         objc_abi == 2.
10350         * config/darwin.c (output_objc_section_asm_op): Added support for
10351         ABI v1 and v2.
10352         (is_objc_metadata): New.
10353         (darwin_objc2_section): New.
10354         (darwin_objc1_section): New.
10355         (machopic_select_section): Added support for ABI v1 and v2.
10356         (darwin_emit_objc_zeroed): New.
10357         (darwin_output_aligned_bss): Detect objc metadata and treat it
10358         appropriately.
10359         (darwin_asm_output_aligned_decl_common): Same.
10360         (darwin_asm_output_aligned_decl_local): Same.
10361         * config/darwin-sections.def: Updated for ABI v1 and v2.
10362         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
10363         compiling Objective-C code for the NeXT runtime, default to using
10364         ABI version 0 for 32-bit, and version 2 for 64-bit.
10365
10366 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10367
10368         * common.opt (optimize_fast): New Variable.
10369         * opts.c (default_options_optimization): Use opts->x_optimize_fast
10370         instead of local variable ofast.
10371
10372 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
10373
10374         * doc/invoke.texi (fobjc-abi-version): Documented.
10375         (fobjc-nilcheck): Documented.
10376         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
10377         version.
10378
10379 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10380
10381         PR driver/47390
10382         * common.opt (export-dynamic): New Driver option.
10383         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
10384
10385 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10386
10387         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
10388
10389 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
10390             Jan Hubicka  <jh@suse.cz>
10391
10392         PR debug/47106
10393         PR debug/47402
10394         * cfgexpand.c (account_used_vars_for_block): Remove.
10395         (estimated_stack_frame_size): Use referenced vars.
10396         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
10397         that were referenced in the original function.  Test src_fn
10398         rather than cfun.  Drop redundant get_var_ann.
10399         (setup_one_parameter): Drop redundant get_var_ann.
10400         (declare_return_variable): Likewise.
10401         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
10402         (copy_arguments_for_versioning): Drop redundant get_var_ann.
10403         * ipa-inline.c (compute_inline_parameters): Do not compute
10404         disregard_inline_limits here.
10405         (compute_inlinable_for_current, pass_inlinable): New.
10406         (pass_inline_parameters): Require PROP_referenced_vars.
10407         * cgraphunit.c (cgraph_process_new_functions): Don't run
10408         compute_inline_parameters explicitly unless function is in SSA form.
10409         (cgraph_analyze_function): Set .disregard_inline_limits.
10410         * tree-sra.c (convert_callers): Compute inliner parameters
10411         only for functions already in SSA form.
10412
10413 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10414
10415         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
10416         -mlittle-endian-data.
10417
10418 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10419
10420         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
10421         -mno-fpu, not -fpu and -no-fpu.
10422         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
10423         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
10424
10425 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
10426
10427         PR target/43653
10428         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
10429         input reload with PLUS RTX.
10430
10431 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10432
10433         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
10434         of InverseVar(MDMX).
10435
10436 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10437
10438         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
10439         --m4-340.
10440
10441 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10442
10443         * config/mn10300/mn10300.opt (mno-crt0): New.
10444
10445 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10446
10447         * config/m68k/uclinux.opt (static-libc): New Driver option.
10448
10449 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10450
10451         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
10452
10453 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10454
10455         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
10456         %{muser-extend-enabled}.
10457
10458 2011-02-16  Richard Guenther  <rguenther@suse.de>
10459
10460         PR tree-optimization/47738
10461         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
10462         the TODO from tree_predictive_commoning.
10463
10464 2011-02-15  Jeff Law  <law@redhat.com>
10465
10466         Revert
10467         2011-01-25  Jeff Law  <law@redhat.com>
10468
10469         PR rtl-optimization/37273
10470         * ira-costs.c (scan_one_insn): Detect constants living in memory and
10471         handle them like argument loads from stack slots.  Do not double
10472         count memory for memory constants and argument loads from stack slots.
10473
10474 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
10475
10476         PR middle-end/47725
10477         * combine.c (cant_combine_insn_p): Revert the last change.
10478
10479 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
10480
10481         PR target/47755
10482         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
10483         mode for vector constants.  Remove code that checks for TImode.
10484
10485 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10486
10487         PR debug/47106
10488         PR debug/47402
10489         * cgraph.h (compute_inline_parameters): Return void.
10490         * ipa-inline.c (compute_inline_parameters): Adjust.
10491
10492 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10493
10494         PR debug/47106
10495         PR debug/47402
10496         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
10497         rather than decl.
10498         * cfgexpand.c (estimated_stack_frame_size): Likewise.
10499         * ipa-inline.c (compute_inline_parameters): Adjust.
10500
10501 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10502
10503         PR debug/47106
10504         PR debug/47402
10505         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
10506         Adjust all users.  Pass FN to...
10507         * tree-flow-inline.h (first_referenced_var): ... this.  Add
10508         fn argument.
10509         * ipa-struct-reorg.c: Adjust.
10510         * tree-dfa.c: Adjust.
10511         * tree-into-ssa.c: Adjust.
10512         * tree-sra.c: Adjust.
10513         * tree-ssa-alias.c: Adjust.
10514         * tree-ssa-live.c: Adjust.
10515         * tree-ssa.c: Adjust.
10516         * tree-ssanames.c: Adjust.
10517         * tree-tailcall.c: Adjust.
10518
10519 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10520
10521         PR debug/47106
10522         PR debug/47402
10523         * tree-flow.h (referenced_var_lookup): Add fn parameter.
10524         Adjust all callers.
10525         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
10526         * tree-flow-inline.h: Adjust.
10527         * gimple-pretty-print.c: Adjust.
10528         * tree-into-ssa.c: Adjust.
10529         * tree-ssa.c: Adjust.
10530         * cfgexpand.c: Adjust.
10531
10532 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10533
10534         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
10535         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10536         (EXTRA_CONSTRAINT): Delete.
10537         * config/iq2000/constraints.md: New file.
10538         * config/iq2000/iq2000.md: Include it.
10539         (define_insn ""): Delete.
10540         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
10541         unsupported constraint letters from patterns.
10542         (call_value, call_value_internal1): Likewise.
10543         (call_value_multiple_internal1): Likewise.
10544
10545 2011-02-15  Nick Clifton  <nickc@redhat.com>
10546
10547         * config/mn10300/mn10300.c: Include tm-constrs.h.
10548         (struct liw_data): New data structure describing an LIW candidate
10549         instruction.
10550         (extract_bundle): Use struct liw_data.  Allow small integer
10551         operands for some instructions.
10552         (check_liw_constraints): Use struct liw_data.  Remove swapped
10553         parameter.  Add comments describing the checks.  Fix bug when
10554         assigning the source of liw1 to the source of liw2.
10555         (liw_candidate): Delete.  Code moved into extract_bundle.
10556         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
10557         before swapping.
10558         * config/mn10300/predicates.md (liw_operand): New predicate.
10559         Allows registers and small integer constants.
10560         * config/mn10300/constraints.md (O): New constraint.  Accetps
10561         integers in the range -8 to +7 inclusive.
10562         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
10563         for moving a small integer into a register.  Give this alternative
10564         LIW attributes.
10565         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
10566         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
10567         using the J,K,L and M constraints,
10568         (liw): Remove SI mode on second operands to allow for HI and QI
10569         mode values.
10570         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
10571         instruction.
10572
10573 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
10574
10575         PR middle-end/47725
10576         * combine.c (cant_combine_insn_p): Check zero/sign extended
10577         hard registers.
10578
10579 2011-02-15  Richard Guenther  <rguenther@suse.de>
10580
10581         PR tree-optimization/47743
10582         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
10583         for a non-type-compatible VN lookup bail out.
10584
10585 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10586
10587         * config/fr30/constraints.md: New file.
10588         * config/fr30/fr30.md: Include it.
10589         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
10590         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10591         (EXTRA_CONSTRAINT): Delete.
10592
10593 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10594
10595         * config/frv/constraints.md: New file.
10596         * config/frv/predicates.md: Include it.
10597         * config/frv/frv.c (reg_class_from_letter): Delete.
10598         (frv_option_override): Don't initialize it.
10599         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
10600         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
10601         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
10602         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10603         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
10604         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10605         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
10606         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
10607         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
10608         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
10609         (REG_CLASS_FROM_CONSTRAINT): Delete.
10610
10611 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
10612
10613         PR middle-end/47581
10614         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
10615         if frame size is 0 in a leaf function.
10616
10617 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10618
10619         PR pch/14940
10620         * config/alpha/host-osf.c: New file.
10621         * config/alpha/x-osf: New file.
10622         * config.host (alpha*-dec-osf*): Use it.
10623
10624 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
10625
10626         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10627         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
10628         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
10629         (rx_mode_dependent_address_p): ...this. Make static. Change argument
10630         type to const_rtx.
10631         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10632
10633 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10634
10635         * config/stormy16/constraints.md: New file.
10636         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
10637         Use satisfies_constraint_Q and satisfies_constraint_R.
10638         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
10639         Delete.
10640         (xstormy16_legitiamte_address_p): Declare.
10641         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
10642         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10643         (EXTRA_CONSTRAINT): Delete.
10644         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
10645         Un-staticize.
10646         (xstormy16_extra_constraint_p): Delete.
10647
10648 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
10649
10650         PR tree-optimization/46494
10651         * loop-unroll.c (split_edge_and_insert): Adjust comment.
10652         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
10653         (pass_rtl_loop_done): Add TODO_verify_flow.
10654         * fwprop.c (pass_rtl_fwprop): Likewise.
10655         * modulo-sched.c (pass_sms): Likewise.
10656         * tree-ssa-dom.c (pass_dominator): Likewise.
10657         * tree-ssa-loop-ch.c (pass_ch): Likewise.
10658         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
10659         (pass_tree_loop_done): Likewise.
10660         * tree-ssa-pre.c (execute_pre): Likewise.
10661         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10662         * tree-ssa-sink.c (pass_sink_code): Likewise.
10663         * tree-vrp.c (pass_vrp): Likewise.
10664
10665 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10666
10667         * config/v850/constraints.md: New file.
10668         * config/v850/v850.md: Include it.
10669         * config/v850/predicates.md (reg_or_0_operand): Use
10670         satisfies_constraint_G.
10671         (special_symbolref_operand): Use satisfies_constraint_K.
10672         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
10673         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10674         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
10675         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10676         (EXTRA_CONSTRAINT): Delete.
10677         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
10678         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
10679         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
10680
10681 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
10682
10683         PR target/47696
10684         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
10685         description.
10686
10687 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10688
10689         * config/mcore/constraints.md: New file.
10690         * config/mcore/mcore.md: Include it.
10691         * config/mcore/mcore.c (reg_class_from_letter): Delete.
10692         * config/mcore/mcore.h (reg_class_from_letter): Delete.
10693         (REG_CLASS_FROM_LETTER): Delete.
10694         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
10695         insn_const_int_ok_for_constraint.
10696         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
10697         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
10698         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10699         (EXTRA_CONSTRAINT): Delete.
10700
10701 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10702
10703         PR ada/41929
10704         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10705         (IS_SIGHANDLER): Define.
10706         (sparc64_is_sighandler): New function, split off from
10707         sparc64_fallback_frame_state.
10708         (sparc_is_sighandler): New function, split off from
10709         sparc_fallback_frame_state.
10710         (sparc64_fallback_frame_state): Merge with ...
10711         (sparc_fallback_frame_state): ... this into ...
10712         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
10713         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
10714         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
10715         stack instead of hardcoded offsets.
10716
10717 2011-02-14  Andriy Gapon  <avg@freebsd.org>
10718
10719         PR target/45808
10720         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10721
10722 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10723
10724         * configure: Regenerate.
10725
10726 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
10727
10728         PR driver/45731
10729         * gcc.c (asm_options): Correct spec matching --target-help.
10730
10731 2011-02-12  Martin Jambor  <mjambor@suse.cz>
10732
10733         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10734         to gimple call error.
10735
10736 2011-02-12  Mike Stump  <mikestump@comcast.net>
10737
10738         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10739         comments in backslash regions.
10740
10741 2011-02-12  Mike Stump  <mikestump@comcast.net>
10742             Jakub Jelinek  <jakub@redhat.com>
10743             Iain Sandoe  <iains@gcc.gnu.org>
10744
10745         PR target/47324
10746         * dwarf2out.c (output_cfa_loc): When required, apply the
10747         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10748         (output_loc_sequence): Likewise.
10749         (output_loc_operands_raw): Likewise.
10750         (output_loc_sequence_raw): Likewise.
10751         (output_cfa_loc): Likewise.
10752         (output_loc_list): Suppress register number adjustment when
10753         calling output_loc_sequence()
10754         (output_die): Likewise.
10755
10756 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
10757
10758         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10759         Remove macros.
10760         * config/xtensa/xtensa.c (xtensa_register_move_cost,
10761         xtensa_memory_move_cost): New functions.
10762         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10763
10764 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
10765
10766         PR lto/47225
10767         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10768         in the current directory.
10769         * configure: Rebuilt.
10770
10771 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
10772
10773         * config/darwin.c (darwin_override_options): Add a hunk missed
10774         from the commit of r168571.  Trim comment line lengths and
10775         correct indents of the preceding block.
10776
10777 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
10778
10779         * gcc.c (driver_handle_option): Concatenate the argument to -F with
10780         the switch.
10781
10782 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
10783
10784         * common.opt (nostartfiles): New Driver option.
10785
10786 2011-02-11  Xinliang David Li  <davidxl@google.com>
10787
10788         PR tree-optimization/47707
10789         * tree-chrec.c (convert_affine_scev): Keep type precision.
10790
10791 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
10792
10793         PR tree-optimization/47420
10794         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
10795
10796 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
10797
10798         PR rtl-optimization/47614
10799         * rtl.h (check_for_inc_dec): Declare.
10800         * dse.c (check_for_inc_dec): Externalize...
10801         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
10802         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
10803
10804 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
10805
10806         PR driver/47678
10807         * gcc.c (main): Do not compile inputs if there were errors in
10808         option handling.
10809         * opts-common.c (read_cmdline_option): Check for wrong language
10810         after other error checks.
10811
10812 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
10813
10814         * cgraph.c: Fix comment typos.
10815         * cgraph.h: Likewise.
10816         * cgraphunit.c: Likewise.
10817         * ipa-cp.c: Likewise.
10818         * ipa-inline.c: Likewise.
10819         * ipa-prop.c: Likewise.
10820         * ipa-pure-const.c: Likewise.
10821         * ipa-ref.c: Likewise.
10822         * ipa-reference.c: Likewise.
10823
10824 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
10825
10826         PR debug/47684
10827         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
10828
10829 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10830
10831         PR testsuite/47400
10832         * doc/sourcebuild.texi (Require Support): Document
10833         dg-require-ascii-locale.
10834
10835 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
10836
10837         * doc/lto.texi (Write summary): Fix missing parentheses.
10838
10839 2011-02-10  DJ Delorie  <dj@redhat.com>
10840
10841         * config/m32c/m32c.c (m32c_option_override): Disable
10842         -fcombine-stack-adjustments until flag value tracking and compare
10843         optimization can be rewritten.
10844
10845 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
10846
10847         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
10848         PROCESSOR_POWER7.
10849         (PROCESSOR_DEFAULT64): Likewise.
10850
10851 2011-02-10  Richard Henderson  <rth@redhat.com>
10852
10853         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
10854         change from 2011-02-03.
10855         * config/rx/rx.c (flags_from_code): Likewise.
10856         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
10857         is valid, n/pz otherwise.
10858         (rx_select_cc_mode): Return CCmode if Y is not zero.
10859
10860 2011-02-10  Richard Guenther  <rguenther@suse.de>
10861
10862         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
10863
10864 2011-02-10  Richard Guenther  <rguenther@suse.de>
10865
10866         PR tree-optimization/47677
10867         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
10868
10869 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
10870
10871         PR target/47665
10872         * combine.c (make_compound_operation): Only change shifts into
10873         multiplication for SCALAR_INT_MODE_P.
10874
10875 2011-02-10  Jie Zhang  <jie@codesourcery.com>
10876
10877         PR testsuite/47622
10878         Revert
10879         2011-02-05  Jie Zhang  <jie@codesourcery.com>
10880         PR debug/42631
10881         * web.c (entry_register): Don't clobber the number of the
10882         first uninitialized reference in used[].
10883
10884 2011-02-09  Richard Guenther  <rguenther@suse.de>
10885
10886         PR tree-optimization/47664
10887         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
10888         all edges again.
10889
10890 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
10891
10892         PR target/46481
10893         PR target/47032
10894         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
10895         PROCESSOR_POWER7.
10896         (PROCESSOR_DEFAULT64): Same.
10897         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
10898
10899 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10900
10901         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
10902
10903 2011-02-09  Martin Jambor  <mjambor@suse.cz>
10904
10905         PR middle-end/45505
10906         * tree-sra.c (struct access): New flags grp_scalar_read and
10907         grp_scalar_write.  Changed description of assignment read and write
10908         flags.
10909         (dump_access): Dump new flags, reorder all of them.
10910         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
10911         to detect multiple scalar reads.
10912         (analyze_access_subtree): Use the new scalar read write flags instead
10913         of the old flags.  Adjusted comments.
10914
10915 2011-02-08  DJ Delorie  <dj@redhat.com>
10916
10917         PR target/47548
10918         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
10919         patterns.
10920
10921 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10922
10923         * config/m68k/uclinux.opt: New.
10924         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
10925
10926 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10927
10928         * config/cris/elf.opt (sim): New Driver option.
10929
10930 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10931
10932         * config/xtensa/elf.opt: New.
10933         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
10934
10935 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10936
10937         * config/vax/elf.opt: New.
10938         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
10939
10940 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10941
10942         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
10943
10944 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10945
10946         * config/gnu-user.opt: New.
10947         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
10948         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
10949         *-*-uclinux*): Use gnu-user.opt.
10950
10951 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
10952
10953         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
10954         * config/i386/gnu.h (CPP_SPEC): Likewise.
10955
10956 2011-02-08  Ian Lance Taylor  <iant@google.com>
10957
10958         * common.opt (fcx-limited-range): Add SetByCombined flag.
10959         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
10960         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
10961         (fassociative-math, freciprocal-math): Likewise.
10962         (funsafe-math-optimizations): Likewise.
10963         * opth-gen.awk: Handle SetByCombined.
10964         * optc-gen.awk: Likewise.
10965         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
10966         (set_unsafe_math_optimizations_flags): Likewise.
10967         * doc/options.texi (Option properties): Document SetByCombined.
10968
10969 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10970
10971         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
10972         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
10973         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
10974         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
10975         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
10976
10977 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
10978
10979         PR tree-optimization/46834
10980         PR tree-optimization/46994
10981         PR tree-optimization/46995
10982         * graphite-sese-to-poly.c (used_outside_reduction): New.
10983         (detect_commutative_reduction): Call used_outside_reduction.
10984         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
10985         translate_scalar_reduction_to_array only when at least one
10986         loop-phi/close-phi tuple has been detected.
10987
10988 2011-02-08  Richard Guenther  <rguenther@suse.de>
10989
10990         PR middle-end/47639
10991         * tree-vect-generic.c (expand_vector_operations_1): Update
10992         stmts here ...
10993         (expand_vector_operations): ... not here.  Cleanup EH info
10994         and the CFG if required.
10995
10996 2011-02-08  Richard Guenther  <rguenther@suse.de>
10997
10998         PR tree-optimization/47641
10999         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
11000         require type compatibility.
11001
11002 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11003
11004         * gimple-low.c (lower_function_body): Don't remove the location of
11005         the return statement here.
11006         (lower_gimple_return): Do it here instead but only if the return
11007         statement is actually used twice.
11008
11009 2011-02-08  Richard Guenther  <rguenther@suse.de>
11010
11011         PR tree-optimization/47632
11012         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
11013         unused up_to_stmt parameter, return whether cfg-cleanup is
11014         necessary, remove EH info properly.
11015         (forward_propagate_into_gimple_cond): Adjust caller.
11016         (forward_propagate_into_cond): Likewise.
11017         (forward_propagate_comparison): Likewise.
11018         (tree_ssa_forward_propagate_single_use_vars): Make
11019         forward_propagate_comparison case similar to the two others.
11020
11021 2011-02-08  Nick Clifton  <nickc@redhat.com>
11022
11023         * config/mn10300/mn10300.opt (mliw): New command line option.
11024         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
11025         (liw_bundling): New automaton.
11026         (liw): New attribute.
11027         (liw_op): New attribute.
11028         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
11029         (movsi_internal): Add LIW attributes.
11030         (andsi3): Likewise.
11031         (iorsi3): Likewise.
11032         (xorsi3): Likewise.
11033         (addsi3): Separate register and immediate alternatives.
11034         Add LIW attributes.
11035         (subsi3): Likewise.
11036         (cmpsi): Likewise.
11037         (aslsi3): Likewise.
11038         (lshrsi3): Likewise.
11039         (ashrsi3): Likewise.
11040         (liw): New pattern.
11041         * config/mn10300/mn10300.c (liw_op_names): New
11042         (mn10300_print_operand): Handle 'W' operand descriptor.
11043         (extract_bundle): New function.
11044         (check_liw_constraints): New function.
11045         (liw_candidate): New function.
11046         (mn10300_bundle_liw): New function.
11047         (mn10300_reorg): New function.
11048         (TARGET_MACHINE_DEPENDENT_REORG): Define.
11049         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
11050         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
11051         __LIW__ or __NO_LIW__.
11052         * doc/invoke.texi: Describe the -mliw command line option.
11053
11054 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11055
11056         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
11057         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11058         pthread_mutex_unlock): Remove.
11059         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
11060         * config/pa/t-pa64: Likewise.
11061         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
11062         shared libc if not linking against libpthread.
11063         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11064
11065 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
11066
11067         PR target/47558
11068         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
11069         on 10.6 and later to ensure that we always use the unwinder from
11070         the system.  Only add -no_compact_unwind when tarteting darwin
11071         10.6 or later.
11072
11073 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
11074
11075         PR target/46997
11076         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
11077         (vec_interleave_lowv2sf): Ditto.
11078         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
11079         (vec_extract_oddv2sf): Ditto.
11080
11081 2011-02-07  Mike Stump  <mikestump@comcast.net>
11082
11083         PR target/42333
11084         Add __ieee_divdc3 entry point.
11085         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
11086         entry point.
11087         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
11088         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
11089         * config/darwin.c (darwin_rename_builtins): Add.
11090         * config/darwin-protos.h (darwin_rename_builtins): Add.
11091
11092 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
11093
11094         PR target/47636
11095         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
11096         for the condition.
11097
11098 2011-02-07  Mike Stump  <mikestump@comcast.net>
11099
11100         * config/darwin.opt (mmacosx-version-min): Update default OS version.
11101
11102 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
11103
11104         PR target/47534
11105         * config/avr/libgcc.S (exit): Move .endfunc
11106
11107 2011-02-07  Richard Guenther  <rguenther@suse.de>
11108
11109         PR tree-optimization/47615
11110         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
11111         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
11112         (run_scc_vn): Initialize it.
11113         (visit_reference_op_load): Use it.
11114         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
11115
11116 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11117
11118         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
11119         DImode trapping arithmetic libfuncs.
11120
11121 2011-02-07  Richard Guenther  <rguenther@suse.de>
11122
11123         PR tree-optimization/47621
11124         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
11125         two duplicates ...
11126         (execute_update_addresses_taken): ... here.  Make it more
11127         conservative in what we accept.
11128
11129 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
11130
11131         * config/sparc/freebsd.h (ASM_SPEC): Define.
11132         * config/sparc/vxworks.h (ASM_SPEC): Define.
11133
11134 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
11135
11136         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11137
11138 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
11139
11140         * doc/invoke.texi: Remove reference to compiler internals from
11141         user documentation.
11142
11143         * reg-notes.def: Remove REG_VALUE_PROFILE.
11144         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
11145
11146 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
11147
11148         PR middle-end/47610
11149         * varasm.c (default_section_type_flags): If decl is NULL,
11150         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
11151
11152 2011-02-05  Jie Zhang  <jie@codesourcery.com>
11153
11154         PR debug/42631
11155         * web.c (entry_register): Don't clobber the number of the
11156         first uninitialized reference in used[].
11157
11158 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
11159
11160         PR tree-optimization/46194
11161         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
11162         (build_classic_dist_vector_1): Do not represent classic distance
11163         vectors when the access functions are variating in different loops.
11164
11165 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11166
11167         * config/mips/iris6.opt: New.
11168         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
11169
11170 2011-02-04  Richard Henderson  <rth@redhat.com>
11171             Steve Ellcey  <sje@cup.hp.com>
11172
11173         PR target/46997
11174         * config/ia64/predicates.md (mux1_brcst_element): New.
11175         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
11176         * config/ia64/ia64.c (ia64_unpack_assemble): New.
11177         (ia64_unpack_sign): New.
11178         (ia64_expand_unpack): Rewrite using new routines.
11179         (ia64_expand_widen_sum): Ditto.
11180         (ia64_expand_dot_prod_v8qi): Ditto.
11181         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
11182         routines, add endian check.
11183         (pmpy2_even): Rename from pmpy2_r, add endian check.
11184         (pmpy2_odd): Rename from pmpy2_l, add endian check.
11185         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
11186         (vec_widen_smult_hi_v4hi): Ditto.
11187         (vec_widen_umult_lo_v4hi): Ditto.
11188         (vec_widen_umult_hi_v4hi): Ditto.
11189         (mulv2si3): Change endian checks.
11190         (sdot_prodv4hi): Rewrite with new calls.
11191         (udot_prodv4hi): New.
11192         (vec_pack_ssat_v4hi): Add endian check.
11193         (vec_pack_usat_v4hi): Ditto.
11194         (vec_pack_ssat_v2si): Ditto.
11195         (max1_even): Rename from max1_r, add endian check.
11196         (max1_odd): Rename from max1_l, add endian check.
11197         (*mux1_rev): Format change.
11198         (*mux1_mix): Ditto.
11199         (*mux1_shuf): Ditto.
11200         (*mux1_alt): Ditto.
11201         (*mux1_brcst_v8qi): Use new predicate.
11202         (vec_extract_evenv8qi): Remove endian check.
11203         (vec_extract_oddv8qi): Ditto.
11204         (vec_interleave_lowv4hi): Format change.
11205         (vec_interleave_highv4hi): Ditto.
11206         (mix2_even): Rename from mix2_r, add endian check.
11207         (mix2_odd): Rename from mux2_l, add endian check.
11208         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
11209         (vec_extract_evenodd_helper): Format change.
11210         (vec_extract_evenv4hi): Remove endian check.
11211         (vec_extract_oddv4hi): Remove endian check.
11212         (vec_interleave_lowv2si): Format change.
11213         (vec_interleave_highv2si): Format change.
11214         (vec_initv2si): Remove endian check.
11215         (vecinit_v2si): Add endian check.
11216         (reduc_splus_v2sf): Add endian check.
11217         (reduc_smax_v2sf): Ditto.
11218         (reduc_smin_v2sf): Ditto.
11219         (vec_initv2sf): Remove endian check.
11220         (fpack): Add endian check.
11221         (fswap): Add endian check.
11222         (vec_interleave_highv2sf): Add endian check.
11223         (vec_interleave_lowv2sf): Add endian check.
11224         (fmix_lr): Add endian check.
11225         (vec_setv2sf): Format change.
11226         (*vec_extractv2sf_0_be): Use shift to extract operand.
11227         (*vec_extractv2sf_1_be): New.
11228         (vec_pack_trunc_v4hi): Add endian check.
11229         (vec_pack_trunc_v2si): Format change.
11230
11231 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
11232
11233         PR inline-asm/23200
11234         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
11235         do bb, locus and block comparison and disallow loads if it is not set.
11236         (stmt_is_replaceable_p): New function.
11237         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
11238         callers.
11239         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
11240         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
11241         SSA_NAME_DEF_STMT.
11242         * tree-flow.h (stmt_is_replaceable_p): New prototype.
11243
11244 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11245
11246         * config/rs6000/xilinx.opt: New.
11247         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
11248
11249 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11250
11251         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
11252
11253 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
11254
11255         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
11256         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11257         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
11258         secondary_reload_info, xtensa_secondary_reload): Remove.
11259         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
11260         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11261         (xtensa_preferred_reload_class): Make static. Change return and
11262         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
11263         Use CONST_DOUBLE_P predicate.
11264         (xtensa_preferred_output_reload_class): New function.
11265         (xtensa_secondary_reload): Make static.
11266
11267 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
11268
11269         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
11270         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
11271         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
11272
11273 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11274
11275         PR middle-end/31490
11276         * output.h (SECTION_RELRO): Define.
11277         (SECTION_MACH_DEP): Adjust.
11278         (get_variable_section): New prototype.
11279         * varpool.c (varpool_finalize_named_section_flags): New function.
11280         (varpool_assemble_pending_decls): Call it.
11281         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
11282         * cgraphunit.c (cgraph_output_in_order): Call
11283         varpool_finalize_named_section_flags.
11284         * varasm.c (get_section): Allow section flags conflicts between
11285         relro and read-only sections if the section hasn't been declared yet.
11286         Set SECTION_OVERRIDE after diagnosing section type conflict.
11287         (get_variable_section): No longer static.
11288         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
11289         readonly sections that need relocations.
11290         (decl_readonly_section_1): New function.
11291         (decl_readonly_section): Use it.
11292
11293         Revert:
11294         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
11295                     Steve Ellcey  <sje@cup.hp.com>
11296
11297         PR middle-end/31490
11298         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
11299         if section attribute used.
11300
11301 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11302
11303         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
11304         * config/darwin.c (SECTION_NO_ANCHOR): Define.
11305         (darwin_init_sections): Remove assertion.
11306
11307 2011-02-03  Nick Clifton  <nickc@redhat.com>
11308
11309         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
11310         lt and ge.
11311         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
11312         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
11313         instead of "n" and "pz".
11314         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
11315         CC_FLAG_S.
11316
11317 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11318
11319         PR target/47312
11320         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
11321         fma, expand FMA_EXPR as fma{,f,l} call.
11322
11323         PR lto/47274
11324         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
11325         copy them into a unsigned char variable and pass address of it to
11326         lto_output_data_stream.
11327
11328         PR target/47564
11329         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
11330         around backend_init_target and lang_dependent_init_target calls.
11331         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
11332         (verify_cgraph_node): Don't call set_cfun here.  Use
11333         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
11334         Set error_found for incorrectly represented calls to thunks.
11335
11336 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
11337
11338         PR debug/43092
11339         PR rtl-optimization/43494
11340         * rtl.h (for_each_inc_dec_fn): New type.
11341         (for_each_inc_dec): Declare.
11342         * rtlanal.c (struct for_each_inc_dec_ops): New type.
11343         (for_each_inc_dec_find_inc_dec): New fn.
11344         (for_each_inc_dec_find_mem): New fn.
11345         (for_each_inc_dec): New fn.
11346         * dse.c (struct insn_size): Remove.
11347         (replace_inc_dec, replace_inc_dec_mem): Remove.
11348         (emit_inc_dec_insn_before): New fn.
11349         (check_for_inc_dec): Use it, along with for_each_inc_dec.
11350         (canon_address): Pass mem modes to cselib_lookup.
11351         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
11352         (cselib_lookup_from_insn): Likewise.
11353         (cselib_subst_to_values): Likewise.
11354         * cselib.c (find_slot_memmode): New var.
11355         (cselib_find_slot): New fn.  Use it instead of
11356         htab_find_slot_with_hash everywhere.
11357         (entry_and_rtx_equal_p): Use find_slot_memmode.
11358         (autoinc_split): New fn.
11359         (rtx_equal_for_cselib_p): Rename and implement in terms of...
11360         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
11361         Deal with autoinc.  Special-case recursion into MEMs.
11362         (cselib_hash_rtx): Likewise.
11363         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
11364         address and MEM modes.
11365         (cselib_subst_to_values): Add memmode, pass it on.
11366         Deal with autoinc.
11367         (cselib_lookup): Add memmode argument, pass it on.
11368         (cselib_lookup_from_insn): Add memmode.
11369         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
11370         (struct cselib_record_autoinc_data): New.
11371         (cselib_record_autoinc_cb): New fn.
11372         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
11373         mode to cselib_lookup.  Reset autoinced REGs here instead of...
11374         (cselib_process_insn): ... here.
11375         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
11376         to cselib_lookup.
11377         (add_uses): Likewise, also to cselib_subst_to_values.
11378         (add_stores): Likewise.
11379         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
11380         cselib_subst_to_values.
11381         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
11382         * gcse.c (do_local_cprop): Adjusted.
11383         * postreload.c (reload_cse_simplify_set): Adjusted.
11384         (reload_cse_simplify_operands): Adjusted.
11385         * sel-sched-dump (debug_mem_addr_value): Pass mode.
11386
11387 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
11388
11389         PR tree-optimization/45122
11390         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
11391         unsafe assumptions when there's more than one loop exit.
11392
11393 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
11394
11395         PR target/47272
11396         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11397         Document using vector double with the load/store builtins, and
11398         that the load/store builtins always use Altivec instructions.
11399
11400         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
11401         to use altivec memory instructions, even on VSX.
11402         (vector_altivec_store_<mode>): Ditto.
11403
11404         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
11405         function.
11406
11407         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11408         V2DF, V2DI support to load/store overloaded builtins.
11409
11410         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
11411         altivec load/store builtins for V2DF/V2DI types.
11412
11413         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11414         set avoid indexed addresses on power6 if -maltivec.
11415         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
11416         vector_altivec_load/vector_altivec_store builtins.
11417         (altivec_expand_st_builtin): Ditto.
11418         (altivec_expand_builtin): Add VSX memory builtins.
11419         (rs6000_init_builtins): Add V2DI types to internal types.
11420         (altivec_init_builtins): Add support for V2DF/V2DI altivec
11421         load/store builtins.
11422         (rs6000_address_for_altivec): Insure memory address is appropriate
11423         for Altivec.
11424
11425         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
11426         vec_vsx_ld and vec_vsx_st.
11427         (vsx_store_<mode>): Ditto.
11428
11429         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
11430         variables to hold long long types for VSX vector memory builtins.
11431         (RS6000_BTI_unsigned_long_long): Ditto.
11432         (long_long_integer_type_internal_node): Ditti.
11433         (long_long_unsigned_type_internal_node): Ditti.
11434
11435         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
11436         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
11437         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
11438
11439         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
11440         short cuts.
11441         (vec_vsx_st): Ditto.
11442
11443 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11444
11445         * config/pa/pa-hpux10.opt: New.
11446         * config/hpux11.opt (pthread): New Driver option.
11447         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
11448         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
11449
11450 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11451
11452         * config/ia64/vms.opt: New.
11453         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
11454
11455 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
11456
11457         PR target/47580
11458         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
11459         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
11460         generator functions.
11461         (vsx_floatuns<VSi><mode>2): Ditto.
11462         (vsx_fix_trunc<mode><VSi>2): Ditto.
11463         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
11464
11465 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11466
11467         * config/i386/djgpp.opt (posix): New Driver option.
11468
11469 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
11470
11471         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
11472         Move to the unsupported targets list.
11473
11474 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
11475
11476         PR rtl-optimization/47525
11477         * df-scan.c: Update copyright years.
11478         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
11479         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
11480
11481 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11482
11483         * config/i386/sysv4.h (TARGET_VERSION): Remove.
11484         (SUBTARGET_RETURN_IN_MEMORY): Remove.
11485         (ASM_OUTPUT_ASCII): Remove.
11486         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
11487
11488 2011-02-02  Jeff Law  <law@redhat.com>
11489
11490         PR middle-end/47543
11491         * reload.c (find_reloads_address): Handle reg+d address where both
11492         components are invalid by reloading the entire address.
11493
11494 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
11495             Richard Guenther  <rguenther@suse.de>
11496
11497         PR tree-optimization/40979
11498         PR bootstrap/47044
11499         * passes.c (init_optimization_passes): After LIM call copy_prop
11500         and DCE to clean up.
11501         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
11502
11503 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
11504
11505         PR tree-optimization/47576
11506         PR tree-optimization/47555
11507         * doc/invoke.texi (scev-max-expr-complexity): Documented.
11508         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11509         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
11510         * tree-scalar-evolution.c (follow_ssa_edge): Use
11511         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
11512
11513 2011-02-02  Richard Guenther  <rguenther@suse.de>
11514
11515         PR tree-optimization/47566
11516         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
11517
11518 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
11519
11520         PR debug/47106
11521         PR debug/47402
11522         * tree-inline.c (declare_return_variable): Remove unused caller
11523         variable.
11524
11525         PR debug/47106
11526         PR debug/47402
11527         * tree-flow-inline.h (clear_is_used, is_used_p): New.
11528         * cfgexpand.c (account_used_vars_for_block): Use them.
11529         * tree-nrv.c (tree_nrv): Likewise.
11530         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
11531         (dump_scope_block): Likewise.
11532         (remove_unused_locals): Likewise.
11533
11534         PR debug/47106
11535         PR debug/47402
11536         * tree-inline.c (declare_return_variable): Add result decl to
11537         local decls only once.
11538         * gimple-low.c (record_vars_into): Mark newly-created variables
11539         as referenced.
11540
11541 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
11542
11543         PR debug/47498
11544         PR debug/47501
11545         PR debug/45136
11546         PR debug/45130
11547         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11548         debug insns.
11549         (no_real_insns_p, schedule_block, set_priorities): Drop special
11550         treatment of boundary debug insns.
11551         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11552         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
11553         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11554         (BOUNDARY_DEBUG_INSN_P): Likewise.
11555         (SCHEDULE_DEBUG_INSN_P): Likewise.
11556         * sched-rgn.c (init_ready_list): Drop special treatment of
11557         boundary debug insns.
11558         * final.c (rest_of_clean_state): Clear notes' BB.
11559
11560 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11561
11562         * config/openbsd.opt (assert=): New Driver option.
11563
11564 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11565
11566         * config/i386/nto.opt: New.
11567         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
11568
11569 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11570
11571         * config/i386/netware.opt: New.
11572         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
11573
11574 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11575
11576         * config/interix.opt (posix): New Driver option.
11577
11578 2011-02-01  DJ Delorie  <dj@redhat.com>
11579
11580         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
11581
11582         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
11583         class for A0/A1.
11584
11585 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
11586
11587         PR tree-optimization/47561
11588         * toplev.c (process_options): Print the Graphite flags.  Add
11589         flag_loop_flatten to the list of options requiring Graphite.
11590
11591 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11592
11593         * config/i386/cygming.opt (posix): New Driver option.
11594
11595 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11596
11597         * config/arm/vxworks.opt: New.
11598         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
11599
11600 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11601
11602         * config/alpha/elf.opt: New.
11603         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
11604         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
11605
11606 2011-02-01  Richard Guenther  <rguenther@suse.de>
11607
11608         PR tree-optimization/47559
11609         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
11610         store-motion on references that can throw.
11611
11612 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
11613
11614         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
11615         * tree-pass.h (TDF_CSELIB): New macro.
11616         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
11617         cselib_lookup): Check for it rather than for TDF_DETAILS.
11618
11619 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
11620
11621         PR driver/47547
11622         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
11623         is HOST_BIT_BUCKET.
11624
11625         * opts.c (finish_options): Don't add x_aux_base_name if it is
11626         HOST_BIT_BUCKET.
11627
11628 2011-02-01  Richard Guenther  <rguenther@suse.de>
11629
11630         PR tree-optimization/47555
11631         Revert
11632         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
11633
11634         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11635
11636 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
11637
11638         PR gcc/46692
11639         * config/lm32/t-lm32: Add multilib for all CPU options.
11640
11641 2011-02-01  Richard Guenther  <rguenther@suse.de>
11642
11643         PR tree-optimization/47541
11644         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
11645         sure to have a field at offset zero.
11646
11647 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11648
11649         * config/arc/arc.opt (EB, EL): New Driver options.
11650
11651 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11652
11653         * config/alpha/osf5.opt: New.
11654         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
11655
11656 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11657
11658         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
11659
11660 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
11661
11662         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
11663         -floop-interchange.
11664         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
11665         is an alias of -floop-interchange and that it requires the
11666         Graphite infrastructure.
11667         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
11668         flag_loop_interchange based on the value of flag_tree_loop_linear.
11669
11670 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
11671             Richard Guenther  <rguenther@suse.de>
11672
11673         PR tree-optimization/47538
11674         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
11675         type instead of r1type, except for comparisons.  For right
11676         shifts and comparisons punt if there are mismatches in
11677         sizetype vs. non-sizetype types.
11678
11679 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11680
11681         * doc/sourcebuild.texi (Effective-Target Keywords): Document
11682         avx_runtime.
11683
11684 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11685
11686         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
11687         version number.
11688         * configure: Regenerate.
11689
11690 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11691
11692         * configure.ac (gcc_cv_ld_static_option): Define.
11693         (gcc_cv_ld_dynamic_option): Define.
11694         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
11695         instead.
11696         (HAVE_LD_STATIC_DYNAMIC): Update message.
11697         (LD_STATIC_OPTION): Define.
11698         (LD_DYNAMIC_OPTION): Define.
11699         * configure: Regenerate.
11700         * config.in: Regenerate.
11701         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11702         HAVE_LD_STATIC_DYNAMIC]: Use them.
11703
11704 2011-01-31  Nick Clifton  <nickc@redhat.com>
11705
11706         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11707         registers inside interrupt handlers if the handler is not a leaf
11708         function.
11709
11710 2011-01-31  Nick Clifton  <nickc@redhat.com>
11711
11712         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11713         reg_renumber returning an INVALID_REGNUM.
11714
11715 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
11716
11717         PR libgcj/44341
11718         * doc/install.texi: Document host options discarded when cross
11719         configuring target libraries.
11720
11721 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
11722
11723         Reverted:
11724         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
11725         PR debug/45136
11726         PR debug/45130
11727         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11728         debug insns.
11729         (no_real_insns_p, schedule_block, set_priorities): Drop special
11730         treatment of boundary debug insns.
11731         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11732         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11733         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11734         (BOUNDARY_DEBUG_INSN_P): Likewise.
11735         (SCHEDULE_DEBUG_INSN_P): Likewise.
11736         * sched-rgn.c (init_ready_list): Drop special treatment of
11737         boundary debug insns.
11738         * final.c (rest_of_clean-state): Clear notes' BB.
11739
11740 2011-01-31  Alan Modra  <amodra@gmail.com>
11741
11742         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11743         toc relative expressions as we do in print_operand_address.
11744
11745 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
11746
11747         * doc/extend.texi: Follow spelling conventions.
11748         * doc/invoke.texi: Fix a typo.
11749
11750 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
11751
11752         * config/hpux11.opt: New.
11753         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11754         ia64*-*-hpux*): Use hpux11.opt.
11755
11756 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
11757
11758         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11759         to tmake_file.
11760
11761 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11762
11763         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11764         support sites.
11765
11766 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11767
11768         * doc/install.texi (Binaries): Remove outdated reference for
11769         Motorola 68HC11/68HC12 downloads.
11770
11771 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11772
11773         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
11774         Drepper's paper.
11775
11776 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
11777
11778         PR bootstrap/47147
11779         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
11780         used by NetBSD.
11781
11782 2011-01-28  Ahmad Sharif  <asharif@google.com>
11783
11784         * value-prof.c (check_counter): Corrected error message.
11785
11786 2011-01-29  Jie Zhang  <jie@codesourcery.com>
11787
11788         * config/arm/arm.c (arm_legitimize_reload_address): New.
11789         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11790         arm_legitimize_reload_address.
11791         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
11792
11793 2011-01-28  Ian Lance Taylor  <iant@google.com>
11794
11795         * godump.c (go_define): Ignore macros whose definitions include
11796         two adjacent operands.
11797
11798 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
11799
11800         PR target/42894
11801         * varasm.c (force_const_mem): Store copy of x in desc->constant
11802         instead of x itself.
11803         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
11804         itself into REG_EQUAL note.
11805
11806 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
11807
11808         * config/freebsd.opt (posix, rdynamic): New Driver options.
11809
11810 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11811
11812         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
11813         -Bstatic/-Bdynamic.
11814         * configure: Regenerate.
11815
11816 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
11817
11818         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
11819         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
11820
11821 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
11822
11823         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
11824         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
11825         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11826         (s390_preferred_reload_class): Make static. Change return and
11827         'rclass' argument type to reg_class_t.
11828
11829 2011-01-27  Jan Hubicka  <jh@suse.cz>
11830
11831         PR middle-end/46949
11832         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
11833         (process_function_and_variable_attributes): Check defined weakrefs.
11834
11835 2011-01-27  Martin Jambor  <mjambor@suse.cz>
11836
11837         PR tree-optimization/47228
11838         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
11839         build_ref_for_offset.
11840
11841 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11842
11843         * config/spu/spu-elf.h (ASM_SPEC): Remove.
11844
11845 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
11846
11847         PR rtl-optimization/46856
11848         * postreload.c (reload_combine_recognize_const_pattern): Do not
11849         separate cc0 setter and user on cc0 targets.
11850
11851 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
11852
11853         PR c/43082
11854         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
11855         passed a VOID_TYPE expression, immediately emit an error and
11856         return error_mark_node.
11857
11858 2011-01-26  Jeff Law  <law@redhat.com>
11859
11860         PR rtl-optimization/47464
11861         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
11862         rather than may_trap_p as needed.
11863
11864 2011-01-26  DJ Delorie  <dj@redhat.com>
11865
11866         PR rtl-optimization/46878
11867         * combine.c (insn_a_feeds_b): Check for the implicit cc0
11868         setter/user dependency as well.
11869
11870 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
11871
11872         PR rtl-optimization/44469
11873         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
11874         after removing trivially dead basic blocks.
11875
11876 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11877
11878         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
11879         * config/frv/frv.h (LINK_SPEC): Likewise.
11880         * config/i386/netware.h (LINK_SPEC): Likewise.
11881         * config/m68k/linux.h (ASM_SPEC): Likewise.
11882         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
11883         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11884         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11885         * config/sparc/linux.h (ASM_SPEC): Likewise.
11886         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11887         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11888
11889 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11890
11891         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
11892         * config/frv/frv.h (ASM_SPEC): Likewise.
11893         * config/m68k/linux.h (ASM_SPEC): Likewise.
11894         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11895         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
11896         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11897         * config/sparc/linux.h (ASM_SPEC): Likewise.
11898         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11899         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11900
11901 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11902
11903         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
11904         * config/frv/frv.h (LINK_SPEC): Likewise.
11905         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11906
11907 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11908
11909         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
11910         * config/frv/frv.h (ASM_SPEC): Likewise.
11911         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
11912         * config/m68k/linux.h (ASM_SPEC): Likewise.
11913         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11914         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
11915         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11916         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
11917         * config/sparc/linux.h (ASM_SPEC): Likewise.
11918         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11919         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11920         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
11921
11922 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
11923
11924         PR target/46997
11925         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
11926         (*mux2): Ditto.
11927         (vec_extract_evenodd_help): Ditto.
11928         (vec_extract_evenv4hi): Ditto.
11929         (vec_extract_oddv4hi): Ditto.
11930         (vec_interleave_lowv2si): Ditto.
11931         (vec_interleave_highv2si): Ditto.
11932         (vec_extract_evenv2si): Ditto.
11933         (vec_extract_oddv2si: Ditto.
11934         (vec_pack_trunc_v2si): Ditto.
11935
11936 2011-01-22  Jan Hubicka  <jh@suse.cz>
11937
11938         PR target/47237
11939         * cgraph.h (cgraph_local_info): New field can_change_signature.
11940         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
11941         signature can change.
11942         (ipcp_estimate_growth): Call sequence simplify only if calle signature
11943         can change.
11944         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
11945         (cgraph_function_versioning): We can not change signature of functions
11946         that don't allow that.
11947         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
11948         (lto_input_node): Likewise.
11949         * ipa-inline.c (compute_inline_parameters): Compute
11950         local.can_change_signature.
11951         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
11952         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
11953         functions that can not change signature.
11954         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
11955         init_cumulative_args): Do not use local calling conventions
11956         for functions that can not change signature.
11957
11958 2011-01-22  Jan Hubicka  <jh@suse.cz>
11959
11960         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
11961
11962 2011-01-26  Richard Guenther  <rguenther@suse.de>
11963
11964         PR tree-optimization/47190
11965         * cgraphunit.c (process_common_attributes): New function.
11966         (process_function_and_variable_attributes): Use it.
11967
11968 2011-01-26  Richard Guenther  <rguenther@suse.de>
11969
11970         PR lto/47423
11971         * cgraphbuild.c (record_eh_tables): Record reference to personality
11972         function.
11973
11974 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
11975
11976         PR debug/45454
11977         * sel-sched.c (moveup_expr): Don't let debug insns prevent
11978         non-debug insns from moving up.
11979
11980 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
11981
11982         PR target/40125
11983         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
11984         t-dlldir{,-x} fragment for build and add it to tmake_file.
11985         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
11986         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
11987         * config/i386/t-dlldir: New file.
11988         (SHLIB_DLLDIR): Define.
11989         * config/i386/t-dlldir-x: New file.
11990         (SHLIB_DLLDIR): Define.
11991         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
11992         (SHLIB_INSTALL): Use it.
11993
11994 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
11995
11996         PR target/47246
11997         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
11998         lower bound of the allowed Thumb-2 coprocessor load/store
11999         index range to -256. Add explaining comment.
12000
12001 2011-01-25  Ian Lance Taylor  <iant@google.com>
12002
12003         * godump.c (go_define): Improve lexing of macro expansion to only
12004         accept expressions which match Go spec.
12005
12006 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
12007
12008         PR c++/43601
12009         * tree.c (handle_dll_attribute): Handle it.
12010         * doc/extend.texi (@item dllexport): Mention it.
12011         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
12012
12013 2011-01-25  Ian Lance Taylor  <iant@google.com>
12014
12015         PR tree-optimization/26854
12016         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
12017         (decl_jump_unsafe): Move higher in file, with no other change.
12018         (bind): Set has_jump_unsafe_decl if appropriate.
12019         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
12020         (check_earlier_gotos): Likewise.
12021         (c_check_switch_jump_warnings): Likewise.
12022
12023 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
12024
12025         * doc/invoke.texi (Warning Options): Add missing hyphen.
12026         (-fprofile-dir): Minor grammatical fixes.
12027         (-fbranch-probabilities): Likewise.
12028
12029 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
12030
12031         PR debug/45136
12032         PR debug/45130
12033         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12034         debug insns.
12035         (no_real_insns_p, schedule_block, set_priorities): Drop special
12036         treatment of boundary debug insns.
12037         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12038         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12039         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12040         (BOUNDARY_DEBUG_INSN_P): Likewise.
12041         (SCHEDULE_DEBUG_INSN_P): Likewise.
12042         * sched-rgn.c (init_ready_list): Drop special treatment of
12043         boundary debug insns.
12044         * final.c (rest_of_clean-state): Clear notes' BB.
12045
12046 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12047
12048         * Makefile.in (LAMBDA_H): Removed.
12049         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
12050         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
12051         lambda-trans.o, and tree-loop-linear.o.
12052         (lto-symtab.o): Remove dependence on LAMBDA_H.
12053         (tree-loop-linear.o): Remove rule.
12054         (lambda-mat.o): Same.
12055         (lambda-trans.o): Same.
12056         (lambda-code.o): Same.
12057         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
12058         (tree-vect-slp.o): Same.
12059         * hwint.h (gcd): Moved here.
12060         (least_common_multiple): Same.
12061         * lambda-code.c: Removed.
12062         * lambda-mat.c: Removed.
12063         * lambda-trans.c: Removed.
12064         * lambda.h: Removed.
12065         * tree-loop-linear.c: Removed.
12066         * lto-symtab.c: Do not include lambda.h.
12067         * omega.c (gcd): Removed.
12068         * passes.c (init_optimization_passes): Remove pass_linear_transform.
12069         * tree-data-ref.c (print_lambda_vector): Moved here.
12070         (lambda_vector_copy): Same.
12071         (lambda_matrix_copy): Same.
12072         (lambda_matrix_id): Same.
12073         (lambda_vector_first_nz): Same.
12074         (lambda_matrix_row_add): Same.
12075         (lambda_matrix_row_exchange): Same.
12076         (lambda_vector_mult_const): Same.
12077         (lambda_vector_negate): Same.
12078         (lambda_matrix_row_negate): Same.
12079         (lambda_vector_equal): Same.
12080         (lambda_matrix_right_hermite): Same.
12081         * tree-data-ref.h: Do not include lambda.h.
12082         (lambda_vector): Moved here.
12083         (lambda_matrix): Same.
12084         (dependence_level): Same.
12085         (lambda_transform_legal_p): Removed declaration.
12086         (lambda_collect_parameters): Same.
12087         (lambda_compute_access_matrices): Same.
12088         (lambda_vector_gcd): Same.
12089         (lambda_vector_new): Same.
12090         (lambda_vector_clear): Same.
12091         (lambda_vector_lexico_pos): Same.
12092         (lambda_vector_zerop): Same.
12093         (lambda_matrix_new): Same.
12094         * tree-flow.h (least_common_multiple): Removed declaration.
12095         * tree-parloops.c (lambda_trans_matrix): Moved here.
12096         (LTM_MATRIX): Same.
12097         (LTM_ROWSIZE): Same.
12098         (LTM_COLSIZE): Same.
12099         (LTM_DENOMINATOR): Same.
12100         (lambda_trans_matrix_new): Same.
12101         (lambda_matrix_vector_mult): Same.
12102         (lambda_transform_legal_p): Same.
12103         * tree-pass.h (pass_linear_transform): Removed declaration.
12104         * tree-ssa-loop.c (tree_linear_transform): Removed.
12105         (gate_tree_linear_transform): Removed.
12106         (pass_linear_transform): Removed.
12107         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
12108         flag_loop_interchange.
12109
12110 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12111
12112         PR tree-optimization/47265
12113         PR tree-optimization/47443
12114         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
12115         if name still has some uses.
12116
12117 2011-01-25  Martin Jambor  <mjambor@suse.cz>
12118
12119         PR tree-optimization/47382
12120         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
12121         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
12122
12123 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
12124
12125         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
12126         sjlj_except_unwind_info.
12127
12128 2011-01-25  Richard Guenther  <rguenther@suse.de>
12129
12130         PR tree-optimization/47426
12131         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
12132         visible functions results escape.
12133
12134 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12135
12136         PR target/45701
12137         * config/arm/arm.c (any_sibcall_uses_r3): New function.
12138         (arm_get_frame_offsets): Use it.
12139
12140 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12141             Jakub Jelinek  <jakub@redhat.com>
12142
12143         PR tree-optimization/47271
12144         * tree-if-conv.c (bb_postdominates_preds): New.
12145         (if_convertible_bb_p): Call bb_postdominates_preds.
12146         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
12147         (predicate_scalar_phi): Call bb_postdominates_preds.
12148
12149 2011-01-25  Nick Clifton  <nickc@redhat.com>
12150
12151         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
12152         * config/rx/rx.c (rx_function_value): Likewise.
12153         (rx_promote_function_mode): Likewise.
12154         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
12155         in order to make it legitimate.
12156         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
12157         make sure that the first operand is the same as the result register.
12158         (addsi3_unspec): Delete.
12159         (subdi3): Do not accept immediate operands.
12160         (subdi3_internal): Likewise.
12161
12162 2011-01-25  Jeff Law  <law@redhat.com>
12163
12164         PR rtl-optimization/37273
12165         * ira-costs.c (scan_one_insn): Detect constants living in memory and
12166         handle them like argument loads from stack slots.  Do not double
12167         count memory for memory constants and argument loads from stack slots.
12168
12169 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12170
12171         PR tree-optimization/47427
12172         PR tree-optimization/47428
12173         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12174         coalesce if the new root var would be TREE_READONLY.
12175
12176 2011-01-25  Richard Guenther  <rguenther@suse.de>
12177
12178         PR middle-end/47414
12179         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
12180         correct type for TBAA.
12181
12182 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12183
12184         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
12185         (close_phi_written_to_memory): Call for_each_index with
12186         dr_indices_valid_in_loop.
12187
12188 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12189
12190         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
12191         when it is initialized.
12192
12193 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12194
12195         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
12196         call to graphite_find_data_references_in_stmt.
12197         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
12198         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
12199         call to graphite_find_data_references_in_stmt.
12200         (analyze_drs_in_stmts): Same.
12201         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
12202         in which the scalar analysis of indices is performed.
12203         (create_data_ref): Same.  Update call to dr_analyze_indices.
12204         (find_data_references_in_stmt): Update call to create_data_ref.
12205         (graphite_find_data_references_in_stmt): Same.
12206         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
12207         declaration.
12208         (create_data_ref): Same.
12209         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
12210         call to create_data_ref.
12211
12212 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12213
12214         * graphite-sese-to-poly.c (build_poly_scop): Move
12215         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
12216
12217 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12218
12219         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
12220         VAR_DECL, PARM_DECL, and RESULT_DECL.
12221
12222 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12223
12224         * graphite-dependences.c (reduction_dr_1): Allow several reductions
12225         in a reduction PBB.
12226         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
12227         that have already been marked as PBB_IS_REDUCTION.
12228
12229 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12230
12231         * graphite-scop-detection.c (same_close_phi_node): New.
12232         (remove_duplicate_close_phi): New.
12233         (make_close_phi_nodes_unique): New.
12234         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
12235
12236 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12237
12238         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
12239         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
12240         of both data references to be the same.
12241
12242 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12243
12244         * graphite-dependences.c (build_lexicographical_constraint): Remove
12245         the gdim parameter.
12246         (build_lexicographical_constraint): Adjust call to
12247         ppl_powerset_is_empty.
12248         (dependence_polyhedron): Same.
12249         (graphite_legal_transform_dr): Same.
12250         (graphite_carried_dependence_level_k): Same.
12251         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
12252         parameter.
12253         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
12254
12255 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12256
12257         * graphite-sese-to-poly.c
12258         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
12259         (close_phi_written_to_memory): New.
12260         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
12261         and unshare_expr.
12262
12263 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12264
12265         * doc/install.texi: Update the expected version number of PPL to 0.11.
12266         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
12267         #if PPL_VERSION_MINOR < 11.
12268
12269 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12270
12271         * graphite-dependences.c: Include graphite-cloog-util.h.
12272         (new_poly_ddr): Inlined into dependence_polyhedron.
12273         (free_poly_ddr): Moved close by new_poly_ddr.
12274         (dependence_polyhedron_1): Renamed dependence_polyhedron.
12275         Early return NULL when ppl_powerset_is_empty returns true.
12276         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
12277         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
12278         (graphite_legal_transform_dr): Call new_poly_ddr.
12279         (graphite_carried_dependence_level_k): Same.
12280         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
12281         (dot_transformed_deps_stmt_1): Removed.
12282         (dot_deps_stmt_1): Call dot_deps_stmt_2.
12283         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
12284         (dot_deps_1): Call dot_deps_2.
12285         * Makefile.in (graphite-dependences.o): Add missing dependence on
12286         graphite-cloog-util.h.
12287
12288 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12289
12290         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
12291         (build_lexicographical_constraint): Same.
12292         (dependence_polyhedron_1): Same.
12293         (graphite_legal_transform_dr): Same.
12294         (graphite_carried_dependence_level_k): Same.
12295         * graphite-ppl.c (ppl_powerset_is_empty): New.
12296         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
12297         * tree-data-ref.c (dump_data_reference): Print the basic block index.
12298
12299 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12300
12301         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
12302         the "a followed by b" relation and document it.
12303
12304 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12305
12306         * graphite-dependences.c (build_lexicographical_constraint): Stop the
12307         iteration when the bag of constraints is empty.
12308
12309 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12310
12311         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
12312
12313 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12314
12315         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
12316         nest and two loop depths as parameters.
12317         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
12318         lst_perfect_nestify.
12319
12320 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12321
12322         * graphite-dependences.c (print_pddr): Call
12323         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
12324
12325 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12326
12327         * graphite-ppl.c (debug_gmp_value): New.
12328         * graphite-ppl.h (debug_gmp_value): Declared.
12329
12330 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
12331
12332         * doc/install.texi: Document availability of cloog-0.16.
12333
12334 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
12335
12336         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
12337         invalid postdominance info.
12338
12339 2011-01-24  Jan Hubicka  <jh@suse.cz>
12340
12341         PR c/21659
12342         * doc/extend.texi (weak pragma): Drop claim that it must
12343         appear before definition.
12344         * varasm.c (merge_weak, declare_weak): Only sanity check
12345         that DECL is not output at a time it is declared weak.
12346
12347 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
12348
12349         * machmode.def: Fixed comments.
12350
12351 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
12352
12353         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
12354
12355 2011-01-24  Paul Koning  <ni1d@arrl.net>
12356
12357         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
12358         WORDS_BIG_ENDIAN.
12359
12360 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
12361
12362         PR target/46519
12363         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
12364         (block_info): Add scanned and prev.
12365         (move_or_delete_vzeroupper_2): Return if the basic block
12366         has been scanned and the upper 128bit state is unchanged
12367         from the last scan.
12368         (move_or_delete_vzeroupper_1): Return true if the exit
12369         state is changed.
12370         (move_or_delete_vzeroupper): Visit basic blocks using the
12371         work-list based algorithm based on vt_find_locations in
12372         var-tracking.c.
12373
12374         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
12375
12376 2011-01-24  Nick Clifton  <nickc@redhat.com>
12377
12378         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
12379         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
12380         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
12381         then define __v850e1__.
12382         * doc/invoke.texi: Document -mv850es.
12383
12384 2011-01-24  Richard Henderson  <rth@redhat.com>
12385
12386         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
12387         compound unordered comparisons.
12388         * config/rx/rx.c (rx_split_fp_compare): Remove.
12389         * config/rx/rx-protos.h: Update.
12390         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
12391         (cbranchsf4): Don't call rx_split_fp_compare.
12392         (*cbranchsf4): Use rx_split_cbranch.
12393         (*cmpsf): Don't accept "i" constraint.
12394         (*conditional_branch): Only valid after reload.
12395         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
12396
12397 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
12398
12399         PR target/47385
12400         * config/rs6000/altivec.md (vector constant splitters): Add
12401         support for creating vector single precision constants if -mvsx is
12402         used and we would create the constant using Altivec primitives.
12403
12404 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
12405             Richard Sandiford  <rdsandiford@googlemail.com>
12406
12407         PR rtl-optimization/47166
12408         * reload1.c (emit_reload_insns): Disable the spill_reg_store
12409         mechanism for PRE_MODIFY and POST_MODIFY.
12410         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
12411         reloadreg.
12412
12413 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
12414
12415         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
12416
12417 2011-01-22  Jan Hubicka  <jh@suse.cz>
12418
12419         PR lto/47333
12420         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
12421
12422 2011-01-22  Jan Hubicka  <jh@suse.cz>
12423
12424         PR tree-optimization/43884
12425         PR lto/44334
12426         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
12427         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
12428
12429 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
12430
12431         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12432         * config/s390/s390.c (s390_register_move_cost,
12433         s390_memory_move_cost): New.
12434         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12435
12436 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12437
12438         PR middle-end/47401
12439         * except.c (sjlj_assign_call_site_values): Move setting the
12440         crtl->uses_eh_lsda flag to ...
12441         (sjlj_mark_call_sites): ... here.
12442         (sjlj_emit_function_enter): Support NULL dispatch label.
12443         (sjlj_build_landing_pads): In a function with no landing pads
12444         that still has must-not-throw regions, generate code to register
12445         a personality function with empty LSDA.
12446
12447 2011-01-21  Richard Henderson  <rth@redhat.com>
12448
12449         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
12450
12451         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
12452
12453         * compare-elim.c: New file.
12454         * Makefile.in (OBJS-common): Add it.
12455         (compare-elim.o): New.
12456         * common.opt (fcompare-elim): New.
12457         * opts.c (default_options_table): Add OPT_fcompare_elim.
12458         * tree-pass.h (pass_compare_elim_after_reload): New.
12459         * passes.c (init_optimization_passes): Add it.
12460         * recog.h: Protect against re-inclusion.
12461         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
12462         * doc/invoke.texi (-fcompare-elim): Document it.
12463         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
12464         * doc/tm.texi: Rebuild.
12465
12466 2011-01-22  Nick Clifton  <nickc@redhat.com>
12467
12468         * config/rx/rx.md (cstoresf4): Pass comparison operator to
12469         rx_split_fp_compare.
12470
12471 2011-01-22  Nick Clifton  <nickc@redhat.com>
12472
12473         * config/rx/rx.md (UNSPEC_CONST): New.
12474         (deallocate_and_return): Wrap the amount popped off the stack in
12475         an UNSPEC_CONST in order to stop it being rejected by
12476         -mmax-constant-size.
12477         (pop_and_return): Add a "(return)" rtx.
12478         (call): Drop the immediate operand.
12479         (call_internal): Likewise.
12480         (call_value): Likewise.
12481         (call_value_internal): Likewise.
12482         (sibcall_internal): Likewise.
12483         (sibcall_value_internal): Likewise.
12484         (sibcall): Likewise.  Generate an explicit call using
12485         sibcall_internal.
12486         (sibcall_value): Likewise.
12487         (mov<>): FAIL if a constant operand is not legitimate.
12488         (addsi3_unpsec): New pattern.
12489
12490         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
12491         (ok_for_max_constant): New function.
12492         (gen_safe_add): New function.
12493         (rx_expand_prologue): Use gen_safe_add.
12494         (rx_expand_epilogue): Likewise.
12495         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
12496         UNSPEC CONSTs.
12497
12498 2011-01-21  Jeff Law  <law@redhat.com>
12499
12500         PR tree-optimization/47053
12501         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
12502         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
12503         statements are deleted.
12504         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
12505         is nonempty, then purge dead edges and cleanup the CFG.
12506
12507 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12508
12509         PR debug/47402
12510         Temporarily revert:
12511         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12512         PR debug/47106
12513         * tree-dfa.c (create_var_ann): Mark variable as used.
12514
12515 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12516
12517         PR middle-end/45566
12518         * except.c (convert_to_eh_region_ranges): Emit queued no-region
12519         notes from other section in hot/cold partitioning even if
12520         last_action is -3.  Increment call_site_base.
12521
12522         PR rtl-optimization/47366
12523         * fwprop.c (forward_propagate_into): Return bool.  If
12524         any changes are made, -fnon-call-exceptions is used and
12525         REG_EH_REGION note is present, call purge_dead_edges
12526         and return true if it purged anything.
12527         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
12528         any EH edges were purged.
12529
12530 2011-01-21  Jeff Law  <law@redhat.com>
12531
12532         PR rtl-optimization/41619
12533         * caller-save.c (setup_save_areas): Break out code to determine
12534         which hard regs are live across calls by examining the reload chains
12535         so that it is always used.
12536         Eliminate code which checked REG_N_CALLS_CROSSED.
12537
12538 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12539
12540         PR tree-optimization/47355
12541         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
12542         NOP has non-debug uses beyond PHIs in new_bb.
12543
12544 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12545
12546         PR debug/47106
12547         * cfgexpand.c (account_used_vars_for_block): Only account vars
12548         that are annotated as used.
12549         (estimated_stack_frame_size): Don't set TREE_USED.
12550         * tree-dfa.c (create_var_ann): Mark variable as used.
12551
12552 2011-01-21  Richard Guenther  <rguenther@suse.de>
12553
12554         PR middle-end/47395
12555         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
12556
12557 2011-01-21  Richard Guenther  <rguenther@suse.de>
12558
12559         PR tree-optimization/47365
12560         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
12561         (vn_reference_lookup_pieces): Adjust.
12562         (vn_reference_lookup): Likewise.
12563         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
12564         (vn_reference_lookup_3): Only look through kills if in
12565         VN_WALKREWRITE mode.
12566         (vn_reference_lookup_pieces): Adjust.
12567         (vn_reference_lookup): Likewise.
12568         (visit_reference_op_load): Likewise.
12569         (visit_reference_op_store): Likewise.
12570         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
12571         (compute_avail): Likewise.
12572         (eliminate): Likewise.
12573
12574 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12575
12576         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
12577         DECL_IGNORED_P non-reg vars if they are used.
12578
12579         PR tree-optimization/47391
12580         * varpool.c (const_value_known_p): Return false if
12581         decl is volatile.
12582
12583 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
12584
12585         PR bootstrap/47215
12586         * config/i386/i386.c (ix86_local_alignment): Handle
12587         case for va_list_type_node is nil.
12588         (ix86_canonical_va_list_type): Likewise.
12589
12590 2011-01-21  Alan Modra  <amodra@gmail.com>
12591
12592         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
12593         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
12594
12595 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12596
12597         * config/arm/arm.md (define_attr type): Rename f_load
12598         and f_store to f_fpa_load and f_fpa_store. Update.
12599         (write_conflict): Deal with rename fallout.
12600         (*push_fp_multi): Likewise.
12601         * config/arm/fpa.md (f_load): Use f_fpa_load.
12602         (f_store): Use f_fpa_store.
12603         (*movsf_fpa): Likewise.
12604         (*movdf_fpa): Likewise.
12605         (*movxf_fpa): Likewise.
12606         (*thumb2_movsf_fpa): Likewise.
12607         (*thumb2_movdf_fpa): Likewise.
12608         (*thumb2_movxf_fpa): Likewise.
12609         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
12610         f_loadd and f_stored.
12611         (*thumb2_movdi_vfp): Likewise.
12612         (*thumb2_movsf_vfp): Fix attribute to f_loads.
12613         (*thumb2_movsi_vfp): Likewise.
12614         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
12615         Use f_loads instead of f_load.
12616         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
12617
12618 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
12619
12620         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12621         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
12622         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12623         (xtensa_mode_dependent_address_p): New function.
12624         (constantpool_address_p): Make static. Change return type to bool.
12625         Change argument type to const_rtx. Use CONST_INT_P predicate.
12626
12627 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
12628
12629         PR debug/46583
12630         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
12631
12632 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
12633
12634         PR debug/47283
12635         * cfgexpand.c (expand_debug_expr): Instead of generating
12636         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
12637         etc. handling.
12638
12639 2011-01-20  Richard Guenther  <rguenther@suse.de>
12640
12641         PR middle-end/47370
12642         * tree-inline.c (remap_gimple_op_r): Recurse manually for
12643         the pointer operand of MEM_REFs.
12644
12645 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
12646
12647         PR tree-optimization/46130
12648         * ipa-split.c (consider_split): If return_bb contains non-virtual
12649         PHIs other than for retval or if split_function would not adjust it,
12650         refuse to split.
12651
12652 2011-01-20  Richard Guenther  <rguenther@suse.de>
12653
12654         PR tree-optimization/47167
12655         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12656         Revert previous change, only avoid enumeral type changes.
12657
12658 2011-01-19  Mike Stump  <mikestump@comcast.net>
12659
12660         * doc/tm.texi.in (BRANCH_COST): Englishify.
12661         * doc/tm.texi (BRANCH_COST): Likewise.
12662
12663 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
12664
12665         PR c++/47291
12666         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
12667         (gen_scheduled_generic_parms_dies): New functions.
12668         (gen_struct_or_union_type_die): Schedule template parameters DIEs
12669         generation for the end of CU compilation.
12670         (dwarf2out_finish): Generate template parameters DIEs here.
12671
12672 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12673
12674         PR debug/46240
12675         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
12676         debug bind stmt on merge edges.
12677
12678 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12679
12680         PR debug/47079
12681         PR debug/46724
12682         * function.c (instantiate_expr): Instantiate incoming rtl of
12683         implicit arguments, and recurse on VALUE_EXPRs.
12684         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
12685         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
12686
12687 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12688
12689         * c-parser.c (c_parser_for_statement): Initialize
12690         collection_expression.
12691
12692 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12693
12694         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
12695
12696 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12697
12698         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12699         (LINK_SHLIB_SPEC): Don't use %(link_path).
12700         (SUBTARGET_EXTRA_SPECS): Remove link_path.
12701
12702 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12703
12704         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12705         (NO_SHARED_LIB_SUPPORT): Remove.
12706         (LINK_SHLIB_SPEC): Remove one conditional definition.
12707
12708 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12709
12710         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12711         %{call_shared}.
12712         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12713         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12714         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12715         %{call_shared} and conditionals on these options not being passed.
12716         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12717         %{call_shared}.
12718
12719 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
12720
12721         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12722         simplify.
12723
12724         * ipa-split.c: Spelling fixes.
12725
12726 2011-01-19  Richard Henderson  <rth@redhat.com>
12727
12728         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12729         (*mulsi3): Likewise.
12730
12731         * longlong.h [__mn10300__] (count_leading_zeros): New.
12732         [__mn10300__] (umul_ppmm, smul_ppmm): New.
12733         [__mn10300__] (add_ssaaaa, subddmmss): New.
12734         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12735         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12736
12737 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12738
12739         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12740
12741 2011-01-19  Richard Henderson  <rth@redhat.com>
12742
12743         * config/mn10300/mn10300.md (addsi3_flags): New.
12744         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12745         (subsi3_flags, subc_internal, subdi3): New.
12746         (subdi3_internal, *subdi3_degenerate): New.
12747         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12748
12749         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12750         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12751         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
12752         * config/mn10300/mn10300-protos.h: Update.
12753         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12754         (return_ret): Likewise.  Rename from return_internal_regs.
12755         (return_internal): Remove.
12756
12757         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12758         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12759         (mn10300_legitimate_constant_p): Likewise.
12760         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12761         (mn10300_frame_size): New.
12762         (mn10300_expand_prologue): Use it.
12763         (mn10300_expand_epilogue): Likewise.
12764         (mn10300_initial_offset): Likewise.
12765         * config/mn10300/mn10300-protos.h: Update.
12766         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12767         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12768         (prologue, epilogue, return_internal): Tidy output code.
12769         (mn10300_store_multiple_operation, return): Likewise.
12770         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12771         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
12772         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
12773         (load_pic, am33_load_pic): New.
12774         (mn10300_load_pic0, mn10300_load_pic1): New.
12775
12776         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
12777         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
12778         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
12779         (cc_flags_for_mode, cc_flags_for_code): New.
12780         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
12781         overflow flag is not valid.  Validate that the flags we need
12782         for the comparison are valid.
12783         (mn10300_output_cmp): Remove.
12784         (mn10300_output_add): New.
12785         (mn10300_select_cc_mode): Use cc_flags_for_code.
12786         (mn10300_split_cbranch): New.
12787         (mn10300_match_ccmode): New.
12788         (mn10300_split_and_operand_count): New.
12789         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
12790         to the function.
12791         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
12792         (addsi3): ... here.  Use mn10300_output_add.
12793         (*addsi3_flags): New.
12794         (*am33_subsi3, *mn10300_subsi3): Merge...
12795         (subsi3): ... here.  Use attribute isa.
12796         (*subsi3_flags): New.
12797         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
12798         when possible.
12799         (*am33_andsi3, *mn10300_andsi3): Merge...
12800         (andsi3): ... here.
12801         (*andsi3_flags): New.
12802         (andsi3 splitters): New.
12803         (*am33_iorsi3, *mn10300_iorsi3): Merge...
12804         (iorsi3): ... here.
12805         (*iorsi3_flags): New.
12806         (*am33_xorsi3, *mn10300_xorsi3): Merge...
12807         (xorsi3): ... here.
12808         (*xorsi3_flags): New.
12809         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
12810         (one_cmplsi2): ... here.
12811         (*one_cmplsi2_flags): New.
12812         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
12813         instead of "dax" in constraints.  Use mn10300_split_cbranch.
12814         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
12815         use matching constraints to eliminate a self-comparison.
12816         (*integer_conditional_branch): Rename from integer_conditional_branch.
12817         Use int_mode_flags to match CC_REG.
12818         (*cbranchsi4_btst, *btstsi): New.
12819         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
12820         mn10300_split_cbranch.
12821         (*am33_cmpsf): Rename from am33_cmpsf.
12822         (*float_conditional_branch): Rename from float_conditional_branch.
12823         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
12824         (zero_extendqisi2): ... here.
12825         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
12826         (zero_extendhisi2): ... here.
12827         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
12828         (extendqisi2): ... here.
12829         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
12830         (extendhisi2): ... here.
12831         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
12832         (ashlsi3): ... here.
12833         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
12834         (lshrsi3): ... here.
12835         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
12836         (ashrsi3): ... here.
12837         (consecutive add peephole): Remove.
12838         * config/mn10300/predicates.md (label_ref_operand): New.
12839         (int_mode_flags): New.
12840         (CCZN_comparison_operator): New.
12841
12842         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
12843         (throughput_42_latency_43): New reservation.
12844         (mulsidi3, umulsidi3): New expanders.
12845         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
12846         the MDR register to allocation; separately allocate the low and
12847         high parts of the DImode result.
12848         (umulsidi3_internal): Similarly.
12849         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
12850         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
12851         (udivsi3, umodsi3): Remove.
12852         (udivmodsi4, divmodsi4): New expanders.
12853         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
12854         (*divmodsi4): Simiarly.
12855         (ext_internal): New.
12856
12857         * config/mn10300/constraints.md ("z"): New constraint.
12858         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
12859         (FIXED_REGISTERS): Don't fix MDR.
12860         (CALL_USED_REGSITERS): Reformat nicely.
12861         (REG_ALLOC_ORDER): Add MDR.
12862         (enum regclass): Add MDR_REGS.
12863         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
12864         (IRA_COVER_CLASSES): Add MDR_REGS.
12865         (REGNO_REG_CLASS): Handle MDR_REG.
12866         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
12867         (mn10300_register_move_cost): Likewise.
12868         * config/mn10300/mn10300.md (MDR_REG): New.
12869         (*movsi_internal): Handle moves to/from MDR_REGS.
12870
12871         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
12872         POST_MODIFY.
12873         (mn10300_secondary_reload): Tidy combination reload classes.
12874         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
12875         addresses for AM33.  Allow symbolic offsets for reg+imm.
12876         (mn10300_regno_in_class_p): New.
12877         (mn10300_legitimize_reload_address): New.
12878         * config/mn10300/mn10300.h (enum reg_class): Remove
12879         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
12880         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
12881         SP_OR_GENERAL_REGS.
12882         (REG_CLASS_NAMES): Update to match.
12883         (REG_CLASS_CONTENTS): Likewise.
12884         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
12885         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
12886         (REGNO_IN_RANGE_P): Remove.
12887         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
12888         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
12889         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
12890         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
12891         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
12892         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
12893         (REGNO_GENERAL_P): New.
12894         (HAVE_POST_MODIFY_DISP): New.
12895         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
12896         (LEGITIMIZE_RELOAD_ADDRESS): New.
12897         * config/mn10300/mn10300-protos.h: Update.
12898
12899         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
12900         DATA_REGS for AM33 stack-pointer destination.
12901         (mn10300_preferred_output_reload_class): Likewise.
12902         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
12903         into a form appropriate for ...
12904         (TARGET_SECONDARY_RELOAD): New.
12905         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
12906         * config/mn10300/mn10300-protos.h: Update.
12907         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
12908         reload_insi; use the "A" constraint for the scratch; handle AM33
12909         moves of sp to non-address registers.
12910
12911         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
12912         (*movqi_internal): ... here.
12913         (*am33_movhi, *mn10300_movhi): Merge into...
12914         (*movhi_internal): ... here.
12915         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
12916         as the source/destination of moves from/to SP.
12917         (movsf): Only allow for AM33-2.
12918         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
12919         any integer constant constraint.  Only allow for AM33-2.  Tidy
12920         all of the alternative outputs.
12921         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
12922         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
12923         for MN103.
12924         (udivsi3, umodsi3): New patterns for MN103 only.
12925
12926 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
12927
12928         * doc/tm.texi.in: Spell out that a lack of register class unions
12929         can lead to ICEs.
12930         * doc/tm.texi: Regenerate.
12931
12932 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
12933
12934         PR rtl-optimization/47337
12935         * dce.c (check_argument_store): New function.
12936         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
12937
12938         PR tree-optimization/47290
12939         * tree-eh.c (infinite_empty_loop_p): New function.
12940         (cleanup_empty_eh): Use it.
12941
12942 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
12943
12944         PR target/46997
12945         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
12946         (a64_expand_widen_sum): Ditto.
12947         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
12948         (vec_extract_evenodd_help): Ditto.
12949         (vec_extract_evenv4hi): Ditto.
12950         (vec_extract_oddv4hi): Ditto.
12951         (vec_extract_evenv2si): Ditto.
12952         (vec_extract_oddv2si): Ditto.
12953         (vec_extract_evenv2sf): Ditto.
12954         (vec_extract_oddv2sf): Ditto.
12955         (vec_pack_trunc_v4hi: Ditto.
12956         (vec_pack_trunc_v2si): Ditto.
12957         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
12958         (vec_interleave_highv8qi): Ditto.
12959         (mix1_r): Ditto.
12960         (vec_extract_oddv8qi): Ditto.
12961         (vec_interleave_lowv4hi): Ditto.
12962         (vec_interleave_highv4hi): Ditto.
12963         (vec_interleave_lowv2si): Ditto.
12964         (vec_interleave_highv2si): Ditto.
12965
12966 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12967
12968         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
12969         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
12970         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
12971         (pa_c_mode_for_suffix): New.
12972         (TARGET_EXPAND_BUILTIN): Define.
12973         (TARGET_C_MODE_FOR_SUFFIX): Define.
12974         (pa_builtins): Define.
12975         (pa_init_builtins): Register __float128 type and init new support
12976         builtins.
12977         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
12978         * config/pa/quadlib.c (_U_Qfcopysign): New.
12979
12980 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
12981
12982         PR middle-end/46894
12983         * explow.c (allocate_dynamic_stack_space): Do not assume more than
12984         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
12985         are defined.
12986
12987 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12988
12989         PR tree-optimization/47179
12990         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
12991         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
12992
12993 2011-01-18  Richard Guenther  <rguenther@suse.de>
12994
12995         PR rtl-optimization/47216
12996         * emit-rtl.c: Include tree-flow.h.
12997         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
12998         of replicating it with different semantics.
12999         * Makefile.in (emit-rtl.o): Adjust.
13000
13001 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13002
13003         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
13004         (cortex_a9_dp): Handle neon types correctly.
13005
13006 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
13007
13008         PR rtl-optimization/47299
13009         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
13010         subtarget.  Use normal multiplication if both operands are constants.
13011         * expmed.c (expand_widening_mult): Don't try to optimize constant
13012         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
13013         before using it.
13014
13015 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13016
13017         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
13018         spacing after 'e.g.', typos, comma, hyphenation.
13019
13020 2011-01-17  Richard Henderson  <rth@redhat.com>
13021
13022         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
13023         (rx_restricted_mem_operand): New.
13024         (rx_shift_operand): Use register_operand.
13025         (rx_source_operand, rx_compare_operand): Likewise.
13026         * config/rx/rx.md (addsi3_flags): New expander.
13027         (adddi3): Rewrite as expander.
13028         (adc_internal, *adc_flags, adddi3_internal): New patterns.
13029         (subsi3_flags): New expander.
13030         (subdi3): Rewrite as expander.
13031         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
13032
13033         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
13034         (rx_init_builtins): Remove sat builtin.
13035         (rx_expand_builtin): Likewise.
13036         * config/rx/rx.md (ssaddsi3): New.
13037         (*sat): Rename from sat.  Represent the CC_REG input.
13038
13039         * config/rx/predicates.md (rshift_operator): New.
13040         * config/rx/rx.c (rx_expand_insv): Remove.
13041         * config/rx/rx-protos.h: Update.
13042         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
13043         operand to the canonical position.
13044         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
13045         (*bitclr, *bitclr_in_memory): Similarly.
13046         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
13047         (insv): Retain the zero_extract in the expansion.
13048
13049         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
13050         (bswaphi2, bitinvert, revw): Likewise.
13051
13052         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
13053         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
13054         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
13055         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
13056         (bitset, bitset_in_memory): Likewise.
13057         (bitinvert, bitinvert_in_memory): Likewise.
13058         (bitclr, bitclr_in_memory): Likewise.
13059         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
13060         (rx_strend, rx_cmpstrn): Likewise.
13061         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
13062         (bitop peep2 patterns): Remove.
13063
13064         * config/rx/rx.c (rx_match_ccmode): New.
13065         * config/rx/rx-protos.h: Update.
13066         * config/rx/rx.md (abssi2): Clobber, don't set flags.
13067         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
13068         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
13069         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
13070         (fix_truncsfsi2, floatsisf2): Likewise.
13071         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
13072         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
13073         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
13074         (*subsi3_flags, *xorsi3_flags): New.
13075
13076         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
13077
13078         * config/rx/rx.c (rx_print_operand): Remove workaround for
13079         unsplit comparison operations.
13080
13081         * config/rx/rx.md (movsicc): Split after reload.
13082         (*movsicc): Merge *movsieq and *movsine via match_operator.
13083         (*stcc): New pattern.
13084
13085         * config/rx/rx.c (rx_float_compare_mode): Remove.
13086         * config/rx/rx.h (rx_float_compare_mode): Remove.
13087         * config/rx/rx.md (cstoresi4): Split after reload.
13088         (*sccc): New pattern.
13089
13090         * config/rx/predicates.md (label_ref_operand): New.
13091         (rx_z_comparison_operator): New.
13092         (rx_zs_comparison_operator): New.
13093         (rx_fp_comparison_operator): New.
13094         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
13095         Validate that the flags are set properly for the comparison.
13096         (rx_gen_cond_branch_template): Remove.
13097         (rx_cc_modes_compatible): Remove.
13098         (mode_from_flags): New.
13099         (flags_from_code): Rename from flags_needed_for_conditional.
13100         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
13101         (rx_select_cc_mode): Likewise.
13102         (rx_split_fp_compare): New.
13103         (rx_split_cbranch): New.
13104         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
13105         (*cbranchsi4): Use match_operator and rx_split_cbranch.
13106         (*cbranchsf4): Similarly.
13107         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
13108         match_operator and rx_split_cbranch.
13109         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
13110         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
13111         (*cmpsi): Rename from cmpsi.
13112         (*tstsi): Rename from tstsi.
13113         (*cmpsf): Rename from cmpsf; use CC_Fmode.
13114         (*conditional_branch): Rename from conditional_branch.
13115         (*reveresed_conditional_branch): Remove.
13116         (b<code>): Remove expander.
13117         * config/rx/rx-protos.h: Update.
13118
13119         * config/rx/rx.c (rx_compare_redundant): Remove.
13120         * config/rx/rx.md (cmpsi): Don't use it.
13121         * config/rx/rx-protos.h: Update.
13122
13123         * config/rx/rx-modes.def (CC_F): New mode.
13124         * config/rx/rx.c (rx_select_cc_mode): New.
13125         * config/rx/rx.h (SELECT_CC_MODE): Use it.
13126         * config/rx/rx-protos.h: Update.
13127
13128 2011-01-17  Richard Henderson  <rth@redhat.com>
13129
13130         * except.c (dump_eh_tree): Fix stray ; after for statement.
13131
13132 2011-01-17  Richard Guenther  <rguenther@suse.de>
13133
13134         PR tree-optimization/47313
13135         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
13136         handling before copying the body.  Properly deal with
13137         by-reference result in SSA form.
13138
13139 2011-01-17  Ian Lance Taylor  <iant@google.com>
13140
13141         PR target/47219
13142         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
13143         (struct_value_alias_set): Don't define.
13144         (sparc_option_override): Don't set sparc_sr_alias_set and
13145         struct_value_alias_set.
13146         (save_or_restore_regs): Use gen_frame_mem rather than calling
13147         set_mem_alias_set.
13148         (sparc_struct_value_rtx): Likewise.
13149
13150 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
13151
13152         PR target/47318
13153         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
13154         (_mm_maskstore_pd): Likewise.
13155         (_mm_maskload_ps): Likewise.
13156         (_mm_maskstore_ps): Likewise.
13157         (_mm256_maskload_pd): Change mask to __m256i.
13158         (_mm256_maskstore_pd): Likewise.
13159         (_mm256_maskload_ps): Likewise.
13160         (_mm256_maskstore_ps): Likewise.
13161
13162         * config/i386/i386-builtin-types.def: Updated.
13163         (ix86_expand_special_args_builtin): Likewise.
13164
13165         * config/i386/i386.c (bdesc_special_args): Update
13166         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
13167         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
13168         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
13169         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
13170
13171         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
13172         Use <avxpermvecmode> on mask register.
13173         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
13174
13175 2011-01-17  Olivier Hainque  <hainque@adacore.com>
13176             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
13177             Eric Botcazou  <ebotcazou@adacore.com>
13178
13179         PR target/46655
13180         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
13181         if <= USHRT_MAX in 32-bit mode.
13182
13183 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13184
13185         * doc/install.texi (Configuration, Specific): Wrap long
13186         lines in examples.  Allow line wrapping in long options
13187         and URLs where beneficial for PDF output.
13188
13189 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
13190
13191         * config/mips/mips.c (mips_classify_symbol): Don't return
13192         SYMBOL_PC_RELATIVE for nonlocal labels.
13193
13194 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
13195
13196         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
13197
13198 2011-01-15  Jan Hubicka  <jh@suse.cz>
13199
13200         PR tree-optimization/47276
13201         * ipa.c (function_and_variable_visibility): Do not try to mark alias
13202         declarations as needed.
13203
13204 2011-01-15  Martin Jambor  <mjambor@suse.cz>
13205
13206         * common.opt (fdevirtualize): New flag.
13207         * doc/invoke.texi (Option Summary): Document it.
13208         * opts.c (default_options_table): Add devirtualize flag.
13209         * ipa-prop.c (detect_type_change): Return immediately if
13210         devirtualize flag is not set.
13211         (detect_type_change_ssa): Likewise.
13212         (compute_known_type_jump_func): Likewise.
13213         (ipa_analyze_virtual_call_uses): Likewise.
13214
13215 2011-01-14  Martin Jambor  <mjambor@suse.cz>
13216
13217         PR tree-optimization/45934
13218         PR tree-optimization/46302
13219         * ipa-prop.c (type_change_info): New type.
13220         (stmt_may_be_vtbl_ptr_store): New function.
13221         (check_stmt_for_type_change): Likewise.
13222         (detect_type_change): Likewise.
13223         (detect_type_change_ssa): Likewise.
13224         (compute_complex_assign_jump_func): Check for dynamic type change.
13225         (compute_complex_ancestor_jump_func): Likewise.
13226         (compute_known_type_jump_func): Likewise.
13227         (compute_scalar_jump_functions): Likewise.
13228         (ipa_analyze_virtual_call_uses): Likewise.
13229         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
13230
13231 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13232
13233         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
13234         * config/i386/i386.opt (msse5): New Alias.
13235
13236 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13237
13238         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13239         * config/sparc/linux64.h (CC1_SPEC): Likewise.
13240         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13241         * config/sparc/sparc.h (CC1_SPEC): Likewise.
13242
13243 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13244
13245         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
13246         -mcpu options.
13247         * config/sparc/linux64.h (CC1_SPEC): Likewise.
13248         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13249         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
13250         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
13251         Likewise.
13252         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
13253
13254 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13255
13256         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
13257
13258 2011-01-14  Mike Stump  <mikestump@comcast.net>
13259
13260         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
13261         * config/fr30/fr30.md: Likweise
13262         (movsi_push): Likewise.
13263         (movsi_pop): Likewise.
13264         (enter_func): Likewise.
13265         * config/moxie/moxie.md (movsi_push): Likewise.
13266         (movsi_pop): Likewise.
13267
13268 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13269
13270         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
13271         %{no_archive} %{exact_version}.
13272         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
13273         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
13274         %{no_archive} %{exact_version}.
13275         * config/mips/openbsd.h (LINK_SPEC): Likewise.
13276         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
13277         * config/mips/vxworks.h: Likewise.
13278
13279 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13280
13281         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
13282
13283 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13284
13285         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
13286         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
13287
13288 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13289
13290         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
13291         -nodefaultlib.
13292
13293 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13294
13295         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
13296         for mcpu not cpu.
13297         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
13298         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
13299         not cpu.
13300         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
13301         Don't handle -shlib.
13302
13303 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13304
13305         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
13306         (CC1_SPEC): Don't handle -profile.
13307
13308 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13309
13310         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
13311         * config/mips/mips.h (CC1_SPEC): Likewise.
13312
13313 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13314
13315         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
13316         * config/mips/mips.h (CC1_SPEC): Likewise.
13317
13318 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13319
13320         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
13321         * config/m32r/linux.h (LINK_SPEC): Likewise.
13322         * config/mips/linux.h (LINK_SPEC): Likewise.
13323         * config/mips/linux64.h (LINK_SPEC): Likewise.
13324         * config/sparc/linux.h (LINK_SPEC): Likewise.
13325         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13326         LINK_SPEC): Likewise.
13327         * config/xtensa/linux.h (LINK_SPEC): Likewise.
13328
13329 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13330
13331         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
13332         %{version:-v}.
13333         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
13334
13335 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13336
13337         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
13338         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13339
13340 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13341
13342         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
13343
13344 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13345
13346         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
13347         supports -Bstatic/-Bdynamic.
13348         * configure: Regenerate.
13349
13350 2011-01-14  Jan Hubicka  <jh@suse.cz>
13351             Jack Howarth  <howarth@bromo.med.uc.edu>
13352
13353         PR target/46037
13354         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
13355         when checking debug_info_level. Test write_symbols instead of
13356         debug_hooks->var_location when setting flag_var_tracking_uninit.
13357
13358 2011-01-14  Richard Guenther  <rguenther@suse.de>
13359
13360         PR tree-optimization/47179
13361         * target.def (ref_may_alias_errno): New target hook.
13362         * targhooks.h (default_ref_may_alias_errno): Declare.
13363         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
13364         (default_ref_may_alias_errno): New function.
13365         * target.h (struct ao_ref_s): Declare.
13366         * tree-ssa-alias.c: Include target.h.
13367         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
13368         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
13369         (targhooks.o): Likewise.
13370         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
13371         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
13372
13373 2011-01-14  Richard Guenther  <rguenther@suse.de>
13374
13375         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
13376
13377 2011-01-14  Richard Guenther  <rguenther@suse.de>
13378
13379         PR tree-optimization/47280
13380         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
13381         return CFG changes.
13382         (tree_ssa_forward_propagate_single_use_vars): Deal with
13383         CFG changes from associate_plusminus.
13384
13385 2011-01-14  Richard Guenther  <rguenther@suse.de>
13386
13387         PR middle-end/47281
13388         Revert
13389         2011-01-11  Richard Guenther  <rguenther@suse.de>
13390
13391         PR tree-optimization/46076
13392         * tree-ssa.c (useless_type_conversion_p): Conversions from
13393         unprototyped to empty argument list function types are useless.
13394
13395 2011-01-14  Richard Guenther  <rguenther@suse.de>
13396
13397         PR tree-optimization/47286
13398         * tree-ssa-structalias.c (new_var_info): Register variables are global.
13399
13400 2011-01-14  Martin Jambor  <mjambor@suse.cz>
13401
13402         PR middle-end/46823
13403         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
13404
13405 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
13406
13407         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
13408         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13409         * config/xtensa/xtensa.c (xtensa_libcall_value,
13410         xtensa_function_value_regno_p): New functions.
13411         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13412
13413 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
13414
13415         PR c++/47213
13416         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
13417         PE specific hook.
13418         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
13419         New function prototype.
13420         * config/i386/winnt.c (i386_pe_assemble_visibility):
13421         Warn only if attribute was specified by user.
13422
13423 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
13424
13425         PR target/47251
13426         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
13427         floating point.
13428         (floatunsdidf2_fcfidu): Ditto.
13429
13430 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13431
13432         * config/s390/s390.c (print_operand_address): Replace 'error' with
13433         'output_operand_lossage'.
13434         (print_operand): Likewise.
13435
13436 2011-01-13  Jeff Law  <law@redhat.com>
13437
13438         PR rtl-optimization/39077
13439         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
13440         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
13441         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
13442         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
13443         * gcse.c (prune_insertions_deletions): New function.
13444         (compute_pre_data): Use it.
13445
13446 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
13447
13448         PR debug/PR46973
13449         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
13450         static function.
13451         (prune_unused_types_mark): Use it.
13452
13453 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
13454
13455         PR rtl-optimization/45352
13456         * sel-sched.c: Update copyright years.
13457         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
13458         in the advancing loop when we have issued issue_rate insns.
13459
13460 2011-01-12  Richard Henderson  <rth@redhat.com>
13461
13462         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
13463         (TARGET_MD_ASM_CLOBBERS): New.
13464
13465         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
13466         (TARGET_DELEGITIMIZE_ADDRESS): New.
13467
13468         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
13469         (clzsi2, *bsch): New patterns.
13470
13471         * config/mn10300/mn10300.md (INT): New mode iterator.
13472         (*mov<INT>_clr): New pattern, and peep2 to generate it.
13473
13474         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
13475         flag_split_wide_types.
13476
13477         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
13478         (mn10300_trampoline_init): Rewrite without a template, an immediate
13479         load and a direct branch.
13480         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
13481
13482 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
13483
13484         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13485         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
13486         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
13487         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13488
13489 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
13490
13491         PR debug/47209
13492         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
13493         of type.
13494
13495 2011-01-12  Jan Hubicka  <jh@suse.cz>
13496
13497         PR driver/47244
13498         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
13499         (PLUGIN_COND_CLOSE): New macro.
13500         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
13501
13502 2011-01-12  Richard Guenther  <rguenther@suse.de>
13503
13504         PR lto/47259
13505         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
13506         register variables in a MEM_REF.
13507
13508 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
13509
13510         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
13511         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
13512         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
13513         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13514         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13515         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
13516         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
13517         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
13518         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
13519         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
13520         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
13521         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
13522         * config/gnu-user.h: New.  Copied from linux.h.
13523         (LINUX_TARGET_STARTFILE_SPEC): Rename to
13524         GNU_USER_TARGET_STARTFILE_SPEC.
13525         (LINUX_TARGET_ENDFILE_SPEC): Rename to
13526         GNU_USER_TARGET_ENDFILE_SPEC.
13527         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
13528         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
13529         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
13530         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
13531         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
13532         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
13533         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
13534         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
13535         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
13536         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
13537         * config/arm/linux-eabi.h (CC1_SPEC): Use
13538         GNU_USER_TARGET_CC1_SPEC.
13539         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
13540         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
13541         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
13542         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
13543         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
13544         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
13545         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
13546         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
13547
13548 2011-01-12  Richard Guenther  <rguenther@suse.de>
13549
13550         PR other/46946
13551         * doc/invoke.texi (ffast-math): Document it is turned on
13552         with -Ofast.
13553
13554 2011-01-12  Jan Hubicka  <jh@suse.cz>
13555
13556         PR tree-optimization/47233
13557         * opts.c (common_handle_option): Disable ipa-reference with profile
13558         feedback.
13559
13560 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13561
13562         * c-parser.c (c_parser_objc_at_property_declaration): Improved
13563         error message.
13564
13565 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13566
13567         * c-parser.c (c_lex_one_token): Updated and reindented some
13568         comments.  No changes in code.
13569
13570 2011-01-11  Ian Lance Taylor  <iant@google.com>
13571
13572         * godump.c (go_output_var): Don't output the variable if there is
13573         already a type with the same name.
13574
13575 2011-01-11  Ian Lance Taylor  <iant@google.com>
13576
13577         * godump.c (go_format_type): Don't generate float80.
13578
13579 2011-01-11  Richard Henderson  <rth@redhat.com>
13580
13581         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
13582         declaration.  Rewrite for both speed and size.
13583         (mn10300_address_cost_1): Remove.
13584         (mn10300_register_move_cost): New.
13585         (mn10300_memory_move_cost): New.
13586         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
13587         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
13588         extensions, shifts, BSWAP, CLZ.
13589         (mn10300_wide_const_load_uses_clr): Remove.
13590         (TARGET_REGISTER_MOVE_COST): New.
13591         (TARGET_MEMORY_MOVE_COST): New.
13592         * config/mn10300/mn10300-protos.h: Update.
13593         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
13594
13595         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
13596         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
13597         * config/mn10300/mn10300-protos.h: Update.
13598         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
13599         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
13600         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
13601         (*test_int_bitfield, *test_byte_bitfield): Remove.
13602         (*bit_test, *subreg_bit_test): Remove.
13603         * config/mn10300/predicates.md (const_8bit_operand): Remove.
13604
13605         * config/mn10300/constraints.md ("c"): Rename from "A".
13606         ("A", "D"): New constraint letters.
13607         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
13608         (fmssf4, fnmasf4, fnmssf4): Likewise.
13609
13610         * config/mn10300/mn10300.md (isa): New attribute.
13611         (enabled): New attribute.
13612
13613         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
13614         (abssf2, negsf2): Define only for hardware fp.
13615         (sqrtsf2): Reformat.
13616         (addsf3, subsf3, mulsf3): Merge expander and insn.
13617
13618         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
13619         (DEBUGGER_AUTO_OFFSET): Remove.
13620         (DEBUGGER_ARG_OFFSET): Remove.
13621
13622         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
13623         Emit register stores with the same offsets as the hardware.
13624         (mn10300_store_multiple_operation): Don't check that the register
13625         save offsets are monotonic.
13626         * config/mn10300/mn10300-protos.h: Update.
13627
13628         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
13629
13630         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
13631         in terms of the value on the stack, not the MDR register.
13632
13633 2011-01-11  Jan Hubicka  <jh@suse.cz>
13634
13635         PR lto/45721
13636         PR lto/45375
13637         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
13638         (symbol_alias_set_destroy, symbol_alias_set_contains,
13639         propagate_aliases_backward): Declare.
13640         * lto-streamer-out.c (struct sets): New sturcture.
13641         (trivally_defined_alias): New function.
13642         (output_alias_pair_p): Rewrite.
13643         (output_unreferenced_globals): Fix output of alias pairs.
13644         (produce_symtab): Likewise.
13645         * ipa.c (function_and_variable_visibility): Set weak alias destination
13646         as needed in lto.
13647         * varasm.c (symbol_alias_set_t): Remove.
13648         (symbol_alias_set_destroy): Export.
13649         (propagate_aliases_forward, propagate_aliases_backward): New functions
13650         based on ...
13651         (compute_visible_aliases): ... this one; remove.
13652         (trivially_visible_alias): New
13653         (trivially_defined_alias): New.
13654         (remove_unreachable_alias_pairs): Rewrite.
13655         (finish_aliases_1): Reorganize code checking if alias is defined.
13656         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
13657         in LTO mode.
13658
13659 2011-01-11  Richard Guenther  <rguenther@suse.de>
13660
13661         PR tree-optimization/46076
13662         * tree-ssa.c (useless_type_conversion_p): Conversions from
13663         unprototyped to empty argument list function types are useless.
13664
13665 2011-01-11  Richard Guenther  <rguenther@suse.de>
13666
13667         PR middle-end/45235
13668         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
13669         volatile MEMs as MEM_READONLY_P.
13670
13671 2011-01-11  Richard Guenther  <rguenther@suse.de>
13672
13673         PR tree-optimization/47239
13674         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
13675
13676 2011-01-11  Jeff Law  <law@redhat.com>
13677
13678         PR tree-optimization/47086
13679         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
13680         IVs from statements that might throw.
13681
13682 2011-01-10  Jan Hubicka  <jh@suse.cz>
13683
13684         PR lto/45375
13685         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
13686
13687 2011-01-10  Jan Hubicka  <jh@suse.cz>
13688
13689         PR lto/45375
13690         * profile.c (read_profile_edge_counts): Ignore profile inconistency
13691         when correcting profile.
13692
13693 2011-01-10  Jan Hubicka  <jh@suse.cz>
13694
13695         PR lto/46083
13696         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
13697         DECL_FINI_PRIORITY.
13698         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13699         Restore DECL_FINI_PRIORITY.
13700
13701 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13702
13703         * doc/gimple.texi: Fix quoting of multi-word return values in
13704         @deftypefn statements.  Ensure presence of return value.  Wrap
13705         overlong @deftypefn lines.
13706         (is_gimple_operand, is_gimple_min_invariant_address): Remove
13707         descriptions of removed functions.
13708         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13709         of multi-word return value in @deftypefn statement.
13710
13711 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13712
13713         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13714         (Conditional Expressions, Logical Operators)
13715         (Statement and operand traversals): Do not indent smallexample
13716         code.  Fix duplicate function argument in example.
13717
13718 2011-01-10  Jeff Law  <law@redhat.com>
13719
13720         PR tree-optimization/47141
13721         * ipa-split.c (split_function): Handle case where we are
13722         returning a value and the return block has a virtual operand phi.
13723
13724 2011-01-10  Jan Hubicka  <jh@suse.cz>
13725
13726         PR tree-optimization/47234
13727         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13728         (pass_feedback_split_functions): Declare.
13729         * passes.c (init_optimization_passes): Add ipa-split as subpass of
13730         tree-profile.
13731         * ipa-split.c (gate_split_functions): Update comments; disable
13732         split-functions for profile_arc_flag and branch_probabilities.
13733         (gate_feedback_split_functions): New function.
13734         (execute_feedback_split_functions): New function.
13735         (pass_feedback_split_functions): New global var.
13736
13737 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
13738
13739         PR lto/46760
13740         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13741         calling gimple_call_set_cannot_inline.
13742
13743 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
13744
13745         * config/darwin-sections.def: Remove unused section.
13746
13747 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
13748
13749         PR c++/47218
13750         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13751
13752 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
13753
13754         PR objc/47232
13755         * c-parser.c (c_parser_declaration_or_fndef): Improved
13756         error message.
13757
13758 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
13759
13760         * config/i386/winnt.c (i386_pe_start_function): Make sure
13761         to switch back to function's section.
13762
13763 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
13764
13765         PR gcc/46902
13766         PR testsuite/46912
13767         * plugin.c: Move include of dlfcn.h from here...
13768         * system.h: ... to here.
13769
13770 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13771
13772         * doc/cpp.texi (C++ Named Operators): Fix markup for header
13773         file name.
13774         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
13775         two extra empty pages in PDF output.
13776
13777 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
13778
13779         PR objc/47078
13780         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
13781         for error recovery purposes behave as if it was not specified so
13782         that the default type is usd.
13783
13784 2011-01-07  Jan Hubicka  <jh@suse.cz>
13785
13786         PR tree-optmization/46469
13787         * ipa.c (function_and_variable_visibility): Clear needed flags on
13788         nodes with external decls; handle weakrefs merging correctly.
13789
13790 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
13791
13792         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
13793         not false.
13794
13795 2011-01-07  Jan Hubicka  <jh@suse.cz>
13796
13797         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
13798         and no longer claim that gold is required for linker plugin.
13799         * configure: Regenerate.
13800         * gcc.c (PLUGIN_COND): New macro.
13801         (LINK_COMMAND_SPEC): Use it.
13802         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
13803         * config.in (HAVE_LTO_PLUGIN): New.
13804         * configure.ac (--with-lto-plugin): New parameter; autodetect
13805         HAVE_LTO_PLUGIN.
13806
13807 2011-01-07  Jan Hubicka  <jh@suse.cz>
13808
13809         PR tree-optimization/46367
13810         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
13811         when we can update original.
13812         (cgraph_mark_inline_edge): Sanity check.
13813         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
13814
13815 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13816
13817         * config/spu/spu.h (ASM_COMMENT_START): Define.
13818
13819 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
13820
13821         PR driver/42445
13822         * gcc.c (%>S): New.
13823         (SWITCH_KEEP_FOR_GCC): Likewise.
13824         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
13825         (do_spec_1): Handle "%>".
13826
13827         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
13828
13829 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
13830
13831         PR target/47201
13832         * config/i386/i386.c (ix86_delegitimize_address): If
13833         simplify_gen_subreg fails, return orig_x.
13834
13835         PR bootstrap/47187
13836         * value-prof.c (gimple_stringop_fixed_value): Handle
13837         lhs of the call properly.
13838
13839 2011-01-07  Jan Hubicka  <jh@suse.cz>
13840
13841         PR lto/45375
13842         * lto-opt.c (lto_reissue_options): Set flag_shlib.
13843
13844 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
13845
13846         * target.def (function_switched_text_sections): New hook.
13847         * doc/tm.texi: Regenerated.
13848         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13849         * final.c (default_function_switched_text_sections): New.
13850         (final_scan_insn): Call function_switched_text_sections when a
13851         mid-function section change occurs.
13852         * output.h (default_function_switched_text_sections): Declare.
13853         * config/darwin-protos.h (darwin_function_switched_text_sections):
13854         Likewise.
13855         * config/darwin.c (darwin_function_switched_text_sections): New.
13856         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13857
13858 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
13859
13860         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
13861         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
13862         the secondary code fragment when outputting for DWARF == 2.
13863
13864 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
13865
13866         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13867         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
13868         Remove.
13869         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
13870         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13871
13872 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
13873
13874         PR debug/46704
13875         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
13876         when it is not empty.
13877
13878 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
13879
13880         Bobcat Enablement
13881         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
13882         (case ${target}): Add btver1.
13883         * config/i386/driver-i386.c (host_detect_local_cpu): Let
13884         -march=native recognize btver1 processors.
13885         * config/i386/i386-c.c (ix86_target_macros_internal): Add
13886         btver1 def_and_undef
13887         * config/i386/i386.c (struct processor_costs btver1_cost): New
13888         btver1 cost table.
13889         (m_BTVER1): New definition.
13890         (m_AMD_MULTIPLE): Includes m_BTVER1.
13891         (initial_ix86_tune_features): Add btver1 tune.
13892         (processor_target_table): Add btver1 entry.
13893         (static const char *const cpu_names): Add btver1 entry.
13894         (software_prefetching_beneficial_p): Add btver1.
13895         (ix86_option_override_internal): Add btver1 instruction sets.
13896         (ix86_issue_rate): Add btver1.
13897         (ix86_adjust_cost): Add btver1.
13898         * config/i386/i386.h (TARGET_BTVER1): New definition.
13899         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
13900         (enum processor_type): Add PROCESSOR_BTVER1.
13901         * config/i386/i386.md (define_attr "cpu"): Add btver1.
13902
13903 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13904
13905         PR target/43309
13906         * config/i386/i386.c (legitimize_tls_address)
13907         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
13908         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
13909         (tls_initial_exec_64_sun): New pattern.
13910
13911 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
13912
13913         * doc/invoke.texi (Overall Options): Improve wording and markup
13914         of the description of -wrapper.
13915
13916 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
13917
13918         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
13919         rdynamic, threads): New Driver options.
13920
13921 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13922
13923         PR target/38118
13924         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
13925         if coming from .tdata.
13926         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
13927
13928 2011-01-06  Jan Hubicka  <jh@suse.cz>
13929
13930         PR lto/47188
13931         * collect2.c (main): Do not enable LTOmode when plugin is active.
13932
13933 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13934
13935         PR other/45915
13936         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
13937         --version output if supported.
13938         * configure: Regenerate.
13939
13940 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
13941
13942         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
13943         Driver options.
13944
13945 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
13946
13947         PR c/47150
13948         * c-convert.c (convert): When converting a complex expression
13949         other than COMPLEX_EXPR to a different complex type, ensure
13950         c_save_expr is called instead of save_expr, unless in_late_binary_op.
13951         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
13952         when converting COMPLEX_TYPE.
13953
13954 2011-01-06  Ira Rosen  <irar@il.ibm.com>
13955
13956         PR tree-optimization/47139
13957         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
13958         only the last reduction value is used outside the loop.  Update
13959         documentation.
13960
13961 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
13962
13963         * config/rtems.opt: New.
13964         * config.gcc (*-*-rtems*): Use rtems.opt.
13965
13966 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
13967
13968         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
13969         processors do not support 3DNow instructions.
13970
13971 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13972
13973         * config/spu/spu.c (spu_option_override): Set parameter
13974         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
13975
13976 2011-01-05  Jan Hubicka  <jh@suse.cz>
13977
13978         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
13979         at the command line.
13980
13981 2011-01-05  Martin Jambor  <mjambor@suse.cz>
13982
13983         PR lto/47162
13984         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
13985         deltas on streamed outgoing edges.
13986         (output_node_opt_summary): Output info for outgoing edges only when
13987         the node is in new parameter set.
13988         (output_cgraph_opt_summary): New parameter set, passed to the two
13989         aforementioned functions.  Update its forward declaration and its
13990         callee too.
13991
13992 2011-01-05  Tom Tromey  <tromey@redhat.com>
13993
13994         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
13995         operator to c_finish_omp_atomic.
13996         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
13997         (build_unary_op): Update.
13998         (build_modify_expr): Update.
13999         (build_asm_expr): Update.
14000
14001 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14002
14003         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
14004         newly inserted insns.
14005         (pad_bb): Likewise.
14006         (spu_emit_branch_hint): Likewise.
14007         (insert_hbrp_for_ilb_runout): Likewise.
14008         (spu_machine_dependent_reorg): Call df_finish_pass after
14009         schedule_insns returns.
14010
14011 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14012
14013         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
14014
14015 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
14016
14017         PR tree-optimization/47005
14018         * tree-sra.c (struct access): Add 'non_addressable' bit.
14019         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
14020         (decide_one_param_reduction): Return 0 if the parameter is passed by
14021         reference and one of the accesses in the group is non_addressable.
14022
14023 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
14024
14025         PR tree-optimization/47056
14026         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
14027         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
14028         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
14029
14030 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
14031
14032         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
14033         initializer.  Skip view conversions from aggregate types.
14034
14035 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
14036
14037         PR bootstrap/47055
14038         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
14039
14040 2011-01-04  Philipp Thomas  <pth@suse.de>
14041
14042         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
14043         obvious typo.
14044
14045 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14046
14047         * function.c (thread_prologue_and_epilogue_insns): Do not crash
14048         on empty epilogue sequences.
14049
14050 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
14051
14052         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
14053         non-static): New Driver options.
14054
14055 2011-01-04  Jie Zhang  <jie@codesourcery.com>
14056
14057         PR driver/47137
14058         * gcc.c (default_compilers[]): Set combinable field to 0
14059         for all assembly languages.
14060
14061 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
14062
14063         * config/mips/loongson3a.md: New file.
14064         * config/mips/mips.md: Include loongson3a.md.
14065         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
14066         TUNE_LOONGSON_3A.
14067
14068 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
14069
14070         PR middle-end/47017
14071         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
14072         instead of convert_memory_address_addr_space on the base expression.
14073
14074 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14075
14076         * config/spu/spu.c (spu_option_override): Update error text
14077         for bad -march= / -mtune= values.
14078
14079 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14080
14081         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
14082         if branch-hint optimization will be performed.
14083
14084 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
14085
14086         PR tree-optimization/47148
14087         * ipa-split.c (split_function): Convert arguments to
14088         DECL_ARG_TYPE if possible.
14089
14090         PR tree-optimization/47155
14091         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
14092         when computing uns.
14093
14094         PR rtl-optimization/47157
14095         * combine.c (try_combine): If undobuf.other_insn becomes
14096         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
14097         and set *new_direct_jump_p too.
14098
14099 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
14100
14101         PR tree-optimization/47021
14102         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
14103
14104 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
14105
14106         * gcc.c (process_command): Update copyright notice dates.
14107         * gcov.c (print_version): Likewise.
14108         * gcov-dump.c (print_version): Likewise.
14109         * mips-tfile.c (main): Likewise.
14110         * mips-tdump.c (main): Likewise.
14111
14112 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14113
14114         PR tree-optimization/46801
14115         * tree-sra.c (type_internals_preclude_sra_p): Check whether
14116         aggregate fields start at byte boundary instead of the bit-field flag.
14117
14118 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
14119
14120         PR driver/47137
14121         * gcc.c (main): Revert revision 168407.
14122
14123 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14124
14125         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
14126
14127 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14128
14129         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
14130         vector optab to expand vector/scalar shift, update gimple to vector.
14131
14132 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14133
14134         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
14135         a thunk.
14136
14137 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14138
14139         PR tree-optimization/46984
14140         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
14141         HOST_WIDE_INT.
14142         (cgraph_create_indirect_edge): Fixed line length.
14143         (cgraph_indirect_call_info): Declare.
14144         (cgraph_make_edge_direct) Update declaration.
14145         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
14146         (cgraph_create_indirect_edge): Use it.
14147         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
14148         callees.
14149         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
14150         the new thunk_delta representation.
14151         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
14152         HOST_WIDE_INT.
14153         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
14154         (ipa_read_indirect_edge_info): Likewise.
14155         * lto-cgraph.c (output_edge_opt_summary): New function.
14156         (output_node_opt_summary): Call it on all outgoing edges.
14157         (input_edge_opt_summary): New function.
14158         (input_node_opt_summary): Call it on all outgoing edges.
14159
14160 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
14161
14162         PR driver/47137
14163         * gcc.c (main): Don't check have_o when settting combine_inputs.
14164
14165 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
14166
14167         * regrename.c: Add general comment describing the pass.
14168         (struct du_head): Remove 'length' field.
14169         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
14170         (regrename_optimize): Do not sort chains.  Rework comments, add others.
14171         Force renaming to the preferred class (if any) in the first pass and do
14172         not consider registers that belong to it in the second pass.
14173         (create_new_chain): Do not set 'length' field.
14174         (scan_rtx_reg): Likewise.
14175
14176 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
14177
14178         PR tree-optimization/47140
14179         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
14180         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
14181         to bit_value_binop.
14182
14183         PR rtl-optimization/47028
14184         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
14185         parm_birth_insn instead of at the beginning of first bb.
14186
14187 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
14188
14189         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
14190         Remove the word "see" before "@pxref".
14191         * doc/rtl.texi: Remove the word "see" before "@pxref".
14192
14193 2011-01-01  Jan Hubicka  <jh@suse.cz>
14194
14195         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
14196         memory.
14197
14198 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
14199
14200         PR target/38662
14201         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
14202
14203 \f
14204 Copyright (C) 2011 Free Software Foundation, Inc.
14205
14206 Copying and distribution of this file, with or without modification,
14207 are permitted in any medium without royalty provided the copyright
14208 notice and this notice are preserved.