OSDN Git Service

* config/i386/sse.md (round<mode>2_vec_pack_sfix): Optimize V2DFmode
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-11-16  Uros Bizjak  <ubizjak@gmail.com>
2
3         * config/i386/sse.md (round<mode>2_vec_pack_sfix): Optimize V2DFmode
4         sequence for AVX.
5         (<sse4_1>_round<ssemodesuffix>_vec_pack_sfix<avxsizesuffix>): Ditto.
6
7 2011-11-16  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
8
9         * doc/invoke.texi: Document AMD bdver1 and btver1.
10
11 2011-11-16  Richard Earnshaw  <rearnsha@arm.com>
12             Bernd Schmidt <bernds@coudesourcery.com>
13             Sebastian Huber <sebastian.huber@embedded-brains.de>
14
15         PR target/49641
16         * config/arm/arm.c (store_multiple_sequence): Avoid cases where
17         the base reg is stored iff compiling for Thumb1.
18
19 2011-11-16  Razya Ladelsky  <razya@il.ibm.com>
20
21         PR tree-optimization/49960
22         * tree-data-ref.c (initialize_data_dependence_relation): Add
23         initializations.
24         Remove call to compute_self_dependence.
25         (compute_affine_dependence): Remove the !DDR_SELF_REFERENCE condition.
26         (compute_self_dependence): Remove old code. Add call to
27         compute_affine_dependence.
28         (compute_all_dependences): Remove call to compute_self_dependence.
29         Add call to compute_affine_dependence.
30
31 2011-11-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32
33         PR middle-end/50325
34         * expmed.c (store_bit_field_1): Use extract_bit_field on big
35         endian targets if the source cannot be exactly covered by word
36         mode chunks.
37
38 2011-11-15  Joseph Myers  <joseph@codesourcery.com>
39
40         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Change STRING_LIMIT to
41         ELF_STRING_LIMIT.
42
43 2011-11-15  Richard Henderson  <rth@redhat.com>
44
45         * config/alpha/alpha.c (alpha_pre_atomic_barrier): New.
46         (alpha_post_atomic_barrier): New.
47         (alpha_split_atomic_op): New memmodel argument; honor it.
48         (alpha_split_compare_and_swap): Take array of operands.  Honor
49         memmodel; always set bool output
50         (alpha_expand_compare_and_swap_12): Similarly.
51         (alpha_split_compare_and_swap_12): Similarly.
52         (alpha_split_atomic_exchange): Similarly.  Rename from
53         alpha_split_lock_test_and_set.
54         (alpha_expand_atomic_exchange_12): Similarly.  Rename from
55         alpha_expand_lock_test_and_set_12.
56         (alpha_split_atomic_exchange_12): Similarly.  Rename from
57         alpha_split_lock_test_and_set_12.
58         * config/alpha/alpha-protos.h: Update.
59         * config/alpha/alpha.md (UNSPECV_CMPXCHG): New.
60         * config/alpha/constraints.md ("w"): New.
61         * config/alpha/predicates.md (mem_noofs_operand): New.
62         * config/alpha/sync.md (atomic_compare_and_swap<mode>): Rename from
63         sync_compare_and_swap<mode>; add the new parameters.
64         (atomic_exchange<mode>): Update from sync_test_and_set<mode>.
65         (atomic_fetch_<op><mode>): Update from sync_old_<op><mode>.
66         (atomic_<op>_fetch<mode>): Update from sync_new_<op><mode>.
67         (atomic_<op><mode>): Update from sync_<op><mode>.
68
69 2011-11-16  Tom de Vries  <tom@codesourcery.com>
70
71         * tree-ssa-tail-merge.c (replace_block_by): Add frequency of bb2 to bb1.
72
73 2011-11-16  Alan Modra  <amodra@gmail.com>
74
75         PR rtl-optimization/51051
76         PR bootstrap/51086
77         * function.c (thread_prologue_and_epilogue_insns): Guard
78         emitting return with single_succ_p test.
79
80 2011-11-15  Joern Rennecke  <joern.rennecke@embecosm.com>
81
82         * config/epiphany/epiphany.md (mov<mode>cc): Fix code to
83         get mode from CMP_OP1 if CMP_OP0 is VOIDmode.
84
85 2011-11-15  Uros Bizjak  <ubizjak@gmail.com>
86
87         * config/i386/sse.md (vec_pack_trunc_v2df): Optimize sequence for AVX.
88         (vec_pack_sfix_trunc_v2df): Ditto.
89         (vec_pack_sfix_v2df): Ditto.
90         (vec_pack_sfix_trunc_v4df): Generate fix_truncv4dfv4si2 and
91         avx_vec_concatv8si patterns.
92         (vec_pack_sfix_v4df): Generate avx_cvtpd2dq256 and
93         avx_vec_concatv8si patterns.
94
95 2011-11-15  Torvald Riegel  <triegel@redhat.com>
96
97         * c-parser.c (c_parser_transaction_expression): Require parentheses
98         when parsing transaction expressions.
99
100 2011-11-15  Tristan Gingold  <gingold@adacore.com>
101
102         * incpath.c (get_added_cpp_dirs): New function.
103         * incpath.h (get_added_cpp_dirs): Declare.
104         * config/vms/vms-c.c (vms_c_register_includes): New function.
105         (vms_std_modules): New variable.
106         * config/vms/vms.h (TARGET_EXTRA_INCLUDES): Define.
107         (vms_c_register_includes): Declare.
108
109 2011-11-15  Tristan Gingold  <gingold@adacore.com>
110
111         * c-family/c-pragma.h (pragma_extern_prefix): Declare.
112         * c-family/c-pragma.c (pragma_extern_prefix): Make it public.
113         * config/vms/vms-c.c (saved_extern_prefix): New variable.
114         (vms_pragma_extern_prefix): New function.
115         (vms_c_register_pragma): Register vms_pragma_extern_prefix.
116
117 2011-11-15  Georg-Johann Lay  <avr@gjlay.de>
118
119         PR target/49868
120         * config/avr/avr.h (ADDR_SPACE_PGM): New address spaces.
121         (REGISTER_TARGET_PRAGMAS): New define.
122         * config/avr/avr-protos.h (avr_mem_pgm_p): New.
123         (avr_load_libgcc_p): New.
124         (avr_register_target_pragmas): New.
125         (asm_output_external_libcall): Remove.
126         (avr_log_t): Add field "progmem".  Order alphabetically.
127         * config/avr/avr-log.c (avr_log_set_avr_log): Set avr_log.progmem.
128         * config/avr/avr-c.c (langhooks.h): New include.
129         (avr_register_target_pragmas): New function. Register address
130         space __pgm.
131         (avr_cpu_cpp_builtins): Add built-in define __PGM.
132
133         * config/avr/avr.c: Include "c-family/c-common.h".
134         (TARGET_LEGITIMATE_ADDRESS_P): Remove define.
135         (TARGET_LEGITIMIZE_ADDRESS): Remove define.
136         (TARGET_ADDR_SPACE_SUBSET_P): Define to...
137         (avr_addr_space_subset_p): ...this new static function.
138         (TARGET_ADDR_SPACE_CONVERT): Define to...
139         (avr_addr_space_convert): ...this new static function.
140         (TARGET_ADDR_SPACE_ADDRESS_MODE): Define to...
141         (avr_addr_space_address_mode): ...this new static function.
142         (TARGET_ADDR_SPACE_POINTER_MODE): Define to...
143         (avr_addr_space_pointer_mode): ...this new static function.
144         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define to...
145         (avr_addr_space_legitimate_address_p): ...this new static function.
146         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Define to...
147         (avr_addr_space_legitimize_address): ...this new static function.
148         (avr_mode_code_base_reg_class): Handle address spaces.
149         (avr_regno_mode_code_ok_for_base_p): Ditto.
150         (lpm_addr_reg_rtx, lpm_reg_rtx, all_regs_rtx): New static variables.
151         (avr_option_override): Initialize them.
152         (output_reload_in_const): Use all_regs_rtx. Fix signedness of loop
153         variables.
154         (avr_pgm_segment): New static function.
155         (avr_decl_pgm_p, avr_mem_pgm_p): New static functions.
156         (avr_out_lpm, avr_out_lpm_no_lpmx): New static functions.
157         (output_movqi, output_movhi, output_movsisf, avr_out_movpsi): Call
158         avr_out_lpm to handle loads from progmem.
159         (avr_load_libgcc_p): New static function.
160         (avr_progmem_p): Test if decl is in flash.
161         (avr_pgm_pointer_const_p): New static function.
162         (avr_nonconst_pointer_addrspace): New static function.
163         (avr_pgm_check_var_decl): New static function.
164         (avr_insert_attributes): Use it.  Change error message to report
165         cause (progmem or address space) when code wants to write to flash.
166         (avr_section_type_flags): Unset section flag SECTION_BSS for
167         data in progmem.
168
169         * config/avr/predicates.md (nop_general_operand): New predicate.
170         (nox_general_operand): New predicate.
171         * config/avr/avr.md (LPM_REGNO): New define_constant.
172         (load<mode>_libgcc): New expander.
173         (*load.<mode>.libgcc): New insn.
174         (mov<mode>): Handle loads from non-generic AS.
175         (movmemhi): Ditto.  Propagate address space information to newly
176         created MEM.
177         (movqi_insn, *movhi, *movpsi, *movsi, *movsf): Change predicate #1
178         to nox_general_operand.
179         (ashrqi3, ashrhi3, ashrsi3): Change predicate #1 to
180         nop_general_operand.
181         (ashlqi3, *ashlqi3, ashlhi3, ashlsi3): Ditto.
182         (lshrqi3, *lshrqi3, lshrhi3, lshrsi3): Ditto.
183         (split-lpmx): New split.
184         (*ashlhi3_const, *ashlsi3_const, *ashrhi3_const, *ashrsi3_const,
185         *lshrhi3_const, *lshrsi3_const): Indent, unquote C.
186
187 2011-11-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
188
189         * ipa-cp.c (ipa_value_from_jfunc): Make global.
190         (ipa_cst_from_jfunc): Remove, use ipa_value_from_jfunc instead.
191         (get_indirect_edge_target): Rename, make global.
192         (devirtualization_time_bonus, estimate_local_effects,)
193         (ipcp_discover_new_direct_edges): Update.
194         * ipa-inline-analysis.c (evaluate_conditions_for_edge):
195         Generalize to also handle types.  Rename to ...
196         (evaluate_properties_for_edge): Use instead of
197         evaluate_conditions_for_edge.
198         (estimate_edge_devirt_benefit): New function.
199         (estimate_calls_size_and_time): Use it.
200         (estimate_node_size_and_time, estimate_ipcp_clone_size_and_time,)
201         (inline_merge_summary): Update.
202         (do_estimate_edge_time, do_estimate_edge_growth): Update.  Calculate
203         parameter information at the call site and pass it on to subroutines.
204         * tree-inline.c (estimate_num_insns): Distinguish between direct and
205         indirect calls.
206         (init_inline_once): Set size and time costs or indirect calls.
207         * tree-inline.h (eni_weights): Add indirect_call_cost.
208
209 2011-11-15  Tom de Vries  <tom@codesourcery.com>
210
211         PR tree-optimization/51005
212         * tree-ssa-tail-merge.c (delete_basic_block_same_succ): Rename to
213         mark_basic_block_deleted.
214         (update_worklist): Inline purge_bbs.
215         (purge_bbs, unlink_virtual_phi, update_vuses, vop_at_entry)
216         (delete_block_update_dominator_info): Remove.
217         (replace_block_by): Remove update_vops parameter.  Partially evaluate
218         for update_vops == false.
219         (apply_clusters): Remove update_vops parameter.  Remove update_vops
220         argument in replace_block_by call.
221         (update_debug_stmts): Remove MAY_HAVE_DEBUG_STMTS test.
222         (tail_merge_optimize): Remove update_vops argument to apply_clusters.
223         Remove call to purge_bbs.  Add calls to calculate_dominance_info and
224         free_dominance_info.  Add MAY_HAVE_DEBUG_STMTS  before calling
225         update_debug_stmts.  Mark vop var for renaming, if necessary.
226
227 2011-11-15  Bernd Schmidt  <bernds@codesourcery.com>
228
229         PR rtl-optimization/51051
230         * cfgrtl.c (cfg_layout_can_merge_blocks_p): Return FALSE if the
231         move would cause fallthrough into the exit block.
232
233 2011-11-14  Richard Henderson  <rth@redhat.com>
234
235         * config/rs6000/rs6000.c (emit_load_locked): Assert the mode is
236         handled.
237         (emit_store_conditional): Likewise.
238         (rs6000_pre_atomic_barrier, rs6000_post_atomic_barrier): New.
239         (rs6000_adjust_atomic_subword): New.
240         (rs6000_mask_atomic_subword, rs6000_finish_atomic_subword): New.
241         (rs6000_expand_atomic_op): Rename from rs6000_emit_sync; rewrite
242         for pre-reload expansion.
243         (rs6000_split_compare_and_swap, rs6000_split_compare_and_swapqhi,
244         rs6000_expand_compare_and_swapqhi): Merge into ...
245         (rs6000_expand_atomic_compare_and_swap): ... here.  New function.
246         rs6000_split_lock_test_and_set; expand immediately.  Handle
247         QImode and HImode.
248         * config/rs6000/rs6000.md (UNSPEC_LWSYNC): Move and rename
249         from UNSPECV_LWSYNC.
250         * config/rs6000/sync.md (fetchopsi_constr, fetchopdi_constr): Remove.
251         (mem_thread_fence): New.
252         (hwsync): Rename from memory_barrier.
253         (*hwsync): Rename from *sync_internal.
254         (lwsync, *lwsync): Mirror hwsync implementation.
255         (isync): Don't reference memory.
256         (loadsync): New.
257         (atomic_load<INT>, atomic_store<INT>): New.
258         (ATOMIC): New mode iterator.
259         (load_locked<ATOMIC>): Rename from load_locked_<GPR>.
260         (store_conditional<ATOMIC>): Rename from store_conditional_<GPR>.
261         (sync_compare_and_swap<GPR>): Remove.
262         (sync_compare_and_swaphi, sync_compare_and_swapqi): Remove.
263         (sync_compare_and_swapqhi_internal): Remove.
264         (sync_lock_test_and_set<GPR>): Remove.
265         (sync_<FETCHOP><INT1>): Remove.
266         (*sync_<FETCHOP>si_internal, *sync_<FETCHOP>di_internal): Remove.
267         (sync_nand<INT1>, *sync_nand<GPR>_internal): Remove.
268         (sync_old_<FETCHOP><GPR>): Remove.
269         (*sync_old_<FETCHOP>si_internal): Remove.
270         (*sync_old_<FETCHOP>di_internal): Remove.
271         (sync_old_nand<INT1>): Remove.
272         (*sync_old_nand<GPR>_internal): Remove.
273         (sync_new_<FETCHOP><GPR>): Remove.
274         (*sync_new_<FETCHOP>si_internal): Remove.
275         (*sync_new_<FETCHOP>di_internal): Remove.
276         (sync_new_nand<INT1>): Remove.
277         (*sync_new_nand<GPR>_internal): Remove.
278         (*atomic_andsi, *atomic_anddi): Remove.
279         (*sync_addshort_internal, *sync_subshort_internal): Remove.
280         (*sync_andsi_internal, *sync_boolsi_internal): Remove.
281         (*sync_boolcshort_internal): Remove.
282         (sync_lock_release<INT1>): Remove.
283         (atomic_compare_and_swap<INT1>): New.
284         (atomic_exchange<INT1>): New.
285         (atomic_<FETCHOP><INT1>, atomic_nand<INT1>): New.
286         (atomic_fetch_<FETCHOP><INT1>, atomic_fetch_nand<INT1>): New.
287         (atomic_<FETCHOP>_fetch<INT1>, atomic_nand_fetch<INT1>): New.
288
289 2011-11-14  Uros Bizjak  <ubizjak@gmail.com>
290
291         * config/i386/sse.md (round<mode>2): Use register_operand for
292         operand 1 predicate.
293         (round<mode>2_sfix): Ditto.
294         (round<mode>2_vec_pack_sfix): Ditto for operand 1 and operand 2.
295
296 2011-11-14  Nathan Sidwell  <nathan@acm.org>
297
298         * gcov.c (canonicalize_name): Protect use of S_ISLNK.
299
300 2011-11-14  Jan Hubicka  <jh@suse.cz>
301
302         PR target/51126
303         * config/i386/i386.c (core cost model): Correct pasto.
304
305 2011-11-14  Uros Bizjak  <ubizjak@gmail.com>
306
307         * config/i386/sse.md (round<mode>2_sfix): New expander.
308         (round<mode>2_vec_pack_sfix): Ditto.
309         (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
310         (<sse4_1>_round<ssemodesuffix>_vec_pack_sfix<avxsizesuffix>): Ditto.
311         * config/i386/builtin-types.def (V4SI_FTYPE_V4SF_ROUND,
312         V8SI_FTYPE_V8SF_ROUND, V4SI_FTYPE_V2DF_V2DF_ROUND,
313         V8SI_FTYPE_V4DF_V4DF_ROUND): New builtin types.
314         * config/i386/i386.c (ix86_builtins): Add
315         IX86_BUILTIN_{FLOORPD,CEILPD,ROUNDPD_AZ}_VEC_PACK_SFIX{,256} and
316         IX86_BUILTIN_{FLOORPS,CEILPS,ROUNDPS_AZ}_SFIX{,256} defines.
317         (bdesc_args): Add __builtin_ia32_{floorpd,ceilpd}_vec_pack_sfix{,256},
318         __builtin_ia32_roundpd_az_vec_pack_sfix{,256},
319         __builtin_ia32_{floorps,ceilps}_sfix{,256}and
320         __builtin_ia32_roundps_az_sfix{,256} descriptions.
321         (ix86_expand_sse_round_vec_pack_sfix): New.
322         (ix86_expand_args_builtin): Handle V4SI_FTYPE_V4SF_ROUND,
323         V8SI_FTYPE_V8SF_ROUND, V4SI_FTYPE_V2DF_V2DF_ROUND and
324         V8SI_FTYPE_V4DF_V4DF_ROUND types.  Check last argument of
325         CODE_FOR_sse4_1_roundpd_vec_pack_sfix, CODE_FOR_sse4_1_roundps_sfix,
326         CODE_FOR_avx_roundpd_vec_pack_sfix256 and CODE_FOR_avx_roundps_sfix256.
327         (ix86_builtin_vectorized_function): Handle
328         BUILT_IN_{I,L,LL}FLOOR{,F}, BUILT_IN_{I,L,LL}CEIL{,F} and
329         BUILT_IN_{I,L,LL}ROUND{,F}
330
331 2011-11-14  Jan Hubicka  <jh@suse.cz>
332
333         PR middle-end/50598
334         * cgraph.h (varpool_externally_visible_p): Declare.
335         (varpool_add_new_variable): Declare.
336         * tree-emultls.c (get_emutls_init_templ_addr,
337         new_emutls_decl): Use varpool_add_new_variable.
338         * ipa.c (varpool_externally_visible_p): Export.
339         * varpool.c (varpool_add_new_variable): New function.
340
341 2011-11-14  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
342             Jan Hubicka  <jh@suse.cz>
343
344         * config/i386/i386.h (processor_costs): Add second dimension to
345         stringop_algs array.
346         * config/i386/i386.c (cost models): Initialize second dimension of
347         stringop_algs arrays.
348         (core_cost): New costs based on generic64 costs with updated stringop
349         values.
350         (promote_duplicated_reg): Add support for vector modes, add
351         declaration.
352         (promote_duplicated_reg_to_size): Likewise.
353         (processor_target): Set core costs for core variants.
354         (expand_set_or_movmem_via_loop_with_iter): New function.
355         (expand_set_or_movmem_via_loop): Enable reuse of the same iters in
356         different loops, produced by this function.
357         (emit_strset): New function.
358         (expand_movmem_epilogue): Add epilogue generation for bigger sizes,
359         use SSE-moves where possible.
360         (expand_setmem_epilogue): Likewise.
361         (expand_movmem_prologue): Likewise for prologue.
362         (expand_setmem_prologue): Likewise.
363         (expand_constant_movmem_prologue): Likewise.
364         (expand_constant_setmem_prologue): Likewise.
365         (decide_alg): Add new argument align_unknown.  Fix algorithm of
366         strategy selection if TARGET_INLINE_ALL_STRINGOPS is set; Skip sse_loop
367         (decide_alignment): Update desired alignment according to chosen move
368         mode.
369         (ix86_expand_movmem): Change unrolled_loop strategy to use SSE-moves.
370         (ix86_expand_setmem): Likewise.
371         (ix86_slow_unaligned_access): Implementation of new hook
372         slow_unaligned_access.
373         * config/i386/i386.md (strset): Enable half-SSE moves.
374         * config/i386/sse.md (vec_dupv4si): Add expand for vec_dupv4si.
375         (vec_dupv2di): Add expand for vec_dupv2di.
376
377 2011-11-14  Dimitrios Apostolou  <jimis@gmx.net>
378
379         PR bootstrap/51094
380         PR middle-end/51116
381         * config/elfos.h (TARGET_ASM_INTERNAL_LABEL): Remove.
382         * varasm.c (default_elf_internal_label): Remove.
383
384 2011-11-14  Kai Tietz  <ktietz@redhat.com>
385
386         * gcov.c (generate_results): Add missing semicolon and correct indent.
387
388 2011-11-14  Ira Rosen  <ira.rosen@linaro.org>
389
390         PR bootstrap/51112
391         * tree-vect-stmts.c (vectorizable_condition): Initialize comp_vectype.
392
393 2011-11-14  Mingjie Xing  <mingjie.xing@gmail.com>
394
395         * doc/invoke.texi (Wunused-result): Change @pxref{Variable Attributes}
396         to @pxref{Function Attributes}.
397
398 2011-11-13  Oleg Endo  <oleg.endo@t-online.de>
399
400         PR target/50694
401         * config/sh/sh.h (IS_LITTLE_ENDIAN_OPTION, UNSUPPORTED_SH2A):
402         New macros.
403         (DRIVER_SELF_SPECS): Use new macros to filter out unsupported options
404         taking the default configuration into account.
405
406 2011-11-13  Jonathan Wakely  <jwakely.gcc@gmail.com>
407
408         * doc/install.texi (Specific): Fix anchor for
409         x86_64-*-solaris2.1[0-9]*.
410
411 2011-11-13  Nathan Sidwell  <nathan@acm.org>
412
413         * gcov.c (source_prefix, source_length): New globals.
414         (flag_relative_only): Likewise.
415         (print_usage, options, process_args): Update.
416         (generate_results): Use coverage.name, check
417         flag_relative_only. Adjust messages.
418         (find_source): Check source_prefix.
419         (output_lines): Use coverage.name, adjust messages.
420         * doc/gcov.texi (Invoking Gcov): Document new options.
421
422 2011-11-12  Jason Merrill  <jason@redhat.com>
423
424         PR c++/51060
425         * gimplify.c (gimplify_target_expr): Add a clobber to the cleanup.
426         (gimplify_modify_expr): Don't try to simplify it.
427
428 2011-11-12  Dimitrios Apostolou  <jimis@gmx.net>
429
430         PR bootstrap/51094
431         * config/elfos.h (STRING_ASM_OP): Define.
432         * varasm.c (default_elf_asm_output_limited_string): Use it.
433
434         PR bootstrap/51094
435         * gcc/configure.ac: Check for stpcpy declaration.
436         * system.h: Declare it if not.
437         * config.in, configure: Regenerate.
438
439 2011-11-12  Richard Henderson  <rth@redhat.com>
440
441         * config/rs6000/rs6000.md (fix_trunc<SFDF>si2_stfiwx): Use
442         nonimmediate_operand for the destination.
443         (fixuns_trunc<SFDF>si2_stfiwx): Likewise.
444
445         * builtins.c (expand_builtin_compare_and_swap): If target is const0,
446         don't pass the target to expand_atomic_compare_and_swap.
447         (expand_builtin_atomic_compare_exchange): Likewise.
448
449         * config/sh/linux.h (TARGET_INIT_LIBFUNCS): New.
450         * config/sh/sh.c (sh_init_sync_libfuncs): New.
451
452         * config/pa/pa-linux.h (TARGET_SYNC_LIBCALL): New.
453         * config/pa/pa.h (TARGET_SYNC_LIBCALL): New default.
454         * config/pa/pa.c (pa_init_libfuncs): Use init_sync_libfuncs.
455
456 2011-11-12  Iain Sandoe  <iains@gcc.gnu.org>
457
458         PR target/45233
459         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
460         Only expand a symbol ref. into an access when the entity is defined
461         in the TU.
462
463 2011-11-12  Jan Hubicka  <jh@suse.cz>
464
465         PR bootstrap/50822
466         * cgraphunit.c (output_weakrefs): Output really only weakrefs.
467
468 2011-11-12  Nathan Sidwell  <nathan@acm.org>
469
470         * gcov.c (struct name_map): New.
471         (names, n_names, a_names): New global vars.
472         (print_usage): Adjust usage.
473         (generate_results): Canonicalize main file name.
474         (release_structures): Adjust.
475         (name_search, name_sort): New callbacks.
476         (find_source): Look for and create a canonical name.
477         (canonicalize_name): New.
478         (make_gcov_file_name): Reimplement and fix mangling.
479         (mangle_name): New.
480         * doc/gcov.texi: Update documentation about path preservation.
481
482 2011-11-11  David S. Miller  <davem@davemloft.net>
483
484         * config/sparc/linux.h (ASM_GENERATE_INTERNAL_LABEL): Delete.
485         * config/sparc/linux64.h (ASM_GENERATE_INTERNAL_LABEL): Delete.
486
487 2011-11-11  Jakub Jelinek  <jakub@redhat.com>
488
489         * config/i386/i386-protos.h (ix86_maybe_emit_epilogue_vzeroupper):
490         New prototype.
491         * config/i386/i386.c (ix86_maybe_emit_epilogue_vzeroupper): New
492         function.
493         (ix86_expand_epilogue): Use it.
494         * config/i386/i386.md (return, simple_return): Call it in the
495         expanders.
496
497         PR tree-optimization/51091
498         * tree-stdarg.c (execute_optimize_stdarg): Ignore TREE_CLOBBER_P
499         rhs also in the va_list_simple_ptr case.
500
501         PR tree-optimization/51058
502         * tree-vect-slp.c (vect_remove_slp_scalar_calls): New function.
503         (vect_schedule_slp): Call it.
504         * tree-vect-stmts.c (vectorizable_call): If slp_node != NULL,
505         don't replace scalar calls with setting of their lhs to zero here.
506
507         PR tree-optimization/51074
508         * fold-const.c (vec_cst_ctor_to_array, fold_vec_perm): New functions.
509         (fold_binary_loc): Handle VEC_EXTRACT_EVEN_EXPR,
510         VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR and
511         VEC_INTERLEAVE_LOW_EXPR with VECTOR_CST or CONSTRUCTOR operands.
512         (fold_ternary_loc): Handle VEC_PERM_EXPR with VECTOR_CST or
513         CONSTRUCTOR operands.
514         * tree-ssa-propagate.c (valid_gimple_rhs_p): Handle ternary
515         expressions.
516         * tree-vect-generic.c (lower_vec_perm): Mask sel_int elements
517         to 0 .. 2 * elements - 1.
518
519 2011-11-11  Richard Henderson  <rth@redhat.com>
520
521         * gimple-pretty-print.c (dump_gimple_omp_atomic_load): Dump needed.
522         (dump_gimple_omp_atomic_store): Likewise.
523         * optabs.c (can_atomic_exchange_p): New.
524         * optabs.h (can_atomic_exchange_p): Declare.
525         * omp-low.c (expand_omp_atomic_load): Implement.
526         (expand_omp_atomic_store): Likewise.
527         (expand_omp_atomic): Update for new arguments to load/store.
528
529 2011-11-11  Eric Botcazou  <ebotcazou@adacore.com>
530
531         * cprop.c: Adjust outdated comments throughout.
532         (hash_scan_set): Rename PAT parameter into SET.
533         (cprop_pavloc): Rename into...
534         (cprop_avloc): ...this.
535         (cprop_absaltered): Rename into...
536         (cprop_kill): ...this.
537         (alloc_cprop_mem): Adjust for above renaming.
538         (free_cprop_mem): Likewise.
539         (compute_cprop_data): Likewise.
540         (compute_local_properties): Rename TRANSP parameter into KILL and
541         adjust throughout.  Rework comments.
542         (try_replace_reg): Fix long line.
543         (cprop_jump): Likewise.
544         (constprop_register): Fix prototype and take INSN last.
545         (cprop_insn): Adjust calls to above function.  Fix long lines.
546         (bypass_block): Likewise.
547         (one_cprop_pass): Likewise.
548
549 2011-11-11  Uros Bizjak  <ubizjak@gmail.com>
550
551         * config/alpha/elf.h (ELF_ASCII_ESCAPES): Rename from ESCAPES.
552         (ELF_STRING_LIMIT): Rename from STRING_LIMIT.
553
554 2011-11-11  Jason Merrill  <jason@redhat.com>
555
556         * varasm.c (default_elf_asm_output_limited_string): #ifdef
557         ELF_ASCII_ESCAPES.
558         (default_elf_asm_output_ascii): Likewise.
559
560 2011-11-11  Uros Bizjak  <ubizjak@gmail.com>
561
562         PR target/50762
563         * config/i386/constraints.md (j): New address constraint.
564         * config/i386/predicates.md (lea_address_operand): Redefine as
565         special predicate.
566         * config/i386/i386.md (*lea_3_zext): Use "j" constraint for operand 1.
567         (*lea_4_zext): Ditto.
568
569 2011-11-11  David S. Miller  <davem@davemloft.net>
570
571         Revert
572         2011-11-05  David S. Miller  <davem@davemloft.net>
573
574         * config/sparc/sparc.md (UNSPEC_SHORT_LOAD): New unspec.
575         (zero-extend_v8qi_vis, zero_extend_v4hi_vis): New expanders.
576         (*zero_extend_v8qi_<P:mode>_insn,
577         *zero_extend_v4hi_<P:mode>_insn): New insns.
578         * config/sparc/sparc.c (vector_init_move_words,
579         vector_init_prepare_elts, sparc_expand_vector_init_vis2,
580         sparc_expand_vector_init_vis1): New functions.
581         (vector_init_bshuffle): Rewrite to handle more cases and make use
582         of locs[] array prepared by vector_init_prepare_elts.
583         (vector_init_fpmerge, vector_init_faligndata): Delete.
584         (sparc_expand_vector_init): Rewrite using new infrastructure.
585
586 2011-11-11  Jakub Jelinek  <jakub@redhat.com>
587
588         * opts-common.c (generate_canonical_option): Free opt_text
589         it it has been allocated here and not stored anywhere.
590
591         * tree-vect-slp.c (vect_free_slp_tree): Also free SLP_TREE_CHILDREN
592         vector.
593         (vect_create_new_slp_node): Don't allocate node before checking stmt
594         type.
595         (vect_free_oprnd_info): Remove FREE_DEF_STMTS argument, always
596         free def_stmts vectors and additionally free oprnd_info.
597         (vect_build_slp_tree): Adjust callers.  Call it even if
598         stop_recursion.  If vect_create_new_slp_node or
599         vect_build_slp_tree fails, properly handle freeing memory.
600         If it succeeded, clear def_stmts in oprnd_info.
601
602 2011-11-11  Dimitrios Apostolou  <jimis@gmx.net>
603
604         * defaults.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Expand on
605         multiple lines for readability.
606         * output.h (fprint_whex, fprint_w, fprint_ul, sprint_ul): Declare.
607         (ASM_OUTPUT_LABELREF): Call fputs instead of asm_fprintf.
608         * dwarf2asm.c (dw2_assemble_integer, dw2_asm_output_data,
609         dw2_asm_data_uleb128, dw2_asm_delta_uleb128,
610         dw2_asm_delta_sleb128): Convert fprintf calls to the new functions.
611         * dwarf2out.c (dwarf2out_source_line): Call fprint_ul instead of
612         fprintf.
613         * final.c (fprint_whex, fprint_w, fprint_ul, sprint_ul): New functions
614         serving as fast replacements for fprintf integer to string conversions.
615         (sprint_ul_rev): Internal helper for the above.
616         (output_addr_const) <CONST_INT>: Don't use fprintf.
617         * varasm.c: Fix some whitespace inconsistencies.
618         (default_elf_asm_output_limited_string): New.
619         (default_elf_asm_output_ascii): Likewise.
620         (default_elf_internal_label): Likewise.
621         * config/elfos.h (ASM_GENERATE_INTERNAL_LABEL): Use sprint_ul and
622         stpcpy instead of sprintf.
623         (TARGET_ASM_INTERNAL_LABEL): Define as default_elf_internal_label.
624         (ELF_ASCII_ESCAPES, ELF_STRING_LIMIT): Rename from old ESCAPES and
625         STRING_LIMIT macros.
626         (ASM_OUTPUT_LIMITED_STRING, ASM_OUTPUT_ASCII): Call functions that
627         provide the same functionality.
628         * config/i386/i386.c (print_reg): Call fprint_ul instead of fprintf.
629
630 2011-11-10  Andrew MacLeod  <amacleod@redhat.com>
631
632         * doc/extend.texi: Document __atomic_test_and_set and __atomic_clear.
633
634 2011-11-10  Andrew MacLeod  <amacleod@redhat.com>
635
636         PR middle-end/51038
637         * builtins.c (expand_builtin_atomic_clear): New.  Expand atomic_clear.
638         (expand_builtin_atomic_test_and_set): New.  Expand atomic test_and_set.
639         (expand_builtin): Add cases for test_and_set and clear.
640         * sync-builtins.def (BUILT_IN_ATOMIC_TEST_AND_SET): New.
641         (BUILT_IN_ATOMIC_CLEAR): New.
642
643 2011-11-10  Roberto Agostino Vitillo  <ravitillo@lbl.gov>
644
645         PR debug/50983
646         * dwarf2out.c (set_cur_line_info_table): Restore the last is_stmt
647         value in the current line table.
648
649 2011-11-10  Nathan Sidwell  <nathan@acm.org>
650
651         * gcov.c (struct function_info): Make src an index, not a pointer.
652         (struct source_info): Remove index and next source fields.
653         (fn_end): New static var.
654         (sources_index): Remove.
655         (sources): Now a pointer to an array, not a list.
656         (n_sources, a_sources): New.
657         (process_file): Adjust for changes to read_graph_file. Insert
658         functions into source lists and check line numbers here.
659         (generate_results): Only allocate lines for sources with
660         contents.  Adjust for source array.
661         (release_structures): Likewise.
662         (find_source): Return source index, adjust for source array.
663         (read_graph_file): Return function list.  Don't insert into source
664         lists here.
665         (read_count_file): Take list of functions.
666         (solve_flow_graph): Reverse the arc lists here.
667         (add_line_counts): Adjust for source array.
668
669 2011-11-10  Jakub Jelinek  <jakub@redhat.com>
670
671         PR middle-end/51077
672         * tree-object-size.c (addr_object_size): Check TREE_CODE of
673         MEM_REF's operand rather than code of the MEM_REF itself.
674
675 2011-11-10  Andrew MacLeod  <amacleod@redhat.com>
676
677         PR rtl-optimization/51040
678         * optabs.c (expand_atomic_fetch_op): Patchup code for NAND should
679         be AND followed by NOT.
680         * builtins.c (expand_builtin_atomic_fetch_op): Patchup code for NAND
681         should be AND followed by NOT.
682
683 2011-11-10  Jakub Jelinek  <jakub@redhat.com>
684
685         * vec.h (VEC_BASE): If base is at offset 0 in the structure,
686         use &(P)->base even if P is NULL.
687
688         PR rtl-optimization/51023
689         * combine.c (simplify_comparison) <case SIGN_EXTEND>: Don't use
690         val_signbit_known_clear_p for signed comparison narrowing
691         optimization.  Don't check for non-VOIDmode, use
692         HWI_COMPUTABLE_MODE_P macro.
693         <case ZERO_EXTEND>: Don't check for non-VOIDmode.
694         Optimize even when const_op is equal to GET_MODE_MASK (mode),
695         don't optimize if const_op is negative.
696
697 2011-11-10  Richard Guenther  <rguenther@suse.de>
698
699         PR tree-optimization/51042
700         * tree-ssa-pre.c (phi_translate_1): Avoid recursing on
701         self-referential expressions.  Refactor code to avoid duplication.
702
703 2011-11-10  Richard Guenther  <rguenther@suse.de>
704
705         PR tree-optimization/51070
706         * tree-loop-distribution.c (generate_builtin): Do not replace
707         the loop with a builtin if the partition contains statements which
708         results are used outside of the loop.
709         (pass_loop_distribution): Verify and collect.
710
711 2011-11-10  Richard Guenther  <rguenther@suse.de>
712
713         PR tree-optimization/51030
714         * tree-ssa-phiopt.c (jump_function_from_stmt): New function.
715         (value_replacement): Use it to handle trivial non-empty
716         intermediate blocks.
717
718 2011-11-10  Richard Guenther  <rguenther@suse.de>
719
720         PR middle-end/51071
721         * gimple.c (gimple_has_side_effects): Remove checking code
722         that doesn't belong here.
723
724 2011-11-10  Ira Rosen  <ira.rosen@linaro.org>
725
726         PR tree-optimization/51058
727         * tree-vect-slp.c (vect_get_constant_vectors): Handle CALL_EXPR.
728
729 2011-11-10  Jakub Jelinek  <jakub@redhat.com>
730
731         PR tree-optimization/51000
732         * tree-vect-patterns.c (vect_recog_bool_pattern): If adding
733         a pattern stmt for a bool store, adjust DR_STMT too.
734         Don't handle bool conversions to single bit precision lhs.
735         * tree-vect-stmts.c (vect_remove_stores): If next is a pattern
736         stmt, remove its related stmt and free its stmt_vinfo.
737         (free_stmt_vec_info): Free also pattern stmt's vinfo and
738         pattern def stmt's vinfo.
739         * tree-vect-loop.c (destroy_loop_vec_info): Don't try to
740         free pattern stmt's vinfo here.
741         (vect_transform_loop): When calling vect_remove_stores,
742         do gsi_next first and don't call gsi_remove.  If not strided
743         store, free stmt vinfo for gsi_stmt (si) rather than stmt.
744
745 2011-11-09  Jakub Jelinek  <jakub@redhat.com>
746
747         PR target/50911
748         * config/i386/i386.c (expand_vec_perm_interleave2): If d->vmode is
749         V4SImode, !TARGET_SSE2 and punpck[lh]* is needed, change dremap.vmode
750         to V4SFmode.
751
752         * function.h (requires_stack_frame_p): New prototype.
753         * function.c (requires_stack_frame_p): No longer static.
754         * config/i386/i386.c (ix86_finalize_stack_realign_flags): If
755         stack_realign_fp was just a conservative guess for a function
756         which doesn't use sp/fp/argp at all, clear frame_pointer_needed
757         and stack realignment.
758
759 2011-11-09  Paolo Carlini  <paolo.carlini@oracle.com>
760
761         PR preprocessor/51061
762         * incpath.c (merge_include_chains): Make sure to not pass null
763         pointers to free_path.
764
765 2011-11-09  Paolo Carlini  <paolo.carlini@oracle.com>
766
767         * doc/invoke.texi ([Option Summary, C++ Language Options]):
768         Add -Wzero-as-null-pointer-constant.
769
770 2011-11-07  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
771
772         * config/arm/arm-cores.def: Add -mcpu=cortex-a7.
773         * config/arm/arm-tables.opt: Regenerate.
774         * config/arm/arm-tune.md: Likewise.
775         * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex A-7.
776         * doc/invoke.texi: Document -mcpu=cortex-a7.
777
778 2011-11-09  Richard Guenther  <rguenther@suse.de>
779
780         Revert
781         2011-11-09  Richard Guenther  <rguenther@suse.de>
782
783         * tree-cfg.c (verify_gimple_call): Verify that
784         gimple_call_cannot_inline_p is returning a conservative
785         correct result according to gimple_check_call_matching_types.
786
787 2011-11-09  Richard Guenther  <rguenther@suse.de>
788
789         PR tree-optimization/51039
790         * tree-cfg.c (verify_gimple_call): Verify that
791         gimple_call_cannot_inline_p is returning a conservative
792         correct result according to gimple_check_call_matching_types.
793         * ipa-inline-analysis.c (estimate_function_body_sizes): Remove
794         code dealing with un-inlinablility.
795         * gimple-streamer-in.c (input_gimple_stmt): Update the
796         non-inlinable flag.
797
798 2011-11-09  Richard Guenther  <rguenther@suse.de>
799
800         PR tree-optimization/51039
801         * tree-inline.c (setup_one_parameter): Always perform a
802         valid gimple type change.
803         (declare_return_variable): Likewise.
804
805 2011-11-09  Jakub Jelinek  <jakub@redhat.com>
806
807         * config/rs6000/vector.md (vcondv4sfv4si, vcondv4siv4sf,
808         vconduv4sfv4si): New patterns.
809         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Handle
810         different dest_mode from comparison mode.
811
812 2011-11-09  Richard Guenther  <rguenther@suse.de>
813
814         * gimple-fold.c (canonicalize_constructor_val): Mark
815         address-taken variables addressable.
816
817 2011-11-09  Ira Rosen  <ira.rosen@linaro.org>
818
819         PR tree-optimization/51015
820         * tree-vect-loop.c (vect_determine_vectorization_factor): Expect
821         vectype to be set for pattern def stmts.
822
823 2011-11-09  Alan Modra  <amodra@gmail.com>
824
825         * function.c (bb_active_p): Delete.
826         (dup_block_and_redirect, active_insn_between): New functions.
827         (convert_jumps_to_returns, emit_return_for_exit): New functions,
828         split out from..
829         (thread_prologue_and_epilogue_insns): ..here.  Delete
830         shadowing variables.  Don't do prologue register clobber tests
831         when shrink wrapping already failed.  Delete all last_bb_active
832         code.  Instead compute tail block candidates for duplicating
833         exit path.  Remove these from antic set.  Duplicate tails when
834         reached from both blocks needing a prologue/epilogue and
835         blocks not needing such.
836         * ifcvt.c (dead_or_predicable): Test both flag_shrink_wrap and
837         HAVE_simple_return.
838         * bb-reorder.c (get_uncond_jump_length): Make global.
839         * bb-reorder.h (get_uncond_jump_length): Declare.
840         * cfgrtl.c (rtl_create_basic_block): Comment typo fix.
841         (rtl_split_edge): Likewise.  Warning fix.
842         (rtl_duplicate_bb): New function.
843         (rtl_cfg_hooks): Enable can_duplicate_block_p and duplicate_block.
844         * Makefile.in (function.o): Update dependencies.
845
846 2011-11-08  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
847             Georg-Johann Lay  <avr@gjlay.de>
848
849         * doc/tm.texi.in (MODE_CODE_BASE_REG_CLASS): Add address space
850         argument.
851         (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
852         * doc/tm.texi: Regenerate.
853
854         * config/cris/cris.h (MODE_CODE_BASE_REG_CLASS): Add address
855         space argument.
856         (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
857         * config/bfin/bfin.h (MODE_CODE_BASE_REG_CLASS): Likewise.
858         (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
859         * config/avr/avr.h (MODE_CODE_BASE_REG_CLASS): Add address space
860         argument.
861         (REGNO_MODE_CODE_OK_FOR_BASE_P): Ditto.
862         * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
863         (avr_regno_mode_code_ok_for_base_p): Ditto.
864         * config/avr/avr.c (avr_mode_code_base_reg_class): Ditto.
865         (avr_regno_mode_code_ok_for_base_p): Ditto.
866         (avr_reg_ok_for_addr_p): Pass AS down to
867         avr_regno_mode_code_ok_for_base_p.
868
869         * addresses.h (base_reg_class): Add address space argument.
870         Pass to MODE_CODE_BASE_REG_CLASS.
871         (ok_for_base_p_1): Add address space argument.  Pass to
872         REGNO_MODE_CODE_OK_FOR_BASE_P.
873         (regno_ok_for_base_p): Add address space argument.  Pass to
874         ok_for_base_p_1.
875
876         * regrename.c (scan_rtx_address): Add address space argument.
877         Pass address space to regno_ok_for_base_p and base_reg_class.
878         Update recursive calls.
879         (scan_rtx): Pass address space to scan_rtx_address.
880         (build_def_use): Likewise.
881         * regcprop.c (replace_oldest_value_addr): Add address space
882         argument.  Pass to regno_ok_for_base_p and base_reg_class.
883         Update recursive calls.
884         (replace_oldest_value_mem): Pass address space to
885         replace_oldest_value_addr.
886         (copyprop_hardreg_forward_1): Likewise.
887
888         * reload.c (find_reloads_address_1): Add address space argument.
889         Pass address space to base_reg_class and regno_ok_for_base_p.
890         Update recursive calls.
891         (find_reloads_address): Pass address space to base_reg_class,
892         regno_ok_for_base_p, and find_reloads_address_1.
893         (find_reloads): Pass address space to base_reg_class.
894         (find_reloads_subreg_address): Likewise.
895
896         * ira-costs.c (record_reg_classes): Update calls to base_reg_class.
897         (ok_for_base_p_nonstrict): Add address space argument.  Pass to
898         ok_for_base_p_1.
899         (record_address_regs): Add address space argument.  Pass to
900         base_reg_class and ok_for_base_p_nonstrict.  Update recursive calls.
901         (record_operand_costs): Pass address space to record_address_regs.
902         (scan_one_insn): Likewise.
903
904         * caller-save.c (init_caller_save): Update call to base_reg_class.
905         * ira-conflicts.c (ira_build_conflicts): Likewise.
906         * reload1.c (maybe_fix_stack_asms): Likewise.
907
908 2011-11-08  Michael Matz  <matz@suse.de>
909
910         * gengtype.c (write_field_root): Avoid out-of-scope access of newv.
911
912         * tree-stdarg.c (execute_optimize_stdarg): Accept clobbers.
913
914         * tree.h (TREE_CLOBBER_P): New macro.
915         * gimple.h (gimple_clobber_p): New inline function.
916         * gimplify.c (gimplify_bind_expr): Add clobbers for all variables
917         that go out of scope and live in memory.
918         * tree-ssa-operands.c (get_expr_operands): Transfer volatility also
919         for constructors.
920         * cfgexpand.c (decl_to_stack_part): New static variable.
921         (add_stack_var): Allocate it, and remember mapping.
922         (fini_vars_expansion): Deallocate it.
923         (stack_var_conflict_p): Add early outs.
924         (visit_op, visit_conflict, add_scope_conflicts_1,
925         add_scope_conflicts): New static functions.
926         (expand_used_vars_for_block): Don't call add_stack_var_conflict, tidy.
927         (expand_used_vars): Add scope conflicts.
928         (expand_gimple_stmt_1): Expand clobbers to nothing.
929         (expand_debug_expr): Ditto.
930
931         * tree-pretty-print.c (dump_generic_node): Dump clobbers nicely.
932         * tree-ssa-live.c (remove_unused_locals): Remove clobbers that
933         refer to otherwise unused locals.
934         * tree-sra.c (build_accesses_from_assign): Ignore clobbers.
935         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Clobbers of
936         SSA names aren't necessary.
937         (propagate_necessity): Accept and ignore constructors on the rhs, tidy.
938         * gimple.c (walk_gimple_op): Accept constructors like mem_rhs.
939         * tree-ssa-structalias.c (find_func_aliases): Clobbers don't store
940         any known value.
941         * tree-ssa-sccvn.c (vn_reference_lookup_3): Ditto, in particular they
942         don't zero-initialize something.
943         * tree-ssa-phiopt.c (cond_if_else_store_replacement_1): Ignore
944         clobber RHS, we don't want PHI nodes with those.
945
946 2011-11-08  Jakub Jelinek  <jakub@redhat.com>
947
948         * config/i386/i386.c (ix86_preferred_simd_mode): Even for TARGET_AVX
949         if not TARGET_PREFER_AVX128 return 32-byte integer vectors.
950
951 2011-11-08  Richard Guenther  <rguenther@suse.de>
952
953         PR tree-optimization/51012
954         * ipa-prop.c (update_indirect_edges_after_inlining): Fixup
955         non-inlinable state.
956         * cgraph.c (cgraph_make_edge_direct): Likewise.
957
958 2011-11-08  Eric Botcazou  <ebotcazou@adacore.com>
959
960         PR rtl-optimization/47698
961         * ifcvt.c (noce_operand_ok): Move around comment.
962
963 2011-11-08  Richard Guenther  <rguenther@suse.de>
964
965         PR lto/50999
966         * lto-opts.c (append_to_collect_gcc_options): Split out from...
967         (lto_write_options): ... here.  Prepend frontend specific flags.
968
969 2011-11-08  Jakub Jelinek  <jakub@redhat.com>
970
971         * config/i386/sse.md (*avx_vperm2f128<mode>3_nozero): Emit mask
972         0x12 and 0x20 as vinsert[fi]128 instead of vperm2[fi]128.
973
974         * tree-vect-stmts.c (vectorizable_call): Add SLP_NODE argument.
975         Handle vectorization of SLP calls.
976         (vect_analyze_stmt): Adjust caller, add call to it for SLP too.
977         (vect_transform_stmt): Adjust vectorizable_call caller, remove
978         assertion.
979         * tree-vect-slp.c (vect_get_and_check_slp_defs): For calls start
980         with op_idx 3.
981         (vect_build_slp_tree): Allow CALL_EXPR.
982
983 2011-11-08  Richard Guenther  <rguenther@suse.de>
984
985         * gimple-fold.c (canonicalize_constructor_val): Make sure
986         we have referenced vars setup before adding to them.
987
988 2011-11-07  Richard Henderson  <rth@redhat.com>
989             Aldy Hernandez  <aldyh@redhat.com>
990             Andrew MacLeod  <amacleod@redhat.com>
991             Torvald Riegel  <triegel@redhat.com>
992
993         Merged from transactional-memory.
994
995         * gtm-builtins.def: New file.
996         * trans-mem.c: New file.
997         * trans-mem.h: New file.
998
999         * opts.c (finish_options): Error out when using -flto and -fgnu-tm.
1000
1001         * config/i386/i386.c: Define TARGET_VECTORIZE* transactional variants.
1002         (ix86_handle_tm_regparm_attribute, struct bdesc_tm,
1003         ix86_builtin_tm_load, ix86_builtin_tm_store,
1004         ix86_init_tm_builtins): New.
1005         (ix86_init_builtins): Initialize TM builtins.
1006         (struct ix86_attribute_table): Add "*tm regparm".
1007         * config/i386/i386-builtin-types.def (PV2SI): Define.
1008         (PCV2SI): Define.
1009         Define V2SI_FTYPE_PCV2SI.
1010         Define V4SF_FTYPE_PCV4SF.
1011         Define V8SF_FTYPE_PCV8SF.
1012         Define VOID_PV2SI_V2SI.
1013
1014         * doc/invoke.texi (C Dialect Options): Document -fgnu-tm and
1015         tm-max-aggregate-size.
1016         * doc/tm.texi.in: Add TARGET_VECTORIZE_BUILTIN_TM_LOAD and
1017         TARGET_VECTORIZE_BUILTIN_TM_STORE hooks.
1018         * doc/tm.texi: Regenerate.
1019
1020         * attribs.c (apply_tm_attr): New.
1021         (init_attributes): Allow '*' prefix for overrides.
1022         (register_attribute): Likewise.
1023         * builtin-attrs.def (ATTR_TM_TMPURE, ATTR_TM_REGPARM): New.
1024         (ATTR_TM_NOTHROW_LIST, ATTR_TM_TMPURE_NOTHROW_LIST,
1025         ATTR_TM_PURE_TMPURE_NOTHROW_LIST, ATTR_TM_NORETURN_NOTHROW_LIST,
1026         ATTR_TM_CONST_NOTHROW_LIST, ATTR_TMPURE_MALLOC_NOTHROW_LIST,
1027         ATTR_TMPURE_NOTHROW_LIST): New.
1028         * builtin-types.def (BT_FN_I[1248]_VPTR, BT_FN_FLOAT_VPTR,
1029         BT_FN_DOUBLE_VPTR, BT_FN_LDOUBLE_VPTR, BT_FN_VOID_VPTR_I[1248],
1030         BT_FN_VOID_VPTR_FLOAT, BT_FN_VOID_VPTR_DOUBLE,
1031         BT_FN_VOID_VPTR_LDOUBLE, BT_FN_VOID_VPTR_SIZE): New.
1032         * builtins.def: Include gtm-builtins.def. Add comments regarding
1033         transactional memory synchronization.
1034         (DEF_TM_BUILTIN): New.
1035         * c-parser.c (struct c_parser): Add in_transaction.
1036         (c_parser_transaction, c_parser_transaction_expression,
1037         c_parser_transaction_cancel, c_parser_transaction_attributes): New.
1038         (c_parser_attribute_any_word): Split out from c_parser_attributes.
1039         (c_parser_statement_after_labels): Handle RID_TRANSACTION*.
1040         (c_parser_unary_expression): Same.
1041         * c-tree.h (c_finish_transaction): Declare.
1042         * c-typeck.c (c_finish_transaction): New.
1043         (build_function_call_vec): Call tm_malloc_replacement.
1044         * calls.c (is_tm_builtin): New.
1045         (flags_from_decl_or_type): Add ECF_TM_BUILTIN and ECF_TM_PURE.
1046         * cfgbuild.c (make_edges): Add edges for REG_TM notes.
1047         * cfgexpand.c (expand_call_stmt): Call
1048         mark_transaction_restart_calls.
1049         (gimple_expand_cfg): Free the tm_restart map.
1050         (mark_transaction_restart_calls): New.
1051         * cfgrtl.c (purge_dead_edges): Look for REG_TM notes.
1052         * cgraph.c (dump_cgraph_node): Handle tm_clone.
1053         * cgraph.h (struct cgraph_node): Add tm_clone field.
1054         (decl_is_tm_clone): New.
1055         (struct cgraph_local_info): Add tm_may_enter_irr.
1056         (cgraph_copy_node_for_versioning): Declare.
1057         * cgraphunit.c (cgraph_copy_node_for_versioning): Export;
1058         copy analyzed from old version.
1059         * combine.c (distribute_notes): Handle REG_TM notes.
1060         * common.opt: Add -fgnu-tm.
1061         * crtstuff.c (__TMC_LIST__, __TMC_END__): New.
1062         (__do_global_dtors_aux): Deregister clone table.
1063         (frame_dummy): Register clone table.
1064         * emit-rtl.c (try_split): Handle REG_TM. Early return if no function
1065         body.
1066         * gimple-low.c (lower_stmt): Handle GIMPLE_EH_ELSE and
1067         GIMPLE_TRANSACTION.
1068         (gimple_stmt_may_fallthru): Handle GIMPLE_EH_ELSE.
1069         * gimple-pretty-print.c: Include trans-mem.h.
1070         (dump_gimple_fmt): Add %x.
1071         (dump_gimple_call): Dump arguments for calls to _ITM_beginTransaction.
1072         (dump_gimple_eh_else, dump_gimple_transaction): New.
1073         (dump_gimple_stmt): Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
1074         * gimple.c (gimple_build_eh_else, gimple_build_transaction): New.
1075         (walk_gimple_seq): Honor removed_stmt. Document usage of removed_stmt
1076         field.
1077         (walk_gimple_op): Handle GIMPLE_TRANSACTION.
1078         (walk_gimple_stmt): Initialize and honor removed_stmt.
1079         Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
1080         (gimple_copy): Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
1081         * gimple.def (GIMPLE_TRANSACTION, GIMPLE_EH_ELSE): New.
1082         * gimple.h (struct gimple_statement_eh_else,
1083         gimple_statement_transaction, GTMA_*): New.
1084         (gimple_statement_d): Add gimple_statement_eh_else and
1085         gimple_transaction.
1086         (gimple_build_eh_else, gimple_build_transaction,
1087         gimple_fold_call, diagnose_tm_safe_errors): Declare.
1088         (get_call_expr_in): Remove prototype.
1089         (gimple_has_substatements): Add GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
1090         (gimple_eh_else_n_body, gimple_eh_else_e_body,
1091         gimple_eh_else_set_n_body, gimple_eh_else_set_e_body,
1092         gimple_transaction_body, gimple_transaction_label,
1093         gimple_transaction_label_ptr, gimple_transaction_subcode,
1094         gimple_transaction_set_body, gimple_transaction_set_label,
1095         gimple_transaction_set_subcode): New.
1096         (struct walk_stmt_info): Use BOOL_BITFIELD; add removed_stmt.
1097         * gimplify.c (create_tmp_var_name): Use clean_symbol_name.
1098         (voidify_wrapper_expr): Handle TRANSACTION_EXPR.
1099         (gimplify_transaction): New.
1100         (gimplify_expr): Handle TRANSACTION_EXPR.
1101         * gsstruct.def (GSS_EH_ELSE, GSS_TRANSACTION): New.
1102         * ipa-inline.c (can_inline_edge_p): Do not inline TM safe calling
1103         TM pure functions.
1104         * Makefile.in: Add trans-mem.o and dependencies.
1105         (BUILTINS_DEF): Add gtm-builtins.def.
1106         (gimple-pretty-print.o): Depend on TRANS_MEM_H.
1107         (GTFILES): Add trans-mem.c.
1108         * omp-low.c (WALK_SUBSTMTS): Add GIMPLE_TRANSACTION.
1109         * output.h (record_tm_clone_pair, finish_tm_clone_pairs,
1110         get_tm_clone_pair): Declare.
1111         * params.def (PARAM_TM_MAX_AGGREGATE_SIZE): New.
1112         * passes.c (init_optimization_passes): Place transactional memory
1113         passes.
1114         * print-tree.c (print_node): Dump tm-clone.
1115         * recog.c (peep2_attempt): Handle REG_TM.
1116         * reg-notes.def (TM): New.
1117         * rtlanal.c (alloc_reg_note): Handle REG_TM.
1118         * target.def (builtin_tm_load, builtin_tm_store): New.
1119         * targhooks.c (default_builtin_tm_load_store): New.
1120         * targhooks.h (default_builtin_tm_load_store): Declare.
1121         * timevar.def (TV_TRANS_MEM): New.
1122         * toplev.c (compile_file): Call finish_tm_clone_pairs.
1123         * tree-cfg.c (make_edges): Handle GIMPLE_TRANSACTION.
1124         (cleanup_dead_labels): Handle GIMPLE_TRANSACTION. Avoid unnecessary
1125         writes into the statements to update labels.
1126         (is_ctrl_altering_stmt): Add TM ending statements. Handle
1127         GIMPLE_TRANSACTION.
1128         (verify_gimple_transaction): New.
1129         (verify_gimple_stmt): Handle GIMPLE_TRANSACTION.
1130         (verify_gimple_in_seq_2): Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
1131         (gimple_redirect_edge_and_branch): Handle TM_TRANSACTION.
1132         (dump_function_to_file): Display [tm-clone] if applicable.
1133         * tree-eh.c (struct_ptr_eq): Make inline and move to tree.h.
1134         (struct_ptr_hash): Same.
1135         (collect_finally_tree): Handle GIMPLE_EH_ELSE.
1136         (replace_goto_queue_1): Likewise.
1137         (get_eh_else): New.
1138         (honor_protect_cleanup_actions): Handle GIMPLE_EH_ELSE.
1139         (lower_try_finally_nofallthru): Likewise.
1140         (lower_try_finally_onedest): Likewise.
1141         (lower_try_finally_copy): Likewise.
1142         (lower_try_finally_switch): Likewise.
1143         (lower_try_finally): Likewise.
1144         (decide_copy_try_finally): Likewise.
1145         (lower_eh_constructs_2): Likewise.
1146         (refactor_eh_r): Likewise.
1147         * tree-flow.h (struct gimple_df): Add tm_restart field.
1148         Define tm_restart_node.
1149         * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_TRANSACTION.
1150         (estimate_num_insns): Likewise.
1151         (init_inline_once): Init tm_cost.
1152         * tree-inline.h (struct eni_weights_d): Add tm_cost.
1153         * tree-pass.h (pass_diagnose_tm_blocks, pass_lower_tm, pass_tm_init,
1154         pass_tm_mark, pass_tm_memopt, pass_tm_edges, pass_ipa_tm): Declare.
1155         * tree-pretty-print.c (dump_generic_node): Handle TRANSACTION_EXPR.
1156         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
1157         BUILT_IN_TM_MEMSET, BUILT_IN_TM_MEMCPY, BUILT_IN_TM_MEMMOVE.
1158         Add support for TM vector loads.  Add support for TM logging builtins.
1159         (call_may_clobber_ref_p_1): Add support for vector stores.
1160         * tree-ssa-structalias.c (find_func_aliases): Add support for TM
1161         vector stores and loads. Handle BUILT_IN_TM_MEMSET,
1162         BUILT_IN_TM_MEMCPY, BUILT_IN_TM_MEMMOVE.
1163         * tree.c (strip_invariant_refs): Moved from gimple.c to here.
1164         (local_define_builtin): Handle ECF_TM_PURE.
1165         (build_common_builtin_nodes): Set __builtin_eh_pointer to ECF_TM_PURE.
1166         * tree.def (TRANSACTION_EXPR): New.
1167         * tree.h (strip_invariant_refs): Moved from gimple.h to here.
1168         (TRANSACTION_EXPR_BODY, TRANSACTION_EXPR_CHECK,
1169         TRANSACTION_EXPR_OUTER, TRANSACTION_EXPR_RELAXED,
1170         BUILTIN_TM_LOAD_STORE_P, BUILTIN_TM_LOAD_P, BUILTIN_TM_STORE_P,
1171         CASE_BUILT_IN_TM_LOAD, CASE_BUILT_IN_TM_STORE): New.
1172         (ECF_TM_PURE, ECF_TM_BUILTIN): New.
1173         (struct tree_function_decl): Add tm_clone_flag.
1174         (struct_ptr_eq, struct_ptr_hash): New.
1175         (apply_tm_attr): Declare.
1176         (is_tm_safe_or_pure): New.
1177         (build_tm_abort_call, is_tm_safe, is_tm_pure,
1178         is_tm_may_cancel_outer, is_tm_ending_fndecl, record_tm_replacement,
1179         tm_malloc_replacement): Declare.
1180         * varasm.c (tm_clone_hash): New.
1181         (record_tm_clone_pair, finish_tm_clone_pairs, get_tm_clone_pair,
1182         dump_tm_clone_to_vec, dump_tm_clone_pairs, tm_alias_pair_cmp): New.
1183         (struct tm_alias_pair): New.  Declare VEC types for object.
1184
1185 2011-11-07  Richard Henderson  <rth@redhat.com>
1186
1187         * optabs.h (OTI_sync_compare_and_swap, OTI_sync_lock_test_and_set,
1188         OTI_sync_old_add, OTI_sync_old_sub, OTI_sync_old_ior,
1189         OTI_sync_old_and, OTI_sync_old_xor, OTI_sync_old_nand,
1190         OTI_sync_new_add, OTI_sync_new_sub, OTI_sync_new_ior,
1191         OTI_sync_new_and, OTI_sync_new_xor, OTI_sync_new_nand): Move and
1192         rename from the direct_optab_index enum.
1193         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab,
1194         sync_old_add_optab, sync_old_sub_optab, sync_old_ior_optab,
1195         sync_old_and_optab, sync_old_xor_optab, sync_old_nand_optab,
1196         sync_new_add_optab, sync_new_sub_optab, sync_new_ior_optab,
1197         sync_new_and_optab, sync_new_xor_optab, sync_new_nand_optab): Read
1198         from the optab_table, not the direct_optab_table.
1199         (init_sync_libfuncs): Declare.
1200         (can_compare_and_swap_p): Update parameters.
1201         * optabs.c (init_sync_libfuncs_1, init_sync_libfuncs): New.
1202         (can_compare_and_swap_p): Add allow_libcall parameter; if true,
1203         test for the legacy compare-and-swap libcall.
1204         (expand_atomic_exchange): Use the legacy test-and-set libcall.
1205         (expand_atomic_compare_and_swap): Use the legacy CAS libcall.
1206         (struct atomic_op_functions): Update for optab type changes.
1207         (maybe_emit_op): Likewise.
1208         (expand_atomic_fetch_op): Use the legacy fetch-op libcalls.
1209         * builtins.c (fold_builtin_atomic_always_lock_free): Update call
1210         to can_compare_and_swap_p.
1211         * omp-low.c (expand_omp_atomic_fetch_op): Likewise.
1212         (expand_omp_atomic_pipeline): Likewise.
1213         * genopinit.c (optabs): Make sync_old_*_optab, sync_new_*_optab,
1214         sync_compare_and_swap_optab, sync_lock_test_and_set_optab regular
1215         optabs.
1216         * doc/md.texi (sync_compare_and_swap): Update docs for libcalls.
1217
1218 2011-11-07  Jakub Jelinek  <jakub@redhat.com>
1219
1220         * config/i386/i386-bultin-types.def (V8SI_FTYPE_V4DF_V4DF): Add.
1221         * config/i386/i386.c (enum ix86_builtins): Add
1222         IX86_BUILTIN_VEC_PACK_SFIX256.
1223         (bdesc_args): Add __builtin_ia32_vec_pack_sfix256.
1224         (ix86_expand_args_builtin): Handle V8SI_FTYPE_V4DF_V4DF.
1225         (ix86_builtin_vectorized_function): Also vectorize lrint using
1226         256-bit vectors for -mavx.
1227
1228 2011-11-07  Anatoly Sokolov  <aesok@post.ru>
1229
1230         * config/cris/constraints.md: New file.
1231         * config/cris/cris.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
1232         CRIS_CONST_OK_FOR_LETTER_P, CONST_OK_FOR_CONSTRAINT_P,
1233         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_MEMORY_CONSTRAINT,
1234         EXTRA_CONSTRAINT, EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_R,
1235         EXTRA_CONSTRAINT_T, EXTRA_CONSTRAINT_S, EXTRA_CONSTRAINT_U): Remove.
1236         * config/cris/cris.c: Incule "tm-constrs.h".
1237         (cris_print_operand): Use satisfies_constraint_O.
1238         (cris_normal_notice_update_cc, cris_rtx_costs): Use
1239         satisfies_constraint_I.
1240         (cris_address_cost): Use satisfies_constraint_L.
1241         * config/cris/cris.md: Include "constraints.md".
1242         (*mov_side<mode>, *mov_sidesisf, *mov_side<mode>_mem,
1243         *mov_sidesisf_mem, *clear_side<mode>, *ext_sideqihi,
1244         *ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>,
1245         *extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side,
1246         *extop<mode>si_swap_side): Use satisfies_constraint_N and
1247         satisfies_constraint_J.
1248         (moversideqi movemsideqi mover2side peephole2): Use
1249         satisfies_constraint_N and satisfies_constraint_J.
1250         (andu peephole2): Use satisfies_constraint_I and
1251         satisfies_constraint_O.
1252
1253 2011-11-07  Uros Bizjak  <ubizjak@gmail.com>
1254
1255         * config/i386/i386.c (ix86_builtin_vectorized_function): Handle
1256         BUILT_IN_IRINT, BUILT_IN_IRINTF, BUILT_IN_LLRINT and BUILT_IN_LLRINTF.
1257
1258 2011-11-07  Andrew MacLeod  <amacleod@redhat.com>
1259
1260         * optabs.c (get_atomic_op_for_code): Fill in optab table at runtime so
1261         SWITCHABLE_TARGET can change the values during compilation.
1262         (expand_atomic_fetch_op): Handle parameter change ripples for
1263         get_atomic_op_for_code call.
1264
1265 2011-11-07  Andrew MacLeod  <amacleod@redhat.com>
1266
1267         * doc/extend.texi: Docuemnt behaviour change for __atomic_exchange and
1268         __atomic_store.
1269         * optabs.c (expand_atomic_exchange): Expand to __sync_lock_test_and_set
1270         only when originated from that builtin.
1271         (expand_atomic_store): Expand to __sync_lock_release when originated
1272         from that builtin.
1273         * builtins.c (expand_builtin_sync_lock_test_and_set): Add flag that
1274         expand_atomic_exchange call originated from here.
1275         (expand_builtin_sync_lock_release): Add flag that expand_atomic_store
1276         call originated from here.
1277         (expand_builtin_atomic_exchange): Add origination flag.
1278         (expand_builtin_atomic_store): Add origination flag.
1279         * expr.h (expand_atomic_exchange, expand_atomic_store): Add boolean
1280         parameters to indicate implementation fall back options.
1281
1282 2011-11-07  Georg-Johann Lay  <avr@gjlay.de>
1283
1284         * config/avr/avr.c (output_reload_in_const): Can handle CONSTANT_P
1285         now, not only CONST_INT and CONST_DOUBLE.
1286         (output_movqi): Use output_reload_in_const.
1287         (output_reload_inhi): Ditto.
1288         (output_reload_insisf): Move assertion to output_reload_in_const.
1289         (avr_out_reload_inpsi): Ditto.
1290
1291 2011-11-07  Nathan Sidwell  <nathan@acm.org>
1292
1293         * gcov.c (object_summary): Replace with ...
1294         (object_runs): ... this.
1295         (process_file): Remove functions with no data.
1296         (generate_results): Ignore files with no lines.
1297         (release_function): New helper, broken out of ...
1298         (release_structures): ... here.  Use it.
1299         (read_count_file): Adjust for new data file format.
1300         (output_lines): Use object_runs.
1301         * gcov-io.h (GCOV_TAG_OBJECT_SUMMARY): Obsolete.
1302         (struct gcov_ctr_info): Move definition.
1303         (struct gcov_fn_info): Add key field, use gcov_ctr_info for
1304         trailing array.
1305         (struct gcov_info): Add merge function array, remove mask and
1306         counts.  Trailing array is array of pointers to function info.
1307         * coverage.c (struct function_list): Replace counter numbers with
1308         counter arrays.  Add fndecl field.  GTYify.
1309         (counts_entry): Remove chain workspace.
1310         (functions_head): GTYify.
1311         (prg_n_ctrs): Remove.
1312         (fn_v_ctrs): New.
1313         (tree_ctr_tables): Remove.
1314         (read_counts_file): Cope with blank entries and expect program
1315         summaries before functions.  Don't warn on missing entries.
1316         (coverage_counter_alloc): Allocate individual function arrays.
1317         (tree_coverage_counter_ref, tree_coverage_counter_addr): Adjust
1318         for individual function arrays.
1319         (coverage_end_function): GTYify function list object. Finalize
1320         function's counter arrays.
1321         (build_var): New.  Create a counter-related variable with
1322         appropriate linkage.
1323         (build_fn_info_type): Adjust for new runtime structure.
1324         (build_fn_info_value): Rename to ...
1325         (build_fn_info): ... here.  Build new format data.
1326         (build_ctr_info_type, build_ctr_info_value): Remove.
1327         (build_info_type): New. Build new format data structure.
1328         (build_info): Adjust for new format data.
1329         (create_coverage): Likewise.
1330         * gcov-dump.c (tag_function): Recognize placeholders.
1331
1332 2011-11-07  Georg-Johann Lay  <avr@gjlay.de>
1333
1334         * config/avr/constraints.md (Cm2): New constraint for int -2.
1335         * config/avr/avr.md (addqi3): Use it. New alternatives for +/-2.
1336         (*negqihi2): New insn.
1337
1338 2011-11-07  H.J. Lu  <hongjiu.lu@intel.com>
1339
1340         * dwarf2cfi.c (dwarf2out_frame_debug_expr): Check
1341         HARD_FRAME_POINTER_REGNUM instead of hard_frame_pointer_rtx in Rule 18.
1342
1343 2011-11-07  Jakub Jelinek  <jakub@redhat.com>
1344
1345         * config/i386/i386.c (ix86_expand_builtin): If gather mask
1346         argument is known to have all high bits set, pass pc_rtx as
1347         second argument to the expander instead of op0.
1348         * config/i386/sse.md (*avx2_gathersi<mode>_2,
1349         *avx2_gatherdi<mode>_2): New patterns.
1350         * config/i386/avx2intrin.h (_mm256_i32gather_pd,
1351         _mm256_i64gather_pd, _mm256_i32gather_ps): Set mask using
1352         _mm256_cmp_pd with zero vector arguments and _CMP_EQ_OQ instead of
1353         _mm256_set1_pd.
1354
1355         PR tree-optimization/50789
1356         * tree-vect-stmts.c (process_use): Add force argument, avoid
1357         exist_non_indexing_operands_for_use_p check if true.
1358         (vect_mark_stmts_to_be_vectorized): Adjust callers.  Handle
1359         STMT_VINFO_GATHER_P.
1360         (gen_perm_mask): New function.
1361         (perm_mask_for_reverse): Use it.
1362         (reverse_vec_element): Rename to...
1363         (permute_vec_elements): ... this.  Add Y and MASK_VEC arguments,
1364         generalize for any permutations.
1365         (vectorizable_load): Adjust caller.  Handle STMT_VINFO_GATHER_P.
1366         * target.def (TARGET_VECTORIZE_BUILTIN_GATHER): New hook.
1367         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_GATHER): Document it.
1368         * doc/tm.texi: Regenerate.
1369         * tree-data-ref.c (initialize_data_dependence_relation,
1370         compute_self_dependence): No longer static.
1371         * tree-data-ref.h (initialize_data_dependence_relation,
1372         compute_self_dependence): New prototypes.
1373         * tree-vect-data-refs.c (vect_check_gather): New function.
1374         (vect_analyze_data_refs): Detect possible gather load data refs.
1375         * tree-vectorizer.h (struct _stmt_vec_info): Add gather_p field.
1376         (STMT_VINFO_GATHER_P): Define.
1377         (vect_check_gather): New prototype.
1378         * config/i386/i386-builtin-types.def: Add types for alternate
1379         gather builtins.
1380         * config/i386/sse.md (AVXMODE48P_DI): Remove.
1381         (VEC_GATHER_MODE): Rename mode_attr to...
1382         (VEC_GATHER_IDXSI): ... this.
1383         (VEC_GATHER_IDXDI, VEC_GATHER_SRCDI): New mode_attrs.
1384         (avx2_gathersi<mode>, *avx2_gathersi<mode>): Use <VEC_GATHER_IDXSI>
1385         instead of <VEC_GATHER_MODE>.
1386         (avx2_gatherdi<mode>): Use <VEC_GATHER_IDXDI> instead of
1387         <AVXMODE48P_DI> and <VEC_GATHER_SRCDI> instead of VEC_GATHER_MODE
1388         on src and mask operands.
1389         (*avx2_gatherdi<mode>): Likewise.  Use VEC_GATHER_MODE iterator
1390         instead of AVXMODE48P_DI.
1391         (avx2_gatherdi<mode>256, *avx2_gatherdi<mode>256): Removed.
1392         * config/i386/i386.c (enum ix86_builtins): Add
1393         IX86_BUILTIN_GATHERALTSIV4DF, IX86_BUILTIN_GATHERALTDIV8SF,
1394         IX86_BUILTIN_GATHERALTSIV4DI and IX86_BUILTIN_GATHERALTDIV8SI.
1395         (ix86_init_mmx_sse_builtins): Create those builtins.
1396         (ix86_expand_builtin): Handle those builtins and adjust expansions
1397         of other gather builtins.
1398         (ix86_vectorize_builtin_gather): New function.
1399         (TARGET_VECTORIZE_BUILTIN_GATHER): Define.
1400
1401 2011-11-07  Uros Bizjak  <ubizjak@gmail.com>
1402
1403         * config/i386/f16cintrin.h: Remove extra _X86INTRIN_H_INCLUDED check.
1404
1405 2011-11-07  Tristan Gingold  <gingold@adacore.com>
1406
1407         * config.gcc (*-*-*vms*): Set c_target_objs, cxx_target_objs.
1408         * config/vms/t-vms: Add vms-c.o rule.
1409         * config/vms/vms-c.c: New file.
1410         * config/vms/vms-protos.h (vms_c_register_pragma): New prototype.
1411         * config/vms/vms.h (REGISTER_TARGET_PRAGMAS): Define.
1412
1413 2011-11-07  Tristan Gingold  <gingold@adacore.com>
1414
1415         * config/alpha/vms.h (TARGET_OBJECT_SUFFIX,
1416         TARGET_EXECUTABLE_SUFFIX, TARGET_OS_CPP_BUILTINS,
1417         TARGET_ABI_OPEN_VMS, LONG_TYPE_SIZE, ADA_LONG_TYPE_SIZE,
1418         POINTER_SIZE, POINTERS_EXTEND_UNSIGNED): Move to config/vms/vms.h
1419         (SUBTARGET_OS_CPP_BUILTINS): Define.
1420         (TARGET_DEFAULT): Tune according to POINTER_SIZE.
1421         (MASK_RETURN_ADDR): Define in 64 bit mode.
1422         * config/ia64/vms.h: Likewise.
1423         * config/vms/vms.h: New file.
1424         * config/vms/vms64.h: New file.
1425         * config/alpha/vms64.h: Removed.
1426         * config/ia64/vms64.h: Removed.
1427         * config.gcc (alpha64-dec-*vms*, alpha*-dec-*vms*, ia64-hp-*vms*):
1428         Adjust for above change.
1429
1430 2011-11-07  Enkovich Ilya  <ilya.enkovich@intel.com>
1431
1432         PR target/50962
1433         * config/i386/i386-protos.h (ix86_use_lea_for_mov): New.
1434         * config/i386/i386.c (ix86_use_lea_for_mov): Likewise.
1435         * config/i386/i386.md (movsi_internal): Emit lea if profitable.
1436         (movdi_internal_rex64): Likewise.
1437
1438 2011-11-07  Sergey Ostanevich  <sergos.gnu@gmail.com>
1439
1440         PR rtl-optimization/47698
1441         * ifcvt.c (noce_operand_ok): Return false for mems with side effects.
1442
1443 2011-11-07  Tristan Gingold  <gingold@adacore.com>
1444
1445         * common/config/alpha/alpha-common.c (alpha_option_init_struct):
1446         New function.
1447         (TARGET_OPTION_INIT_STRUCT): Define.
1448         * config/alpha/alpha.c (TARGET_MIN_ANCHOR_OFFSET)
1449         (TARGET_MAX_ANCHOR_OFFSET)
1450         (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Redefine.
1451
1452 2011-11-06  Quentin Neill  <quentin.neill@amd.com>
1453
1454         Fix r180999, update ChangeLog
1455         * config.gcc: Add f16cintrin.h.
1456         * config/i386/f16cintrin.h: Add missing endif.
1457
1458 2011-11-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1459
1460         * config.gcc (arm*-*-rtemseabi*): New target.
1461         * config/arm/rtems-eabi.h: New.
1462         * config/arm/t-rtems-eabi: New.
1463
1464 2011-11-06  David S. Miller  <davem@davemloft.net>
1465
1466         * config/sparc/sparc.md (UNSPEC_SHORT_LOAD): Delete.
1467         (zero_extend_v8qi_vis, zero_extend_v4hi_vis,
1468         *zero_extend_v8qi_<P:mode>_insn,
1469         *zero_extend_v4hi_<P:mode>_insn): Express using vec_merge
1470         and vec_duplicate instead of using an UNSPEC.
1471
1472 2011-11-07  Alan Modra  <amodra@gmail.com>
1473
1474         PR target/30282
1475         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Always emit
1476         blockage for ABI_V4.
1477
1478 2011-11-06  Dave Korn  <dave.korn.cygwin@gmail.com>
1479
1480         * config/i386/cygwin.h (LIBGCJ_SONAME): Updated to match recent
1481         libgcj version bump.
1482         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
1483
1484 2011-11-06  Eric Botcazou  <ebotcazou@adacore.com>
1485
1486         * gcse.c: Adjust outdated comments throughout.
1487         (struct mem_conflict_info): New structure.
1488         (mems_conflict_for_gcse_p): Use it to communicate with caller.
1489         (load_killed_in_block_p): Pass it to note_stores.
1490         (hash_expr): Remove superfluous line break.
1491         (hash_scan_set): Rename PAT parameter into SET.
1492         (hash_scan_insn): Reorder cases.
1493         (canon_list_insert): Fix long line.
1494         (edge_list): Delete.
1495         (prune_expressions): Rename E local variable into EXPR.
1496         (compute_pre_data): Return struct edge_list * object.
1497         (pre_expr_reaches_here_p_work): Fix formatting.
1498         (process_insert_insn): Move around comment.
1499         (pre_edge_insert): Fix long line.
1500         (pre_insert_copies): Likewise.
1501         (gcse_emit_move_after): Swap SRC and DEST parameters.
1502         (pre_delete): Adjust call to gcse_emit_move_after.
1503         (pre_gcse): Take struct edge_list * parameter.  Fix long line.
1504         (one_pre_gcse_pass): Use flag_gcse_lm condition for all routines.
1505         Use a local list of edges.
1506         (hoist_code): Fix long line.  Adjust call to gcse_emit_move_after.
1507         (pre_ldst_expr_hash): Fix long line.
1508         (free_ldst_mems): Rename into...
1509         (free_ld_motion_mems): ...this.
1510         (first_ls_expr): Delete.
1511         (next_ls_expr): Likewise.
1512         (print_ldst_list): Do not use above two functions.
1513         (simple_mem): Adjust interface.
1514         (compute_ld_motion_mems): Fix formatting.
1515         (update_ld_motion_stores): Reuse local variable.
1516
1517 2011-11-06  Joseph Myers  <joseph@codesourcery.com>
1518
1519         * c-decl.c (shadow_tag_warned, grokdeclarator): Handle _Alignas
1520         specifiers.
1521         (build_null_declspecs): Initialize align_log and alignas_p fields.
1522         (declspecs_add_alignas): New.
1523         * c-parser.c (c_token_starts_declspecs): Handle RID_ALIGNAS.
1524         (c_parser_declspecs): Handle _Alignas specifiers.
1525         (c_parser_alignas_specifier): New.
1526         (c_parser_alignof_expression): Diagnose alignof use for non-C1X.
1527         Diagnose _Alignof (expression).
1528         * c-tree.h (struct c_declspecs): Add align_log and alignas_p fields.
1529         (declspecs_add_alignas): Declare.
1530         * ginclude/stddef.h (max_align_t): Define for C1X and C++11.
1531         * ginclude/stdalign.h: New.
1532         * Makefile.in (USER_H): Add stdalign.h.
1533
1534 2011-11-06  Joern Rennecke  <joern.rennecke@embecosm.com>
1535
1536         * regset.h (fixed_reg_set_regset): Declare.
1537         * dse.c: Include regset.h .
1538         (struct insn_info): Add member fixed_regs_live.
1539         (note_add_store_info): New typedef.
1540         (note_add_store): New function.
1541         (emit_inc_dec_insn_before): Expect arg to be of type insn_info_t.
1542         Use gen_add3_insn / gen_move_insn.
1543         Check new insn for unwanted clobbers before emitting it.
1544         (check_for_inc_dec): Rename to...
1545         (check_for_inc_dec_1:) ... this.  Return bool.  Take insn_info
1546         parameter.  Changed all callers in file.
1547         (check_for_inc_dec, copy_fixed_regs): New functions.
1548         (scan_insn): Set fixed_regs_live field of insn_info.
1549         * rtl.h (check_for_inc_dec): Update prototype.
1550         * postreload.c (reload_cse_simplify): Take new signature of
1551         check_ind_dec into account.
1552         * reginfo.c (fixed_reg_set_regset): New variable.
1553         (init_reg_sets_1): Initialize it.
1554
1555 2011-11-06  Jakub Jelinek  <jakub@redhat.com>
1556
1557         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0 don't remove
1558         any user labels.
1559
1560 2011-11-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1561
1562         * config/pa/pa.c (pa_hpux_init_libfuncs): Rename to pa_init_libfuncs.
1563         Remove dependence of declaration and target define on definition of
1564         HPUX_LONG_DOUBLE_LIBRARY.  Update implementation.
1565
1566 2011-11-06  Andrew Macleod  <amacleod@redhat.com>
1567             Richard Henderson  <rth@redhat.com>
1568             Aldy Hernandez  <aldyh@redhat.com>
1569
1570         Merged from cxx-mem-model.
1571
1572         * cppbuiltin.c (define__GNUC__): Define __ATOMIC memory models
1573         * coretypes.h (enum memmodel): New.  enumerated memory model type.
1574         * Makefile.in (cppbuiltin.o) Add missing dependency on $(TREE_H)
1575         * genopinit,c (optabs): Add atomic direct optab handlers.
1576         * sync-builtins.def (BUILT_IN_ATOMIC_*): New builtins.
1577         * builtin-types.def (BT_CONST_VOLATILE_PTR,
1578         BT_FN_I{1,2,4,8,16}_CONST_VPTR_INT, BT_FN_VOID_VPTR_INT,
1579         BT_FN_BOOL_VPTR_INT, BT_FN_BOOL_SIZE_CONST_VPTR,
1580         BT_FN_I{1,2,4,8,16}_VPTR_I{1,2,4,8,16}_INT,
1581         BT_FN_VOID_VPTR_I{1,2,4,8,16}_INT, BT_FN_VOID_SIZE_VPTR_PTR_INT,
1582         BT_FN_VOID_SIZE_CONST_VPTR_PTR_INT, BT_FN_VOID_SIZE_VPTR_PTR_PTR_INT,
1583         BT_FN_BOOL_VPTR_PTR_I{1,2,4,8,16}_BOOL_INT_INT): New builtin types.
1584         * expr.h (expand_atomic_*): Add prototypes.
1585         (expand_{bool,val}_compare_and_swap): Remove prototypes.
1586         * c-typeck.c (build_function_call_vec): Don't reprocess __atomic
1587         parameters.
1588         * common.opt (Winvalid-memory-model): New warning flag.
1589         (finline-atomics): New. Flag to disable atomic inlining.
1590         * params.h (ALLOW_LOAD_DATA_RACES): New.
1591         (ALLOW_PACKED_LOAD_DATA_RACES): New.
1592         (ALLOW_PACKED_STORE_DATA_RACES): New.
1593         * params.def (PARAM_ALLOW_LOAD_DATA_RACES): New.
1594         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES): New.
1595         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): New.
1596         * builtins.c (is_builtin_name): Handle __atomic.
1597         (get_memmodel): New.  Extract memory model.
1598         (expand_expr_force_mode): New. Factor out common code for ensuring an
1599         integer argument is in the proper mode.
1600         (expand_builtin_sync_operation): Remove ignore param.  Always call
1601         expand_atomic_fetch_op instead of the old expanders.
1602         (expand_builtin_compare_and_swap,
1603         expand_builtin_sync_lock_test_and_set): Use expand_expr_force_mode,
1604         call atomic expanders instead of sync expanders.
1605         (expand_builtin_sync_lock_release): Call atomic_store expander.
1606         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
1607         expand_builtin_atomic_store, expand_builtin_atomic_fetch_op): New.
1608         (expand_builtin_atomic_exchange): New.
1609         (fold_builtin_atomic_always_lock_free,
1610         expand_builtin_atomic_always_lock_free,
1611         fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
1612         New.
1613         (expand_builtin_mem_thread_fence, expand_builtin_atomic_thread_fence,
1614         expand_builtin_atomic_signal_fence): New.
1615         (expand_builtin_mem_signal_fence): New.
1616         (expand_builtin): Add cases for BUILT_IN_ATOMIC_*.
1617         (fold_builtin_2): Add cases for BUILT_IN_ATOMIC_{IS,ALWAYS}_LOCK_FREE.
1618         * optabs.h (DOI_atomic_*): Define new atomics.
1619         (atomic_*_optab): Define.
1620         (can_compare_and_swap_p, expand_atomic_compare_and_swap): New
1621         prototypes.
1622         * optabs.c (expand_sync_operation, expand_sync_fetch_operation): Remove.
1623         (expand_sync_lock_test_and_set): Remove.
1624         (expand_atomic_load, expand_atomic_store): New.
1625         (expand_atomic_exchange): New.
1626         (expand_atomic_compare_and_swap): New.  Implements
1627         atomic_compare_exchange via compare and swap.
1628         (struct atomic_op_functions): Opcode table struct for fetch ops.
1629         (get_atomic_op_for_code): New.  Return an opcode table entry.
1630         (maybe_emit_op): New.  Try to emit a fetch op.
1631         (expand_atomic_fetch_op): New.
1632         (expand_val_compare_and_swap_1): Remove.
1633         (expand_val_compare_and_swap, expand_bool_compare_and_swap): Remove.
1634         (expand_atomic_compare_and_swap): Rename from
1635         expand_atomic_compare_exchange.  Rewrite to return both success and
1636         oldval return values; expand via both atomic and sync optabs.
1637         (can_compare_and_swap_p): New.
1638         (expand_compare_and_swap_loop): Use expand_atomic_compare_and_swap.
1639         (maybe_gen_insn): Handle 7 and 8 operands.
1640         * omp-low.c (expand_omp_atomic_fetch_op): Don't test individual
1641         fetch_op optabs, only test can_compare_and_swap_p.  Use __atomic
1642         builtins instead of __sync builtins.
1643         (expand_omp_atomic_pipeline): Use can_compare_and_swap_p.
1644         * doc/extend.texi: Document __atomic built-in functions.
1645         * doc/invoke.texi: Document data race parameters.
1646         * doc/md.texi: Document atomic patterns.
1647         * config/i386/i386.md (UNSPEC_MOVA): New.
1648         (UNSPECV_CMPXCHG): Split into ...
1649         (UNSPECV_CMPXCHG_1, UNSPECV_CMPXCHG_2,
1650         UNSPECV_CMPXCHG_3, UNSPECV_CMPXCHG_4): New.
1651         * config/i386/sync.md (ATOMIC): New mode iterator.
1652         (atomic_load<ATOMIC>, atomic_store<ATOMIC>): New.
1653         (atomic_loaddi_fpu, atomic_storedi_fpu, movdi_via_fpu): New.
1654         (mem_thread_fence): Rename from memory_barrier.
1655         Handle the added memory model parameter.
1656         (mfence_nosse): Rename from memory_barrier_nosse.
1657         (sync_compare_and_swap<CASMODE>): Split into ...
1658         (atomic_compare_and_swap<SWI124>): this and ...
1659         (atomic_compare_and_swap<CASMODE>): this.  Handle the new parameters.
1660         (atomic_compare_and_swap_single<SWI>): Rename from
1661         sync_compare_and_swap<SWI>; rewrite to use split unspecs.
1662         (atomic_compare_and_swap_double<DCASMODE>): Rename from
1663         sync_double_compare_and_swap<DCASMODE>; rewrite to use split unspecs.
1664         (*atomic_compare_and_swap_doubledi_pic): Rename from
1665         sync_double_compare_and_swapdi_pic; rewrite to use split unspecs.
1666         (atomic_fetch_add<SWI>): Rename from sync_old_add<SWI>; add memory
1667         model parameter.
1668         (*atomic_fetch_add_cmp<SWI>): Similarly.
1669         (atomic_add<SWI>, atomic<any_logic><SWI>): Similarly.
1670         (atomic_sub<SWI>): Similarly.  Use x86_maybe_negate_const_int.
1671         (sync_lock_test_and_set<SWI>): Merge with ...
1672         (atomic_exchange<SWI>): ... this.
1673
1674 2011-11-6  Richard Guenther  <rguenther@suse.de>
1675
1676         * ipa-prop.c (ipa_modify_call_arguments): Re-compute inlinable flag.
1677
1678 2011-11-06  Ira Rosen  <ira.rosen@linaro.org>
1679
1680         * tree-vectorizer.h (vectorizable_condition): Add argument.
1681         * tree-vect-loop.c (vectorizable_reduction): Fail for condition
1682         in SLP.  Update calls to vectorizable_condition.
1683         * tree-vect-stmts.c (vect_is_simple_cond): Add basic block info to
1684         the arguments.  Pass it to vect_is_simple_use_1.
1685         (vectorizable_condition): Add slp_node to the arguments.  Support
1686         vectorization of basic blocks.  Fail for reduction in SLP.  Update
1687         calls to vect_is_simple_cond and vect_is_simple_use.  Support SLP:
1688         call vect_get_slp_defs to get vector operands.
1689         (vect_analyze_stmt): Update calls to vectorizable_condition.
1690         (vect_transform_stmt): Likewise.
1691         * tree-vect-slp.c (vect_create_new_slp_node): Handle COND_EXPR.
1692         (vect_get_and_check_slp_defs): Handle COND_EXPR.  Allow pattern
1693         def stmts.
1694         (vect_build_slp_tree): Handle COND_EXPR.
1695         (vect_analyze_slp_instance): Push pattern statements to root node.
1696         (vect_get_constant_vectors): Fix comments.  Handle COND_EXPR.
1697
1698 2011-11-05  David S. Miller  <davem@davemloft.net>
1699
1700         * config/sparc/sparc.md (UNSPEC_SHORT_LOAD): New unspec.
1701         (zero-extend_v8qi_vis, zero_extend_v4hi_vis): New expanders.
1702         (*zero_extend_v8qi_<P:mode>_insn,
1703         *zero_extend_v4hi_<P:mode>_insn): New insns.
1704         * config/sparc/sparc.c (vector_init_move_words,
1705         vector_init_prepare_elts, sparc_expand_vector_init_vis2,
1706         sparc_expand_vector_init_vis1): New functions.
1707         (vector_init_bshuffle): Rewrite to handle more cases and make use
1708         of locs[] array prepared by vector_init_prepare_elts.
1709         (vector_init_fpmerge, vector_init_faligndata): Delete.
1710         (sparc_expand_vector_init): Rewrite using new infrastructure.
1711
1712 2011-11-05  Joern Rennecke  <joern.rennecke@embecosm.com>
1713
1714         * config.gcc (epiphany-*-*): New architecture.
1715         (epiphany-*-elf): New configuration.
1716         * config/epiphany, common/config/epiphany : New directories.
1717         * doc/extend.texi (disinterrupt attribute): Add Epiphany.
1718         (interrupt attribute): Add Epiphany.
1719         (long_call, short_call attribute): Add Epiphany.
1720         * doc/invoke.texi (Options): Add Epiphany options.
1721         * doc/md.texi (Machine Constraints): Add Epiphany constraints.
1722         * doc/install.texi (Options specification):
1723         Add --with-stack-offset=@var{num} description.
1724         (host/target specific issues): Add epiphany-*-elf.
1725         * doc/contrib.texi (Contributors): Mention Epiphany port.
1726
1727 2011-11-05  Jakub Jelinek  <jakub@redhat.com>
1728
1729         PR tree-optimization/50693
1730         * tree-cfg.c (gimple_can_merge_blocks_p): Allow merging with
1731         non-forced user labels.
1732         (gimple_merge_blocks): Turn non-forced user labels into
1733         debug bind stmt with the label as first operand and reset value.
1734         (gimple_duplicate_bb): Don't duplicate label debug stmts.
1735         * dwarf2out.c (gen_label_die): Handle NOTE_INSN_DELETED_DEBUG_LABEL.
1736         * final.c (final_scan_insn): Likewise.
1737         (rest_of_clean_state): Don't dump NOTE_INSN_DELETED_DEBUG_LABEL.
1738         * var-tracking.c (debug_label_num): New variable.
1739         (delete_debug_insns): Don't delete DEBUG_INSNs for LABEL_DECLs,
1740         instead turn them into NOTE_INSN_DELETED_DEBUG_LABEL notes.
1741         * cfglayout.c (skip_insns_after_block, duplicate_insn_chain): Handle
1742         NOTE_INSN_DELETED_DEBUG_LABEL.
1743         (duplicate_insn_chain): Don't duplicate LABEL_DECL DEBUG_INSNs.
1744         * insn-notes.def (DELETED_DEBUG_LABEL): New note kind.
1745         * print-rtl.c (print_rtx): Handle NOTE_INSN_DELETED_DEBUG_LABEL.
1746         * gengtype.c (adjust_field_rtx_def): Likewise.
1747         * config/i386/i386.c (ix86_output_function_epilogue): For MachO
1748         clear CODE_LABEL_NUMBER of NOTE_INSN_DELETED_DEBUG_LABEL
1749         if their are at the end of function and nop hasn't been emitted.
1750         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Likewise.
1751
1752 2011-11-05  Georg-Johann Lay  <avr@gjlay.de>
1753
1754         PR rtl-optimization/50448
1755         * cprop.c (try_replace_reg): Also try to replace uses of FROM that
1756         appear in SET_DEST.
1757
1758 2011-11-05  Peter Dufault  <dufault@hda.com>,
1759             Sebastian Huber  <sebastian.huber@embedded-brains.de>
1760
1761         * config/rs6000/rtems.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
1762         Extend rs6000_spe handling.
1763
1764 2011-11-05  Ralf Corsépius  <ralf.corsepius@rtems.org>
1765
1766         * config/rs6000/t-rtems: Add -mcpu=8540/-mfloat-gprs=double multilib.
1767         Remove -mcpu=601 multilib.
1768         Remove -Dmpc8260 multilib.
1769         * config/rs6000/rtems.h: Allow --float-gprs=... to override grps
1770         on E500 targets.
1771
1772 2011-11-05  Quentin Neill  <quentin.neill@amd.com>
1773
1774         Piledriver f16cintrin.h fix.
1775         * config/i386/f16cintrin.h: Contents moved from immintrin.h.
1776         * config/i386/immintrin.h: Include f16cintrin.h.
1777         * config.gcc (i[34567]86-*-*, x86_64-*-*): Add f16cintrin.h.
1778
1779
1780 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
1781
1782         PR c++/50608
1783         * c-parser.c (c_parser_postfix_expression) <RID_OFFSETOF>: Adjust call
1784         to fold_offsetof.
1785         * c-typeck.c (build_unary_op) <ADDR_EXPR>: Call fold_offsetof_1.
1786
1787 2011-11-04  Alan Modra  <amodra@gmail.com>
1788
1789         * reload1.c (gen_reload): Don't use REGNO on SUBREGs.
1790         * print-rtl.c (print_rtx): Don't segfault on negative regno.
1791
1792 2011-11-04  David S. Miller  <davem@davemloft.net>
1793
1794         PR target/49965
1795         * config/sparc/sparc.c (sparc_expand_conditional_move): Handle the
1796         fact that sparc_emit_float_lib_cmp modifies the comparison in
1797         operands[1].
1798
1799 2011-11-04  Ralf Corsépius  <ralf.corsepius@rtems.org>
1800
1801         * config/lm32/t-rtems: New.
1802         * config.gcc (lm32-*-rtems*): Add t-rtems.
1803
1804 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
1805
1806         PR target/50979
1807         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=v8.
1808
1809 2011-11-04  Jiangning Liu  <jiangning.liu@arm.com>
1810
1811         PR rtl-optimization/38644
1812         * config/arm/arm.c (thumb1_expand_epilogue): Add memory barrier
1813         for epilogue having stack adjustment.
1814
1815 2011-11-04  Georg-Johann Lay  <avr@gjlay.de>
1816
1817         PR target/50931
1818         * config/avr/avr-modes.def: New file defining PSImode.
1819         * config/avr/avr-c.c (__INT24_MAX__, __INT24_MIN__,
1820         __UINT24_MAX__): New built-in defines.
1821         * config/avr/avr.md (adjust_len): Add tstpsi, mov24,  reload_in24,
1822         ashlpsi, ashrpsi, lshrpsi.
1823         (QISI, QIDI, HISI, HIDI, MPUSH, rotx, rotsmode): Add PSI.
1824         (MOVMODE): New mode iterator.
1825         (movpsi): New expander.
1826         (movqi, movhi, movsi, movsf, movpsi): Write as one using MOVMODE.
1827         (*reload_inpsi, *movpsi): New insns.
1828         (*reload_inpsi): New RTL peephole.
1829         (addpsi3, *addpsi3_zero_extend.qi, *addpsi3_zero_extend.hi,
1830         *addpsi3_sign_extend.hi): New insns.
1831         (subpsi3, *subpsi3_zero_extend.qi, *subpsi3_zero_extend.hi,
1832         *subpsi3_sign_extend.hi): New insns.
1833         (divmodpsi4, udivmodpsi4): New define insn-and-split.
1834         (*divmodpsi4_call, *udivmodpsi4_call): New insns.
1835         (andpsi3, iorpsi3, xorpsi3): New insns.
1836         (*rotlpsi2.1, *rotlpsi2.23): New insns.
1837         (*rotw<mode>): Insn condition only allow even-sized modes.
1838         (*rotb<mode>): Insn condition allows odd-sized modes.
1839         (ashlpsi3, ashrpsi3, lshrpsi3, *addpsi3.lt0): New insns.
1840         (negpsi2, one_cmplpsi2): New insns.
1841         (extendqipsi2, extendhipsi2, extendpsisi2): New insns.
1842         (zero_extendqipsi2, zero_extendhipsi2, zero_extendpsisi2): New
1843         insn-and-splits.
1844         (*cmppsi, *negated_tstpsi, *reversed_tstpsi): New insns.
1845         (cbranchpsi4): New expander.
1846         * config/avr/constraints.md (Ca3, Co3, Cx3): New constraints.
1847         * config/avr/avr-protos.h (avr_out_tstpsi, avr_out_movpsi,
1848         avr_out_ashlpsi3, avr_out_ashrpsi3, avr_out_lshrpsi3,
1849         avr_out_reload_inpsi): New prototypes.
1850
1851         * config/avr/avr.c (TARGET_SCALAR_MODE_SUPPORTED_P): Define to...
1852         (avr_scalar_mode_supported_p): ...this new static function.
1853         (avr_asm_len): Always return "".
1854         (avr_out_load_psi, avr_out_store_psi): New static functions.
1855         (avr_out_movpsi, avr_out_reload_inpsi): New functions.
1856         (avr_out_tstpsi): New function.
1857         (avr_out_ashlpsi3, avr_out_ashrpsi3, avr_out_lshrpsi3): New functions.
1858         (avr_out_plus_1, output_reload_in_const): Handle 3-byte types.
1859         (avr_simplify_comparison_p): Ditto.
1860         (adjust_insn_length): Handle ADJUST_LEN_RELOAD_IN24,
1861         ADJUST_LEN_MOV24, ADJUST_LEN_TSTPSI, ADJUST_LEN_ASHLPSI,
1862         ADJUST_LEN_ASHRPSI, ADJUST_LEN_LSHRPSI.
1863         (avr_rtx_costs_1): Report PSI costs.
1864         (avr_libcall_value): Handle odd-sized parameters.
1865         (avr_init_builtin_int24): New static function to define built-in
1866         24-bit types __int24 and __uint24.
1867         (avr_init_builtins): Use it.
1868
1869 2011-11-04  Thomas Doerfler <thomas.doerfler@embedded-brains.de>
1870
1871         PR target/50989
1872         * config/arm/rtems-elf.h, config/arm/t-rtems: Add optional
1873         support for VFP floating point model.
1874
1875 2011-11-04  Tristan Gingold  <gingold@adacore.com>
1876
1877         * config/alpha/vms.h (ASM_OUTPUT_DEF): Do not switch section.
1878
1879 2011-11-04  Ira Rosen  <ira.rosen@linaro.org>
1880
1881         Unrevert:
1882         2011-10-24  Ira Rosen  <ira.rosen@linaro.org>
1883
1884         PR tree-optimization/50730
1885         * tree-vect-data-refs.c (vect_analyze_data_refs): Stop basic block
1886         analysis if encountered unsupported data-ref.
1887
1888 2011-11-04  Jakub Jelinek  <jakub@redhat.com>
1889
1890         * config/i386/i386.c (ix86_expand_vector_convert_uns_vsivsf): New
1891         function.
1892         * config/i386/i386-protos.h (ix86_expand_vector_convert_uns_vsivsf):
1893         New prototype.
1894         * config/i386/sse.md (floatuns<sseintvecmodelower><mode>2): Use it.
1895         For floatunsv8siv8sf2 require TARGET_AVX2.
1896
1897         * config/i386/i386.c (ix86_expand_adjust_ufix_to_sfix_si): Add
1898         XORP argument.  Subtract 0x1p31 instead of 0x1p32.  Use normal
1899         signalling comparison instead of non-signalling.  Store into
1900         *XORP pseudo holding 0x80000000 integers if 0x1p31 has been
1901         subtracted and 0 otherwise.
1902         * config/i386/i386-protos.h (ix86_expand_adjust_ufix_to_sfix_si):
1903         Adjust prototype.
1904         * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): Enable
1905         already for TARGET_SSE2.  Xor in vector initialized by
1906         ix86_expand_adjust_ufix_to_sfix_si at the end.
1907         (vec_pack_ufix_trunc_<mode>): Likewise.
1908
1909         * tree-vect-stmts.c (vectorizable_conversion): Rewritten to handle
1910         not just FLOAT_EXPR and FIX_TRUNC_EXPR, but also CONVERT_EXPR_CODE_P,
1911         WIDEN_MULT_EXPR and WIDEN_LSHIFT_EXPR to handle what
1912         vectorizable_type_demotion and vectorizable_type_promotion did.
1913         Additionally handle FLOAT_EXPR and FIX_TRUNC_EXPR where the integer
1914         is {,un}signed {char,short}.
1915         (vect_create_vectorized_demotion_stmts): Fix comment typo.  For
1916         recursive calls unconditionally use VEC_PACK_TRUNC_EXPR.
1917         Push vec_dest back to the vec_dsts vector at the end.
1918         (vect_create_vectorized_promotion_stmts): Don't recurse, do just
1919         one step.  Removed multi_step_cvt, vec_dsts, slp_node and
1920         prev_stmt_info arguments, add vec_dest argument.  Push always
1921         into vec_tmp, not just when multi_step_cvt != 0, replace *vec_oprdn0
1922         with vec_tmp at the end after freeing old *vec_oprnd0 vector.
1923         (vectorizable_type_demotion, vectorizable_type_promotion): Removed.
1924         (vect_analyze_stmt): Don't call vectorizable_type_demotion and
1925         vectorizable_type_promotion.  Call vectorizable_conversion even
1926         for SLP bb vectorization.
1927         (vect_transform_stmt): Call vectorizable_conversion instead of
1928         vectorizable_type_demotion and vectorizable_type_promotion.
1929         (supportable_widening_operation): Clear *multi_step_cvt first,
1930         simplify c1/c2 computation, free *interm_types vector on failure.
1931         (supportable_narrowing_operation): Clear *multi_step_cvt first,
1932         free *interm_types vector on failure, handle multi-step
1933         FIX_TRUNC_EXPR.
1934
1935 2011-11-04  Tristan Gingold  <gingold@adacore.com>
1936
1937         * config/alpha/alpha.c (alpha_write_linkage): Remove fundecl
1938         argument.  Conditionally generate crash debug info.  Adjust
1939         for alpha_funcs_tree removal.
1940         (machine_function): Add links field.
1941         (alpha_start_function): Conditionally generate crash debug info.
1942         (alpha_end_function): Adjust call to alpha_write_linkage.
1943         (alpha_funcs): Remove.
1944         (links_kind): Remove.
1945         (alpha_links): Remove num, target and lkind field.  Add func field.
1946         (alpha_links_tree): Remove.
1947         (alpha_funcs_tree): Remove.
1948         (alpha_need_linkage): Remove.
1949         (alpha_use_linkage): Change prototype.  Adjust.
1950         (alpha_write_one_linkage): Use ASM_OUTPUT_INTERNAL_LABEL.
1951         Use SYMBOL_REF_EXTERNAL_P and SYMBOL_REF_LOCAL_P macro.
1952         * config/alpha/alpha-protos.h (alpha_use_linkage): Update.
1953         (alpha_need_linkage): Remove.
1954         * config/alpha/alpha.md: Update calls to alpha_use_linkage.
1955         Adjust calls to alpha_need_linkage.
1956
1957 2011-11-03  Uros Bizjak  <ubizjak@gmail.com>
1958
1959         * sched-vis.c (print_value): Handle STRICT_LOW_PART.
1960
1961 2011-11-03  Uros Bizjak  <ubizjak@gmail.com>
1962
1963         * config/i386/i386.md (lround<X87MODEF:mode><SWI248x:mode>2,
1964         rint<mode>2, floor<mode>2, lfloor<MODEF:mode><SWI48:mode>2,
1965         btrunc<mode>2, lwp_lwpval<mode>3): Use operands[N] instead of operandN.
1966
1967 2011-11-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1968
1969         PR target/50978
1970         * config/arm/t-bpabi: New file.
1971         * config.gcc (arm*-*-linux*): Add arm/t-bpabi to tmake_file for
1972         arm*-*-linux-*eabi.
1973         (arm*-*-uclinux*): Add arm/t-bpabi to tmake_file for
1974         arm*-*-uclinux*eabi.
1975         (arm*-*-eabi*, arm*-*-symbianelf*): Add arm/t-bpabi to tmake_file
1976         for arm*-*-eabi*.
1977
1978 2011-11-03  Michael Matz  <matz@suse.de>
1979
1980         PR bootstrap/50857
1981         * configure.ac: Check for -fno-exceptions -fno-rtti.
1982         * configure: Regenerate.
1983         * Makefile.in (NOEXCEPTION_FLAGS): New flag.
1984         (ALL_CXXFLAGS): Use it.
1985
1986 2011-11-03  Uros Bizjak  <ubizjak@gmail.com>
1987
1988         * config/i386/i386.md: Use {} for multi-line preparation statements.
1989
1990 2011-11-03  Eric Botcazou  <ebotcazou@adacore.com>
1991
1992         * config/sparc/sparc.md (movtf_insn_sp32_no_fpu): Consolidate into...
1993         (movtf_insn_sp32): ...this.
1994         (movtf_insn_sp64_no_fpu): Consolidate into...
1995         (movtf_insn_sp64): ...this.
1996         (movtf_insn_sp64_hq): Do not test TARGET_FPU.
1997         * config/sparc/sparc.c (sparc_legitimate_address_p): Likewise.
1998
1999 2011-11-03  Tristan Gingold  <gingold@adacore.com>
2000
2001         * config/vms/vms.c (vms_patch_builtins): Fix typo.
2002
2003 2011-11-03  Richard Guenther  <rguenther@suse.de>
2004
2005         PR lto/44965
2006         * lto-opts.c: Re-implement.
2007         * lto-streamer.h (lto_register_user_option): Remove.
2008         (lto_read_file_options): Likewise.
2009         (lto_reissue_options): Likewise.
2010         (lto_clear_user_options): Likewise.
2011         (lto_clear_file_options): Likewise.
2012         * opts-global.c (post_handling_callback): Remove.
2013         (set_default_handlers): Do not set post_handling_callback.
2014         (decode_options): Remove LTO specific code.
2015         * lto-wrapper.c (merge_and_complain): New function.
2016         (run_gcc): Read all input file options and
2017         prepend a merged set before the linker driver options.
2018         * gcc.c (driver_post_handling_callback): Remove.
2019         (set_option_handlers): Do not set post_handling_callback.
2020         * opts-common.c (handle_option): Do not call post_handling_callback.
2021         * opts.h (struct cl_option_handlers): Remove post_handling_callback.
2022
2023 2011-11-03  Richard Guenther  <rguenther@suse.de>
2024
2025         * collect2.c (main): Guard object_nbr variable with TARGET_AIX_VERSION.
2026
2027 2011-11-03  Martin Jambor  <mjambor@suse.cz>
2028
2029         * ipa-prop.c (type_change_info): New fields offset, object,
2030         known_current_type and multiple_types_encountered.
2031         (extr_type_from_vtbl_ptr_store): New function.
2032         (check_stmt_for_type_change): Use it, set multiple_types_encountered if
2033         the result is different from the previous one.
2034         (detect_type_change): Renamed to detect_type_change_1. New parameter
2035         comp_type.  Set up new fields in tci, build known type jump
2036         functions if the new type can be identified.
2037         (detect_type_change): New function.
2038         * tree.h (DECL_CONTEXT): Comment new use.
2039
2040 2011-11-03  Richard Guenther  <rguenther@suse.de>
2041
2042         PR lto/48217
2043         * lto-wrapper.c (get_options_from_collect_gcc_options): Properly
2044         decode an encoded literal '.
2045
2046 2011-11-03  Tristan Gingold  <gingold@adacore.com>
2047
2048         * collect2.c (main): Add support of -f (response file) on AIX.
2049
2050 2011-11-03  Ira Rosen  <ira.rosen@linaro.org>
2051
2052         PR tree-optimization/50912
2053         * tree-vectorizer.h (slp_void_p): New.
2054         (struct _slp_tree): Replace left and right with children.  Update
2055         documentation.
2056         (struct _slp_oprnd_info): New.
2057         (vect_get_vec_defs): Declare.
2058         (vect_get_slp_defs): Update arguments.
2059         * tree-vect-loop.c (vect_create_epilog_for_reduction): Call
2060         vect_get_vec_defs instead of vect_get_slp_defs.
2061         (vectorizable_reduction): Likewise.
2062         * tree-vect-stmts.c (vect_get_vec_defs): Remove static, add argument.
2063         Update call to vect_get_slp_defs.
2064         (vectorizable_conversion): Update call to vect_get_vec_defs.
2065         (vectorizable_assignment, vectorizable_shift,
2066         vectorizable_operation): Likewise.
2067         (vectorizable_type_demotion): Call vect_get_vec_defs instead of
2068         vect_get_slp_defs.
2069         (vectorizable_type_promotion, vectorizable_store): Likewise.
2070         (vect_analyze_stmt): Fix typo.
2071         * tree-vect-slp.c (vect_free_slp_tree): Update SLP tree traversal.
2072         (vect_print_slp_tree, vect_mark_slp_stmts,
2073         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
2074         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
2075         vect_schedule_slp_instance): Likewise.
2076         (vect_create_new_slp_node): New.
2077         (vect_create_oprnd_info, vect_free_oprnd_info): Likewise.
2078         (vect_get_and_check_slp_defs): Pass information about defs using
2079         oprnds_info, allow any number of operands.
2080         (vect_build_slp_tree): Likewise.  Update calls to
2081         vect_get_and_check_slp_defs.  Fix comments.
2082         (vect_analyze_slp_instance): Move node creation to
2083         vect_create_new_slp_node.
2084         (vect_get_slp_defs): Allow any number of operands.
2085
2086 2011-11-02  Peter Bergner  <bergner@vnet.ibm.com>
2087             Iain Sandoe  <iains@gcc.gnu.org>
2088
2089         * config/rs6000/rs6000.c (USE_HIDDEN_LINKONCE): New define.
2090         (get_ppc476_thunk_name): Use it.
2091         (rs6000_code_end): Likewise.
2092         (macho_branch_islands): Fix typo.
2093
2094 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
2095             Jason Merrill  <jason@redhat.com>
2096
2097         PR c++/50810
2098         * configure.ac: Add -Wno-narrowing to warning options.
2099         * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
2100
2101 2011-11-02  Eric Botcazou  <ebotcazou@adacore.com>
2102
2103         PR target/50945
2104         * config/sparc/sparc.md (movsf_insn): Reindent constraints.
2105         (movdf_insn_sp32): Likewise.  Remove redundant G constraint.
2106         (movdf_insn_sp64): Likewise.
2107         (DFmode splitter): Do not test TARGET_FPU.
2108         (movtf_insn_sp32): Reindent constraints.
2109         (movtf_insn_sp32_no_fpu): Likewise.
2110         (movtf_insn_sp64): Likewise.
2111         (movtf_insn_sp64_hq): Likewise.
2112         (movtf_insn_sp64_no_fpu): Likewise.
2113
2114 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
2115
2116         PR c++/50956
2117         * builtins.c (fold_builtin_memchr): Fix cast.
2118
2119 2011-11-02  Teresa Johnson  <tejohnson@google.com>
2120
2121         * config/i386/predicates.md (promotable_binary_operator): Add minus
2122         to the list of promotable operators.
2123
2124 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2125
2126         * gthr-single.h, gthr.h: Move to ../libgcc.
2127         * gthr-aix.h: Move to ../libgcc/config/rs6000.
2128         * gthr-dce.h: Move to ../libgcc/config/pa.
2129         * gthr-lynx.h: Move to ../libgcc/config.
2130         * gthr-mipssde.h: Move to ../libgcc/config/mips.
2131         * gthr-posix.h: Move to ../libgcc/config.
2132         * gthr-rtems.h: Likewise.
2133         * gthr-tpf.h: Move to ../libgcc/config/s390.
2134         * gthr-vxworks.h: Move to ../libgcc/config.
2135         * gthr-win32.h: Move to ../libgcc/config/i386.
2136         * configure.ac (gthread_flags): Remove
2137         (gthr-default.h): Don't create.
2138         (thread_file): Don't substitute.
2139         * configure: Regenerate.
2140         * Makefile.in (GCC_THREAD_FILE): Remove.
2141         (GTHREAD_FLAGS): Remove.
2142         (libgcc.mvars): Remove GTHREAD_FLAGS.
2143         * config/t-vxworks (EXTRA_HEADERS): Remove.
2144
2145 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2146             Paolo Bonzini  <bonzini@gnu.org>
2147
2148         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Remove.
2149         * configure: Regenerate.
2150         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list): Remove.
2151         (TM_H): Remove libgcc_tm.h, $(libgcc_tm_file_list).
2152         (libgcc_tm.h, cs-libgcc_tm.h): Remove.
2153         (clean): Remove libgcc_tm.h
2154         * mkconfig.sh: Don't include libgcc_tm.h in tm.h.
2155         * config.gcc (libgcc_tm_file): Remove.
2156         (arm*-*-linux*): Remove libgcc_tm_file for arm*-*-linux-*eabi.
2157         (arm*-*-uclinux*): Remove libgcc_tm_file for arm*-*-uclinux*eabi.
2158         (arm*-*-eabi*, arm*-*-symbianelf*): Remove libgcc_tm_file.
2159         (avr-*-rtems*): Likewise.
2160         (avr-*-*): Likewise.
2161         (frv-*-elf): Likewise.
2162         (frv-*-*linux*): Likewise.
2163         (h8300-*-rtems*): Likewise.
2164         (h8300-*-elf*): Likewise.
2165         (i[34567]86-*-darwin*): Likewise.
2166         (x86_64-*-darwin*): Likewise.
2167         (rx-*-elf*): Likewise.
2168         (tic6x-*-elf): Likewise.
2169         (tic6x-*-uclinux): Likewise.
2170         (i[34567]86-*-linux*, x86_64-*-linux*): Likewise.
2171
2172 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2173
2174         * Makefile.in (LIBGCC2_DEBUG_CFLAGS LIBGCC2_CFLAGS)
2175         (LIBGCC2_INCLUDES, TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXTRA)
2176         (LIB2FUNCS_STATIC_EXTRA, LIB2FUNCS_EXCLUDE, T, T_TARGET)
2177         (INCLUDES_FOR_TARGET): Remove.
2178         (LIBGCC2_CFLAGS): Don't export.
2179         (LIB2FUNCS_ST, LIB2_DIVMOD_FUNCS, LIB2ADD, LIB2ADD_ST, srcdirify):
2180         Remove.
2181         (libgcc-support): Remove $(LIB2ADD), $(LIB2ADD_ST) dependencies.
2182         (libgcc.mvars): Likewise.
2183         Don't emit LIB2FUNCS_ST, LIB2FUNCS_EXCLUDE, LIB2ADD, LIB2ADD_ST,
2184         LIB2_SIDITI_CONV_FUNCS, LIB2_DIVMOD_FUNCS, LIBGCC2_CFLAGS,
2185         TARGET_LIBGCC2_CFLAGS.
2186         Emit GTHREAD_FLAGS.
2187         * libgcc2.c, libgcc2.h, gbl-ctors.h, longlong.h: Move to ../libgcc.
2188         * config/darwin-64.c: Move to ../libgcc/config.
2189         * config/divmod.c, config/floatunsidf.c, config/floatunsisf.c,
2190         config/floatunsitf.c, config/floatunsixf.c, config/udivmod.c,
2191         config/udivmodsi4.c: Move to ../libgcc/config.
2192         * config/gthr-posix.c: Move to ../libgcc/config/alpha.
2193         * config/memcmp.c, config/memcpy.c, config/memmove.c,
2194         config/memset.c: Move to ../libgcc/config.
2195         * config/t-darwin (TARGET_LIBGCC2_CFLAGS): Remove.
2196         * config/t-freebsd: Remove.
2197         * config/t-freebsd-thread: Move to ../libgcc/config.
2198         * config/t-libgcc-pic: Move to ../libgcc/config.
2199         * config/t-libunwind (TARGET_LIBGCC2_CFLAGS): Remove.
2200         * config/t-linux: Remove.
2201         * config/t-lynx (TARGET_LIBGCC2_CFLAGS, LIBGCC, INSTALL_LIBGCC):
2202         Remove.
2203         * config/t-openbsd-thread: Move to ../libgcc/config.
2204         * config/t-rtems (LIBGCC2_INCLUDES): Remove.
2205         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Remove.
2206         * config/t-svr4: Remove.
2207         * config/t-vxworks (LIBGCC, INSTALL_LIBGCC, TARGET_LIBGCC2_CFLAGS)
2208         (LIBGCC2_DEBUG_CFLAGS, LIB2FUNCS_EXTRA, LIBGCC2_INCLUDES): Remove.
2209         * config/vxlib.c, config/vxlib-tls.c: Move to ../libgcc/config.
2210         * config/alpha/qrnnd.asm: Move to ../libgcc/config/alpha/qrnnd.S.
2211         * config/alpha/t-alpha, config/alpha/t-ieee: Remove.
2212         * config/alpha/t-vms (LIB2FUNCS_EXTRA, LIBGCC, INSTALL_LIBGCC): Remove.
2213         * config/alpha/vms-gcc_shell_handler.c: Move to ../libgcc/config/alpha.
2214         * config/arm/bpabi.c, config/arm/unaligned-funcs.c,
2215         config/arm/fp16.c, config/arm/linux-atomic.c,
2216         config/arm/linux-atomic-64bit.c: Move to ../libgcc/config/arm.
2217         * config/arm/t-arm-elf (LIBGCC, INSTALL_LIBGCC)
2218         (TARGET_LIBGCC2_CFLAGS): Remove.
2219         * config/arm/t-bpabi, config/arm/t-linux: Remove.
2220         * config/arm/t-linux-eabi (TARGET_LIBGCC2_CFLAGS)
2221         (LIB2FUNCS_STATIC_EXTRA): Remove.
2222         * config/arm/t-netbsd: Remove.
2223         * config/arm/t-strongarm-elf (LIBGCC, INSTALL_LIBGCC)
2224         (TARGET_LIBGCC2_CFLAGS): Remove.
2225         * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Remove.
2226         * config/arm/t-wince-pe (LIBGCC, INSTALL_LIBGCC)
2227         (TARGET_LIBGCC2_CFLAGS): Remove.
2228         * config/avr/t-avr (LIB2FUNCS_EXCLUDE, TARGET_LIBGCC2_CFLAGS)
2229         (LIBGCC, INSTALL_LIBGCC): Remove.
2230         * config/bfin/t-bfin-elf (TARGET_LIBGCC2_CFLAGS): Remove.
2231         * config/bfin/t-bfin-linux: Likewise.
2232         * config/bfin/t-bfin-uclinux: Likewise.
2233         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
2234         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
2235         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
2236         config/c6x/ltf.c: Move to ../libgcc/config/c6x.
2237         * config/c6x/t-c6x-elf (LIB2FUNCS_EXCLUDE, LIB2FUNCS_EXTRA): Remove.
2238         * config/c6x/t-c6x-uclinux (TARGET_LIBGCC2_CFLAGS): Remove.
2239         * config/cris/arit.c: Move to ../libgcc/config/cris.
2240         * config/cris/cris_abi_symbol.c: Remove.
2241         * config/cris/cris.h: Remove obsolete comment.
2242         * config/cris/mulsi3.asm: Move to ../libgcc/config/cris/mulsi3.S.
2243         * config/cris/t-cris (LIB2FUNCS_EXTRA, CRIS_LIB1CSRC)
2244         ($(LIB2FUNCS_EXTRA)): Remove.
2245         * config/cris/t-elfmulti (LIB2FUNCS_STATIC_EXTRA, INSTALL_LIBGCC)
2246         (LIBGCC): Remove.
2247         * config/cris/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
2248         * config/fr30/t-fr30: Remove.
2249         * config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
2250         config/frv/modi.c, config/frv/uitod.c, config/frv/uitof.c,
2251         config/frv/ulltod.c, config/frv/ulltof.c, config/frv/umodi.c: Move
2252         to ../libgcc/config/frv.
2253         * config/frv/t-frv (LIB2FUNCS_EXTRA, TARGET_LIBGCC2_CFLAGS)
2254         (cmovh.c, cmovw.c, cmovd.c, modi.c, umodi.c, uitof.c, uitod.c)
2255         (ulltof.c, LIBGCC, INSTALL_LIBGCC): Remove.
2256         * config/frv/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
2257         * config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
2258         config/h8300/fixunssfsi.c, config/h8300/parityhi2.c,
2259         config/h8300/popcounthi2.c: Move to ../libgcc/config/h8300.
2260         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA, TARGET_LIBGCC2_CFLAGS)
2261         (LIBGCC, INSTALL_LIBGCC): Remove.
2262         * config/i386/gthr-win32.c: Move to ../libgcc/config/i386.
2263         * config/i386/t-cygming (LIBGCC2_INCLUDES): Remove.
2264         * config/i386/t-cygwin: Remove.
2265         * config/i386/t-darwin (LIB2_SIDITI_CONV_FUNCS, LIB2FUNCS_EXTRA)
2266         (LIB2FUNCS_EXCLUDE): Remove.
2267         * config/i386/t-darwin64 (LIB2_SIDITI_CONV_FUNCS, LIB2FUNCS_EXTRA)
2268         (LIBGCC, INSTALL_LIBGCC): Remove.
2269         * config/i386/t-gthr-win32: Move to ../libgcc/config/i386.
2270         * config/i386/t-linux64 (LIBGCC, INSTALL_LIBGCC): Remove.
2271         * config/i386/t-mingw-w32: Likewise.
2272         * config/i386/t-mingw-w64: Likewise.
2273         * config/i386/t-openbsd: Likewise.
2274         * config/i386/t-nto: Remove.
2275         * config/ia64/quadlib.c: Move to ../libgcc/config/ia64.
2276         * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, LIB2FUNCS_EXTRA)
2277         (quadlib.c): Remove.
2278         * config/ia64/t-ia64: Remove comment.
2279         * config/iq2000/lib2extra-funcs.c: Move to
2280         ../libgcc/config/iq2000/lib2funcs.c.
2281         * config/iq2000/t-iq2000: Remove.
2282         * config/m32c/m32c-lib2.c: Move to ../libgcc/config/m32c/lib2funcs.c.
2283         * config/m32c/m32c-lib2-trapv.c: Move to ../libgcc/config/m32c/trapv.c.
2284         * config/m32r/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
2285         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Remove.
2286         * config/m32r/t-m32r (TARGET_LIBGCC2_CFLAGS, LIBGCC)
2287         (INSTALL_LIBGCC): Remove.
2288         * config/m68k/fpgnulib.c: Move to ../libgcc/config/m68k.
2289         * config/m68k/t-floatlib: Remove.
2290         * config/m68k/t-mlibs (LIBGCC, INSTALL_LIBGCC): Remove.
2291         * config/mcore/t-mcore (TARGET_LIBGCC2_CFLAGS): Remove.
2292         Fix typo.
2293         (LIBGCC, INSTALL_LIBGCC): Remove.
2294         * config/mep/mep-lib2.c: Move to ../libgcc/config/mep/lib2funcs.c.
2295         * config/mep/mep-tramp.c: Move to ../libgcc/config/mep/tramp.c.
2296         * config/mep/t-mep (LIB2FUNCS_EXTRA): Remove.
2297         * config/mips/t-elf (TARGET_LIBGCC2_CFLAGS, LIBGCC)
2298         (INSTALL_LIBGCC): Remove.
2299         * config/mips/t-isa3264: Likewise.
2300         * config/mips/t-mips (LIB2_SIDITI_CONV_FUNCS): Remove.
2301         * config/mips/t-r3900 (TARGET_LIBGCC2_CFLAGS, LIBGCC)
2302         (INSTALL_LIBGCC): Remove.
2303         * config/mips/t-sde (LIBGCC, INSTALL_LIBGCC): Remove.
2304         * config/mips/t-sr71k (TARGET_LIBGCC2_CFLAGS, LIBGCC)
2305         (INSTALL_LIBGCC): Remove.
2306         * config/mips/t-vr (TARGET_LIBGCC2_CFLAGS)
2307         (LIB2FUNCS_STATIC_EXTRA): Remove.
2308         * config/mips/vr4120-div.S: Move to ../libgcc/config/mips.
2309         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Remove.
2310         * config/mn10300/t-mn10300 (LIBGCC, INSTALL_LIBGCC): Remove.
2311         * config/pa/fptr.c, config/pa/linux-atomic.c: Move to
2312         ../libgcc/config/pa.
2313         * config/pa/lib2funcs.asm: Move to ../libgcc/config/pa/lib2funcs.S.
2314         * config/pa/quadlib.c: Move to ../libgcc/config/pa.
2315         * config/pa/t-dce-thr (LIBGCC, INSTALL_LIBGCC): Remove.
2316         * config/pa/t-linux, config/pa/t-linux64: Remove.
2317         * config/pa/t-pa-hpux, config/pa/t-pa-hpux10,
2318         config/pa/t-pa-hpux11, config/pa/t-pa64: Remove.
2319         * config/pdp11/t-pdp11 (TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXTRA):
2320         Remove.
2321         * config/picochip/libgccExtras: Move to ../libgcc/config/picochip.
2322         * config/picochip/t-picochip (LIB2FUNCS_EXTRA, RANLIB_FOR_TARGET)
2323         (TARGET_LIBGCC2_CFLAGS, LIBGCC2_DEBUG_CFLAGS): Remove.
2324         * config/rs6000/crtresfpr.asm: Move to
2325         ../libgcc/config/rs6000/crtresfpr.S.
2326         * config/rs6000/crtresgpr.asm: Move to
2327         ../libgcc/config/rs6000/crtresgpr.S.
2328         * config/rs6000/crtresxfpr.asm: Move to
2329         ../libgcc/config/rs6000/crtresxfpr.S.
2330         * config/rs6000/crtresxgpr.asm: Move to
2331         ../libgcc/config/rs6000/crtresxgpr.S.
2332         * config/rs6000/crtsavfpr.asm: Move to
2333         ../libgcc/config/rs6000/crtsavfpr.S.
2334         * config/rs6000/crtsavgpr.asm: Move to
2335         ../libgcc/config/rs6000/crtsavgpr.S.
2336         * config/rs6000/darwin-asm.h: Move to ../libgcc/config/rs6000.
2337         * config/rs6000/darwin-fpsave.asm: Move to
2338         ../libgcc/config/rs6000/darwin-fpsave.S.
2339         * config/rs6000/darwin-gpsave.asm: Move to
2340         ../libgcc/config/rs6000/darwin-gpsave.S.
2341         * config/rs6000/darwin-tramp.asm: Move to
2342         ../libgcc/config/rs6000/darwin-tramp.S.
2343         * config/rs6000/darwin-vecsave.asm: Move to
2344         ../libgcc/config/rs6000/darwin-vecsave.S.
2345         * config/rs6000/darwin-world.asm: Move to
2346         ../libgcc/config/rs6000/darwin-world.S.
2347         * config/rs6000/e500crtres32gpr.asm: Move to
2348         ../libgcc/config/rs6000/e500crtres32gpr.S.
2349         * config/rs6000/e500crtres64gpr.asm: Move to
2350         ../libgcc/config/rs6000/e500crtres64gpr.S.
2351         * config/rs6000/e500crtres64gprctr.asm: Move to
2352         ../libgcc/config/rs6000/e500crtres64gprctr.S.
2353         * config/rs6000/e500crtrest32gpr.asm: Move to
2354         ../libgcc/config/rs6000/e500crtrest32gpr.S.
2355         * config/rs6000/e500crtrest64gpr.asm: Move to
2356         ../libgcc/config/rs6000/e500crtrest64gpr.S.
2357         * config/rs6000/e500crtresx32gpr.asm: Move to
2358         ../libgcc/config/rs6000/e500crtresx32gpr.S.
2359         * config/rs6000/e500crtresx64gpr.asm: Move to
2360         ../libgcc/config/rs6000/e500crtresx64gpr.S.
2361         * config/rs6000/e500crtsav32gpr.asm: Move to
2362         ../libgcc/config/rs6000/e500crtsav32gpr.S.
2363         * config/rs6000/e500crtsav64gpr.asm: Move to
2364         ../libgcc/config/rs6000/e500crtsav64gpr.S.
2365         * config/rs6000/e500crtsav64gprctr.asm: Move to
2366         ../libgcc/config/rs6000/e500crtsav64gprctr.S.
2367         * config/rs6000/e500crtsavg32gpr.asm: Move to
2368         ../libgcc/config/rs6000/e500crtsavg32gpr.S.
2369         * config/rs6000/e500crtsavg64gpr.asm: Move to
2370         ../libgcc/config/rs6000/e500crtsavg64gpr.S.
2371         * config/rs6000/e500crtsavg64gprctr.asm: Move to
2372         ../libgcc/config/rs6000/e500crtsavg64gprctr.S.
2373         * config/rs6000/eabi.asm: Move to ../libgcc/config/rs6000/eabi.S.
2374         * config/rs6000/t-aix43 (LIBGCC, INSTALL_LIBGCC, LIB2FUNCS_EXTRA)
2375         (TARGET_LIBGCC2_CFLAGS): Remove.
2376         * config/rs6000/t-aix52: Likewise.
2377         * config/rs6000/t-darwin: Remove.
2378         * config/rs6000/t-darwin64 (LIB2_SIDITI_CONV_FUNCS)
2379         (LIB2FUNCS_EXTRA): Remove.
2380         * config/rs6000/t-fprules (LIBGCC, INSTALL_LIBGCC): Remove.
2381         * config/rs6000/t-linux64 (TARGET_LIBGCC2_CFLAGS): Remove.
2382         * config/rs6000/t-lynx (LIB2FUNCS_EXTRA, tramp.S, LIBGCC)
2383         (INSTALL_LIBGCC): Remove.
2384         * config/rs6000/t-netbsd (LIB2FUNCS_EXTRA)
2385         (LIB2FUNCS_STATIC_EXTRA, tramp.S, crtsavfpr.S, crtresfpr.S)
2386         (crtsavgpr.S, crtresgpr.S, crtresxfpr.S, crtresxgpr.S, LIBGCC)
2387         (INSTALL_LIBGCC, $(T)crtsavfpr$(objext), $(T)crtresfpr$(objext))
2388         ($(T)crtsavgpr$(objext), $(T)crtresgpr$(objext))
2389         ($(T)crtresxfpr$(objext), $(T)crtresxgpr$(objext)): Remove.
2390         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA)
2391         (LIB2FUNCS_STATIC_EXTRA, eabi.S, tramp.S): Remove.
2392         * config/rs6000/t-spe (LIBGCC, INSTALL_LIBGCC): Remove.
2393         * config/rs6000/t-vxworks: Remove comment.
2394         * config/rs6000/tramp.asm: Move to ../libgcc/config/rs6000/tramp.S.
2395         * config/rx/t-rx (LIBGCC, INSTALL_LIBGCC): Remove.
2396         * config/sh/linux-atomic.asm: Move to
2397         ../libgcc/config/sh/linux-atomic.S.
2398         * config/sh/t-linux (LIB2FUNCS_EXTRA): Remove.
2399         * config/sh/t-netbsd: Remove.
2400         * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS, LIBGCC, INSTALL_LIBGCC):
2401         Remove.
2402         * config/sparc/t-elf (LIBGCC, INSTALL_LIBGCC): Remove.
2403         * config/sparc/t-leon: Likewise.
2404         * config/sparc/t-leon3: Likewise.
2405         * config/sparc/t-linux64: Likewise.
2406         * config/sparc/t-netbsd64: Fix typo.
2407         Remove comment.
2408         * config/spu/divmodti4.c, config/spu/divv2df3.c,
2409         config/spu/float_disf.c, config/spu/float_unsdidf.c,
2410         config/spu/float_unsdisf.c, config/spu/float_unssidf.c,
2411         config/spu/mfc_multi_tag_release.c,
2412         config/spu/mfc_multi_tag_reserve.c, config/spu/mfc_tag_release.c,
2413         config/spu/mfc_tag_reserve.c, config/spu/mfc_tag_table.c,
2414         config/spu/multi3.c: Move to ../libgcc/config/spu.
2415         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXCLUDE)
2416         (LIB2FUNCS_STATIC_EXTRA, LIB2_SIDITI_CONV_FUNCS, LIBGCC)
2417         (INSTALL_LIBGCC): Remove.
2418         * config/stormy16/stormy16-lib2.c: Move to
2419         ../libgcc/config/stormy16/lib2.c.
2420         * config/stormy16/stormy16-lib2-ashlsi3.c: Move to
2421         ../libgcc/config/stormy16/ashlsi3.c.
2422         * config/stormy16/stormy16-lib2-ashrsi3.c: Move to
2423         ../libgcc/config/stormy16/ashrsi3.c.
2424         * config/stormy16/stormy16-lib2-clzhi2.c: Move to
2425         ../libgcc/config/stormy16/clzhi2.c.
2426         * config/stormy16/stormy16-lib2-cmpsi2.c: Move to
2427         ../libgcc/config/stormy16/cmpsi2.c.
2428         * config/stormy16/stormy16-lib2-ctzhi2.c: Move to
2429         ../libgcc/config/stormy16/ctzhi2.c.
2430         * config/stormy16/stormy16-lib2-divsi3.c: Move to
2431         ../libgcc/config/stormy16/divsi3.c.
2432         * config/stormy16/stormy16-lib2-ffshi2.c: Move to
2433         ../libgcc/config/stormy16/ffshi2.c.
2434         * config/stormy16/stormy16-lib2-lshrsi3.c: Move to
2435         ../libgcc/config/stormy16/lshrsi3.c.
2436         * config/stormy16/stormy16-lib2-modsi3.c: Move to
2437         ../libgcc/config/stormy16/modsi3.c.
2438         * config/stormy16/stormy16-lib2-parityhi2.c: Move to
2439         ../libgcc/config/stormy16/parityhi2.c.
2440         * config/stormy16/stormy16-lib2-popcounthi2.c: Move to
2441         ../libgcc/config/stormy16/popcounthi2.c.
2442         * config/stormy16/stormy16-lib2-ucmpsi2.c: Move to
2443         ../libgcc/config/stormy16/ucmpsi2.c.
2444         * config/stormy16/stormy16-lib2-udivmodsi4.c: Move to
2445         ../libgcc/config/stormy16/udivmodsi4.c.
2446         * config/stormy16/stormy16-lib2-udivsi3.c: Move to
2447         ../libgcc/config/stormy16/udivsi3.c.
2448         * config/stormy16/stormy16-lib2-umodsi3.c: Move to
2449         ../libgcc/config/stormy16/umodsi3.c.
2450         * config/stormy16/t-stormy16: Move to ../libgcc/config/t-stormy16.
2451         * config/v850/t-v850 (INSTALL_LIBGCC): Remove.
2452         * config/xtensa/lib2funcs.S: Move to ../libgcc/config/xtensa.
2453         * config/xtensa/t-elf: Remove.
2454         * config/xtensa/t-xtensa (LIB2FUNCS_EXTRA): Remove.
2455         * config.gcc (*-*-freebsd*): Remove t-freebsd, t-freebsd-thread
2456         from tmake_file.
2457         (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu, *-*-knetbsd*-gnu,
2458         *-*-gnu*, *-*-kopensolaris*-gnu): Remove t-linux from tmake_file.
2459         (*-*-netbsd*): Remove t-libgcc-pic from tmake_file.
2460         (*-*-openbsd*): Likewise.
2461         Remove t-openbsd-thread for posix threads.
2462         (alpha*-*-linux*): Remove alpha/t-alpha, alpha/t-ieee from tmake_file.
2463         (alpha*-*-freebsd*): Likewise.
2464         (alpha*-*-netbsd*): Likewise.
2465         (alpha*-*-openbsd*): Likewise.
2466         (alpha64-dec-*vms*): Likewise.
2467         (alpha*-dec-*vms*): Likewise.
2468         (arm*-*-netbsdelf*): Remove arm/t-netbsd from tmake_file.
2469         (arm*-*-linux*): Remove t-linux from tmake_file.
2470         Remove arm/t-bpabi from tmake_file for arm*-*-linux-*eabi.
2471         (arm*-*-uclinux*): Remove arm/t-bpabi from tmake_file for
2472         arm*-*-uclinux*eabi.
2473         (arm*-*-eabi*, arm*-*-symbianelf* ): Remove arm/t-bpabi from
2474         tmake_file for arm*-*-eabi*.
2475         (fr30-*-elf): Remove tmake_file.
2476         (hppa*64*-*-linux*): Remove tmake_file.
2477         (hppa*-*-linux*): Likewise.
2478         (hppa[12]*-*-hpux10*): Remove pa/t-pa-hpux10, pa/t-pa-hpux from
2479         tmake_file.
2480         (hppa*64*-*-hpux11*): Remove pa/t-pa64, pa/t-pa-hpux from tmake_file.
2481         (hppa[12]*-*-hpux11*): Remove pa/t-pa-hpux11, pa/t-pa-hpux from
2482         tmake_file.
2483         (i[34567]86-*-elf*): Remove tmake_file.
2484         (x86_64-*-elf*): Likewise.
2485         (i[34567]86-*-nto-qnx*): Likewise.
2486         (i[34567]86-*-cygwin*): Remove i386/t-cygwin from tmake_file.
2487         (i[34567]86-*-mingw*, x86_64-*-mingw*): Remove i386/t-gthr-win32
2488         from tmake_file if using win32 threads.
2489         (iq2000*-*-elf*): Remove tmake-file.
2490         (microblaze*-linux*): Likewise.
2491         (sh-*-elf*, sh[12346l]*-*-elf*, sh-*-linux*)
2492         (sh[2346lbe]*-*-linux*, sh-*-netbsdelf*, shl*-*-netbsdelf*)
2493         (sh5-*-netbsd*, sh5l*-*-netbsd*, sh64-*-netbsd*)
2494         (sh64l*-*-netbsd*): Remove sh/t-netbsd from tmake_file for
2495         sh5*-*-netbsd*, sh64*-netbsd*, *-*-netbsd.
2496         (xtensa*-*-elf*): Remove tmake_file.
2497
2498 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2499
2500         * Makefile.in (LIB1ASMSRC): Don't export.
2501         (libgcc.mvars): Don't emit LIB1ASMFUNCS, LIB1ASMSRC.
2502         * config/arm/arm.c: Update lib1funcs.asm filename.
2503         * config/arm/linux-eabi.h: Likewise.
2504         * config/arm/bpabi-v6m.S, config/arm/bpabi.S,
2505         config/arm/ieee754-df.S, config/arm/ieee754-sf.S: Move to
2506         ../libgcc/config/arm.
2507         * config/arm/lib1funcs.asm: Move to ../libgcc/config/arm/lib1funcs.S.
2508         * config/arm/t-arm (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2509         * config/arm/t-arm-elf (LIB1ASMFUNCS): Remove.
2510         * config/arm/t-bpabi: Likewise.
2511         * config/arm/t-linux (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2512         * config/arm/t-linux-eabi (LIB1ASMFUNCS): Remove.
2513         * config/arm/t-strongarm-elf: Likewise.
2514         * config/arm/t-symbian: Likewise.
2515         * config/arm/t-vxworks: Likewise.
2516         * config/arm/t-wince-pe: Likewise.
2517         * config/avr/libgcc.S: Move to ../libgcc/config/avr.
2518         * config/avr/t-avr (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2519         * config/bfin/lib1funcs.asm: Move to ../libgcc/config/bfin/lib1funcs.S.
2520         * config/bfin/t-bfin: Remove.
2521         * config/bfin/t-bfin-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2522         * config/bfin/t-bfin-linux: Likewise.
2523         * config/bfin/t-bfin-uclinux: Likewise.
2524         * config/c6x/lib1funcs.asm: Move to ../libgcc/config/c6x/lib1funcs.S.
2525         * config/c6x/t-c6x-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2526         * config/fr30/lib1funcs.asm: Move to ../libgcc/config/fr30/lib1funcs.S.
2527         * config/fr30/t-fr30 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2528         * config/frv/lib1funcs.asm: Move to ../libgcc/config/frv/lib1funcs.S.
2529         * config/frv/t-frv (CROSS_LIBGCC1, LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2530         * config/h8300/fixunssfsi.c: Update lib1funcs.asm filename.
2531         * config/h8300/lib1funcs.asm: Move to
2532         ../libgcc/config/h8300/lib1funcs.S.
2533         * config/h8300/t-h8300 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2534         * config/i386/cygwin.asm: Move to ../libgcc/config/i386/cygwin.S.
2535         * config/i386/t-cygming (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2536         * config/i386/t-interix: Likewise.
2537         * config/ia64/lib1funcs.asm: Move to ../libgcc/config/ia64/lib1funcs.S.
2538         * config/ia64/t-hpux (LIB1ASMFUNCS, LIBGCC1_TEST): Remove.
2539         * config/ia64/t-ia64 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2540         * config/iq2000/t-iq2000 (LIBGCC1, CROSS_LIBGCC1): Remove.
2541         * config/m32c/m32c.c: Update m32c-lib1.S filename.
2542         * config/m32c/m32c-lib1.S: Move to ../libgcc/config/m32c/lib1funcs.S.
2543         * config/m32c/t-m32c (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2544         * config/m32r/t-linux (CROSS_LIBGCC1, LIBGCC1, LIBGCC1_TEST): Remove.
2545         * config/m68k/lb1sf68.asm: Move to ../libgcc/config/m68k/lb1sf68.S.
2546         * config/m68k/t-floatlib (LIB1ASMSRC, LIB1ASMFUNCS): New file.
2547         * config/mcore/lib1.asm: Move to ../libgcc/config/mcore/lib1funcs.S.
2548         * config/mcore/t-mcore (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2549         * config/mep/mep-lib1.asm: Move to ../libgcc/config/mep/lib1funcs.S.
2550         * config/mep/t-mep (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2551         * config/mips/mips16.S: Move to ../libgcc/config/mips.
2552         * config/mips/t-libgcc-mips16: Remove.
2553         * config/mips/t-sr71k (LIBGCC1, CROSS_LIBGCC1): Remove.
2554         * config/pa/milli64.S: Move to ../libgcc/config/pa.
2555         * config/pa/t-linux (LIB1ASMFUNCS, LIB1ASMSRC): Remove.
2556         * config/pa/t-linux64: Likewise.
2557         * config/picochip/libgccExtras/fake_libgcc.asm: Move to
2558         ../libgcc/config/picochip/lib1funcs.S.
2559         * config/picochip/t-picochip (LIB1ASMFUNCS, LIB1ASMSRC): Remove.
2560         * config/sh/lib1funcs.asm: Move to ../libgcc/config/sh/lib1funcs.S.
2561         * config/sh/lib1funcs.h: Move to ../libgcc/config/sh.
2562         * config/sh/sh.h: Update lib1funcs.asm filename.
2563         * config/sh/t-linux (LIB1ASMFUNCS_CACHE): Remove.
2564         * config/sh/t-netbsd: Likewise.
2565         * config/sh/t-sh (LIB1ASMSRC, LIB1ASMFUNCS, LIB1ASMFUNCS_CACHE):
2566         Remove.
2567         * config/sh/t-sh64 (LIB1ASMFUNCS): Remove.
2568         * config/sparc/lb1spc.asm: Move to ../libgcc/config/sparc/lb1spc.S.
2569         * config/sparc/lb1spl.asm: Remove.
2570         * config/sparc/t-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2571         * config/sparc/t-leon: Likewise.
2572         * config/spu/t-spu-elf (LIBGCC1, CROSS_LIBGCC1): Remove.
2573         * config/v850/lib1funcs.asm: Move to ../libgcc/config/v850/lib1funcs.S.
2574         * config/v850/t-v850 (LIB1ASMSRC, LIB1ASMFUNCS): Remove
2575         * config/vax/lib1funcs.asm: Move to ../libgcc/config/vax/lib1funcs.S.
2576         * config/vax/t-linux: Remove.
2577         * config/xtensa/ieee754-df.S, config/xtensa/ieee754-sf.S: Move to
2578         ../libgcc/config/xtensa.
2579         * config/xtensa/lib1funcs.asm: Move to
2580         ../libgcc/config/xtensa/lib1funcs.S.
2581         * config/xtensa/t-xtensa (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2582         * config.gcc (bfin*-rtems*): Remove bfin/t-bfin from tmake_file.
2583         (bfin*-*): Likewise.
2584         (mips64*-*-linux*, mipsisa64*-*-linux*): Remove
2585         mips/t-libgcc-mips16 from tmake_file.
2586         (mips*-*-linux*): Likewise.
2587         (mips*-sde-elf*): Likewise.
2588         (mipsisa32-*-elf*, mipsisa32el-*-elf*, mipsisa32r2-*-elf*)
2589         (mipsisa32r2el-*-elf*, mipsisa64-*-elf*, mipsisa64el-*-elf*)
2590         (mipsisa64r2-*-elf*, mipsisa64r2el-*-elf*): Likewise.
2591         (mipsisa64sb1-*-elf*, mipsisa64sb1el-*-elf*): Likewise.
2592         (mips-*-elf*, mipsel-*-elf*): Likewise.
2593         (mips64-*-elf*, mips64el-*-elf*): Likewise.
2594         (mips64orion-*-elf*, mips64orionel-*-elf*): Likewise.
2595         (mips*-*-rtems*): Likewise.
2596         (mipstx39-*-elf*, mipstx39el-*-elf*): Likewise.
2597         (vax-*-linux*): Remove vax/t-linux from tmake_file.
2598
2599 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2600
2601         * config.gcc (extra_parts): Remove.
2602         (*-*-freebsd*): Remove extra_parts.
2603         (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu, *-*-knetbsd*-gnu,
2604         *-*-gnu*, *-*-kopensolaris*-gnu): Likewise.
2605         (*-*-netbsd*): Remove t-libc-ok, t-netbsd from tmake_file.
2606         Remove extra_parts for *-*-netbsd*1.[7-9]*, *-*-netbsd[2-9]*,
2607         *-*-netbsdelf[2-9]*.
2608         (*-*-openbsd*): Remove t-libc-ok from tmake_file.
2609         (alpha*-*-linux*): Remove extra_parts.
2610         (alpha*-*-freebsd*): Likewise.
2611         (bfin*-linux-uclibc*): Likewise.
2612         (fr30-*-elf): Likewise.
2613         (moxie-*-elf): Likewise.
2614         (moxie-*-uclinux*): Likewise.
2615         (h8300-*-rtems*): Remove h8300/t-elf from tmake_file.
2616         (h8300-*-elf*): Likewise.
2617         (hppa*64*-*-hpux11*): Remove extra_parts.
2618         (i[34567]86-*-elf*): Remove i386/t-i386elf, i386/t-crtstuff from
2619         tmake_file.
2620         (x86_64-*-elf*): Likewise.
2621         (i[34567]86-*-freebsd*): Remove tmake_file.
2622         (x86_64-*-freebsd*): Likewise.
2623         (x86_64-*-netbsd*): Likewise.
2624         (i[34567]86-*-openbsd2.*, i[34567]86-*openbsd3.[0123]): Remove
2625         t-libc-ok from tmake_file.
2626         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
2627         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
2628         i[34567]86-*-kopensolaris*-gnu): Remove i386/t-crtstuff from
2629         tmake_file.
2630         Remove extra_parts.
2631         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
2632         Remove i386/t-crtstuff from tmake_file.
2633         (i[34567]86-*-lynxos*): Likewise.
2634         Remove extra_parts.
2635         (ia64*-*-elf*): Remove extra_parts.
2636         (ia64*-*-freebsd*): Likewise.
2637         (ia64*-*-linux*): Likewise.
2638         (ia64-hp-*vms*): Remove ia64/t-vms from tmake_file.
2639         (m32r-*-elf*): Remove extra_parts.
2640         (m32rle-*-elf*): Likewise.
2641         (m32r-*-rtems*): Likewise.
2642         (m68k-*-elf*, fido-*-elf*): Likewise.
2643         (m68k*-*-openbsd*): Remove t-libc-ok from tmake_file.
2644         (m68k-*-rtems*): Remove extra_parts.
2645         (mep-*-*): Likewise.
2646         (microblaze*-linux*): Likewise.
2647         (mips64*-*-linux*, mipsisa64*-*-linux*): Likewise.
2648         (mips*-*-linux*): Likewise.
2649         (powerpc-*-lynxos*): Likewise.
2650         (s390x-ibm-tpf*): Likewise.
2651         (score-*-elf): Likewise.
2652         Remove tmake_file.
2653         (sh-*-elf*, sh[12346l]*-*-elf*, sh-*-linux*, sh[2346lbe]*-*-linux*,
2654         sh-*-netbsdelf*, shl*-*-netbsdelf*, sh5-*-netbsd*, sh5l*-*-netbsd*,
2655         sh64-*-netbsd*, sh64l*-*-netbsd*): Remove sh/t-elf from tmake_file.
2656         Remove sh/t-superh from tmake_file for sh*-superh-elf.
2657         Remove sh/t-linux64 from tmake_file for sh64*-*-linux*.
2658         (sh-*-rtems*): Remove sh/t-elf from tmake_file.
2659         (sh-wrs-vxworks): Likewise.
2660         (sparc-*-linux*): Remove extra_parts.
2661         (sparc64-*-linux*): Likewise.
2662         (sparc64-*-freebsd*, ultrasparc-*-freebsd*): Likewise.
2663         (xstormy16-*-elf): Likewise.
2664         (xtensa*-*-linux*): Remove xtensa/t-linux from tmake_file.
2665         (am33_2.0-*-linux*): Remove extra_parts.
2666         * configure.ac (extra_parts): Don't substitute.
2667         * configure: Regenerate.
2668         * crtstuff.c: Move to ../libgcc.
2669         * Makefile.in (CRTSTUFF_CFLAGS): Remove.
2670         (EXTRA_PARTS): Remove.
2671         (CRTSTUFF_T_CFLAGS): Remove.
2672         (MOSTLYCLEANFILES): Remove $(EXTRA_PARTS).
2673         (GCC_EXTRA_PARTS): Remove.
2674         (libgcc.mvars): Remove GCC_EXTRA_PARTS, CRTSTUFF_CFLAGS,
2675         CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S.
2676         Emit GCC_CFLAGS, INHIBIT_LIBC_CFLAGS.
2677         ($(T)crtbegin.o, $(T)crtend.o, $(T)crtbeginS.o, $(T)crtendS.o)
2678         ($(T)crtbeginT.o): Remove.
2679         * config/alpha/t-vms (EXTRA_PARTS): Remove.
2680         ($(T)vms-dwarf2.o, $(T)vms-dwarf2eh.o): Remove.
2681         * config/alpha/vms-dwarf2.asm: Move to
2682         ../libgcc/config/alpha/vms-dwarf2.S.
2683         * config/alpha/vms-dwarf2eh.asm: Move to
2684         ../libgcc/config/alpha/vms-dwarf2eh.S.
2685         * config/arm/crti.asm: Move to ../libgcc/config/arm/crti.S.
2686         * config/arm/crtn.asm: Move to ../libgcc/config/arm/crtn.S.
2687         * config/arm/t-arm-elf (EXTRA_MULTILIB_PARTS): Remove.
2688         ($(T)crti.o, $(T)crtn.o): Remove.
2689         * config/arm/t-linux: Remove comment.
2690         * config/arm/t-linux-eabi (EXTRA_MULTILIB_PARTS): Remove.
2691         * config/arm/t-strongarm-elf (EXTRA_MULTILIB_PARTS): Remove.
2692         ($(T)crti.o, $(T)crtn.o): Remove.
2693         * config/arm/t-symbian (EXTRA_MULTILIB_PARTS): Remove.
2694         * config/bfin/crti.s: Move to ../libgcc/config/bfin/crti.S.
2695         * config/bfin/crtn.s: Move to ../libgcc/config/bfin/crtn.S.
2696         * config/bfin/crtlibid.s: Move to ../libgcc/config/bfin/crtlibid.S.
2697         * config/bfin/t-bfin (EXTRA_PARTS): Remove.
2698         ($(T)crti.o, $(T)crtn.o): Remove.
2699         * config/bfin/t-bfin-elf (CRTSTUFF_T_CFLAGS): Remove.
2700         ($(T)crti.o, $(T)crtn.o, $(T)crtlibid.o): Remove
2701         (EXTRA_MULTILIB_PARTS): Remove.
2702         * config/bfin/t-bfin-linux (CRTSTUFF_T_CFLAGS,
2703         EXTRA_MULTILIB_PARTS): Remove.
2704         * config/bfin/t-bfin-uclinux (CRTSTUFF_T_CFLAGS): Remove.
2705         ($(T)crtlibid.o): Remove.
2706         (EXTRA_MULTILIB_PARTS): Remove.
2707         * config/c6x/crti.s: Move to ../libgcc/config/c6x/crti.S.
2708         * config/c6x/crtn.s: Move to ../libgcc/config/c6x/crtn.S.
2709         * config/c6x/t-c6x-elf ($(T)crti.o, $(T)crtn.o): Remove.
2710         (EXTRA_MULTILIB_PARTS): Remove.
2711         (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
2712         * config/c6x/t-c6x-uclinux (CRTSTUFF_T_CFLAGS,
2713         CRTSTUFF_T_CFLAGS_S): Remove.
2714         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Remove.
2715         * config/cris/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
2716         * config/fr30/crti.asm: Move to ../libgcc/config/fr30/crti.S.
2717         * config/fr30/crtn.asm: Move to ../libgcc/config/fr30/crtn.S.
2718         * config/fr30/t-fr30 ($(T)crti.o, $(T)crtn.o): Remove.
2719         * config/frv/frvbegin.c, config/frv/frvend.c: Move to
2720         ../libgcc/config/frv.
2721         * config/frv/t-frv (EXTRA_MULTILIB_PARTS): Remove.
2722         (FRVSTUFF_CFLAGS, $(T)frvbegin$(objext), $(T)frvend$(objext)): Remove.
2723         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove.
2724         (CRTSTUFF_T_CFLAGS): Remove.
2725         * config/h8300/crti.asm: Move to ../libgcc/config/h8300/crti.S.
2726         * config/h8300/crtn.asm: Move to ../libgcc/config/h8300/crtn.S.
2727         * config/h8300/t-elf: Remove.
2728         * config/i386/cygming-crtbegin.c, config/i386/cygming-crtend.c:
2729         Move to ../libgcc/config/i386.
2730         * config/i386/t-crtstuff: Remove.
2731         * config/i386/t-i386elf: Remove.
2732         * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Remove.
2733         * config/i386/t-nto (CRTSTUFF_T_CFLAGS, EXTRA_PARTS): Remove.
2734         * config/ia64/crtbegin.asm: Move to ../libgcc/config/ia64/crtbegin.S.
2735         * config/ia64/crtend.asm: Move to ../libgcc/config/ia64/crtend.S.
2736         * config/ia64/crti.asm: Move to ../libgcc/config/ia64/crti.S.
2737         * config/ia64/crtn.asm: Move to ../libgcc/config/ia64/crtn.S.
2738         * config/ia64/t-vms: Remove.
2739         * config/ia64/vms-crtinit.asm: Move to
2740         ../libgcc/config/ia64/vms-crtinit.S.
2741         * config/m32c/t-m32c (EXTRA_MULTILIB_PARTS): Remove.
2742         * config/m32r/initfini.c: Move to ../libgcc/config/m32r.
2743         * config/m32r/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
2744         * config/m32r/t-m32r (CRTSTUFF_T_CFLAGS): Remove.
2745         ($(T)crtinit.o, $(T)crtfini.o): Remove.
2746         (m32rx, m32r2): Remove.
2747         (EXTRA_MULTILIB_PARTS): Remove.
2748         * config/m68k/crti.s: Move to ../libgcc/config/m68k/crti.S.
2749         * config/m68k/crtn.s: Move to ../libgcc/config/m68k/crtn.S.
2750         * config/m68k/t-crtstuff: Remove.
2751         * config/m68k/t-linux (EXTRA_MULTILIB_PARTS): Remove.
2752         * config/m68k/t-m68kelf: Remove.
2753         * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Remove.
2754         * config/mcore/crti.asm: Move to ../libgcc/config/mcore/crti.S.
2755         * config/mcore/crtn.asm: Move to ../libgcc/config/mcore/crtn.S.
2756         * config/mcore/t-mcore ($(T)crti.o, $(T)crtn.o): Remove.
2757         (EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Remove.
2758         * config/mep/t-mep (CRTSTUFF_CFLAGS): Remove.
2759         (EXTRA_MULTILIB_PARTS): Remove.
2760         * config/microblaze/crti.s: Move to ../libgcc/config/microblaze/crti.S.
2761         * config/microblaze/crtn.s: Move to ../libgcc/config/microblaze/crtn.S.
2762         * config/microblaze/t-microblaze (EXTRA_MULTILIB_PARTS,
2763         EXTRA_PARTS): Remove.
2764         ($(T)crti$(objext), $(T)crtn$(objext)): Remove.
2765         * config/mips/crti.asm: Move to ../libgcc/config/mips/crti.S.
2766         * config/mips/crtn.asm: Move to ../libgcc/config/mips/crtn.S.
2767         * config/mips/t-elf (CRTSTUFF_T_CFLAGS): Remove.
2768         ($(T)crti.o, $(T)crtn.o): Remove.
2769         (EXTRA_MULTILIB_PARTS): Remove.
2770         * config/mips/t-isa3264: Likewise.
2771         * config/mips/t-linux64 (EXTRA_MULTILIB_PARTS): Remove.
2772         * config/mips/t-r3900 (EXTRA_MULTILIB_PARTS): Remove.
2773         (CRTSTUFF_T_CFLAGS): Remove.
2774         * config/mips/t-sde (CRTSTUFF_T_CFLAGS): Remove.
2775         ($(T)crti.o, $(T)crtn.o): Remove.
2776         (EXTRA_MULTILIB_PARTS): Remove.
2777         * config/mips/t-sr71k (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS):
2778         Remove.
2779         ($(T)crti.o, $(T)crtn.o): Remove.
2780         * config/mips/t-st (EXTRA_MULTILIB_PARTS): Remove.
2781         * config/mips/t-vr (CRTSTUFF_T_CFLAGS): Remove.
2782         (EXTRA_MULTILIB_PARTS): Remove.
2783         ($(T)crti.o, $(T)crtn.o): Remove.
2784         * config/mmix/crti.asm: Move to ../libgcc/config/crti.S.
2785         * config/mmix/crtn.asm: Move to ../libgcc/config/crtn.S.
2786         * config/mmix/t-mmix (CRTSTUFF_T_CFLAGS): Remove.
2787         * config/moxie/crti.asm, config/moxie/crtn.asm: Remove.
2788         * config/pa/stublib.c: Move to libgcc/config/pa.
2789         * config/pa/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
2790         * config/pa/t-linux64 (CRTSTUFF_T_CFLAGS_S): Remove.
2791         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS, stublib.c): Remove.
2792         (pthread_default_stacksize_np-stub.o, pthread_mutex_lock-stub.o)
2793         (pthread_mutex_unlock-stub.o, pthread_once-stub.o)
2794         ($(T)libgcc_stub.a): Remove.
2795         * config/pa/t-pa64 (LIBGCCSTUB_OBJS, stublib.c): Remove.
2796         (rfi-stub.o, dfi-stub.o, cxaf-stub.o, jvrc-stub.o)
2797         (pthread_default_stacksize_np-stub.o, pthread_mutex_lock-stub.o)
2798         (pthread_mutex_unlock-stub.o, pthread_once-stub.o)
2799         ($(T)libgcc_stub.a): Remove.
2800         * config/rs6000/eabi-cn.asm: Move to
2801         ../../../libgcc/config/rs6000/eabi-cn.S.
2802         * config/rs6000/eabi-ci.asm: Move to
2803         ../../../libgcc/config/rs6000/eabi-ci.S.
2804         * config/rs6000/sol-ci.asm: Move to
2805         ../../../libgcc/config/rs6000/sol-ci.S.
2806         * config/rs6000/sol-cn.asm: Move to
2807         ../../../libgcc/config/rs6000/sol-cn.S.
2808         * config/rs6000/t-lynx (EXTRA_MULTILIB_PARTS): Remove.
2809         (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
2810         * config/rs6000/t-netbsd (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S):
2811         Remove.
2812         (EXTRA_MULTILIB_PARTS): Remove.
2813         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Remove.
2814         (ecrti.S, ecrtn.S, ncrti.S, ncrtn.S): Remove.
2815         ($(T)ecrti$(objext), $(T)ecrtn$(objext), $(T)ncrti$(objext),
2816         ($(T)ncrtn$(objext)): Remove.
2817         (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
2818         * config/rs6000/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
2819         * config/rx/t-rx (EXTRA_MULTILIB_PARTS): Remove.
2820         * config/score/crti.asm: Move to ../libgcc/config/score/crti.S.
2821         * config/score/crtn.asm: Move to ../libgcc/config/score/crtn.S.
2822         * config/score/t-score-elf: Remove.
2823         * config/sh/crt1.asm: Move to ../libgcc/config/sh/crt1.S.
2824         * config/sh/crti.asm: Move to ../libgcc/config/sh/crti.S.
2825         * config/sh/crtn.asm: Move to ../libgcc/config/sh/crtn.S.
2826         * config/sh/lib1funcs-4-300.asm: Move to
2827         ../../../libgcc/config/sh/lib1funcs-4-300.S.
2828         * config/sh/lib1funcs-Os-4-200.asm: Move to
2829         ../libgcc/config/sh/lib1funcs-Os-4-200.S.
2830         * config/sh/t-elf: Remove.
2831         * config/sh/t-linux (EXTRA_MULTILIB_PARTS): Remove.
2832         * config/sh/t-linux64: Remove.
2833         * config/sh/t-netbsd (EXTRA_MULTILIB_PARTS): Remove.
2834         * config/sh/t-sh ($(T)crt1.o, $(T)crti.o, $(T)crtn.o): Remove.
2835         (IC_EXTRA_PARTS, OPT_EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Remove.
2836         ($(T)ic_invalidate_array_4-100.o)
2837         ($(T)libic_invalidate_array_4-100.a)
2838         ($(T)ic_invalidate_array_4-200.o)
2839         ($(T)libic_invalidate_array_4-200.a, $(T)ic_invalidate_array_4a.o)
2840         ($(T)libic_invalidate_array_4a.a, $(T)sdivsi3_i4i-Os-4-200.o)
2841         ($(T)udivsi3_i4i-Os-4-200.o, $(T)unwind-dw2-Os-4-200.o)
2842         ($(T)libgcc-Os-4-200.a, $(T)div_table-4-300.o)
2843         ($(T)libgcc-4-300.a): Remove.
2844         * config/sh/t-superh: Remove.
2845         * config/sh/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
2846         * config/sparc/t-linux64 (CRTSTUFF_T_CFLAGS): Remove.
2847         * config/spu/cache.S: Move to ../libgcc/config/spu.
2848         * config/spu/cachemgr.c: Move to ../libgcc/config/spu.
2849         * config/spu/t-spu-elf (CRTSTUFF_T_CFLAGS): Remove.
2850         (EXTRA_MULTILIB_PARTS): Remove.
2851         ($(T)cachemgr.o, $(T)cachemgr_nonatomic.o, $(T)libgcc_%.a): Remove.
2852         ($(T)cache8k.o, $(T)cache16k.o, $(T)cache32k.o, $(T)cache32k.o)
2853         ($(T)cache64k.o, $(T)cache128k.o): Remove.
2854         * config/t-freebsd (CRTSTUFF_T_CFLAGS_S): Remove.
2855         * config/t-libc-ok: Remove.
2856         * config/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
2857         * config/t-lynx (CRTSTUFF_T_CFLAGS_S): Remove.
2858         * config/t-netbsd: Remove.
2859         * config/t-svr4 (CRTSTUFF_T_CFLAGS_S): Remove.
2860         * config/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
2861         * config/vms/t-vms (VMS_EXTRA_PARTS): Remove.
2862         ($(T)vcrt0.o, $(T)pcrt0.o): Remove.
2863         * config/vms/vms-ucrt0.c: Move to ../libgcc/config/vms.
2864         * config/xtensa/crti.asm: Move to ../libgcc/config/xtensa/crti.S.
2865         * config/xtensa/crtn.asm: Move to ../libgcc/config/xtensa/crtn.S.
2866         * config/xtensa/t-elf (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
2867         (EXTRA_MULTILIB_PARTS): Remove.
2868         * config/xtensa/t-linux: Remove.
2869         * config/xtensa/t-xtensa ($(T)crti.o, $(T)crtn.o): Remove.
2870
2871 2011-11-02  Uros Bizjak  <ubizjak@gmail.com>
2872
2873         * config/i386/i386.c (bdesc_args) [IX86_BUILTIN_CVTTPD2DQ256]: Use
2874         CODE_FOR_fix_truncv4dfv4si2, not CODE_FOR_fix_truncv4sfv4si2.
2875
2876 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2877
2878         PR translation/45116
2879         * Makefile.in (slibdir): Remove, don't export.
2880         (SHLIB_NM_FLAGS): Remove.
2881         (libgcc.mvars): Don't emit SHLIB_LINK, SHLIB_INSTALL,
2882         SHLIB_DLLDIR, SHLIB_EXT, SHLIB_MKMAP, SHLIB_MKMAP_OPTS,
2883         SHLIB_MAPFILES, SHLIB_NM_FLAGS.
2884         (DRIVER_DEFINES): Test SHLIB instead of SHLIB_LINK.
2885         (gcc.o): Pass SHLIB instead of SHLIB_LINK.
2886         (gccspec.o): Likewise.
2887         (installdirs): Don't create $(DESTDIR)$(slibdir).
2888         * configure.ac (slibdir): Remove.
2889         * configure: Regenerate.
2890         * libgcc-libsystem.ver: Move to ../libgcc/config.
2891         * mkmap-flat.awk, mkmap-symver.awk: Move to ../libgcc.
2892         * config/libgcc-glibc.ver: Move to ../libgcc/config.
2893         * config/t-libunwind (SHLIB_LC): Remove.
2894         * config/t-linux (SHLIB_MAPFILES): Remove.
2895         * config/t-slibgcc-dummy: Rename to config/t-slibgcc.
2896         * config/t-slibgcc-elf-ver: Remove.
2897         * config/t-slibgcc-libgcc, config/t-slibgcc-nolc-override: Move to
2898         ../libgcc/config.
2899         * config/alpha/libgcc-alpha-ldbl.ver, config/alpha/t-linux: Move
2900         to ../libgcc/config/alpha.
2901         * config/alpha/t-vms (shlib_version, SHLIB_EXT, SHLIB_OBJS,
2902         SHLIB_NAME, SHLIB_MULTILIB, SHLIB_INSTALL, SHLIB_SYMVEC,
2903         SHLIB_SYMVECX2, SHLIB_LINK): Remove.
2904         * config/arm/libgcc-bpabi.ver: Move to ../libgcc/config/arm.
2905         * config/arm/t-bpabi (SHLIB_MAPFILES): Remove.
2906         * config/arm/t-netbsd (SHLIB_EXT, SHLIB_NAME, SHLIB_SONAME,
2907         SHLIB_OBJS, SHLIB_LINK, SHLIB_INSTALL): Remove.
2908         * config/arm/t-symbian (SHLIB_LC): Remove.
2909         * config/bfin/libgcc-bfin.ver: Move to
2910         ../libgcc/config/bfin/libgcc-glibc.ver.
2911         * config/bfin/t-bfin-linux (SHLIB_MAPFILES): Remove.
2912         * config/c6x/libgcc-c6xeabi.ver: Move to
2913         ../libgcc/config/c6x/libgcc-eabi.ver.
2914         * config/c6x/t-c6x-elf (SHLIB_MAPFILES): Remove.
2915         * config/cris/libgcc.ver: Move to
2916         ../libgcc/config/cris/libgcc-glibc.ver.
2917         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
2918         * config/frv/libgcc-frv.ver: Move to ../libgcc/config/frv.
2919         * config/frv/t-linux (SHLIB_MAPFILES): Remove.
2920         * config/i386/darwin-libgcc.10.4.ver: Move to
2921         ../libgcc/config/i386/libgcc-darwin.10.4.ver.
2922         * config/i386/darwin-libgcc.10.5.ver: Move to
2923         ../libgcc/config/i386/libgcc-darwin.10.5.ver.
2924         * config/i386/libgcc-glibc.ver: Move to ../libgcc/config/i386.
2925         * config/i386/t-cygming (SHLIB_EXT, SHLIB_IMPLIB, SHLIB_SOVERSION,
2926         SHLIB_SONAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_DIR, SHLIB_SLIBDIR_QUAL)
2927         SHLIB_PTHREAD_CFLAG, SHLIB_PTHREAD_LDFLAG, SHLIB_LINK,
2928         SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MKMAP_OPTS, SHLIB_MAPFILES): Remove.
2929         * config/i386/t-cygwin (SHLIB_LC, SHLIB_EH_EXTENSION,
2930         SHLIB_IMPLIB, SHLIB_SONAME, SHLIB_MKMAP_OPTS): Remove.
2931         * config/i386/t-dlldir, config/i386/t-dlldir-x: Move to
2932         ../libgcc/config/i386.
2933         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Move to
2934         ../libgcc/config/i386.
2935         * config/i386/t-linux: Move to ../libgcc/config/i386.
2936         * config/i386/t-mingw-pthread: Move to ../libgcc/config/i386.
2937         * config/i386/t-mingw-w32 (SHLIB_LC): Remove.
2938         * config/i386/t-mingw-w64: Likewise.
2939         * config/i386/t-mingw32: Remove.
2940         * config/ia64/libgcc-glibc.ver, config/ia64/libgcc-ia64.ver: Move
2941         to ../libgcc/config/ia64.
2942         * config/ia64/t-glibc: Remove.
2943         * config/ia64/t-hpux (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL): Remove.
2944         * config/ia64/t-ia64 (SHLIB_MAPFILES): Remove.
2945         * config/ia64/t-vms (shlib_version, SHLIB_EXT, SHLIB_OBJS,
2946         SHLIB_NAME, SHLIB_MULTILIB, SHLIB_INSTALL, SHLIB_LINK): Remove.
2947         * config/ia64/vms_symvec_libgcc_s.opt: Remove.
2948         * config/m32r/libgcc-glibc.ver: Move to ../libgcc/config/m32r.
2949         * config/m32r/t-linux (SHLIB_MAPFILES): Remove.
2950         * config/m68k/t-slibgcc-elf-ver: Move to ../libgcc/config/m68k.
2951         * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Remove.
2952         * config/pa/t-hpux-shlib: Move to ../libgcc/config/pa/t-slibgcc-hpux.
2953         * config/pa/t-slibgcc-dwarf-ver, config/pa/t-slibgcc-sjsj-ver:
2954         Move to ../libgcc/config/pa.
2955         * config/rs6000/darwin-libgcc.10.4.ver: Move to
2956         ../libgcc/config/rs6000/libgcc-darwin.10.4.ver.
2957         * config/rs6000/darwin-libgcc.10.5.ver: Move to
2958         ../libgcc/config/rs6000/libgcc-darwin.10.5.ver.
2959         * config/rs6000/t-aix43 (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL,
2960         SHLIB_LIBS, SHLIB_MKMAP, SHLIB_NM_FLAGS, AR_FLAGS_FOR_TARGET): Remove.
2961         * config/rs6000/t-aix52: Likewise.
2962         * config/sh/libgcc-excl.ver, config/sh/libgcc-glibc.ver: Move to
2963         ../libgcc/config/sh.
2964         * config/sparc/libgcc-sparc-glibc.ver: Move to
2965         ../libgcc/config/sparc/libgcc-glibc.ver.
2966         * config/sparc/t-linux: Move to ../libgcc/config/sparc.
2967         * config/xtensa/t-linux (SHLIB_MAPFILES): Remove.
2968         * config/xtensa/libgcc-xtensa.ver: Move to
2969         ../libgcc/config/xtensa/libgcc-glibc.ver.
2970         * config.gcc (*-*-freebsd*): Replace t-slibgcc-elf-ver with
2971         t-slibgcc in tmake_file.
2972         Remove t-slibgcc-nolc-override for *-*-freebsd[34],
2973         *-*-freebsd[34].* with pthreads.
2974         (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu,
2975         *-*-knetbsd*-gnu, *-*-gnu*, *-*-kopensolaris*-gnu): Replace
2976         t-slibgcc-elf-ver with t-slibgcc in tmake_file.
2977         (*-*-netbsd*): Likewise.
2978         (*-*-solaris2*): Replace t-slibgcc-dummy with t-slibgcc in tmake_file.
2979         (*-*-*vms*): Add t-slibgcc to tmake_file.
2980         (alpha*-*-linux*): Remove alpha/t-linux from tmake_file.
2981         (alpha*-dec-osf5.1*): Replace t-slibgcc-dummy with t-slibgcc in
2982         tmake_file.
2983         (arm*-*-linux*): Remove t-slibgcc-libgcc from tmake_file for
2984         arm*-*-linux-*eabi.
2985         (bfin*-linux-uclibc*): Replace t-slibgcc-dummy with t-slibgcc in
2986         tmake_file.
2987         (crisv32-*-linux*, cris-*-linux*): Likewise.
2988         (hppa*-*-linux*): Remove t-slibgcc-libgcc, pa/t-slibgcc-sjlj-ver,
2989         pa/t-slibgcc-dwarf-ver from tmake_file.
2990         (hppa[12]*-*-hpux10*): Replace pa/t-hpux-shlib with t-slibgcc in
2991         tmake_file.
2992         Remove pa/t-slibgcc-sjlj-ver, pa/t-slibgcc-dwarf-ver from tmake_file.
2993         (hppa*64*-*-hpux11*): Likewise.
2994         (hppa[12]*-*-hpux11*): Likewise.
2995         (i[34567]86-*-darwin*): Replace t-slibgcc-dummy in t-slibgcc in
2996         tmake_file.
2997         (x86_64-*-darwin*): Likewise.
2998         (i[34567]86-*-cygwin*): Remove tmake_eh_file, tmake_dlldir_file.
2999         Add t-slibgcc to tmake_file.
3000         (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
3001         Remove i386/t-mingw32 from tmake_file unless x86_64-w64-*,
3002         i[34567]86-w64-*.
3003         Remove i386/t-mingw-pthread from tmake_file.
3004         (ia64*-*-linux*): Remove ia64/t-glibc from tmake_file.
3005         (ia64*-*-hpux*): Add t-slibgcc to tmake_file.
3006         (ia64-hp-*vms*): Likewise.
3007         (m32r-*-linux*): Replace t-slibgcc-elf-ver with t-slibgcc in
3008         tmake_file.
3009         (m32rle-*-linux*): Likewise.
3010         (m68k-*-linux*): Remove m68k/t-slibgcc-elf-ver from tmake_file.
3011         (microblaze*-linux*): Remove t-slibgcc-elf-ver,
3012         t-slibgcc-nolc-override from tmake_file.
3013         (mips-sgi-irix6.5*): Replace t-slibgcc-dummy with t-slibgcc in
3014         tmake_file.
3015         (powerpc-*-darwin*): Likewise.
3016         (powerpc64-*-darwin*): Likewise.
3017         (powerpc-*-freebsd*): Remove t-slibgcc-libgcc from tmake_file.
3018         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
3019         (rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*): Add
3020         t-slibgcc to tmake_file.
3021         (rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*): Likewise.
3022         (rs6000-ibm-aix5.2.*, powerpc-ibm-aix5.2.*): Likewise.
3023         (rs6000-ibm-aix5.3.*, powerpc-ibm-aix5.3.*): Likewise.
3024         (rs6000-ibm-aix[6789].*, powerpc-ibm-aix[6789].*): Likewise.
3025         (sparc-*-linux*): Remove sparc/t-linux from tmake_file.
3026         (sparc64-*-linux*): Likewise.
3027         (tic6x-*-uclinux): Replace t-slibgcc-elf-ver with t-slibgcc in
3028         tmake_file.
3029         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu,
3030         x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Remove i386/t-linux
3031         from tmake_file.
3032
3033 2011-11-02  Richard Guenther  <rguenther@suse.de>
3034
3035         PR tree-optimization/50902
3036         * tree-vect-stmts.c (vectorizable_load): Properly convert
3037         an invariant initializer element.
3038
3039 2010-11-02  Richard Guenther  <rguenther@suse.de>
3040
3041         PR tree-optimization/50890
3042         * gimple.h (gimple_fold_call): Remove.
3043         * gimple-fold.c (fold_stmt_1): Move all call related code to ...
3044         (gimple_fold_call): ... here.  Make static.  Update the
3045         cannot-inline flag on direct calls.
3046         * ipa-inline.c (early_inliner): Copy the cannot-inline flag
3047         from the statements to the edges.
3048
3049 2011-11-01  Ian Lance Taylor  <iant@google.com>
3050
3051         * godump.c (struct macro_hash_value): Define.
3052         (macro_hash_hashval): New static function.
3053         (macro_hash_eq, macro_hash_del): New static functions.
3054         (go_define): Use macro_hash_value to store values in macro_hash.
3055         Replace an old value on a redefinition.  Don't print anything to
3056         go_dump_file.
3057         (go_undef): Delete the entry from the hash table.
3058         (go_output_typedef): For an enum, use macro_hash_value, and don't
3059         print anything to go_dump_file.
3060         (go_print_macro): New static function.
3061         (go_finish): Traverse macro_hash with go_print_macro.
3062         (dump_go_spec_init): Update macro_hash creation for macro_hash_value.
3063
3064 2011-11-02  Alan Modra  <amodra@gmail.com>
3065
3066         * config/rs6000/rs6000.c (rs6000_code_end): Declare ATTRIBUTE_UNUSED.
3067
3068 2011-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
3069
3070         PR c++/44277
3071         * doc/invoke.texi: Document -Wzero-as-null-pointer-constant.
3072
3073 2011-11-01  Andrew Stubbs  <ams@codesourcery.com>
3074
3075         * config/arm/bpabi.h (BE8_LINK_SPEC): Recognize generic-armv7 tuning.
3076
3077 2011-11-01  Uros Bizjak  <ubizjak@gmail.com>
3078
3079         * config/i386/i386.md (splitters for int-float conversion): Use
3080         SUBREG_REG on SUBREGs in splitter constraints.
3081
3082 2011-11-01  Jakub Jelinek  <jakub@redhat.com>
3083
3084         * config/i386/i386-protos.h (ix86_expand_adjust_ufix_to_sfix_si): New
3085         prototype.
3086         * config/i386/i386.c (ix86_expand_adjust_ufix_to_sfix_si): New
3087         function.
3088         * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): Use it.
3089         (ssepackfltmode): New mode attr.
3090         (vec_pack_ufix_trunc_<mode>): New expander.
3091
3092 2011-11-01  Uros Bizjak  <ubizjak@gmail.com>
3093
3094         PR target/50940
3095         * config/i386/i386.md (floatsi<mode>2_vector_sse_with_temp splitter):
3096         Compare <ssevecmode>mode to V4SFmode, not V4SImode.
3097
3098 2011-11-01  Peter Bergner  <bergner@vnet.ibm.com>
3099
3100         * config.gcc (powerpc*-*-linux*): Add powerpc*-*-linux*ppc476* variant.
3101         * config/rs6000/476.h: New file.
3102         * config/rs6000/476.opt: Likewise.
3103         * config/rs6000/rs6000.h (TARGET_LINK_STACK): New define.
3104         (SET_TARGET_LINK_STACK): Likewise.
3105         (TARGET_ASM_CODE_END): Define.
3106         * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
3107         TARGET_LINK_STACK for -mtune=476 and -mtune=476fp.
3108         (rs6000_legitimize_tls_address): Emit the link stack preserving GOT
3109         code if TARGET_LINK_STACK.
3110         (rs6000_emit_load_toc_table): Likewise.
3111         (output_function_profiler): Likewise
3112         (macho_branch_islands): Likewise
3113         (machopic_output_stub): Likewise
3114         (get_ppc476_thunk_name): New function.
3115         (rs6000_code_end): Likewise.
3116         * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
3117         Convert to a define_expand.
3118         (load_toc_v4_PIC_1_normal): New define_insn.
3119         (load_toc_v4_PIC_1_476): Likewise.
3120         (load_toc_v4_PIC_1b_normal): Likewise.
3121         (load_toc_v4_PIC_1b_476): Likewise.
3122
3123 2011-11-01  Georg-Johann Lay  <avr@gjlay.de>
3124
3125         PR target/50910
3126         * config/avr/avr.opt (-mbranch-cost=): New option.
3127         * config/avr/avr.h (BRANCH_COST): Define to avr_branch_cost.
3128         * config/avr/avr.c (avr_rtx_costs_1): Adjust [U]DIV/[U]MOD costs.
3129         * config/avr/avr.md (*addqi3.lt0, *addhi3.lt0, *addsi3.lt0): New insns.
3130         (*addhi3_zero_extend1): Remove % in constraint of operand 1.
3131         (*addhi3.sign_extend1, *subhi3.sign_extend2): New insns.
3132
3133 2011-11-01  Tom de Vries  <tom@codesourcery.com>
3134
3135         PR tree-optimization/50908
3136         * tree-ssa-tail-merge.c (update_vuses): Now that edges are removed
3137         before update_vuses, test for 1 predecessor rather than two.
3138         (delete_block_update_dominator_info): New function, part of it factored
3139         out of ...
3140         (replace_block_by): Use delete_block_update_dominator_info.  Call
3141         update_vuses after deleting bb1 and updating dominator info, instead of
3142         before.
3143
3144 2011-11-01  David S. Miller  <davem@davemloft.net>
3145
3146         * config/sparc/sparc.c (vector_init_faligndata): New function.
3147         (sparc_expand_vector_init): Use it for V4HImode on VIS1.
3148
3149         * config/sparc/sparc.c (sparc_expand_vcond): New function.
3150         * config/sparc/sparc-protos.h (sparc_expand_vcond): Declare it.
3151         * config/sparc/sparc.md (vcond<mode><mode>): New VIS3 expander.
3152         (vconduv8qiv8qi): Likewise.
3153
3154 2011-11-01  Alexandre Oliva  <aoliva@redhat.com>
3155
3156         PR debug/50869
3157         * cselib.c (cfa_base_preserved_regno): Initialize.
3158         (cselib_expand_value_rtx_1): Don't expand it.
3159         * var-tracking.c (vt_expand_var_loc_chain): Initialize depth.
3160         Check it's only zero if result is NULL.
3161
3162 2011-11-01  Jakub Jelinek  <jakub@redhat.com>
3163
3164         * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): New
3165         expander.
3166
3167         * config/i386/sse.md (sseintvecmode): Remove duplicate modes.
3168         (sseintvecmodelower): New mode iterator.
3169         (floatv8siv8sf2, floatunsv4siv4sf2): Macroize into...
3170         (float<sseintvecmodelower><mode>2): ... this using VF1 iterator.
3171         (floatunsv4siv4sf2): Macroize into...
3172         (floatuns<sseintvecmodelower><mode>2): ... this using VF1 iterator.
3173
3174 2011-10-31  David S. Miller  <davem@davemloft.net>
3175
3176         * config/sparc/sparc.md (cmask patterns): Allow zero operand.
3177
3178         * dwarf2out.c (cached_next_real_insn): New.
3179         (dwarf2out_end_epilogue): Set it to NULL_RTX.
3180         (dwarf2out_var_location): Remove cached_next_real_insn local static.
3181
3182 2011-10-31  Richard Henderson  <rth@redhat.com>
3183
3184         * config/i386/sse.md (floatv8siv8sf2): Rename from avx_cvtdq2ps256.
3185         (floatv4siv4sf2): Rename from sse2_cvtdq2ps.
3186         (floatunsv4siv4sf2): Rename from sse2_cvtudq2ps.
3187         (fix_truncv8sfv8si2): Rename from avx_cvttps2dq256.
3188         (fix_truncv4sfv4si2): Rename from sse2_cvttps2dq.
3189         (floatv4siv4df2): Rename from avx_cvtdq2pd256.
3190         (fix_truncv4dfv4si2): Rename from avx_cvttpd2dq256.
3191         (vec_unpacku_float_hi_v8si): Update for insn pattern name changes.
3192         * config/i386/i386.md (splitters for int-float conversion): Likewise.
3193         * config/i386/i386.c (ix86_split_convert_uns_si_sse): Likewise.
3194         (bdesc_args): Likewise.
3195         (enum ix86_builtins) [IX86_BUILTIN_CVTUDQ2PS]: Remove.
3196         (ix86_vectorize_builtin_conversion): Remove.
3197         (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
3198
3199 2011-10-31  Martin Jambor  <mjambor@suse.cz>
3200
3201         * ipa-prop.c (mark_modified): Moved up in the file.
3202         (is_parm_modified_before_call): Renamed to
3203         is_parm_modified_before_stmt, moved up in the file.
3204         (load_from_unmodified_param): New function.
3205         (compute_complex_assign_jump_func): Also attempt to create pass
3206         through jump functions for values loaded from (addressable)
3207         parameters.
3208
3209 2011-10-31  Jakub Jelinek  <jakub@redhat.com>
3210
3211         * tree-vect-stmts.c (vectorizable_shift): If op1 is vect_external_def
3212         in a loop and has different type from op0, cast it to op0's type
3213         before the loop first.  For slp give up.  Don't crash if op1_vectype
3214         is NULL.
3215
3216 2011-10-31  Paul Brook  <paul@codesourcery.com>
3217
3218         * cgraphunit.c: Don't mark clones as static constructors.
3219
3220 2011-10-31  David Edelsohn  <dje.gcc@gmail.com>
3221
3222         * gcc-ar: Do not include stdio.h.
3223
3224 2011-10-31  Diego Novillo  <dnovillo@google.com>
3225
3226         * tree-streamer-out.c (pack_ts_base_value_fields): Emit
3227         TYPE_ADDR_SPACE.
3228         * tree-streamer-in.c (unpack_ts_base_value_fields): Read
3229         TYPE_ADDR_SPACE.
3230
3231 2011-10-30  David S. Miller  <davem@davemloft.net>
3232
3233         * config/sparc/sparc.c (vector_init_bshuffle): New function.
3234         (vector_init_fpmerge): New function.
3235         (sparc_expand_vector_init): Use them to improve non-const cases.
3236
3237         * dwarf2out.c (dwarf2out_var_location): When processing several
3238         consecutive location notes, cache the result of next_real_insn().
3239
3240 2011-10-30  Uros Bizjak  <ubizjak@gmail.com>
3241
3242         * config/i386/i386.md (avx2_vec_dup<mode>): Macroize insn from
3243         avx2_vec_dup{v8sf,v4sf} using VF1 mode iterator.
3244         (vec_dupv4sf): Remove expander.
3245         (vec_dupv4sf): Merge from *vec_dupv4sf and *vec_dupv4sf_avx.
3246         (vec_dupv2df): Remove expander.
3247         (vec_dupv2df): Merge from *vec_dupv2df and *vec_dupv2df_sse3.
3248         (*vec_concatv2df): Merge *vec_concatv2df_sse3.
3249         (*vec_dupv4si): Merge *vec_dupv4si_avx.
3250         (*vec_dupv2di): Merge *vec_dupv2di_sse3.
3251
3252 2011-10-30  Dmitry Plotnikov  <dplotnikov@ispras.ru>
3253
3254         * tree-cfg.c (verify_gimple_assign_unary): Allow vector conversions.
3255         * optabs.c (supportable_convert_operation): New function.
3256         * optabs.h (supportable_convert_operation): New prototype.
3257         * tree-vect-stmts.c (vectorizable_conversion): Change condition and
3258         behavior for NONE modifier case.
3259         * tree.h (VECTOR_INTEGER_TYPE_P): New macro.
3260
3261 2011-10-30  Jakub Jelinek  <jakub@redhat.com>
3262
3263         * tree-vectorizer.h (NUM_PATTERNS): Bump to 9.
3264         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): New
3265         function.
3266         (vect_vect_recog_func_ptrs): Add it.
3267
3268 2011-10-30  David S. Miller  <davem@davemloft.net>
3269
3270         * reorg.c (label_before_next_insn): New function.
3271         (relax_delay_slots): Use it instead of prev_label.
3272         * rtl.h (prev_label): Delete declaration.
3273         * emit-rtl.c (prev_label): Remove.
3274
3275 2011-10-30  Revital Eres  <revital.eres@linaro.org>
3276
3277         * modulo-sched.c (generate_prolog_epilog): Mark prolog and epilog
3278         as BB_DISABLE_SCHEDULE.
3279         (mark_loop_unsched): New function.
3280         (sms_schedule): Call it.
3281
3282 2011-10-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3283
3284         PR target/50617
3285         * config/pa/protos.h (attr_length_save_restore_dltp): Delete.
3286         (cmpib_comparison_operator): Likewise.
3287         (following_cal, output_and, output_ior, output_move_double,
3288         output_fp_move_double, output_block_move, output_block_clear,
3289         output_cbranch, output_lbranch, output_bb, output_bvb, output_dbra,
3290         output_movb, output_parallel_movb, output_parallel_addb, output_call,
3291         output_indirect_call, output_millicode_call, output_mul_insn,
3292         output_div_insn, output_mod_insn, singlemove_string,
3293         output_arg_descriptor, output_global_address, print_operand,
3294         legitimize_pic_address, hppa_encode_label, symbolic_expression_p,
3295         fmpyaddoperands, fmpysuboperands, emit_bcond_fp, emit_move_sequence,
3296         emit_hpdiv_const, is_function_label_plus_const, jump_in_call_delay,
3297         hppa_fpstore_bypass_p, attr_length_millicode_call, attr_length_call,
3298         attr_length_indirect_call, return_addr_rtx, function_arg_padding,
3299         insn_refs_are_delayed, get_deferred_plabel, ldil_cint_p, zdepi_cint_p,
3300         output_ascii, compute_frame_size, and_mask_p, cint_ok_for_move,
3301         hppa_expand_prologue, hppa_expand_epilogue, ior_mask_p,
3302         compute_zdepdi_operands, output_64bit_and, output_64bit_ior,
3303         reloc_needed, magic_milli, shadd_constant_p): Consistently prefix
3304         exported functions and variables with "pa_".
3305         * config/pa/predicates.md: Likewise.
3306         * config/pa/pa64-hpux.h: likewise.
3307         * config/pa/som.h: Likewise.
3308         * config/pa/elf.h: Likewise.
3309         * config/pa/pa64-linux.h: Likewise.
3310         * config/pa/pa.md: Likewise.
3311         * config/pa/pa.c: Likewise.
3312         * config/pa/pa-linux.h: Likewise.
3313         * config/pa/pa.h: Likewise.
3314         * config/pa/constraints.md: Likewise.
3315
3316 2011-10-29  Uros Bizjak  <ubizjak@gmail.com>
3317
3318         * config/i386/i386.md (xop_sha<mode>3): Rename from xop_ashl<mode>3.
3319         Update all uses.
3320         (xop_shl<mode>3): Rename from xop_lshl<mode>3.  Update all uses.
3321         * config/i386/i386.c: Update all uses.
3322
3323 2011-10-29  Uros Bizjak  <ubizjak@gmail.com>
3324
3325         * config/i386/i386.md (lshlv16qi3): Remove expander.
3326         (lshrv16qi3): New expander.
3327         (<shift_insn>v16qi3): Macroize expander from ashrv16qi3 and lshrv16qi3
3328         using any_shiftrt code iterator. Cleanup.
3329         (ashlv16qi3): Cleanup.
3330         (ashrv2di3): Ditto.
3331
3332 2011-10-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3333
3334         PR target/50691
3335         * config/pa/pa.c (emit_move_sequence): Legitimize TLS symbol
3336         references.
3337         (pa_legitimate_constant_p): Return false for TLS_MODEL_GLOBAL_DYNAMIC
3338         and TLS_MODEL_LOCAL_DYNAMIC symbol references.
3339
3340 2011-10-29  Georg-Johann Lay  <avr@gjlay.de>
3341
3342         PR target/50887
3343         * config/avr/avr.opt (-maccumulate-args): New option.
3344         * config/avr/avr.h (STARTING_FRAME_OFFSET): Redefine to
3345         avr_starting_frame_offset.
3346         (ACCUMULATE_OUTGOING_ARGS): Define to avr_accumulate_outgoing_args.
3347         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): Remove.
3348         (UNSPECV_WRITE_SP_IRQ_OFF): Remove.
3349         (UNSPECV_WRITE_SP): New constant.
3350         (*addhi3_sp_R): Rewrite to...
3351         (*addhi3_sp): ...this new insn.
3352         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): Combine to...
3353         (movhi_sp_r): ...this new insn.
3354         * config/avr/avr-protos.h (avr_accumulate_outgoing_args): New.
3355         (avr_starting_frame_offset): New.
3356         * config/avr/avr.c (avr_accumulate_outgoing_args): New function.
3357         (avr_starting_frame_offset): New function.
3358         (avr_outgoing_args_size): New static function.
3359         (avr_initial_elimination_offset): Use it.
3360         (avr_simple_epilogue): Use it.
3361         (avr_asm_function_end_prologue): Use it.
3362         (expand_epilogue): Use it.
3363         (expand_prologue): Use it.  Break out code to...
3364         (avr_prologue_setup_frame): ...this new static function.
3365         (avr_can_eliminate): Allow eliminating to frame pointer if there
3366         is one.
3367         (avr_frame_pointer_required_p): Use frame pointer if target has a
3368         nonlocal label.
3369         * config/avr/constraints.md (R): Remove.
3370         (Csp): New constraint.
3371         * config/avr/predicates.md (avr_sp_immediate_operand): Use it.
3372
3373 2011-10-29  Andi Kleen  <ak@linux.intel.com>
3374
3375         * gcc-ar.c (target_machine): Add.
3376
3377 2011-10-29  Anatoly Sokolov  <aesok@post.ru>
3378
3379         * config/cris/cris.c (reg_ok_for_base_p, reg_ok_for_index_p,
3380         cris_constant_index_p, cris_base_p, cris_index_p,
3381         cris_base_or_autoincr_p, cris_bdap_index_p, cris_biap_index_p,
3382         cris_legitimate_address_p): New functions.
3383         (TARGET_LEGITIMATE_ADDRESS_P): Define.
3384         (cris_pic_symbol_type, cris_valid_pic_const): Change arguments type
3385         from rtx to const_rtx.
3386         (cris_print_operand_address, cris_address_cost,
3387         cris_side_effect_mode_ok):  Use
3388         cris_constant_index_p, cris_base_p, cris_base_or_autoincr_p,
3389         cris_biap_index_p and cris_bdap_index_p.
3390         * config/cris/cris.h (CONSTANT_INDEX_P, BASE_P, BASE_OR_AUTOINCR_P,
3391         BDAP_INDEX_P, BIAP_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
3392         REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
3393         (EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_R, EXTRA_CONSTRAINT_T): Use
3394         cris_constant_index_p, cris_base_p, cris_base_or_autoincr_p,
3395         cris_biap_index_p and cris_bdap_index_p.
3396         * config/cris/cris.md (moversideqi movemsideqi peephole2): Use
3397         cris_base_p.
3398         * config/cris/cris-protos.h (cris_constant_index_p, cris_base_p,
3399         cris_base_or_autoincr_p, cris_bdap_index_p, cris_biap_index_p): New
3400         prototype.
3401         (cris_pic_symbol_type, cris_valid_pic_const): Update prototype.
3402
3403 2011-10-21  Andi Kleen  <ak@linux.intel.com>
3404
3405         * ggc-page (PAGE_ALIGN): Add.
3406         (alloc_page, ggc_pch_total_size, ggc_pch_this_base, ggc_pch_read):
3407         Replace ROUND_UP with PAGE_ALIGN.
3408
3409 2011-10-20  Andi Kleen  <ak@linux.intel.com>
3410
3411         * ggc-page (alloc_anon): Add check argument.
3412         (alloc_page): Add fallback to 1 page allocation.
3413         Adjust alloc_anon calls to new argument.
3414
3415 2011-10-18  Andi Kleen  <ak@linux.intel.com>
3416
3417         * ggc-page (release_pages): First free large continuous
3418         chunks in the madvise path.
3419
3420 2011-10-18  Andi Kleen  <ak@linux.intel.com>
3421
3422         * ggc-page.c (alloc_pages): Always round up entry_size.
3423
3424 2011-10-19  Andi Kleen  <ak@linux.intel.com>
3425
3426         * Makefile.in (MOSTLYCLEANFILES): Add gcc-ar/nm/ranlib.
3427         (native): Add gcc-ar, gcc-nm, gcc-ranlib.
3428         (AR_LIBS, gcc-ar, gcc-ar.o, gcc-ranlib, gcc-ranlib.o,
3429         gcc-nm, gcc-nm.o, gcc-ranlib.c, gcc-nm.c): Add.
3430         (install): Depend on install-gcc-ar.
3431         (install-gcc-ar): Add.
3432         (uninstall): Uninstall gcc-ar, gcc-nm, gcc-ranlib.
3433         * gcc-ar.c: Add new file.
3434
3435 2011-10-28  Pat Haugen <pthaugen@us.ibm.com>
3436
3437         * config/rs6000/rs6000.md (define_attr "type"): Add vecdouble.
3438         * config/rs6000/vsx.md (VStype_simple, VStype_mul): Use vecdouble
3439         type for V2DF.
3440         (VStype_div): Use vector types for V2DF/V4SF.
3441         (VStype_sqrt): Use *sqrt types.
3442         (VS_spdp_type): Change type to vecdouble.
3443         (*vsx_fmav2df4, *vsx_nfmsv2df4, vsx_xvcvdpsxws, vsx_xvcvdpuxws,
3444         vsx_xvcvuxdsp, vsx_xvcvsxwdp, vsx_xvcvuxwdp, vsx_xvcvspsxds,
3445         vsx_xvcvspuxds): Likewise.
3446         (*vsx_fms<mode>4): Set type via <VStype_mul>.
3447         (*vsx_eq_<mode>_p, *vsx_gt_<mode>_p, *vsx_ge_<mode>_p): Set type via
3448         <VStype_simple>.
3449         * config/rs6000/power7.md (power7-vecstore): Correct VSU pipe.
3450         (power7-fpcompare, power7-sdiv, power7-ddiv, power7-sqrt,
3451         power7-dsqrt): Correct insn latency.
3452         (power7-vecsimple): Add veccmp type and correct dispatch/VSU values.
3453         (power7-veccmp): Delete.
3454         (power7-vecfloat): Correct latency/dispatch/VSU values.
3455         (define_bypass "power7-vecfloat"): Correct latency and types.
3456         (power7-veccomplex, power7-vecperm): Correct dispatch/VSU values.
3457         (power7-vecdouble, power7-vecfdiv, power7-vecdiv): New.
3458
3459 2011-10-28  Uros Bizjak  <ubizjak@gmail.com>
3460
3461         * config/i386/i386.md (shift_insn): Rename code attribute from
3462         shiftrt_insn.  Also handle ashift RTX.
3463         (shift): Rename code attribute from shiftrt.  Also handle ashift RTX.
3464         (vshift): New code attribute.
3465         (<shift_insn>*): Rename from <shiftrt_insn>*. Update asm templates.
3466         (any_lshift): Move and rename code iterator from ...
3467         * config/i386/sse.md (lshift): ... here.
3468         (lshift_insn): Remove code attribute.
3469         (lshift): Remove code attribute.
3470         (vlshr<mode>3): Use lshiftrt RTX.
3471         (vashr<mode>3, ashrv16qi3, ashrv2di3): Use ashiftrt RTX.
3472         (vashl<mode>3, ashlv16qi3): Use ashift RTX.
3473         (avx2_<lshift>v<mode>): Rename from avx2_<shift_insn>v<mode>.  Use
3474         any_lshift code iterator.  Update asm template.
3475         (<shift_insn><mode>3): Macroize insn from lshr<mode>3 and ashl<mode>3
3476         usign any_lshift code iterator.
3477         * config/i386/mmx.md (mmx_<shift_insn><mode>3): Macroize insn from
3478         mmx_lshr<mode>3 and mmx_ashl<mode>3 usign any_lshift code iterator.
3479         * config/i386/i386.c (bdesc_args) <__builtin_ia32_psll>: Update.
3480
3481 2011-10-28  Georg-Johann Lay  <avr@gjlay.de>
3482
3483         PR target/49313
3484         * config/avr/avr.md (parityhi2): Expand allowing pseudos.
3485         (*parityhi2): New pre-reload insn-and-split to map 16-bit parity
3486         to the libgcc insn.
3487         (*parityqihi2): Same for 8-bit parity.
3488
3489 2011-10-28  Julian Brown  <julian@codesourcery.com>
3490
3491         PR rtl-optimization/47918
3492         * reload1.c (set_initial_label_offsets): Use initial offsets
3493         for labels on the nonlocal_goto_handler_labels chain.
3494
3495 2011-10-28  Iain Sandoe  <iains@gcc.gnu.org>
3496
3497         * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA):
3498         Move darwin-fpsave.asm from here to ... LIB2FUNCS_EXTRA.
3499         (LIB2FUNCS_EXTRA):  Add darwin-gpsave.asm.
3500         (TARGET_LIBGCC2_CFLAGS): Ensure that fPIC and -pipe are inherited from
3501         config/t-darwin.
3502         * config/rs6000/darwin.h (FP_SAVE_INLINE): Adjust to enable.
3503         (GP_SAVE_INLINE): Likewise.
3504         (SAVE_FP_PREFIX,  SAVE_FP_SUFFIX, RESTORE_FP_PREFIX,
3505         RESTORE_FP_SUFFIX): Set to empty strings.
3506         * config/rs6000/rs6000.c (rs6000_savres_strategy): Implement for Darwin.
3507         (debug_stack_info): Print savres_strategy.
3508         (rs6000_savres_routine_name): Implement for Darwin.
3509         (rs6000_make_savres_rtx): Adjust used register for Darwin.
3510         (rs6000_emit_prologue): Implement out-of-line saves for Darwin.
3511         (rs6000_output_function_prologue): Don't emit .extern for Mach-O.
3512         (rs6000_emit_epilogue): Implement out-of-line saves for Darwin.
3513         * config/rs6000/darwin-gpsave.asm: New file.
3514
3515 2011-10-28  Jakub Jelinek  <jakub@redhat.com>
3516
3517         * config/i386/sse.md (VI4SD_AVX2): Removed.
3518         (VI48_AVX2, VI128_128, VI48_128, VI48_256): New mode iterators.
3519         (vashl<mode>3): Use VI12_128 iterator instead of VI124_128.
3520         Add another expander using VI48_128 iterator for
3521         TARGET_AVX2 || TARGET_XOP and another using VI48_256 iterator
3522         for TARGET_AVX2.
3523         (vlshr<mode>3): Likewise.  Change register_operand predicate to
3524         nonimmediate_operand on last operand in the VI12_128 expander.
3525         (vashr<mode>3): Use VI128_128 iterator instead of VI124_128.
3526         (vashrv4si3, vashrv8si3): New expanders.
3527         (avx2_ashrvv8si, avx2_ashrvv4si, avx2_<lshift>vv8si,
3528         avx2_<lshift>vv2di): Removed.
3529         (avx2_ashrv<mode>): New insn with VI4_AVX2 iterator.
3530         (avx2_<lshift>v<mode>): Macroize using VI48_AVX2
3531         iterator.  Simplify pattern.
3532
3533 2010-10-28  Richard Guenther  <rguenther@suse.de>
3534
3535         PR driver/50876
3536         * lto-wrapper.c (get_options_from_collect_gcc_options):
3537         Properly count arguments.
3538         (run_gcc): Use an obstack to collect argv, properly separate
3539         switches and their arguments.
3540
3541 2011-10-28  Jakub Jelinek  <jakub@redhat.com>
3542
3543         * tree-vect-stmts.c (vectorizable_shift): Give up if op1 has different
3544         vector mode from vectype's mode.
3545
3546 2011-10-28  Chung-Lin Tang  <cltang@codesourcery.com>
3547
3548         PR rtl-optimization/49720
3549         * simplify-rtx.c (simplify_relational_operation_1): Detect
3550         infinite recursion condition in "(eq/ne (plus x cst1) cst2)
3551         simplifies to (eq/ne x (cst2 - cst1))" case.
3552
3553 2011-10-27  David S. Miller  <davem@davemloft.net>
3554
3555         * config/sparc/sparc.md (snedi_special): Only match when not VIS3.
3556         (*snedi_zero): Likewise.
3557         (*snedi_zero_trunc): Likewise.
3558         (snedi_special_vis3): New expander.
3559         (*snedi_zero_vis3): New insn.
3560         (*snedi_zero_trunc_vis3): Likewise.
3561         (*sltu_insn_vis3): Likewise.
3562         (*sltu_insn_vis3_trunc): Likewise.
3563         (addxc): Likewise.
3564         (*addxc_trunc_sp64_vis3): Likewise.
3565         * config/sparc/sparc.c (emit_scc_insn): When VIS3 use the
3566         gen_snedi_special_vis3 expander, and try GTU/LTU addx based
3567         sequences on DImode values.
3568
3569         * config/sparc/sparc.md (64-bit vector moves): Use 'e' not 'f'
3570         constraint.
3571
3572         * regcprop.c (copyprop_hardreg_forward_1): Reject the
3573         transformation when we narrow the mode on big endian.
3574
3575 2011-10-27  Jakub Jelinek  <jakub@redhat.com>
3576
3577         * config/i386/sse.md (avx_cvtpd2dq256_2, avx_cvttpd2dq256_2,
3578         vec_pack_sfix_trunc_v4df, vec_pack_sfix_v4df): New expanders.
3579         (*avx_cvtpd2dq256_2, *avx_cvttpd2dq256_2): New insns.
3580
3581         * config/i386/i386.c (ix86_print_operand): Handle 'q' and 'x'
3582         overrides for -masm=intel memory.
3583         * config/i386/sse.md (sse2_cvtdq2pd, sse2_cvtps2pd,
3584         sse4_1_<code>v8qiv8hi2, avx2_<code>v8qiv8si2,
3585         sse4_1_<code>v4hiv4si2, avx2_<code>v4hiv4di2,
3586         sse4_1_<code>v2siv2di2): Use %q1 instead of %1 for -masm=intel.
3587         (sse4_1_<code>v4qiv4si2, avx2_<code>v4qiv4di2,
3588         sse4_1_<code>v2hiv2di2): Use %k1 instead of %1 for -masm=intel.
3589         (sse4_1_<code>v2qiv2di2): Use %w1 instead of %1 for -masm=intel.
3590
3591 2011-10-27  Martin Jambor  <mjambor@suse.cz>
3592
3593         * ipa-prop.c (compute_pass_through_member_ptrs): Rename parm_info
3594         to parm_ainfo.
3595         (ipa_compute_jump_functions_for_edge): Likewise.
3596         (ipa_compute_jump_functions): Likewise.
3597         (ipa_analyze_indirect_call_uses): Likewise.
3598         (ipa_analyze_call_uses): Likewise.
3599         (ipa_analyze_params_uses): Likewise.
3600         (ipa_analyze_node): Likewise.
3601
3602 2011-10-27  Uros Bizjak  <ubizjak@gmail.com>
3603
3604         PR target/50875
3605         * config/i386/sse.md (*avx_unpcklpd256): Remove extra insn
3606         constraints.  Change alternative 1 to "x,m,1".
3607
3608 2011-10-27  Jakub Jelinek  <jakub@redhat.com>
3609
3610         * Makefile.in (build/gencheck.o): Depend on tree.def and
3611         c-family/c-common.def.
3612
3613         * tree-ssa-strlen.c: Include expr.h.
3614         (get_stridx): Don't use c_strlen, instead use string_constant
3615         and compute string length from it.
3616         * Makefile.in (tree-ssa-strlen.o): Depend on $(EXPR_H).
3617
3618 2011-10-27  Eric Botcazou  <ebotcazou@adacore.com>
3619
3620         PR rtl-optimization/46603
3621         PR bootstrap/50879
3622         * reload.c (push_reload): In the out case, restore previous behavior
3623         for subregs that don't have word mode.
3624
3625 2011-10-27  Ian Lance Taylor  <iant@google.com>
3626
3627         * cppdefault.c: Undef NATIVE_SYSTEM_HEADER_DIR if
3628         CROSS_DIRECTORY_STRUCTURE is defined and TARGET_SYSTEM_ROOT is not.
3629         (cpp_include_defaults): Only use NATIVE_SYSTEM_HEADER_DIR if it is
3630         defined.
3631
3632 2011-10-27  Richard Henderson  <rth@redhat.com>
3633
3634         * optabs.c (expand_vec_perm): Use the correct mode for scaling the
3635         selector.  Save the qimode constant selector for later use by the
3636         qimode vec_perm pattern.
3637
3638 2011-10-27  Bernd Schmidt  <bernds@codesourcery.com>
3639
3640         * config/c6x/c6x.c (unit_req_imbalance, res_mii): Cast the first arg
3641         to unit_req_factor to the right enum type.
3642         (get_unit_operand_masks, reshuffle_units, try_rename_operands,
3643         hwloop_optimize): Remove unused variables.
3644
3645 2010-10-27  Richard Guenther  <rguenther@suse.de>
3646
3647         PR middle-end/50731
3648         * tree-vect-generic.c (do_binop): Handle scalar operands.
3649
3650 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
3651
3652         PR target/37191
3653         * config/i386/sse.md (*vec_extract_v4sf_mem): Avoid combining registers
3654         from different units in a single alternative.
3655
3656 2011-10-26  David S. Miller  <davem@davemloft.net>
3657
3658         * config/sparc/sparc.c (emit_scc_insn): Force attempt of v9 sequences
3659         if we're comparing DImode and comparison is other than EQ or NE.
3660
3661         * config/sparc/sparc.c (emit_scc_insn): Do not try v9 sequences until
3662         LEU/LTU/GEU/GTU is attempted.
3663         * config/sparc/sparc.md (*neg_snesi_sign_extend): New 64-bit insn
3664         and split.
3665         (*neg_seqsi_sign_extend): Likewise.
3666         (*sltu_extend_sp64, *neg_sltu_extend_sp64, *sgeu_extend_sp64,
3667         *neg_sgeu_extend_sp64): New insns.
3668
3669         * config/sparc/sparc-protos.h (sparc_expand_conditional_move): Declare.
3670         * config/sparc/sparc.md (mov<I:mode>cc, mov<F:mode>cc): Call it.
3671         (*mov<I:mode>_cc_v9): Normalize to expect operand 0 always in operand 4.
3672         (*mov<I:mode>_cc_reg_sp64): Likewise.
3673         (*movsf_cc_v9): Likewise.
3674         (*movsf_cc_reg_sp64): Likewise.
3675         (*movdf_cc_v9): Likewise.
3676         (*movdf_cc_reg_sp64): Likewise.
3677         (*movtf_cc_hq_v9): Likewise.
3678         (*movtf_cc_reg_hq_sp64): Likewise.
3679         (*movtf_cc_v9): Likewise.
3680         (*movtf_cc_reg_sp64): Likewise.
3681         * config/sparc/sparc.c (sparc_expand_conditional_move): New function.
3682         (sparc_print_operand): Delete 'c' and 'd' handling, no longer used.
3683
3684 2011-10-26  Eric Botcazou  <ebotcazou@adacore.com>
3685
3686         * reload.c (reload_inner_reg_of_subreg): Change type of return value
3687         and type of OUTPUT parameter to bool and adjust.  Document MODE and
3688         OUTPUT parameters.  Use HARD_REGISTER_P.  Reorder final condition
3689         and improve associated comment.
3690         (push_reload): Clarify and update comments about reloading of subregs.
3691         Adjust calls to reload_inner_reg_of_subreg.  Compute the class upfront
3692         for the reloading of subregs in the out case as well.
3693
3694 2011-10-26  Alexandre Oliva  <aoliva@redhat.com>
3695
3696         PR debug/50826
3697         * var-tracking.c (rtx_debug_expr_p): New.
3698         (use_type): Don't use debug exprs to track non-VTA variables.
3699
3700 2011-10-26  Jeff Law  <law@redhat.com>
3701
3702         * doc/invoke.texi (sink-frequency-threshold): Document.
3703         * tree-ssa-sink.c: Include params.h.
3704         (select_best_block): New function.
3705         (statement_sink_location): Use it.
3706         * params.def (SINK_FREQUENCY_THRESHOLD): New PARAM.
3707
3708 2011-10-26  Iain Sandoe  <iains@gcc.gnu.org>
3709
3710         PR target/48108
3711         * config/darwin.c (top level): Amend comments concerning LTO output.
3712         (lto_section_num): New variable.  (darwin_lto_section_e): New GTY.
3713         (LTO_SECTS_SECTION, LTO_INDEX_SECTION): New.
3714         (LTO_NAMES_SECTION): Rename.
3715         (darwin_asm_named_section): Record LTO section counts and switches
3716         in a vec of darwin_lto_section_e.
3717         (darwin_file_start): Remove unused code.
3718         (darwin_file_end): Put an LTO section termination label.  Handle
3719         output of the wrapped LTO sections, index and names table.
3720
3721 2011-10-26  Alan Modra  <amodra@gmail.com>
3722
3723         * config/rs6000/rs6000.c (rs6000_make_savres_rtx): Delete unneeded
3724         declaration.
3725         (rs6000_emit_stack_reset): Only return insn emitted when it adjusts sp.
3726         (rs6000_make_savres_rtx): Rename to rs6000_emit_savres_rtx.  Use
3727         simple_return in pattern, emit instruction, and set jump_label.
3728         (rs6000_emit_prologue): Update for rs6000_emit_savres_rtx.  Use
3729         simple_return rather than return.
3730         (emit_cfa_restores): New function.
3731         (rs6000_emit_epilogue): Emit cfa_restores when flag_shrink_wrap.
3732         Add missing cfa_restores for SAVE_WORLD.  Add missing LR cfa_restore
3733         when using out-of-line gpr restore.  Add missing LR and FP regs
3734         cfa_restores for out-of-line fpr restore.  Consolidate code setting
3735         up cfa_restores.  Formatting.  Use LR_REGNO define.
3736         (rs6000_output_mi_thunk): Use simple_return rather than return.
3737         * config/rs6000/rs6000.md (sibcall*, sibcall_value*): Likewise.
3738         (return_internal*): Likewise.
3739         (any_return, return_pred, return_str): New iterators.
3740         (return, conditional return insns): Provide both return and
3741         simple_return variants.
3742         * config/rs6000/rs6000.h (EARLY_R12, LATE_R12): Define.
3743         (REG_ALLOC_ORDER): Move r12 before call-saved regs when FIXED_R13.
3744         Move r11 and r0 later to suit shrink-wrapping.
3745
3746 2011-10-26  Richard Guenther  <rguenther@suse.de>
3747
3748         * lto-wrapper.c (run_gcc): Properly init/free obstack.
3749
3750 2011-10-26  Jakub Jelinek  <jakub@redhat.com>
3751
3752         * config/i386/i386.md (UNSPEC_VSIBADDR): New.
3753         * config/i386/predicates.md (vsib_address_operand,
3754         vsib_mem_operator): New predicates.
3755         * config/i386/i386.c (ix86_print_operand_address): Handle
3756         UNSPEC_VSIBADDR addresses.
3757         * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>,
3758         avx2_gatherdi<mode>256): Adjust expanders to use MEM with
3759         UNSPEC_VSIBADDR address.
3760         (*avx2_gathersi<mode>, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>256):
3761         Adjust insns to use MEM with UNSPEC_VSIBADDR address.
3762
3763 2011-10-26  Tom de Vries  <tom@codesourcery.com>
3764
3765         PR tree-optimization/50763
3766         * tree-ssa-tail-merge.c (replace_block_by): Update vops if phi_vuse1 or
3767         phi_vuse2 is NULL_TREE only if bb1 dominates or is dominated by bb2.
3768
3769 2011-10-26  Richard Guenther  <rguenther@suse.de>
3770
3771         PR lto/41844
3772         * Makefile.in (lto-wrapper): Depend on and link against opts-common.o.
3773         (lto-wrapper.o): Depend on $(OPTS_H) and $(OPTIONS_H).
3774         * lto-wrapper.c (get_options_from_collect_gcc_options): New function.
3775         (run_gcc): Use it.  Filter out language specific options.
3776
3777 2011-10-26  Andreas Tobler  <andreast@fgznet.ch>
3778
3779         * config/i386/freebsd64.h (LINK_SPEC): Emit the same warning as the
3780         32-bit target does.
3781
3782 2011-10-25  Paolo Carlini  <paolo.carlini@oracle.com>
3783
3784         PR driver/46617
3785         * gcc.c (main): Fix fatal_error string for translation.
3786
3787 2011-10-25  Ian Lance Taylor  <iant@google.com>
3788
3789         * tree-eh.c (do_return_redirection): Remove return_value_p
3790         parameter.  Change all callers.
3791         (lower_try_finally_nofallthru): Remove local return_val.
3792         (lower_try_finally_onedest): Likewise.
3793         (lower_try_finally_copy): Likewise.
3794         (lower_try_finally_switch): Likewise.
3795
3796 2011-10-25  H.J. Lu  <hongjiu.lu@intel.com>
3797
3798         * config/i386/mmx.md (*mmx_maskmovq): Replace :SI with :P and
3799         remove "&& !TARGET_64BIT"
3800         (*mmx_maskmovq_rex): Removed.
3801
3802 2011-10-25  Eric Botcazou  <ebotcazou@adacore.com>
3803
3804         PR rtl-optimization/46603
3805         * reload.c (push_reload): In the out case, reload the subreg as well
3806         as the reg if it has word mode.
3807
3808 2011-10-25  Eric Botcazou  <ebotcazou@adacore.com>
3809
3810         * dwarf2out.c (add_gnat_descriptive_type_attribute): Temporarily
3811         suppress debug info for the parent type.
3812
3813 2011-10-25  Eric Botcazou  <ebotcazou@adacore.com>
3814
3815         * config/ia64/ia64.c (ia64_profile_hook): Fix thinko.
3816
3817 2011-10-25  Richard Henderson  <rth@redhat.com>
3818
3819         * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Remove.
3820         (vec_extract_even<mode>, vec_extract_odd<mode>): Remove.
3821
3822         * config/rs6000/altivec.md (vec_extract_evenv8hi,
3823         vec_extract_evenv16qi, vec_extract_oddv4si,
3824         vec_extract_oddv4sf): Remove.
3825
3826         * config/spu/spu.md (vec_extract_evenv4si, vec_extract_evenv4sf,
3827         vec_extract_evenv8hi, vec_extract_evenv16qi, vec_extract_oddv4si,
3828         vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
3829         vec_interleave_highv4sf, vec_interleave_lowv4sf,
3830         vec_interleave_highv4si, vec_interleave_lowv4si,
3831         vec_interleave_highv8hi, vec_interleave_lowv8hi,
3832         vec_interleave_highv16qi, vec_interleave_lowv16qi): Remove.
3833
3834         * expr.c (expand_expr_real_2) [VEC_EXTRACT_EVEN_EXPR]: Use binop.
3835         [VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR]: Likewise.
3836         [VEC_INTERLEAVE_LOW_EXPR]: Likewise.
3837         * optabs.c (expand_binop): Implement vec_interleave_high_optab,
3838         vec_interleave_low_optab, vec_extract_even_optab,
3839         vec_extract_odd_optab with expand_vec_perm.
3840         (can_vec_perm_for_code_p): New.
3841         * optabs.h: Update.
3842         * tree-vect-data-refs.c (vect_strided_store_supported): Allow for
3843         fallback via can_vec_perm_for_code_p.
3844         (vect_strided_load_supported): Likewise.
3845         * tree-vect-generic.c (expand_vector_operations_1): Never lower
3846         VEC_INTERLEAVE_HIGH_EXPR, VEC_INTERLEAVE_LOW_EXPR,
3847         VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR.
3848
3849         * target.def (vec_perm_const_ok): Change parameters to mode and
3850         array of indicies.
3851         * doc/tm.texi: Rebuild.
3852         * config/i386/i386.c (ix86_vectorize_vec_perm_const_ok): Change
3853         parameters to mode and array of indicies.
3854         * expr.c (expand_expr_real_2) [VEC_PERM_EXPR]: Expand operands here.
3855         * optabs.c (can_vec_perm_p): Rename from can_vec_perm_expr_p.
3856         Change parameters to mode and array of indicies.
3857         (expand_vec_perm_1): Rename from expand_vec_perm_expr_1.
3858         (expand_vec_perm): Rename from expand_vec_perm_expr.  Change
3859         parameters to mode and rtx inputs.  Try lowering to QImode
3860         vec_perm_const before trying fully variable permutation.
3861         * optabs.h: Update decls.
3862         * tree-vect-generic.c (lower_vec_perm): Extract array of indices from
3863         VECTOR_CST to pass to can_vec_perm_p.
3864         * tree-vect-slp.c (vect_get_mask_element): Change mask parameter type
3865         from int pointer to unsigned char pointer.
3866         (vect_transform_slp_perm_load): Update for change to can_vec_perm_p.
3867         * tree-vect-stmts.c (perm_mask_for_reverse): Likewise.
3868
3869         * tree.def (VEC_EXTRACT_EVEN_EXPR): Fix typo in text name.
3870         (VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
3871         VEC_INTERLEAVE_LOW_EXPR): Likewise.
3872
3873 2011-10-25  Mike Stump  <mikestump@comcast.net>
3874
3875         * reload.c (regno_clobbered_p): Fix typo.
3876
3877 2011-10-25  Dodji Seketeli  <dodji@redhat.com>
3878
3879         * input.c (expand_location): Rewrite using linemap_resolve_location
3880         and linemap_expand_location.  Add a comment.
3881
3882 2011-10-25  Jakub Jelinek  <jakub@redhat.com>
3883
3884         PR tree-optimization/50596
3885         * tree-vect-stmts.c (vect_mark_relevant): Only use
3886         FOR_EACH_IMM_USE_FAST if lhs is SSA_NAME.
3887         (vectorizable_store): If is_pattern_stmt_p look through
3888         VIEW_CONVERT_EXPR on lhs.
3889         * tree-vect-patterns.c (check_bool_pattern, adjust_bool_pattern):
3890         Use unsigned type instead of signed.
3891         (vect_recog_bool_pattern): Optimize also stores into bool memory in
3892         addition to casts from bool to integral types.
3893         (vect_mark_pattern_stmts): If pattern_stmt already has vinfo
3894         created, don't create it again.
3895
3896 2011-10-25  Kai Tietz  <ktietz@redhat.com>
3897
3898         * config/i386/i386.c (ix86_frame_pointer_required): Require
3899         frame-pointer, if setjmp is used for 32-bit ms-abi.
3900
3901 2011-10-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
3902
3903         * builtins.c (set_builtin_user_assembler_name): Remove extra
3904         newline added in October 11th, 2011 change.
3905
3906 2011-10-24  David S. Miller  <davem@davemloft.net>
3907
3908         * config/sparc/little-endian.opt: Delete.
3909         * config.gcc: Remove references to config/sparc/little-endian.opt
3910         * doc/invoke.texi: Remove documentation of -mlittl-endian on sparc.
3911         * config/sparc/linux64.h: Delete references to -mlittle-endian.
3912         * config/sparc/netbsd-elf.h: Likewise.
3913         * config/sparc/openbsd64.h: Likewise.
3914         * config/sparc/sparc.h: Likewise.
3915         * config/sparc/sp64-elf.h: Likewise and delete overrides for
3916         BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
3917         * config/sparc/sparc.c (dump_target_flag_bits): Remove reference
3918         to MASK_LITTLE_ENDIAN.
3919         * config/sparc/sparc.opt (Mask(LITTLE_ENDIAN)): Delete.
3920
3921         * config/sparc/sparc.md: Only use F, G, and C constraints in FP insns.
3922         Only use D, Y, and Z constraints in vector insns.
3923
3924         * config/sparc/sparc.md (cpu_feature, enabled): New attributes.
3925         (*movsi_insn_novis3, *movsi_insn_vis3): Consolidate into one pattern
3926         called *movsi_insn.
3927         (*movdi_insn_sp32_v9_novis3, *movdi_insn_sp32_v9_vis3): Consolidate
3928         into *movdi_insn_sp32.
3929         (*movdi_insn_sp64_novis3, *movdi_insn_sp64_vis3): Consolidate into
3930         one pattern called *movdi_insn_sp64.
3931         (*movsf_insn_novis3, *movsf_insn_vis3, *movsf_insn_no_fpu):
3932         Consolidate into one pattern called *movsf_insn.
3933         (*movdf_insn_sp32_no_fpu, *movdf_insn_sp32_v9_novis3,
3934         *movdf_insn_sp32_v9_vis3, *movdf_insn_sp32_v9_no_fpu): Consolidate
3935         into *movdf_insn_sp32.
3936         (*movdf_insn_sp64_novis3, *movdf_insn_sp64_vis3,
3937         *movdf_insn_sp64_no_fpu): Consolidate into one pattern called
3938         *movdf_insn_sp64.
3939         (*zero_extendsidi2_insn_sp64_novis3,
3940         *zero_extendsidi2_insn_sp64_vis3): Consolidate into one pattern
3941         called *zero_extendsidi2_insn_sp64.
3942         (*sign_extendsidi2_insn_novis3, *sign_extendsidi2_insn_vis3):
3943         Consolidate into one pattern named *sign_extendsidi2_insn.
3944         (*mov<VM32:mode>_insn_novis3, *mov<VM32:mode>_insn_vis3):
3945         Consolidate into one pattern named *mov<VM32:mode>_insn.
3946         (*mov<VM64:mode>_insn_sp64_novis3,
3947         *mov<VM64:mode>_insn_sp64_novis3): Consolidate into one pattern
3948         named *mov<VM64:mode>_insn_sp64.
3949         (*mov<VM64:mode>_insn_sp32_novis3,
3950         *mov<VM64:mode>_insn_sp32_vis3): Consolidate into one pattern
3951         named *mov<VM64:mode>_insn_sp32.
3952
3953 2011-10-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3954
3955         * tree-ssa-strlen.c (get_string_length): Change assertion to STPCPY.
3956         (zero_length_string): Change assertion to accept strinfo without
3957         length but with stmt instead.
3958         Set the endptr pointer also if starting a new chain.
3959         (adjust_related_strinfos): Ignore strinfos marked for delayed
3960         length computation.
3961         (handle_builtin_strcpy): Mark earlier strinfo elements also for
3962         delayed length computation.
3963
3964 2011-10-24  Georg-Johann Lay  <avr@gjlay.de>
3965
3966         PR target/50820
3967         Port from 4.6 branch r180379
3968         * doc/invoke.texi (AVR Options): New subsubsection to explain EIND
3969         handling and indirect jump/calls on devices > 128k.
3970
3971 2011-10-24  Anatoly Sokolov  <aesok@post.ru>
3972             Georg-Johann Lay  <avr@gjlay.de>
3973
3974         PR target/49824
3975         * doc/extend.texi (Declaring Attributes of Functions):
3976         Document OS_main and OS_task attributes.
3977         (Specifying Attributes of Variables): Move up
3978         subsection "AVR Variable Attributes" as of alphabetical order.
3979
3980 2011-10-24  Richard Guenther  <rguenther@suse.de>
3981
3982         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Convert constants
3983         to vector element type.
3984         (vectorizable_assignment): Bail out for non-mode-precision operations.
3985         (vectorizable_shift): Likewise.
3986         (vectorizable_operation): Likewise.
3987         (vectorizable_type_demotion): Likewise.
3988         (vectorizable_type_promotion): Likewise.
3989         (vectorizable_store): Handle non-mode-precision stores.
3990         (vectorizable_load): Handle non-mode-precision loads.
3991         (get_vectype_for_scalar_type_and_size): Return a vector type
3992         for non-mode-precision integers.
3993         * tree-vect-loop.c (vectorizable_reduction): Bail out for
3994         non-mode-precision reductions.
3995
3996 2011-10-24  Julian Brown  <julian@codesourcery.com>
3997
3998         * config/m68k/m68k.c (notice_update_cc): Tighten condition for
3999         setting CC_REVERSED for FP comparisons.
4000
4001 2011-10-24  Richard Guenther  <rguenther@suse.de>
4002
4003         PR tree-optimization/50838
4004         * tree-data-ref.c (dr_analyze_indices): Properly canonicalize
4005         a MEM_REF base if we change it.
4006
4007 2011-10-24  Bernd Schmidt  <bernds@codesourcery.com>
4008
4009         PR bootstrap/50836
4010         * rtlanal.c: Swap includes of "hard-reg-set.h" and "rtl.h".
4011
4012         PR rtl-optimization/50833
4013         * function.c (thread_prologue_and_epilogue_insns): Expect the
4014         return insn optimization only if optimize.
4015
4016 2011-10-24  Georg-Johann Lay  <avr@gjlay.de>
4017
4018         * config/avr/avr.c: Break long lines.
4019         Define target hooks on the fly if applicable.
4020         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove first definition
4021         overridden later.
4022         (targetm): Move definition to end of file.
4023         (avr_can_eliminate): Make static on the fly.
4024         (avr_frame_pointer_required_p): Ditto.
4025         (avr_hard_regno_scratch_ok): Ditto.
4026         (avr_builtin_setjmp_frame_value): Make static on the fly.
4027         Indent according to coding rules.
4028         (avr_case_values_threshold): Ditto.
4029         (avr_attribute_table): Move down.
4030
4031 2011-10-24  Ira Rosen  <ira.rosen@linaro.org>
4032
4033         PR tree-optimization/50730
4034         * tree-vect-data-refs.c (vect_analyze_data_refs): Stop basic block
4035         analysis if encountered unsupported data-ref.
4036
4037 2011-10-23  David S. Miller  <davem@davemloft.net>
4038
4039         * config/sparc/sparc.c (sparc_option_override): Remove -mv8plus
4040         cpu adjustment.
4041         * config/sparc/linux64.h (CC1_SPEC): When defaulting to 64-bit,
4042         append -mcpu=v9 when -mv8plus is given.
4043
4044         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): We can move
4045         between float and non-float regs when VIS3.
4046         * config/sparc/sparc.c (eligible_for_restore_insn): We can't
4047         use a restore when the source is a float register.
4048         (sparc_split_regreg_legitimate): When VIS3 allow moves between
4049         float and integer regs.
4050         (sparc_register_move_cost): Adjust to account for VIS3 moves.
4051         (sparc_preferred_reload_class): On 32-bit with VIS3 when moving an
4052         integer reg to a class containing EXTRA_FP_REGS, constrain to FP_REGS.
4053         (sparc_secondary_reload): On 32-bit with VIS3 when moving between
4054         float and integer regs we sometimes need a FP_REGS class
4055         intermediate move to satisfy the reload.  When this happens
4056         specify an extra cost of 2.
4057         (*movsi_insn): Rename to have "_novis3" suffix and add !VIS3 guard.
4058         (*movdi_insn_sp32_v9): Likewise.
4059         (*movdi_insn_sp64): Likewise.
4060         (*movsf_insn): Likewise.
4061         (*movdf_insn_sp32_v9): Likewise.
4062         (*movdf_insn_sp64): Likewise.
4063         (*zero_extendsidi2_insn_sp64): Likewise.
4064         (*sign_extendsidi2_insn): Likewise.
4065         (*movsi_insn_vis3): New insn.
4066         (*movdi_insn_sp32_v9_vis3): New insn.
4067         (*movdi_insn_sp64_vis3): New insn.
4068         (*movsf_insn_vis3): New insn.
4069         (*movdf_insn_sp32_v9_vis3): New insn.
4070         (*movdf_insn_sp64_vis3): New insn.
4071         (*zero_extendsidi2_insn_sp64_vis3): New insn.
4072         (*sign_extendsidi2_insn_vis3): New insn.
4073         (TFmode reg/reg split): Make sure both REG operands are float.
4074         (*mov<VM32:mode>_insn): Add "_novis3" suffix and !VIS3 guard. Remove
4075         easy constant to integer reg alternatives.
4076         (*mov<VM64:mode>_insn_sp64): Likewise.
4077         (*mov<VM64:mode>_insn_sp32_novis3): Likewise.
4078         (*mov<VM32:mode>_insn_vis3): New insn.
4079         (*mov<VM64:mode>_insn_sp64_vis3): New insn.
4080         (*mov<VM64:mode>_insn_sp32_vis3): New insn.
4081         (VM64 reg<-->reg split): New splitter for 32-bit.
4082
4083         * config/sparc/sparc.c (sparc_split_regreg_legitimate): New function.
4084         * config/sparc/sparc-protos.h (sparc_split_regreg_legitimate):
4085         Declare it.
4086         * config/sparc/sparc.md (DImode reg/reg split): Use it.
4087         (DFmode reg/reg split): Likewise.
4088
4089         * config/sparc/sparc.md (*movdi_insn_sp32_v9): Add alternatives for
4090         generating fzero and fone instructions.
4091         (DImode const_int --> reg splitter): Only trigger for integer regs.
4092
4093         * config/sparc/predicates.md (input_operand): Disallow vector
4094         constants other than 0 and -1.
4095         * config/sparc/sparc.c (sparc_preferred_reload_class): Return
4096         NO_REGS for vector constants other than 0 and -1.
4097
4098         * config/sparc/sparc.h (SPARC_FIRST_INT_REG, SPARC_LAST_INT_REG,
4099         SPARC_INT_REG_P): Define.
4100         (HARD_REGNO_NREGS): Use SPARC_INT_REG_P.
4101         (REGNO_OK_FOR_INDEX_P): Likewise.
4102         * config/sparc/sparc.c (gen_df_reg): Likewise.
4103         (eligible_for_return_delay): Likewise.
4104         (eligible_for_sibcall_delay): Likewise.
4105         (sparc_legitimate_address_p): Likewise.
4106         (emit_save_or_restore_regs): Likewise.
4107         (registers_ok_for_ldd_peep): Likewise.
4108         * config/spac/sparc.md (DI mode splitters): Likewise.
4109         (SF mode const splitters): Likewise.
4110         (DF mode splitters): Likewise.
4111         (32-bit DI mode logical op splitters): Likewise.
4112
4113 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
4114
4115         PR c++/50841
4116         Revert:
4117         2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
4118
4119         PR c++/50810
4120         * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
4121
4122 2011-10-23  Uros Bizjak  <ubizjak@gmail.com>
4123
4124         * config/i386/sse.md (avx2_lshl<mode>3): Remove insn pattern.
4125         (VI248_256): Remove mode iterator.
4126         * config/i386/i386.c (ix86_expand_vec_perm): Use gen_ashlv4di3
4127         instead of gen_avx2_lshlv4di3.
4128         (bdesc_args): Use CODE_FOR_ashl{v16hi,v8si,v4di}3 instead of
4129         CODE_FOR_avx2_lshl{v16hi,v8si,v4di}3.
4130
4131 2011-10-23  Uros Bizjak  <ubizjak@gmail.com>
4132
4133         * config/i386/sse.md (sseintprefix): Rename from gthrfirstp.
4134         (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>): Delete expander.
4135         (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>) Merge insn
4136         pattern from *avx2_maskload<ssemodesuffix><avxsizesuffix> and
4137         *avx_maskload<ssemodesuffix><avxsizesuffix> using V48_AVX mode
4138         iterator.  Use sseintprefix mode attribute.
4139         (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>): Delete expander.
4140         (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>) Merge insn
4141         pattern from *avx2_maskstore<ssemodesuffix><avxsizesuffix> and
4142         *avx_maskstore<ssemodesuffix><avxsizesuffix> using V48_AVX mode
4143         iterator.  Use sseintprefix mode attribute.
4144         (*avx2_gathersi<mode>) Use sseintprefix and ssemodesuffix mode
4145         attributes.
4146         (*avx2_gatherdi<mode>): Ditto.
4147         (*avx2_gatherdi<mode>256): Ditto.
4148         (VI48_AVX2): Remove mode iterator.
4149         (gthrlastfp): Remove mode attribute.
4150
4151 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
4152
4153         PR c++/50810
4154         * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
4155
4156 2011-10-23  Tom de Vries  <tom@codesourcery.com>
4157
4158         PR tree-optimization/50763
4159         * tree-ssa-tail-merge.c (same_succ_flush_bb): New function, factored
4160         out of ...
4161         (same_succ_flush_bbs): Use same_succ_flush_bb.
4162         (purge_bbs): Remove argument.  Remove calls to same_succ_flush_bbs,
4163         release_last_vdef and delete_basic_block.
4164         (unlink_virtual_phi): New function.
4165         (update_vuses): Add and use vuse1_phi_args argument.  Set var to
4166         SSA_NAME_VAR of vuse1 or vuse2, and use var.  Handle case that
4167         def_stmt2 is NULL.  Use phi result as phi arg in case vuse1 or vuse2
4168         is NULL_TREE.  Replace uses of vuse1 if vuse2 is NULL_TREE.  Fix code
4169         to limit replacement of uses.  Propagate phi argument for phis with a
4170         single argument.
4171         (replace_block_by): Update vops if phi_vuse1 or phi_vuse2 is NULL_TREE.
4172         Set vuse1_phi_args if vuse1 is a phi defined in bb1.  Add
4173         vuse1_phi_args as argument to call to update_vuses.  Call
4174         release_last_vdef, same_succ_flush_bb, delete_basic_block.  Update
4175         CDI_DOMINATORS info.
4176         (tail_merge_optimize): Remove argument in call to purge_bbs.  Remove
4177         call to free_dominance_info.  Only call calculate_dominance_info once.
4178
4179 2011-10-23  Eric Botcazou  <ebotcazou@adacore.com>
4180
4181         * fold-const.c (invert_tree_comparison): Always invert EQ_EXPR/NE_EXPR.
4182
4183         PR tree-optimization/44683
4184         * tree-ssa-dom.c (record_edge_info): Record simple equivalences only if
4185         we can be sure that there are no signed zeros involved.
4186
4187 2011-10-23  Jan Hubicka  <jh@suse.cz>
4188
4189         * ipa-inline.c (estimate_badness): Scale up and handle overflows.
4190
4191 2011-10-23  Uros Bizjak  <ubizjak@gmail.com>
4192
4193         PR target/50788
4194         * config/i386/sse.md (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>):
4195         Remove (match_dup 0).
4196         (*avx2_maskload<ssemodesuffix><avxsizesuffix>): New insn pattern.
4197         (*avx_maskload<ssemodesuffix><avxsizesuffix>): Ditto.
4198         (*avx2_maskstore<ssemodesuffix><avxsizesuffix>): Ditto.
4199         (*avx_maskstore<ssemodesuffix><avxsizesuffix>): Ditto.
4200         (*avx2_maskmov<ssemodesuffix><avxsizesuffix>): Remove insn pattern.
4201         (*avx_maskmov<ssemodesuffix><avxsizesuffix>): Ditto.
4202
4203 2011-10-23  Ira Rosen  <ira.rosen@linaro.org>
4204
4205         PR tree-optimization/50819
4206         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Remove
4207         the last argument.
4208         * tree-vect-loop.c (vect_analyze_loop_2): Update call to
4209         vect_analyze_data_ref_dependences.
4210         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Remove
4211         the last argument.  Check load-after-store dependence for unknown
4212         dependencies in basic blocks.
4213         (vect_analyze_data_ref_dependences): Update call to
4214         vect_analyze_data_ref_dependences.
4215         * tree-vect-patterns.c (vect_recog_widen_shift_pattern): Fix typo.
4216         * tree-vect-slp.c (vect_bb_vectorizable_with_dependencies): Remove.
4217         (vect_slp_analyze_bb_1): Update call to
4218         vect_analyze_data_ref_dependences.  Don't call
4219         vect_bb_vectorizable_with_dependencies.
4220
4221 2011-10-22  David S. Miller  <davem@davemloft.net>
4222
4223         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS,
4224         SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
4225         * config/sparc/sparc.c (TARGET_SECONDARY_RELOAD): Redefine.
4226         (sparc_secondary_reload): New function.
4227
4228         * config/sparc/sparc.h (sparc_costs): Remove extern decl.
4229         (struct processor_costs): Move from here..
4230         * config/sparc/sparc.c (struct processor_costs): To here.
4231         (sparc_costs): Mark static.
4232
4233         * config/sparc/sparc.c (short_branch, reg_unused_after): Delete.
4234         * config/sparc/sparc-protos.h (short_branch, reg_unused_after):
4235         Get rid of declarations.
4236
4237 2011-10-21  Paul Brook  <paul@codesourcery.com>
4238
4239         * config/c6x/c6x.c (c6x_asm_emit_except_personality,
4240         c6x_asm_init_sections): New functions.
4241         (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): Define.
4242
4243 2011-10-21  Jakub Jelinek  <jakub@redhat.com>
4244
4245         PR target/50813
4246         * config/i386/i386.c (expand_vec_perm_even_odd_1): Handle
4247         V4DImode and V8SImode for !TARGET_AVX2.
4248
4249 2011-10-21  Bernd Schmidt  <bernds@codesourcery.com>
4250
4251         PR bootstrap/50825
4252         * sched-deps.c (add_dependence): If not doing predication, promote
4253         REG_DEP_CONTROL to REG_DEP_ANTI.
4254
4255 2011-10-21  Georg-Johann Lay  <avr@gjlay.de>
4256
4257         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Pass address of X
4258         instead of X to avr_legitimize_reload_address.
4259         * config/avr/avr-protos.h (avr_legitimize_reload_address): Change
4260         first argument's type from rtx to rtx*.
4261         * config/avr/avr.c (avr_legitimize_reload_address): Ditto.
4262         Pass PX to push_reload instead of &X.  Change log messages for
4263         better distinction.
4264
4265 2011-10-21  Roland Stigge  <stigge@antcom.de>
4266
4267         PR translation/47064
4268         * params.def: Fix typo "compilatoin" -> "compilation".
4269
4270 2011-10-21  H.J. Lu  <hongjiu.lu@intel.com>
4271             Kirill Yukhin  <kirill.yukhin@intel.com>
4272
4273         PR target/50740
4274         * config/i386/driver-i386.c (host_detect_local_cpu): Do cpuid 7 only
4275         if max_level allows that.
4276
4277 2011-10-21  Bernd Schmidt  <bernds@codesourcery.com>
4278
4279         * reg-notes.def (DEP_CONTROL): New.
4280         * sched-ebb.c (add_deps_for_risky_insns): Add a REG_DEP_CONTROL when
4281         not doing speculation.
4282         * rtlanal.c (record_hard_reg_sets, find_all_hard_reg_sets,
4283         record_hard_reg_uses_1, record_hard_reg_uses): New functions.
4284         * function.c (record_hard_reg_sets, record_hard_reg_uses,
4285         record_hard_reg_uses_1): Remove; move to rtlanal.c.
4286         * lists.c (copy_INSN_LIST, concat_INSN_LIST): New functions.
4287         * haifa-sched.c: Swap includes of "rtl.h" and "hard-reg-set.h".
4288         (MUST_RECOMPUTE_SPEC_P): New macro.
4289         (real_insn_for_shadow): New function.
4290         (cond_clobbered_p, recompute_todo_spec, check_clobbered_conditions,
4291         toggle_cancelled_flags): New static functions.
4292         (schedule_insn): Relax an assert to only check for empty hard back
4293         dependencies.  Skip cancelled dependencies.  Call
4294         check_clobbered_conditions.
4295         (copy_insn_list): Remove function, renamed moved to lists.c.
4296         (save_backtrack_point): Use new spelling copy_INSN_LIST.
4297         (unschedule_insns_until): Ensure TODO_SPEC is reset properly.
4298         (restore_last_backtrack_point): Likewise.  Call toggle_cancelled_flags.
4299         (estimate_insn_tick): Ignore cancelled dependencies.
4300         (haifa_speculate_insn): Move declaration.
4301         (try_ready): Move code into recompute_todo_spec and call it.  Tweak
4302         some asserts.  Ensure predicated patterns are restored if necessary.
4303         Dump DEP_CONTROL flag.
4304         (haifa_change_pattern): Merge with sched_change_pattern.
4305         (sched_change_pattern): Remove function.
4306         * sched-deps.c (NON_FLUSH_JUMP_KIND, NON_FLUSH_JUMP): Remove.  All
4307         uses changed to simply not test NON_FLUSH_JUMP_P.
4308         (ds_to_dk, dk_to_ds, dump_dep, ds_to_dt, dump_ds, check_dep): Handle
4309         REG_DEP_CONTROL.
4310         (dep_spec_p): If DO_PREDICATION, REG_DEP_CONTROL is speculative.
4311         (reg_pending_control_uses, control_dependency_cache): New static
4312         variables.
4313         (sched_get_reverse_condition_uncached): New function.
4314         (sd_find_dep_between): Remove pointless assert.  Look in
4315         control_dependency_cache.
4316         (ask_dependency_caches, set_dependency_caches, sd_delete_dep,
4317         extend_dependency_caches, sched_deps_finish): Handle REG_DEP_CONTROL
4318         and control_dependency_cache.
4319         (sd_unresolve_dep): Use dep_spec_p.
4320         (add_dependence): Now a wrapper around add_dependence_1, handling
4321         REG_DEP_CONTROL specially.
4322         (flush_pending_lists): Clear pending_jump_insns.
4323         (sched_analyze_1): Handle pending_jump_insns like a memory flush.
4324         (sched_analyze_2): Unconditionally add to pending memory flushes,
4325         keep previous behaviour but apply it to pending_jump_insns instead.
4326         (sched_analyze_insn): Defer adding jump reg dependencies using
4327         reg_pending_control_uses; add them to the control_uses list.  Handle
4328         pending_jump_insns and control_uses when adding dependence lists.
4329         (deps_analyze_insn): Update INSN_COND_DEPS.
4330         (deps_analyze_insn): Add jumps to pending_jump_insns rather than
4331         last_pending_memory_flush.
4332         (init_deps): Initialize pending_jump_insns.
4333         (free_deps): Free control_uses.
4334         (remove_from_deps): Remove from pending_jump_insns.
4335         (init_deps_global): Allocate reg_pending_control_uses).
4336         (finish_deps_global): Free it.
4337         (add_dependence_1): Renamed from add_dependence.  Handle
4338         REG_DEP_CONTROL.
4339         * rtl.h (record_hard_reg_uses, find_all_hard_reg_sets): Declare.
4340         (copy_INSN_LIST, concat_INSN_LIST): Declare.
4341         * sched-int.h (struct deps_reg): Add control_uses.
4342         (struct deps_desc): Add pending_jump_insns.
4343         (struct _haifa_deps_insn_data): Add cond_deps.
4344         (struct _haifa_insn_data): Add must_recompute_spec and predicated_pat.
4345         (INSN_COND_DEPS, PREDICATED_PAT): New macros.
4346         (BITS_PER_DEP_WEAK): Adjust for two extra bits in the word.
4347         (DEP_CONTROL): New macro.
4348         (DEP_TYPES): Include it.
4349         (HARD_DEP): Adjust definition.
4350         (DEP_CANCELLED): New macro.
4351         (enum SCHED_FLAGS): Add DO_PREDICATION.
4352         (sched_get_reverse_condition_uncached, real_insn_for_shadow): Declare.
4353         * sched-rgn.c (concat_INSN_LIST): Remove function.
4354         (deps_join): Handle pending_jump_insns.
4355         (free_pending_lists): Likewise.
4356         * config/c6x/c6x.c (c6x_set_sched_flags): Set DO_PREDICATION for final
4357         schedule.
4358
4359 2011-10-21  Georg-Johann Lay  <avr@gjlay.de>
4360
4361         PR target/50820
4362         * config/avr/libgcc.S (__EIND__): New define to 0x3C.
4363         (__tablejump__): Consistently use EIND for indirect jump/call.
4364         (__tablejump_elpm__): Ditto.
4365
4366 2011-10-21  Bernd Schmidt  <bernds@codesourcery.com>
4367
4368         * config/c6x/c6x.md (attr "op_pattern"): New.
4369         (load_sdata_pic, mov<mode>_insn for QIHIM and SISFVM): Set it.
4370         * config/c6x/c6x-mult.md.in (mulhi3_VARIANT_, mulhisi3_insn_VARIANT_):
4371         Likewise.
4372         * config/c6x/c6x-mult.md: Regenerate.
4373         * config/c6x/c6x.c: Include "regrename.h".
4374         (unit_req_table): New typedef.
4375         (unit_reqs): Use it for the declaration.
4376         (unit_req_factor, get_unit_reqs, merge_unit_reqs, unit_req_imbalance,
4377         get_unit_operand_masks, try_rename_operands, reshuffle_units): New
4378         static functions.
4379         (count_unit_reqs): New arg reqs.  All callers changed.  Use
4380         get_unit_reqs, and don't merge here.
4381         (res_mii): New arg reqs.  All callers changed.  Rewrite to use a loop
4382         using unit_req_factor.
4383         (hwloop_optimize): Call reshuffle_units.  Call merge_unit_reqs after
4384         count_unit_reqs.
4385         (c6x_reorg): Add reg notes problem, and call df_analyze.
4386         * Makefile.in ($(out_object_file)): Depend on regrename.h.
4387
4388 2011-10-21  Kai Tietz  <ktietz@redhat.com>
4389
4390         * fold-const.c (simple_operand_p_2): Handle integral
4391         casts from boolean-operands.
4392
4393 2011-10-21  Jan Hubicka  <jh@suse.cz>
4394
4395         * cgraph.c (dump_cgraph_node): Dump alias flag.
4396         * cgraphunit.c (handle_alias_pairs): Handle weakrefs with
4397         no destination.
4398         (get_alias_symbol): New function.
4399         (output_weakrefs): Output also weakrefs with no destinatoin.
4400         (lto_output_node): Output weakref alias flag when at function boundary.
4401
4402 2011-10-21  Andrew Stubbs  <ams@codesourcery.com>
4403
4404         PR target/50809
4405         * config/arm/driver-arm.c (vendors): Make static.
4406
4407 2011-10-21  Uros Bizjak  <ubizjak@gmail.com>
4408
4409         * config/i386/i386.c (ix86_emit_swdivsf): Force b into register.
4410         (ix86_emit_swsqrtsf): Force a into register.
4411
4412 2011-10-20  Mike Stump  <mikestump@comcast.net>
4413
4414         * regcprop.c (copyprop_hardreg_forward_1): Update recog_data
4415         after validate_change wipes it out.
4416
4417 2011-10-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4418
4419         * config/spu/spu.md ("vec_permv16qi"): Reduce selector modulo 32
4420         before using the shufb instruction.
4421
4422 2011-10-20  Kirill Yukhin  <kirill.yukhin@intel.com>
4423
4424         PR target/50766
4425         * config/i386/i386.md (bmi_bextr_<mode>): Update register/
4426         memory operand order.
4427         (bmi2_bzhi_<mode>3): Ditto.
4428         (bmi2_pdep_<mode>3): Ditto.
4429         (bmi2_pext_<mode>3): Ditto.
4430
4431 2011-10-20  Richard Henderson  <rth@redhat.com>
4432
4433         * target.def (vec_perm_const_ok): Rename from builtin_vec_perm_ok.
4434         * optabs.c (can_vec_perm_expr_p): Update to match.
4435         (expand_vec_perm_expr): Likewise.
4436         * config/i386/i386.c (TARGET_VECTORIZE_VEC_PERM_CONST_OK): Rename
4437         from TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK.
4438         * doc/tm.texi.in: Likewise.
4439
4440 2011-10-20  Sergey Ostanevich  <sergos.gnu@gmail.com>
4441
4442         PR target/50572
4443         * config/i386/i386.c (processor_target_table): Change Atom
4444         align_loops_max_skip to 15.
4445
4446 2011-10-20  Richard Henderson  <rth@redhat.com>
4447
4448         * target.def (builtin_vec_perm): Remove.
4449         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
4450
4451         * config/i386/i386.c (ix86_expand_vec_perm_builtin): Remove.
4452         (IX86_BUILTIN_VEC_PERM_*): Remove.
4453         (bdesc_args): Remove vec_perm builtins
4454         (ix86_expand_builtin): Likewise.
4455         (ix86_expand_vec_perm_const_1): Rename from
4456         ix86_expand_vec_perm_builtin_1.
4457         (extract_vec_perm_cst): Merge into...
4458         (ix86_vectorize_vec_perm_const_ok): ... here.  Rename from
4459         ix86_vectorize_builtin_vec_perm_ok.
4460         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
4461
4462         * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): Remove.
4463         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
4464
4465         * config/spu/spu.c (spu_builtin_vec_perm): Remove.
4466         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
4467
4468 2011-10-20  Uros Bizjak  <ubizjak@gmail.com>
4469
4470         PR target/47989
4471         * config/i386/i386.h (RECIP_MASK_DEFAULT): New define.
4472         * config/i386/i386.op (recip_mask): Initialize with RECIP_MASK_DEFAULT.
4473         * doc/invoke.texi (ix86 Options, -mrecip): Document that GCC
4474         implements vectorized single float division and vectorized sqrtf(x)
4475         with reciprocal sequence with additional Newton-Raphson step with
4476         -ffast-math.
4477
4478 2011-10-20  Dodji Seketeli  <dodji@redhat.com>
4479
4480         * ggc-zone.c (ggc_internal_alloc_zone_stat): Rename
4481         ggc_alloced_size_order_for_request into ggc_round_alloc_size like
4482         it was done in ggc-page.c.
4483
4484         PR other/50659
4485         * doc/cppopts.texi: Use @smallexample/@end smallexample in
4486         documentation for -fdebug-cpp instead of @quotation/@end quotation
4487         that is not supported by contrib/texi2pod.pl.
4488
4489 2011-10-19  Jan Hubicka  <jh@suse.cz>
4490
4491         * ipa-inline.c (inline_small_functions): Always update all calles after
4492         inlining.
4493
4494 2011-10-19  Jan Hubicka  <jh@suse.cz>
4495
4496         PR bootstrap/50709
4497         * ipa-inline.c (inline_small_functions): Fix checking code to not make
4498         effect on fibheap stability.
4499
4500 2011-10-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
4501
4502         * config/m68k/t-linux (M68K_MLIB_CPU): Add ColdFire CPUs.
4503
4504 2011-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4505
4506         PR target/50106
4507         * config/arm/arm.c (thumb_unexpanded_epilogue): Handle return
4508         reg size from 1-3.
4509
4510 2011-10-20  Richard Guenther  <rguenther@suse.de>
4511
4512         * tree-ssa-loop-im.c (stmt_cost): Add WIDEN_*, FMA_EXPR
4513         and rotates to the set of expensive operations.
4514
4515 2011-10-19  David S. Miller  <davem@davemloft.net>
4516
4517         * config/sparc/sparc.c (sparc_expand_move): Use can_create_pseudo_p.
4518         (sparc_emit_set_const32): Likewise.
4519         (sparc_emit_set_const64_longway): Likewise.
4520         (sparc_emit_set_const64): Likewise.
4521         (sparc_legitimize_pic_address): Likewise.
4522         (memory_ok_for_ldd): Likewise.
4523
4524 2011-10-20  Dehao Chen  <dehao@google.com>
4525
4526         * profile.c (compute_branch_probabilities): Compute and dump the
4527         overlap between the static estimation and the instrumentation profile.
4528         (OVERLAP_BASE): New macro.
4529         (compute_frequency_overlap): New function
4530
4531 2011-10-19  Jakub Jelinek  <jakub@redhat.com>
4532
4533         * config/i386/i386.c (expand_vec_perm_vpshufb2_vpermq_even_odd): Use
4534         d->op1 instead of d->op0 for the second vpshufb.
4535         (expand_vec_perm_even_odd_1): For V8SImode fix vpshufd immediates.
4536         (ix86_expand_vec_perm_const): If mask indicates two operands are
4537         needed, but both are the same and expanding them as d.op0 == d.op1
4538         failed, retry with d.op0 != d.op1.
4539         (ix86_expand_vec_perm_builtin): Likewise.  Handle sorry printing
4540         also for d.nelt == 32.
4541
4542         PR middle-end/50754
4543         * cfgexpand.c (expand_debug_expr): Handle WIDEN_LSHIFT_EXPR, ignore
4544         VEC_PERM_EXPR.
4545
4546 2011-10-19  Bernd Schmidt  <bernds@codesourcery.com>
4547
4548         * regrename.h: New file.
4549         * regrename.c: Include it.  Also include "emit-rtl.h".
4550         (struct du_head, struct du_chain, du_head_p DEF_VEC and
4551         DEF_VEC_ALLOC_P): Move to regrename.h.
4552         (do_replace): Remove declaration.
4553         (insn_rr): New variable.
4554         (cur_operand): New static variable.
4555         (regrename_chain_from_id): Renamed from chain_from_id and no longer
4556         static.  All callers changed.
4557         (record_operand_use): New static function.
4558         (scan_rtx_reg): Use it.
4559         (find_best_rename_reg): New function, broken out of rename_chains.
4560         (rename_chains): Use it.  Don't update chain regno and nregs here, ...
4561         (regrename_do_replace): ... do it here instead.  Renamed from
4562         do_replace, and no longer static.  All callers changed.
4563         (regrename_analyze): No longer static.  New arg bb_mask.
4564         All callers changed.  If bb_mask is nonzero, use it to limit the
4565         number of basic blocks we analyze.  If we failed to analyze a block,
4566         clear insn operand data.
4567         (record_out_operands): New arg insn_info.  Update cur_operand if it is
4568         nonnull.
4569         (build_def_use): If insn_rr is nonnull, pass an insn_info to
4570         record_out_operands, and update cur_operand here as well.
4571         (regrename_init, regrename_finish): New functions.
4572         (regrename_optimize): Use them.
4573         * Makefile.in (regrename.o): Adjust dependencies.
4574
4575 2011-10-19  Tom de Vries  <tom@codesourcery.com>
4576
4577         PR tree-optimization/50769
4578         * tree-ssa-tail-merge.c (replace_block_by): Calculate phi_vuse2
4579         unconditionally.  Handle case that phi_vuse2 is not an SSA_NAME.  Add
4580         dummy argument .MEM to phi when increasing number of arguments of phi by
4581         redirecting edges to the block with phi.
4582
4583 2011-10-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4584
4585         PR bootstrap/50777
4586         * configure.ac: Save and restore CXXFLAGS around
4587         gcc_AC_CHECK_DECLS uses.
4588         Check for madvise() declaration with g++ if --enable-build-with-cxx.
4589         * configure: Regenerate.
4590         * config.in: Regenerate.
4591         * ggc-page.c (USING_MADVISE): Also check HAVE_DECL_MADVISE.
4592
4593 2011-10-19  Alexandre Oliva  <aoliva@redhat.com>
4594
4595         PR debug/49310
4596         * var-tracking.c (loc_exp_dep, onepart_aux): New structs.
4597         (variable_part): Replace offset with union.
4598         (enum onepart_enum, onepart_enum_t): New.
4599         (variable_def): Drop cur_loc_changed, add onepart.
4600         (value_chain_def, const_value_chain): Remove.
4601         (VAR_PART_OFFSET, VAR_LOC_1PAUX): New macros, with checking.
4602         (VAR_LOC_DEP_LST, VAR_LOC_DEP_LSTP): New macros.
4603         (VAR_LOC_FROM, VAR_LOC_DEPTH, VAR_LOC_DEP_VEC): Likewise.
4604         (value_chain_pool, value_chains): Remove.
4605         (dropped_values): New.
4606         (struct parm_reg): Only if HAVE_window_save.
4607         (vt_stack_adjustments): Don't record register arguments.
4608         (dv_as_rtx): New.
4609         (dv_onepart_p): Return a onepart_enum_t.
4610         (onepart_pool): New.
4611         (dv_pool): Remove.
4612         (dv_from_rtx): New.
4613         (variable_htab_free): Release onepart aux data.  Reset flags.
4614         (value_chain_htab_hash, value_chain_htab_eq): Remove.
4615         (unshare_variable): Use onepart field.  Propagate onepart aux
4616         data or offset.  Drop cur_loc_changed.
4617         (val_store): Cope with NULL insn.  Rephrase dump output.  Check
4618         for unsuitable locs.  Add FIXME on using cselib locs.
4619         (val_reset): Remove FIXME of unfounded concerns.
4620         (val_resolve): Check for unsuitable locs.  Add FIXME on using
4621         cselib locs.
4622         (variable_union): Use onepart field, adjust access to offset.
4623         (NO_LOC_P): New.
4624         (VALUE_CHANGED, DECL_CHANGED): Update doc.
4625         (set_dv_changed): Clear NO_LOC_P when changed.
4626         (find_loc_in_1pdv): Use onepart field.
4627         (intersect_loc_chains): Likewise.
4628         (unsuitable_loc): New.
4629         (loc_cmp): Keep ENTRY_VALUEs at the end of the loc list.
4630         (add_value_chain, add_value_chains): Remove.
4631         (add_cselib_value_chains, remove_value_chain): Likewise.
4632         (remove_value_chains, remove_cselib_value_chains): Likewise.
4633         (canonicalize_loc_order_check): Use onepart.  Drop cur_loc_changed.
4634         (canonicalize_values_star, canonicalize_vars_star): Use onepart.
4635         (variable_merge_over_cur): Likewise.  Adjust access to offset.
4636         Drop cur_loc_changed.
4637         (variable_merge_over_src): Use onepart field.
4638         (remove_duplicate_values): Likewise.
4639         (variable_post_merge_new_vals): Likewise.
4640         (find_mem_expr_in_1pdv): Likewise.
4641         (dataflow_set_preserve_mem_locs): Likewise.  Drop cur_loc_changed
4642         and value chains.
4643         (dataflow_set_remove_mem_locs): Likewise.  Use VAR_LOC_FROM.
4644         (variable_different_p): Use onepart field.  Move onepart test out
4645         of the loop.
4646         (argument_reg_set): Drop.
4647         (add_uses, add_stores): Preserve but do not record in dynamic
4648         tables equivalences for ENTRY_VALUEs and CFA_based addresses.
4649         Avoid unsuitable address expressions.
4650         (EXPR_DEPTH): Unlimit.
4651         (EXPR_USE_DEPTH): Repurpose PARAM_MAX_VARTRACK_EXPR_DEPTH.
4652         (prepare_call_arguments): Use DECL_RTL_IF_SET.
4653         (dump_var): Adjust access to offset.
4654         (variable_from_dropped, recover_dropped_1paux): New.
4655         (variable_was_changed): Drop cur_loc_changed.  Use onepart.
4656         Preserve onepart aux in empty_var.  Recover empty_var and onepart
4657         aux from dropped_values.
4658         (find_variable_location_part): Special-case onepart.  Adjust
4659         access to offset.
4660         (set_slot_part): Use onepart.  Drop cur_loc_changed.  Adjust
4661         access to offset.  Initialize onepaux.  Drop value chains.
4662         (delete_slot_part): Drop value chains.  Use VAR_LOC_FROM.
4663         (VEC (variable, heap), VEC (rtx, stack)): Define.
4664         (expand_loc_callback_data): Drop dummy, cur_loc_changed,
4665         ignore_cur_loc.  Add expanding, pending, depth.
4666         (loc_exp_dep_alloc, loc_exp_dep_clear): New.
4667         (loc_exp_dep_insert, loc_exp_dep_set): New.
4668         (notify_dependents_of_resolved_value): New.
4669         (update_depth, vt_expand_var_loc_chain): New.
4670         (vt_expand_loc_callback): Revamped.
4671         (resolve_expansions_pending_recursion): New.
4672         (INIT_ELCD, FINI_ELCD): New.
4673         (vt_expand_loc): Use the new macros above.  Drop ignore_cur_loc
4674         parameter, adjust all callers.
4675         (vt_expand_loc_dummy): Drop.
4676         (vt_expand_1pvar): New.
4677         (emit_note_insn_var_location): Operate on non-debug decls only.
4678         Revamp multi-part cur_loc recomputation and one-part expansion.
4679         Drop cur_loc_changed.  Adjust access to offset.
4680         (VEC (variable, heap)): Drop.
4681         (changed_variables_stack, changed_values_stack): Drop.
4682         (check_changed_vars_0, check_changed_vars_1): Remove.
4683         (check_changed_vars_2, check_changed_vars_3): Remove.
4684         (values_to_stack, remove_value_from_changed_variables): New.
4685         (notify_dependents_of_changed_value, process_changed_values): New.
4686         (emit_notes_for_changes): Revamp onepart updates.
4687         (emit_notes_for_differences_1): Use onepart.  Drop cur_loc_changed
4688         and value chains.  Propagate onepaux.  Recover empty_var and onepaux
4689         from dropped_values.
4690         (emit_notes_for_differences_2): Drop value chains.
4691         (emit_notes_in_bb): Adjust.
4692         (vt_emit_notes): Drop value chains, changed_variables_stack.
4693         Initialize and release dropped_values.
4694         (create_entry_value): Revamp.
4695         (vt_add_function_parameter): Use new interface.
4696         (note_register_arguments): Remove.
4697         (vt_initialize): Drop value chains and register arguments.
4698         (vt_finalize): Drop value chains.  Release windowed_parm_regs only
4699         if HAVE_window_save.
4700         * rtl.h: Document various pass-local uses of RTL flags.
4701         * tree.h (DECL_RTL_KNOWN_SET): New.
4702         * doc/invoke.texi (param max-vartrack-expr-depth): Update
4703         description and default.
4704
4705 2011-10-19  Georg-Johann Lay  <avr@gjlay.de>
4706
4707         PR target/50447
4708         * config/avr/avr.md (cc): New alternative out_plus_noclobber.
4709         (adjust_len): Ditto.
4710         (addhi3): Don't pipe through short; use gen_int_mode instead.
4711         Prior to reload, expand to gen_addhi3_clobber.
4712         (*addhi3): Use avr_out_plus_noclobber if applicable, use
4713         out_plus_noclobber in cc and adjust_len attribute.
4714         (addhi3_clobber): 2 new RTL peepholes.
4715         (addhi3_clobber): New insn.
4716         * config/avr/avr-protos.h: (avr_out_plus_noclobber): New prototype.
4717         * config/avr/avr.c (avr_out_plus_noclobber): New function.
4718         (notice_update_cc): Handle CC_OUT_PLUS_NOCLOBBER.
4719         (avr_out_plus_1): Tweak if only MSB is +/-1 and other bytes are 0.
4720         Set cc0 to set_zn for adiw on 16-bit values.
4721         (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS_NOCLOBBER.
4722         (expand_epilogue): No need to add 0 to frame_pointer_rtx.
4723
4724 2011-10-19  Richard Guenther  <rguenther@suse.de>
4725
4726         PR middle-end/50780
4727         * tree-ssa-forwprop.c (forward_propagate_into_cond): Verify
4728         the condition is properly gimple before using it.
4729         * tree-eh (stmt_could_throw_1_p): Properly extract the
4730         operation type from comparisons.
4731
4732 2011-10-19  Roland Stigge  <stigge@antcom.de>
4733
4734         PR translation/48638
4735         * plugin.c (add_new_plugin): Fix typo in fatal_error message.
4736
4737 2011-10-19  Roland Stigge  <stigge@antcom.de>
4738
4739         PR translation/49517
4740         * config/rx/rx.c (rx_print_operand): Fix typo in warning message.
4741
4742 2011-10-19  Richard Guenther  <rguenther@suse.de>
4743
4744         PR middle-end/50768
4745         * gimple-fold.c (gimplify_and_update_call_from_tree): Rewrite.
4746
4747 2011-10-19  Andrey Belevantsev  <abel@ispras.ru>
4748
4749         PR rtl-optimization/50340
4750         * sel-sched-ir.c (update_target_availability): LHS register
4751         availability is not known if the unavailable LHS of the other
4752         expression is a different register.
4753
4754 2011-10-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4755
4756         PR target/50310
4757         * config/spu/spu.c (spu_emit_vector_compare): Support unordered
4758         floating-point comparisons.
4759
4760 2011-10-19  Jan Hubicka  <jh@suse.cz>
4761
4762         * cgraphunit.c (handle_alias_pairs): Also handle wekref with
4763         destination declared.
4764         (output_weakrefs): New function.
4765         * varpool.c (varpool_create_variable_alias): Handle external aliases.
4766
4767 2011-10-19  Jakub Jelinek  <jakub@redhat.com>
4768
4769         * dwarf2out.c (loc_descriptor): For SUBREG pass SUBREG_REG's mode as
4770         second argument instead of mode.
4771
4772 2011-10-18  Jakub Jelinek  <jakub@redhat.com>
4773
4774         * config/i386/i386.c (ix86_expand_vec_perm): In merge_two use
4775         mode SUBREG of operands[0] as target.
4776         (valid_perm_using_mode_p): Don't ignore higher bits of d->perm.
4777         (expand_vec_pshufb): For V8SImode vmode emit avx2_permvarv8si.
4778         (expand_vec_perm_1): Handle identity and some broadcast
4779         permutations.
4780         (expand_vec_perm_interleave2): Handle also 32-byte modes, using
4781         vperm2[fi]128 or vpunpck[lh]* followed by single insn permutation.
4782         For d->testing_p return true earlier to avoid creating more GC
4783         garbage.
4784         (expand_vec_perm_vpermq_perm_1): New function.
4785         (expand_vec_perm_vpshufb2_vpermq): For d->testing_p return true
4786         earlier to avoid creating more GC garbage.  Fix handling of
4787         V16HImode.  Avoid some SUBREGs in SET_DEST.
4788         (expand_vec_perm_broadcast_1): Return false for 32-byte integer
4789         vector modes.
4790         (expand_vec_perm_vpshufb4_vpermq2): New function.
4791         (ix86_expand_vec_perm_builtin_1): Call expand_vec_perm_vpermq_perm_1
4792         and expand_vec_perm_vpshufb4_vpermq2.
4793
4794 2011-10-18  Andrew Stubbs  <ams@codesourcery.com>
4795
4796         * config/arm/driver-arm.c (host_detect_local_cpu): Close the file
4797         before exiting.
4798
4799 2011-10-18  Andrew Stubbs  <ams@codesourcery.com>
4800
4801         PR tree-optimization/50717
4802         * tree-ssa-math-opts.c (is_widening_mult_p): Remove the 'type'
4803         parameter.  Calculate 'type' from stmt.
4804         (convert_mult_to_widen): Update call the is_widening_mult_p.
4805         (convert_plusminus_to_widen): Likewise.
4806
4807 2011-10-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4808
4809         * config/spu/spu.c (struct machine_function): New data structure.
4810         (spu_init_machine_status): New function.
4811         (spu_option_override): Install it.
4812         (get_pic_reg): Set and use cfun->machine->pic_reg.
4813         (spu_split_immediate): Do not set crtl->uses_pic_offset_table.
4814         (need_to_save_reg): Use cfun->machine->pic_reg instead of
4815         checking crtl->uses_pic_offset_table.
4816         (spu_expand_prologue): Likewise.
4817
4818 2011-10-18  Jakub Jelinek  <jakub@redhat.com>
4819
4820         PR tree-optimization/50735
4821         * function.c (gimplify_parameters): Use create_tmp_var instead of
4822         create_tmp_reg.  If parm is not TREE_ADDRESSABLE and type is complex
4823         or vector type, set DECL_GIMPLE_REG_P.
4824
4825 2011-10-18  Andrew Stubbs  <ams@codesourcery.com>
4826
4827         * config.host (arm*-*-linux*): Add driver-arm.o and x-arm.
4828         * config/arm/arm.opt: Add 'native' processor_type and
4829         arm_arch enum values.
4830         * config/arm/arm.h (host_detect_local_cpu): New prototype.
4831         (EXTRA_SPEC_FUNCTIONS): New define.
4832         (MCPU_MTUNE_NATIVE_SPECS): New define.
4833         (DRIVER_SELF_SPECS): New define.
4834         * config/arm/driver-arm.c: New file.
4835         * config/arm/x-arm: New file.
4836         * doc/invoke.texi (ARM Options): Document -mcpu=native,
4837         -mtune=native and -march=native.
4838
4839 2011-10-18  Alexander Monakov  <amonakov@ispras.ru>
4840
4841         PR rtl-optimization/50205
4842         * sel-sched.c (count_occurrences_1): Simplify on the assumption that
4843         p->x is a register.  Forbid substitution when the same register is
4844         found in a different mode.
4845         (count_occurrences_equiv): Assert that 'what' is a register.
4846
4847 2011-10-18  Richard Guenther  <rguenther@suse.de>
4848
4849         PR tree-optimization/50767
4850         * tree-ssa-pre.c (create_expression_by_pieces): Update the
4851         folded statement.
4852
4853 2011-10-18  Julian Brown  <julian@codesourcery.com>
4854
4855         * config/arm/arm.c (arm_block_move_unaligned_straight)
4856         (arm_adjust_block_mem, arm_block_move_unaligned_loop)
4857         (arm_movmemqi_unaligned): New.
4858         (arm_gen_movmemqi): Support unaligned block copies.
4859
4860 2011-10-18  Ira Rosen  <ira.rosen@linaro.org>
4861
4862         * doc/md.texi (vec_widen_ushiftl_hi, vec_widen_ushiftl_lo,
4863         vec_widen_sshiftl_hi, vec_widen_sshiftl_lo): Document.
4864         * tree-pretty-print.c (dump_generic_node): Handle WIDEN_LSHIFT_EXPR,
4865         VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
4866         (op_code_prio): Likewise.
4867         (op_symbol_code): Handle WIDEN_LSHIFT_EXPR.
4868         * optabs.c (optab_for_tree_code): Handle
4869         VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
4870         (init-optabs): Initialize optab codes for vec_widen_u/sshiftl_hi/lo.
4871         * optabs.h (enum optab_index): Add OTI_vec_widen_u/sshiftl_hi/lo.
4872         * genopinit.c (optabs): Initialize the new optabs.
4873         * expr.c (expand_expr_real_2): Handle
4874         VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
4875         * gimple-pretty-print.c (dump_binary_rhs): Likewise.
4876         * tree-vectorizer.h (NUM_PATTERNS): Increase to 8.
4877         * tree.def (WIDEN_LSHIFT_EXPR, VEC_WIDEN_LSHIFT_HI_EXPR,
4878         VEC_WIDEN_LSHIFT_LO_EXPR): New.
4879         * cfgexpand.c (expand_debug_expr): Handle new tree codes.
4880         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
4881         vect_recog_widen_shift_pattern.
4882         (vect_handle_widen_mult_by_const): Rename...
4883         (vect_handle_widen_op_by_const): ...to this.  Handle shifts.
4884         Add a new argument, update documentation.
4885         (vect_recog_widen_mult_pattern): Assume that only second
4886         operand can be constant.  Update call to
4887         vect_handle_widen_op_by_const.
4888         (vect_recog_over_widening_pattern): Fix typo.
4889         (vect_recog_widen_shift_pattern): New.
4890         * tree-vect-stmts.c (vectorizable_type_promotion): Handle
4891         widening shifts.
4892         (supportable_widening_operation): Likewise.
4893         * tree-inline.c (estimate_operator_cost): Handle new tree codes.
4894         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
4895         * tree-cfg.c (verify_gimple_assign_binary): Likewise.
4896         * config/arm/neon.md (neon_vec_<US>shiftl_<mode>): New.
4897         (vec_widen_<US>shiftl_lo_<mode>, neon_vec_<US>shiftl_hi_<mode>,
4898         vec_widen_<US>shiftl_hi_<mode>, neon_vec_<US>shift_left_<mode>):
4899         Likewise.
4900         * config/arm/predicates.md (const_neon_scalar_shift_amount_operand):
4901         New.
4902         * config/arm/iterators.md (V_innermode): New.
4903         * tree-vect-slp.c (vect_build_slp_tree): Require same shift operand
4904         for widening shift.
4905
4906 2011-10-18  Richard Guenther  <rguenther@suse.de>
4907
4908         * tree-ssa-alias.h (struct pt_solution): Remove
4909         vars_contains_restrict member.
4910         (pt_solutions_same_restrict_base): Remove.
4911         (pt_solution_set): Adjust.
4912         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Remove
4913         vars_contains_restrict handling.
4914         (dump_points_to_solution): Likewise.
4915         (ptr_derefs_may_alias_p): Do not call pt_solutions_same_restrict_base.
4916         * tree-ssa-structalias.c (struct variable_info): Remove is_restrict_var
4917         field.
4918         (new_var_info): Do not initialize it.
4919         (ipa_escaped_pt): Adjust.
4920         (make_constraint_from_restrict): Make the tag global.
4921         (make_constraint_from_global_restrict): New function.
4922         (make_constraint_from_heapvar): Remove.
4923         (create_variable_info_for): Do not make restrict vars point
4924         to NONLOCAL.
4925         (intra_create_variable_infos): Likewise.
4926         (find_what_var_points_to): Remove vars_contains_restrict handling.
4927         (pt_solution_set): Adjust.
4928         (pt_solution_ior_into): Likewise.
4929         (pt_solutions_same_restrict_base): Remove.
4930         (compute_points_to_sets): Do not test is_restrict_var.
4931         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
4932         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
4933
4934 2011-10-18  Tom de Vries  <tom@codesourcery.com>
4935
4936         PR tree-optimization/50672
4937         * tree-ssa-dce.c (mark_virtual_operand_for_renaming): New function,
4938         factored out of ...
4939         (mark_virtual_phi_result_for_renaming): Use
4940         mark_virtual_operand_for_renaming.
4941         * tree-flow.h (mark_virtual_operand_for_renaming): Declare.
4942         * tree-ssa-tail-merge.c (release_last_vdef): New function.
4943         (purge_bbs): Add update_vops parameter.  Call release_last_vdef for each
4944         deleted basic block.
4945         (tail_merge_optimize): Add argument to call to purge_bbs.
4946
4947 2011-10-18  Richard Guenther  <rguenther@suse.de>
4948
4949         PR middle-end/50716
4950         * expr.c (get_object_or_type_alignment): New function.
4951         (expand_assignment): Use it.
4952         (expand_expr_real_1): Likewise.
4953
4954 2011-10-18  Dodji Seketeli  <dodji@redhat.com>
4955
4956         PR bootstrap/50760
4957         * input.c (dump_line_table_statistics): Use long, not size_t.
4958
4959 2011-10-17  Eric Botcazou  <ebotcazou@adacore.com>
4960
4961         * config/sparc/sparc.md (in_call_delay): Fix formatting issues.
4962
4963 2011-10-17  Simon Baldwin  <simonb@google.com>
4964             Ian Lance Taylor  <iant@google.com>
4965
4966         * configure.ac: Add --with-native-system-header-dir.  Set and
4967         substitute NATIVE_SYSTEM_HEADER_DIR.  Use native_system_header
4968         when setting target_header_dir.
4969         * config.gcc: Always set native_system_header_dir.
4970         (*-*-gnu*): Set native_system_header_dir.  Don't use t-gnu.
4971         (i[34567]86-pc-msdosdjgpp*): Set native_system_header_dir.  Don't
4972         use i386/t-djgpp.
4973         (i[34567]86-*-mingw* | x86_64-*-mingw*): Set
4974         native_system_header_dir.
4975         (spu-*-elf*): Set native_system_header_dir.
4976         * Makefile.in (NATIVE_SYSTEM_HEADER_DIR): Set to
4977         @NATIVE_SYSTEM_HEADER_DIR@.
4978         (PREPROCESSOR_DEFINES): Define NATIVE_SYSTEM_HEADER_DIR.
4979         * cppdefault.c (STANDARD_INCLUDE_DIR): Don't define.
4980         (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
4981         STANDARD_INCLUDE_COMPONENT.
4982         (cpp_include_defaults): Don't use SYSTEM_INCLUDE_DIR.  Rename
4983         STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
4984         * system.h: Poison SYSTEM_INCLUDE_DIR, STANDARD_INCLUDE_DIR, and
4985         STANDARD_INCLUDE_COMPONENT.
4986         * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Remove.
4987         * config/i386/t-mingw-w32: Likewise.
4988         * config/i386/t-mingw-w64: Likewise.
4989         * config/spu/t-spu-elf: Likewise.
4990         * config/i386/t-djgpp: Remove.
4991         * config/t-gnu: Remove.
4992         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Don't define.
4993         (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
4994         STANDARD_INCLUDE_COMPONENT.
4995         * config/i386/djgpp.h (STANDARD_INCLUDE_DIR): Don't define.
4996         * config/spu/spu-elf.h: Likewise.
4997         * config/vms/xm-vms.h: Likewise.
4998         * config/gnu.h: Likewise.
4999         * config/openbsd.h (INCLUDE_DEFAULTS): Change STANDARD_INCLUDE_DIR
5000         and STANDARD_INCLUDE_COMPONENT to NATIVE_SYSTEM_HEADER_DIR and
5001         NATIVE_SYSTME_HEADER_COMPONENT.
5002         * doc/install.texi (Configuration): Document
5003         --with-native-system-header-dir.  Mention it in the documentation
5004         for --with-sysroot and --with-build-sysroot.
5005         * doc/tm.texi.in (Driver): Don't document SYSTEM_INCLUDE_DIR or
5006         STANDARD_INCLUDE_DIR.  Rename STANDARD_INCLUDE_COMPONENT to
5007         NATIVE_SYSTEM_HEADER_COMPONENT.  Rename uses of
5008         STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
5009         * doc/fragments.texi (Target Fragment): Don't document
5010         NATIVE_SYSTEM_HEADER_DIR.
5011         * configure, doc/tm.texi: Rebuild.
5012
5013 2011-10-17  Richard Henderson  <rth@redhat.com>
5014
5015         * config/sparc/sparc.md: Use register_or_zero_operand where rJ
5016         is the constraint.
5017
5018         * config/sparc/sparc.md (vec_perm_constv8qi, vec_perm<mode>): New
5019         patterns.
5020         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): New function.
5021         * config/sparc/sparc-protos.h (sparc_expand_vec_perm_bmask): Declare.
5022
5023 2011-10-17  David S. Miller  <davem@davemloft.net>
5024
5025         * config/sparc/sparc-modes.def: Add single entry vector modes for
5026         DImode and SImode.
5027         * config/sparc/sparc.md (V32, V32I, V64, V64I, V64N8): Delete
5028         mode iterators.
5029         (mov<V32:mode>): Revert back to plain SFmode pattern.
5030         (*movsf_insn): Likewise.
5031         (mov<V64:mode>): Revert back to plain DFmode pattern.
5032         (*movdf_insn_sp32): Likewise.
5033         (*movdf_insn_sp32_v9): Likewise.
5034         (*movdf_insn_sp64): Likewise.
5035         (V64 mode splitters) Likewise.
5036         (addsi3): Remove VIS alternatives.
5037         (subsi3): Likewise.
5038         (and<V64I:mode>3): Revert to DImode only pattern.
5039         (and<V64I:mode>3_sp32): Likewise.
5040         (*and<V64I:mode>3_sp64): Likewise.
5041         (and<V32I:mode>3): Likewise.
5042         (*and_not_<V64I:mode>_sp32): Likewise.
5043         (*and_not_<V64I:mode>_sp64): Likewise.
5044         (*and_not_<V32I:mode>): Likewise.
5045         (ior<V64I:mode>3): Likewise.
5046         (*ior<V64I:mode>3_sp32): Likewise.
5047         (*ior<V64I:mode>3_sp64): Likewise.
5048         (ior<V32I:mode>3): Likewise.
5049         (*or_not_<V64I:mode>_sp32): Likewise.
5050         (*or_not_<V64I:mode>_sp64): Likewise.
5051         (*or_not_<V32I:mode>): Likewise.
5052         (xor<V64I:mode>3): Likewise.
5053         (*xor<V64I:mode>3_sp32): Likewise.
5054         (*xor<V64I:mode>3_sp64): Likewise.
5055         (xor<V32I:mode>3): Likewise.
5056         (V64I mode splitters): Likewise.
5057         (*xor_not_<V64I:mode>_sp32): Likewise.
5058         (*xor_not_<V64I:mode>_sp64): Likewise.
5059         (*xor_not_<V32I:mode>): Likewise.
5060         (one_cmpl<V64I:mode>2): Likewise.
5061         (*one_cmpl<V64I:mode>2_sp32): Likewise.
5062         (*one_cmpl<V64I:mode>2_sp64): Likewise.
5063         (one_cmpl<V32I:mode>2): Likewise.
5064         (VM32, VM64, VMALL): New mode iterators.
5065         (vbits, vconstr, vfptype): New mode attributes.
5066         (mov<VMALL:mode>): New expander.
5067         (*mov<VM32:mode>_insn): New insn.
5068         (*mov<VM64:mode>_insn_sp64): New insn.
5069         (*mov<VM64:mode>_insn_sp32): New insn, and associated splitter
5070         specifically for the register to memory case.
5071         (vec_init<mode>): New expander.
5072         (VADDSUB): New mode iterator.
5073         (<plusminus_insn>v2si3, <plusminus_insn>v2hi3): Remove and replace
5074         with...
5075         (<plusminus_insn><mode>3): New consolidated pattern.
5076         (VL): New mode iterator for logical operations.
5077         (vlsuf): New more attribute.
5078         (vlop): New code iterator.
5079         (vlinsn, vlninsn): New code attributes.
5080         (<code><mode>3): New insn to non-negated vector logical ops.
5081         (*not_<code><mode>3): Likewise for negated variants.
5082         (*nand<mode>_vis): New insn.
5083         (vlnotop): New code iterator.
5084         (*<code>_not1<mode>_vis, *<code>_not2<mode>_vis): New insns.
5085         (one_cmpl<mode>2): New insn.
5086         (faligndata<V64I:mode>_vis): Rewrite to use VM64 iterator.
5087         (bshuffle<VM64:mode>_vis): Likewise.
5088         (v<vis3_shift_patname><mode>3): Use GCM mode iterator.
5089         (fp<plusminus_insn>64_vis): Use V1DI mode.
5090         (VASS mode iterator): Use V1SI not SI mode.
5091         * config/sparc/sparc.c (sparc_vis_init_builtins): Account for
5092         single-entry vector mode changes.
5093         (sparc_expand_builtin): Likewise.
5094         (sparc_expand_vector_init): New function.
5095         * config/sparc/sparc-protos.h (sparc_expand_vector_init): Declare.
5096
5097 2011-10-17  Kai Tietz  <ktietz@redhat.com>
5098
5099         * fold-const.c (simple_operand_p_2): New function.
5100         (fold_truthop): Rename to
5101         (fold_truth_andor_1): function name.
5102         Additionally remove branching creation for logical and/or.
5103         (fold_truth_andor): Handle branching creation for logical and/or here.
5104
5105 2011-10-17  Andi Kleen  <ak@linux.intel.com>
5106
5107         * ggc-page.c (USING_MADVISE): Adjust ifdef to check for USING_MMAP.
5108
5109 2011-10-17  Georg-Johann Lay  <avr@gjlay.de>
5110
5111         * config/avr/avr.h (ASSEMBLER_DIALECT): Remove.
5112         * config/avr/avr.md (mcu_have_movw, mcu_mega): Remove attributes.
5113         (adjust_len): Add alternative "call".
5114         (isa, enabled): New insn attributes.
5115         (length): Use match_test with AVR_HAVE_JMP_CALL instead of
5116         mcu_mega attribute.
5117         (*sbrx_branch<mode>): Ditto.
5118         (*sbrx_and_branch<mode>): Ditto.
5119         (*sbix_branch): Ditto.
5120         (*sbix_branch_bit7): Ditto.
5121         (*sbix_branch_tmp): Ditto.
5122         (*sbix_branch_tmp_bit7): Ditto.
5123         (jump): Ditto.
5124         (negsi2): Use attribute "isa" instead of assembler dialect.
5125         (extendhisi2): Ditto.
5126         (call_insn, call_value_insn): Set adjust_len attribute.
5127         (indirect_jump): Indent to coding rules.
5128         (call_prologue_saves): Use isa attribute instead of mcu_mega.
5129         (epilogue_restores): Ditto.  Fix setting of SP as described in the
5130         RTX pattern.
5131         (*indirect_jump): Fusion of *jcindirect_jump, *njcindirect_jump
5132         and *indirect_jump_avr6.
5133         (*tablejump): Fusion of *tablejump_rjmp and *tablejump_lib.
5134         (*jcindirect_jump, *njcindirect_jump, *indirect_jump_avr6): Remove.
5135         (*tablejump_rjmp, *tablejump_lib): Remove.
5136         * config/avr/avr.c (adjust_insn_length): Handle ADJUST_LEN_CALL.
5137
5138 2011-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
5139
5140         PR c++/50757
5141         * doc/invoke.texi ([Wnonnull]): Update.
5142
5143 2011-10-17  Richard Henderson  <rth@redhat.com>
5144
5145         PR 50746
5146         * optabs.c (expand_vec_perm_expr): Fix indexing error.
5147
5148 2011-10-17  Sergio Durigan Junior  <sergiodj@redhat.com>
5149
5150         * configure.ac: Display `yes' if the SystemTap header has been found.
5151         * configure: Regenerate.
5152
5153 2011-10-08  Andi Kleen  <ak@linux.intel.com>
5154
5155         PR other/50636
5156         * config.in, configure: Regenerate.
5157         * configure.ac (madvise): Add to AC_CHECK_FUNCS.
5158         * ggc-page.c (USING_MADVISE): Add.
5159         (page_entry): Add discarded field.
5160         (alloc_page): Check for discarded pages.
5161         (release_pages): Add USING_MADVISE branch.
5162
5163 2011-10-17  Richard Guenther  <rguenther@suse.de>
5164
5165         PR tree-optimization/50729
5166         * tree-vrp.c (extract_range_from_unary_expr_1): Remove redundant test.
5167         (simplify_conversion_using_ranges): Properly test the
5168         intermediate result.
5169
5170 2011-10-15  Tom Tromey  <tromey@redhat.com>
5171             Dodji Seketeli  <dodji@redhat.com>
5172
5173         * ggc.h (ggc_round_alloc_size): Declare new public entry point.
5174         * ggc-none.c (ggc_round_alloc_size): New public stub function.
5175         * ggc-page.c (ggc_alloced_size_order_for_request): New static
5176         function.  Factorized from ggc_internal_alloc_stat.
5177         (ggc_round_alloc_size): New public function.  Uses
5178         ggc_alloced_size_order_for_request.
5179         (ggc_internal_alloc_stat): Use ggc_alloced_size_order_for_request.
5180         * ggc-zone.c (ggc_round_alloc_size): New public function extracted
5181         from ggc_internal_alloc_zone_stat.
5182         (ggc_internal_alloc_zone_stat): Use ggc_round_alloc_size.
5183         * toplev.c (general_init): Initialize
5184         line_table->alloced_size_for_request.
5185
5186 2011-10-15  Tom Tromey  <tromey@redhat.com>
5187             Dodji Seketeli  <dodji@redhat.com>
5188
5189         * input.c (ONE_K, ONE_M, SCALE, STAT_LABEL, FORMAT_AMOUNT): New macros.
5190         (num_expanded_macros_counter, num_macro_tokens_counter): Declare
5191         new counters.
5192         (dump_line_table_statistics): Define new function.
5193         * input.h (dump_line_table_statistics): Declare new function.
5194         * toplev.c (dump_memory_report): Call dump_line_table_statistics.
5195
5196 2011-10-15  Tom Tromey  <tromey@redhat.com>
5197             Dodji Seketeli  <dodji@redhat.com>
5198
5199         * doc/cppopts.texi: Document -fdebug-cpp.
5200         * doc/invoke.texi: Add -fdebug-cpp to the list of preprocessor options.
5201
5202 2011-10-15  Tom Tromey  <tromey@redhat.com>
5203             Dodji Seketeli  <dodji@redhat.com>
5204
5205         * gcc/diagnostic.h (diagnostic_report_current_module): Add a
5206         location parameter.
5207         * diagnostic.c (diagnostic_report_current_module): Add a location
5208         parameter to the function definition.  Use it instead of
5209         input_location.  Resolve the virtual location rather than just
5210         looking up its map and risking to touch a resulting macro map.
5211         (default_diagnostic_starter): Pass the relevant diagnostic
5212         location to diagnostic_report_current_module.
5213         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): New.
5214         (virt_loc_aware_diagnostic_finalizer): Likewise.
5215         (diagnostic_report_current_function): Pass the
5216         relevant location to diagnostic_report_current_module.
5217         * tree-diagnostic.h (virt_loc_aware_diagnostic_finalizer): Declare
5218         new function.
5219         * toplev.c (general_init): By default, use the new
5220         virt_loc_aware_diagnostic_finalizer as diagnostic finalizer.
5221         * Makefile.in: Add vec.h dependency to tree-diagnostic.c.
5222
5223 2011-10-15  Tom Tromey  <tromey@redhat.com>
5224             Dodji Seketeli  <dodji@redhat.com>
5225
5226         * doc/cppopts.texi (-ftrack-macro-expansion): Document new option.
5227         * doc/invoke.texi (-ftrack-macro-expansion): Add this to the list of
5228         preprocessor related options.
5229
5230 2011-10-15  Tom Tromey  <tromey@redhat>
5231             Dodji Seketeli  <dodji@redhat.com>
5232
5233         * input.h (struct expanded_location): Move to libcpp/line-map.h.
5234         (LOCATION_COLUMN): New accessor
5235         (in_system_header_at): Use linemap_location_in_system_header_p.
5236         * diagnostic.c (diagnostic_report_current_module): Adjust to avoid
5237         touching the internals of struct line_map.  Use the public API instead.
5238         (diagnostic_report_diagnostic): Don't use relational operator '<'
5239         on virtual locations.  Use linemap_location_before_p instead.
5240         * input.c (expand_location): Adjust to expand to the tokens'
5241         spelling location when macro location tracking is on.
5242
5243
5244 2011-10-08  Andi Kleen  <ak@linux.intel.com>
5245
5246         * ggc-page.c (GGC_QUIRE_SIZE): Increase to 512
5247
5248 2011-10-13  Andi Kleen  <ak@linux.intel.com>
5249
5250         * toplev.c (compile_file): Rename __gnu_slim_lto to __gnu_lto_slim.
5251
5252 2011-10-16  Ira Rosen  <ira.rosen@linaro.org>
5253
5254         PR tree-optimization/50727
5255         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Add
5256         DEF_STMT to the list of statements to be replaced by the
5257         pattern statements.
5258
5259 2011-10-16  Eric Botcazou  <ebotcazou@adacore.com>
5260
5261         PR rtl-optimization/50615
5262         * combine.c (distribute_notes) <REG_ARGS_SIZE>: Skip if I3 is a no-op.
5263
5264 2011-10-16  Jakub Jelinek  <jakub@redhat.com>
5265
5266         PR tree-optimization/50596
5267         * tree-vectorizer.h (NUM_PATTERNS): Increase to 7.
5268         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
5269         vect_recog_bool_pattern.
5270         (check_bool_pattern, adjust_bool_pattern_cast,
5271         adjust_bool_pattern, vect_recog_bool_pattern): New functions.
5272
5273 2011-10-16  Ira Rosen  <ira.rosen@linaro.org>
5274
5275         * tree-vect-stmts.c (vectorizable_load): For SLP without permutation
5276         treat the first load of the node as the first element in its
5277         interleaving chain.
5278         * tree-vect-slp.c (vect_get_and_check_slp_defs): Swap the operands if
5279         necessary and possible.
5280         (vect_build_slp_tree): Add new argument.  Allow load groups of any size
5281         in basic blocks.  Keep all the loads for further permutation check.
5282         Use the new argument to determine if there is a permutation.  Update
5283         the recursive calls.
5284         (vect_supported_load_permutation_p): Allow subchains of interleaving
5285         chains in basic block vectorization.
5286         (vect_analyze_slp_instance): Update the call to vect_build_slp_tree.
5287         Check load permutation based on the new parameter.
5288         (vect_schedule_slp_instance): Don't start from the first element in
5289         interleaving chain unless the loads are permuted.
5290
5291 2011-10-15  Jan Hubicka  <jh@suse.cz>
5292
5293         PR target/48668
5294         PR target/50689
5295         * cgraphunit.c (cgraph_expand_function): Expand thunks and alises
5296         after function body.
5297
5298 2011-10-15  Richard Henderson  <rth@redhat.com>
5299
5300         * tree-vect-slp.c: Include langhooks.h.
5301         (vect_create_mask_and_perm): Emit VEC_PERM_EXPR, not a builtin.
5302         (vect_transform_slp_perm_load): Use can_vec_perm_expr_p.  Simplify
5303         mask creation for VEC_PERM_EXPR.
5304         * tree-vect-stmts.c (perm_mask_for_reverse): Return the mask,
5305         not the builtin.
5306         (reverse_vec_elements): Emit VEC_PERM_EXPR not a builtin.
5307         * Makefile.in (tree-vect-slp.o): Update dependency.
5308         * optabs.c (can_vec_perm_expr_p): Allow NULL as unknown constant.
5309
5310 2011-10-15  Alan Modra  <amodra@gmail.com>
5311
5312         PR bootstrap/50738
5313         * ifcvt.c (dead_or_predicable): Revert accidental commit with
5314         HAVE_simple_return test.
5315
5316 2011-10-15  Alan Modra  <amodra@gmail.com>
5317
5318         * ifcvt.c (dead_or_predicable): Disable if-conversion when
5319         doing so is likely to kill a shrink-wrapping opportunity.
5320
5321         PR rtl-optimization/49941
5322         * jump.c (mark_jump_label_1): Set JUMP_LABEL for simple_return jumps.
5323
5324         * rtl.h (set_return_jump_label): Declare.
5325         * function.c (set_return_jump_label): New function, extracted..
5326         (thread_prologue_and_epilogue_insns): ..from here.  Use it in
5327         another instance to set return jump_label.
5328         * cfgrtl.c (force_nonfallthru_and_redirect): Use set_return_jump_label.
5329         * reorg.c (find_end_label): Likewise.
5330
5331 2011-10-14  David S. Miller  <davem@davemloft.net>
5332
5333         * config/sparc/sol2.h: Protect -m{cpu,tune}=native handling
5334         with a more complete cpp test.
5335         * config/sparc/linux64.h: Likewise.
5336         * config/sparc/linux.h: Likewise.
5337         * config/sparc/sparc.opt (sparc_debug): New target variable.
5338         (mdebug): New target option.
5339         * config/sparc/sparc.h (MASK_DEBUG_OPTIONS, MASK_DEBUG_ALL,
5340         TARGET_DEBUG_OPTIONS): New defines.
5341         * config/sparc/sparc.c (debug_target_flag_bits,
5342         debug_target_flags): New functions.
5343         (sparc_option_override): Add name strings back to cpu_table[].
5344         Parse -mdebug string.  When TARGET_DEBUG_OPTIONS is true, print
5345         out the target flags before and after override processing as well
5346         as the selected cpu.  If MASK_V8PLUS, make sure that the selected
5347         cpu is at least v9.
5348
5349 2011-10-15  Oleg Endo  <oleg.endo@t-online.de>
5350
5351         PR target/49263
5352         * config/sh/sh.h (ZERO_EXTRACT_ANDMASK): New macro.
5353         * config/sh/sh.c (sh_rtx_costs): Add test instruction case.
5354         * config/sh/sh.md (tstsi_t): Name existing insn.  Make inner
5355         and instruction commutative.
5356         (tsthi_t, tstqi_t, tstqi_t_zero, tstsi_t_and_not,
5357         tstsi_t_zero_extract_eq, tstsi_t_zero_extract_xor,
5358         tstsi_t_zero_extract_subreg_xor_little,
5359         tstsi_t_zero_extract_subreg_xor_big): New insns.
5360         (*movsicc_t_false, *movsicc_t_true): Replace space with tab in
5361         asm output.
5362         (*andsi_compact): Reorder alternatives so that K08 is considered first.
5363
5364 2011-10-14  Eric Botcazou  <ebotcazou@adacore.com>
5365
5366         PR target/50354
5367         * config/sparc/linux64.h (TARGET_DEFAULT): Only override if the default
5368         processor is at least V9 and TARGET_64BIT_DEFAULT is defined.
5369
5370 2011-10-14  Gerald Pfeifer  <gerald@pfeifer.com>
5371
5372         * invoke.texi (AVR Options): Avoid \leq{}.
5373
5374 2011-10-14  Kai Tietz  <ktietz@redhat.com>
5375
5376         * gimplify.c (gimplify_expr): Take care that for bitwise-binary
5377         transformation the operands have compatible types.
5378
5379 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
5380
5381         * config/i386/sse.md (vec_widen_smult_hi_v8hi,
5382         vec_widen_smult_lo_v8hi, vec_widen_umult_hi_v8hi,
5383         vec_widen_umult_lo_v8hi): Macroize using VI2_AVX2
5384         mode iterator and any_extend code iterator.
5385         (vec_widen_<s>mult_hi_v8si, vec_widen_<s>mult_lo_v8si): New expanders.
5386         (vec_widen_smult_hi_v4si, vec_widen_smult_lo_v4si): Enable
5387         also for TARGET_SSE4_1 using pmuldq insn.
5388         (sdot_prodv8hi): Macroize using VI2_AVX2 iterator.
5389         (sse2_sse4_1): New code attr.
5390         (udot_prodv4si): Macroize using any_extend code iterator.
5391         (<s>dot_prodv8si): New expander.
5392
5393 2011-10-14  Yakovlev Vladimir  <vladimir.b.yakovlev@intel.com>
5394
5395         * config/i386/i386.c (atom_cost): Changed cost for loading
5396         QImode using movzbl.
5397
5398 2011-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
5399
5400         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo in my
5401         change on October 11th, 2011.
5402
5403 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
5404
5405         * config/i386/sse.md (vec_interleave_high<mode>,
5406         vec_interleave_low<mode>): Add AVX2 expanders for VI_256 modes.
5407         * config/i386/i386.c (expand_vec_perm_interleave3): New function.
5408         (ix86_expand_vec_perm_builtin_1): Call it.
5409
5410 2011-10-14  Georg-Johann Lay  <avr@gjlay.de>
5411
5412         Fix thinko from r179765
5413         * config/avr/avr.c (avr_option_override): Don't override
5414         flag_omit_frame_pointer if not actually needed.
5415
5416 2011-10-14  Georg-Johann Lay  <avr@gjlay.de>
5417
5418         PR target/46278
5419         * doc/invoke.texi (AVR Options): Document -mstrict-X.
5420
5421         * config/avr/avr.opt (-mstrict-X): New option.
5422         (avr_strict_X): New variable reflecting -mstrict-X.
5423         * config/avr/avr.c (avr_reg_ok_for_addr_p): Add parameter
5424         outer_code and pass it down to avr_regno_mode_code_ok_for_base_p.
5425         (avr_legitimate_address_p): Pass outer_code to
5426         avr_reg_ok_for_addr_p and use that function in case PLUS.
5427         (avr_mode_code_base_reg_class): Depend on avr_strict_X.
5428         (avr_regno_mode_code_ok_for_base_p): Ditto, and depend on outer_code.
5429         (avr_option_override): Disable -fcaller-saves if -mstrict-X is on.
5430
5431 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
5432
5433         * config/i386/sse.md (neg<mode>2): Use VI_AVX2 iterator instead
5434         of VI_128.
5435
5436         * config/i386/sse.md (mulv2di3): Macroize using VI8_AVX2 iterator.
5437         (ashl<mode>3): Use VI248_AVX2 iterator instead of VI248_128.
5438         Use <sseinsnmode> instead of TI in mode attr.
5439
5440 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
5441
5442         * config/arm/linux-atomic-64bit.c: New (based on linux-atomic.c).
5443         * config/arm/linux-atomic.c: Change comment to point to 64bit version.
5444         (SYNC_LOCK_RELEASE): Instantiate 64bit version.
5445         * config/arm/t-linux-eabi: Pull in linux-atomic-64bit.c.
5446
5447 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
5448
5449         * config/arm/arm.c (arm_output_ldrex): Support ldrexd.
5450         (arm_output_strex): Support strexd.
5451         (arm_output_it): New helper to output it in Thumb2 mode only.
5452         (arm_output_sync_loop): Support DI mode.  Change comment to
5453         not support const_int.
5454         (arm_expand_sync): Support DI mode.
5455         * config/arm/arm.h (TARGET_HAVE_LDREXBHD): Split into LDREXBH
5456         and LDREXD.
5457         * config/arm/iterators.md (NARROW): move from sync.md.
5458         (QHSD): New iterator for all current ARM integer modes.
5459         (SIDI): New iterator for SI and DI modes only.
5460         * config/arm/sync.md (sync_predtab): New mode_attr.
5461         (sync_compare_and_swapsi): Fold into sync_compare_and_swap<mode>.
5462         (sync_lock_test_and_setsi): Fold into sync_lock_test_and_setsi<mode>.
5463         (sync_<sync_optab>si): Fold into sync_<sync_optab><mode>.
5464         (sync_nandsi): Fold into sync_nand<mode>.
5465         (sync_new_<sync_optab>si): Fold into sync_new_<sync_optab><mode>.
5466         (sync_new_nandsi): Fold into sync_new_nand<mode>.
5467         (sync_old_<sync_optab>si): Fold into sync_old_<sync_optab><mode>.
5468         (sync_old_nandsi): Fold into sync_old_nand<mode>.
5469         (sync_compare_and_swap<mode>): Support SI & DI.
5470         (sync_lock_test_and_set<mode>): Likewise.
5471         (sync_<sync_optab><mode>): Likewise.
5472         (sync_nand<mode>): Likewise.
5473         (sync_new_<sync_optab><mode>): Likewise.
5474         (sync_new_nand<mode>): Likewise.
5475         (sync_old_<sync_optab><mode>): Likewise.
5476         (sync_old_nand<mode>): Likewise.
5477         (arm_sync_compare_and_swapsi): Turn into iterator on SI & DI.
5478         (arm_sync_lock_test_and_setsi): Likewise.
5479         (arm_sync_new_<sync_optab>si): Likewise.
5480         (arm_sync_new_nandsi): Likewise.
5481         (arm_sync_old_<sync_optab>si): Likewise.
5482         (arm_sync_old_nandsi): Likewise.
5483         (arm_sync_compare_and_swap<mode> NARROW): use sync_predtab, fix indent.
5484         (arm_sync_lock_test_and_setsi<mode> NARROW): Likewise.
5485         (arm_sync_new_<sync_optab><mode> NARROW): Likewise.
5486         (arm_sync_new_nand<mode> NARROW): Likewise.
5487         (arm_sync_old_<sync_optab><mode> NARROW): Likewise.
5488         (arm_sync_old_nand<mode> NARROW): Likewise.
5489
5490 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
5491
5492         PR target/48126
5493         * config/arm/arm.c (arm_output_sync_loop): Move label before barrier.
5494
5495 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
5496
5497         * config/arm/arm.h (TARGET_HAVE_DMB_MCR): MCR Not available in Thumb1.
5498
5499 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
5500
5501         * doc/invoke.texi ([Wformat-zero-length]): Tidy.
5502
5503 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
5504
5505         * gimple.c (walk_stmt_load_store_addr_ops): Call visit_addr also
5506         on COND_EXPR/VEC_COND_EXPR comparison operands if they are ADDR_EXPRs.
5507
5508 2011-10-14  Richard Guenther  <rguenther@suse.de>
5509
5510         PR tree-optimization/50723
5511         * ipa-split.c (split_function): Use GSI_CONTINUE_LINKING.
5512
5513 2011-10-14  Nicola Pero  <nicola.pero@meta-innovation.com>
5514
5515         * gengtype.c (files_rules): Added rules for objc/objc-map.h and
5516         objc/objc-map.c.
5517
5518 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
5519
5520         PR c++/17212
5521         * doc/invoke.texi ([Wformat-zero-length]): Update.
5522
5523 2011-10-14  Iain Sandoe  <iains@gcc.gnu.org>
5524
5525         PR bootstrap/50699
5526         * config/darwin.c (darwin_patch_builtin): Adjust argument type. Only
5527         build for powerpc targets.  (darwin_patch_builtins): Only build for
5528         powerpc targets.
5529
5530 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
5531
5532         * config/i386/sse.md (*avx_cvtdq2pd256_2): Rename to...
5533         (avx_cvtdq2pd256_2): ... this.
5534         (sseunpackfltmode): New mode attr.
5535         (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi,
5536         vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): Macroize
5537         using VI2_AVX2 iterator.
5538         (vec_unpacku_float_hi_v8si, vec_unpacku_float_lo_v8si): New expanders.
5539
5540 2011-10-13  David S. Miller  <davem@davemloft.net>
5541
5542         * config/sparc/sparc.md (plusminus): New code iterator.
5543         (plusminus_insn): New code attr.
5544         (addv2si3, subv2si3, addv4hi3, subv4hi3, addv2hi3, subv2hi3): Merge
5545         using plusminus and plusminus_insn.
5546         (fpadd64_vis, fpsub64_vis): Likewise.
5547
5548 2011-10-13  Richard Henderson  <rth@redhat.com>
5549
5550         * doc/md.texi (vec_perm): Document fallback to byte permutation.
5551         * genopinit.c (optabs): Add vec_perm_const.
5552         * optabs.c (can_vec_perm_expr_p): Rename from expand_vec_perm_expr_p.
5553         Reject non-vector modes.  Allow fallback to byte permutation.
5554         (expand_vec_perm_expr_1): Split out from ...
5555         (expand_vec_perm_expr): ... here.  Allow fallback to byte permutation.
5556         * optabs.h (DOI_vec_perm_const, vec_perm_const_optab): New.
5557         * tree-vect-generic.c (lower_vec_perm): Update for name change.
5558
5559 2011-10-13  Richard Henderson  <rth@redhat.com>
5560
5561         * config/rs6000/altivec.md (vec_permv16qi): New pattern.
5562
5563         * config/rs6000/spu.md (vec_permv16qi): New pattern.
5564
5565         * config/i386/i386.c (ix86_expand_vec_perm_const): New.
5566         * config/i386/i386-protos.h: Update.
5567         * config/i386/sse.md (VEC_PERM_CONST): New mode iterator.
5568         (vec_perm_const<VEC_PERM_CONST>): New expander.
5569
5570         * optabs.c (expand_vector_broadcast): New.
5571         (expand_binop): Expand scalar shifts of vectors to vector shifts
5572         of vectors, if the former isn't supported.
5573         * tree-vect-generic.c (expand_vector_operations_1): Don't do that
5574         here; always simplify to scalar shift of vector if possible.
5575
5576         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix mode
5577         test for vector splat.
5578
5579 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
5580
5581         * config/i386/sse.md (vec_set<mode>): Change V_128 iterator mode to V.
5582
5583 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
5584             Richard Guenther  <rguenther@suse.de>
5585
5586         * tree-ssa.c (maybe_optimize_var): Drop TREE_ADDRESSABLE from vector
5587         or complex vars even if their DECL_UID is in not_reg_needs bitmap.
5588
5589 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
5590
5591         * config/i386/sse.md (reduc_umin_v8hi): New pattern.
5592         * config/i386/i386.c (ix86_build_const_vector): Handle
5593         also V32QI, V16QI, V16HI and V8HI modes.
5594         (emit_reduc_half): New function.
5595         (ix86_expand_reduc): Use phminposuw insn for V8HImode UMIN.
5596         Use emit_reduc_half helper function.
5597
5598 2011-10-13  Lawrence Crowl  <crowl@google.com>
5599             Diego Novillo  <dnovillo@google.com>
5600
5601         * lto-streamer-in.c (input_struct_function_base): Factor out of ...
5602         (input_function): ... here.
5603         * lto-streamer-out.c (output_struct_function_base): Factor out of ...
5604         (output_function): ... here.
5605
5606 2011-10-13  Gabriel Charette  <gchare@google.com>
5607             Diego Novillo  <dnovillo@google.com>
5608
5609         * streamer-hooks.h (struct streamer_hooks): Add hooks
5610         input_location and output_location.
5611         * lto-streamer-in.c (lto_input_location): Use
5612         streamer_hooks.input_location, if set.
5613         * lto-streamer-out.c (lto_output_location): Use
5614         streamer_hooks.output_location, if set.
5615
5616 2011-10-13  Eric Botcazou  <ebotcazou@adacore.com>
5617
5618         * doc/invoke.texi (SPARC options): Document -mfix-at697f.
5619         * config/sparc/sparc.opt (mfix-at697f): New option.
5620         * config/sparc/sparc.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5621         (sparc_reorg): New function.
5622
5623 2011-10-13  Richard Guenther  <rguenther@suse.de>
5624
5625         PR tree-optimization/50712
5626         * ipa-split.c (split_function): Always re-gimplify parameters
5627         when they are not gimple vals before passing them.  Properly
5628         check for type compatibility.
5629
5630 2011-10-13  Tom de Vries  <tom@codesourcery.com>
5631
5632         * function.c (gimplify_parameters): Set number of arguments of call to
5633         BUILT_IN_ALLOCA_WITH_ALIGN to 2.
5634
5635 2011-10-13  Tom de Vries  <tom@codesourcery.com>
5636
5637         * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_READONLY_P
5638         for static const strings.
5639         * varasm.c (build_constant_desc): Generate the memory location of the
5640         constant using gen_const_mem.
5641
5642 2011-10-13  Richard Guenther  <rguenther@suse.de>
5643
5644         PR tree-optimization/50698
5645         * tree-data-ref.c (split_constant_offset_1): Also process
5646         offsets of &MEM.
5647
5648 2011-10-12  David S. Miller  <davem@davemloft.net>
5649
5650         * config/sparc/sparc.md (UNSPEC_FPMERGE): Delete.
5651         (UNSPEC_MUL16AU, UNSPEC_MUL8, UNSPEC_MUL8SU, UNSPEC_MULDSU): New
5652         unspecs.
5653         (fpmerge_vis): Remove inaccurate comment, represent using vec_select
5654         of a vec_concat.
5655         (vec_interleave_lowv8qi, vec_interleave_highv8qi): New insns.
5656         (fmul8x16_vis, fmul8x16au_vis, fmul8sux16_vis, fmuld8sux16_vis):
5657         Reimplement as unspecs and remove inaccurate comments.
5658         (vis3_shift_patname): New code attr.
5659         (<vis3_shift_insn><vbits>_vis): Rename to
5660         "v<vis3_shift_patname><mode>3".
5661         (vis3_addsub_ss_patname): New code attr.
5662         (<vis3_addsub_ss_insn><vbits>_vis): Rename to
5663         "<vis3_addsub_ss_patname><mode>3".
5664         * config/sparc/sparc.c (sparc_vis_init_builtins): Update to
5665         accommodate pattern name changes.
5666
5667         * config/sparc/sparc.h: Do not force TARGET_VIS3 and TARGET_FMAF
5668         to zero when assembler lacks support for such instructions.
5669         * config/sparc/sparc.c (sparc_option_override): Clear MASK_VIS3
5670         and MASK_FMAF in defaults when assembler lacks necessary support.
5671
5672 2011-10-12  Jakub Jelinek  <jakub@redhat.com>
5673
5674         * config/i386/sse.md (vec_unpacks_lo_<mode>,
5675         vec_unpacks_hi_<mode>, vec_unpacku_lo_<mode>,
5676         vec_unpacku_hi_<mode>): Change VI124_128 mode to VI124_AVX2.
5677         * config/i386/i386.c (ix86_expand_sse_unpack): Handle
5678         V32QImode, V16HImode and V8SImode for TARGET_AVX2.
5679
5680         * config/i386/sse.md (vec_avx2): New mode_attr.
5681         (mulv16qi3): Macroize to cover also mulv32qi3 for TARGET_AVX2 into ...
5682         (mul<mode>3): ... this.
5683
5684         * config/i386/i386.md (UNSPEC_VPERMDI): Remove.
5685         * config/i386/i386.c (ix86_expand_vec_perm): Handle
5686         V16QImode and V32QImode for TARGET_AVX2.
5687         (MAX_VECT_LEN): Increase to 32.
5688         (expand_vec_perm_blend): Add support for 32-byte integer
5689         vectors with TARGET_AVX2.
5690         (valid_perm_using_mode_p): New function.
5691         (expand_vec_perm_pshufb): Add support for 32-byte integer
5692         vectors with TARGET_AVX2.
5693         (expand_vec_perm_vpshufb2_vpermq): New function.
5694         (expand_vec_perm_vpshufb2_vpermq_even_odd): New function.
5695         (expand_vec_perm_even_odd_1): Handle 32-byte integer vectors
5696         with TARGET_AVX2.
5697         (ix86_expand_vec_perm_builtin_1): Try expand_vec_perm_vpshufb2_vpermq
5698         and expand_vec_perm_vpshufb2_vpermq_even_odd.
5699         * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Add for TARGET_AVX2
5700         32-byte integer vector modes.
5701         (vec_pack_trunc_<mode>): Use VI248_AVX2 instead of VI248_128.
5702         (avx2_interleave_highv32qi, avx2_interleave_lowv32qi): Remove pasto.
5703         (avx2_pshufdv3, avx2_pshuflwv3, avx2_pshufhwv3): Generate
5704         4 new operands.
5705         (avx2_pshufd_1, avx2_pshuflw_1, avx2_pshufhw_1): Don't use
5706         match_dup, instead add 4 new operands and require they have
5707         right cross-lane values.
5708         (avx2_permv4di): Change into define_expand.
5709         (avx2_permv4di_1): New instruction.
5710         (avx2_permv2ti): Use nonimmediate_operand instead of register_operand
5711         for "xm" constrained operand.
5712         (VEC_PERM_AVX2): Add V32QI and V16QI for TARGET_AVX2.
5713
5714         * config/i386/sse.md (avx2_gathersi<mode>,
5715         avx2_gatherdi<mode>, avx2_gatherdi<mode>256): Add clobber of
5716         match_scratch, change memory_operand to register_operand,
5717         add (mem:BLK (scratch)) use.
5718         (*avx2_gathersi<mode>, *avx2_gatherdi<mode>,
5719         *avx2_gatherdi<mode>256): Add clobber of match_scratch,
5720         add earlyclobber to the output operand and match_scratch,
5721         add (mem:BLK (scratch)) use, change the other mem to match_operand.
5722         Use %p6 instead of %c6 in the pattern.
5723         * config/i386/i386.c (ix86_expand_builtin): Adjust for
5724         operand 2 being a Pmode register_operand instead of memory_operand.
5725
5726 2011-10-12  Kai Tietz  <ktietz@redhat.com>
5727
5728         * config/i386/i386.md (simple_return): Disable if TARGET_SEH is active.
5729
5730 2011-10-12  Steve Ellcey  <sje@cup.hp.com>
5731
5732         * config/ia64/ia64.c (ia64_init_builtins): Fix unbalanced parentheses.
5733
5734 2011-10-12  Richard Guenther  <rguenther@suse.de>
5735
5736         * tree-ssa-alias.c (maybe_skip_until): Cache also at the point
5737         of the first store we visit in a basic-block.
5738         (get_continuation_for_phi): Search for a candidate VUSE that
5739         might dominates all others.  Do pairwise disambiguation against
5740         that candidate.
5741
5742 2011-10-12  Paul Koning  <pkoning@gcc.gnu.org>
5743
5744         PR tree-optimization/50189
5745         * tree-vrp.c (extract_range_from_assert): Use the type of
5746         the variable, not the limit.
5747
5748 2011-10-12  Richard Guenther  <rguenther@suse.de>
5749
5750         PR tree-optimization/50700
5751         * tree-object-size.c (addr_object_size): Simplify and treat
5752         MEM_REF bases consistently.
5753
5754 2011-10-12  Bernd Schmidt  <bernds@codesourcery.com>
5755
5756         * function.c (prepare_shrink_wrap, bb_active_p): New function.
5757         (thread_prologue_and_epilogue_insns): Use bb_active_p.  Call
5758         prepare_shrink_wrap, then recompute bb_active_p for the last block.
5759
5760 2011-10-12  Joseph Myers  <joseph@codesourcery.com>
5761
5762         PR c/50565
5763         * convert.c (convert_to_integer): Do not narrow operands of
5764         pointer subtraction.
5765
5766 2011-10-12  Nick Clifton  <nickc@redhat.com>
5767
5768         * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): New macro.  Used to
5769         emit a .eabi_attribute assembler directive, possibly with a
5770         comment attached.
5771         * config/arm/arm.c (arm_file_start): Use the new macro.
5772         * config/arm/arm-c.c (arm_output_c_attributes): Likewise.
5773
5774 2011-10-12  Georg-Johann Lay  <avr@gjlay.de>
5775
5776         PR target/49939
5777         * config/avr/avr.md (*movqi): Rename to movqi_insn.
5778         (*call_insn): Rename to call_insn.
5779         (*call_value_insn): Rename to call_value_insn.
5780         * config/avr/avr.c (avr_2word_insn_p): New static function.
5781         (jump_over_one_insn_p): Use it.
5782
5783 2011-10-12  Richard Sandiford  <richard.sandiford@linaro.org>
5784
5785         * expr.h (copy_blkmode_to_reg): Declare.
5786         * expr.c (copy_blkmode_to_reg): New function.
5787         (expand_assignment): Don't expand register RESULT_DECLs before
5788         the lhs.  Use copy_blkmode_to_reg to copy BLKmode values into a
5789         RESULT_DECL register.
5790         (expand_expr_real_1): Handle BLKmode decls when looking for promotion.
5791         * stmt.c (expand_return): Move BLKmode-to-register code into
5792         copy_blkmode_to_reg.
5793
5794 2011-10-11  Eric Botcazou  <ebotcazou@adacore.com>
5795
5796         PR target/49965
5797         * config/sparc/sparc.md (mov<I:mode>cc): Do not save comparison code.
5798         (mov<F:mode>cc): Likewise.
5799
5800 2011-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5801
5802         * tree-ssa-address.c (copy_ref_info): Remove copy of TREE_THIS_NOTRAP.
5803
5804 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
5805
5806         * tree.h (built_in_decls): Delete old interface with two parallel
5807         arrays to hold standard builtin declarations, and replace it with
5808         a function based interface that can support creating builtins on
5809         the fly in the future.  Change all uses, and poison the old
5810         names.  Make sure 0 is not a legitimate builtin index.
5811         (implicit_built_in_decls): Ditto.
5812         (built_in_info): Ditto.
5813         (BUILTIN_VALID_P): Ditto.
5814         (builtin_decl_explicit): Ditto.
5815         (builtin_decl_implicit): Ditto.
5816         (set_builtin_decl): Ditto.
5817         (set_builtin_decl_implicit_p): Ditto.
5818         (builtin_decl_explicit_p): Ditto.
5819         (builtin_decl_implicit_p): Ditto.
5820         * tree-complex.c (expand_complex_libcall): Ditto.
5821         * tree-loop-distribution.c (generate_memset_zero): Ditto.
5822         * tree-ssa-strlen.c (get_string_length): Ditto.
5823         (handle_builtin_strcpy): Ditto.
5824         (handle_builtin_strcat): Ditto.
5825         * tree.c (iterative_hash_expr): Ditto.
5826         (local_define_builtin): Ditto.
5827         (build_common_builtin_nodes): Ditto.
5828         * builtins.c (built_in_decls): Ditto.
5829         (implicit_built_in_decls): Ditto.
5830         (built_in_info): Ditto
5831         (expand_builtin_classify_type): Ditto.
5832         (mathfn_built_in_1): Ditto.
5833         (expand_builtin_cexpi): Ditto.
5834         (expand_builtin_mempcpy_args): Ditto.
5835         (expand_builtin_stpcpy): Ditto.
5836         (gimplify_va_arg_expr): Ditto.
5837         (expand_builtin_sync_operation): Ditto.
5838         (build_builtin_expect_predicate): Ditto.
5839         (fold_builtin_memory_op): Ditto.
5840         (fold_builtin_strcpy): Ditto.
5841         (fold_builtin_stpcpy): Ditto.
5842         (fold_builtin_strncpy): Ditto.
5843         (fold_builtin_interclass_mathfn): Ditto.
5844         (fold_builtin_classify): Ditto.
5845         (fold_builtin_2): Ditto.
5846         (fold_builtin_strstr): Ditto.
5847         (fold_builtin_strrchr): Ditto.
5848         (fold_builtin_strpbrk): Ditto.
5849         (fold_builtin_strcat): Ditto.
5850         (fold_builtin_strncat): Ditto.
5851         (fold_builtin_strcspn): Ditto.
5852         (fold_builtin_fputs): Ditto.
5853         (fold_builtin_sprintf): Ditto.
5854         (fold_builtin_snprintf): Ditto.
5855         (expand_builtin_memory_chk): Ditto.
5856         (fold_builtin_memory_chk): Ditto.
5857         (fold_builtin_stxcpy_chk): Ditto.
5858         (fold_builtin_strncpy_chk): Ditto.
5859         (fold_builtin_strcat_chk): Ditto.
5860         (fold_builtin_strncat_chk): Ditto.
5861         (fold_builtin_sprintf_chk_1): Ditto.
5862         (fold_builtin_snprintf_chk_1): Ditto.
5863         (fold_builtin_printf): Ditto.
5864         (fold_builtin_fprintf): Ditto.
5865         (fold_call_stmt): Ditto.
5866         (set_builtin_user_assembler_name): Ditto.
5867         * tree-emutls.c (emutls_common_1): Ditto.
5868         * omp-low.c (scan_omp): Ditto.
5869         (lower_rec_input_clauses): Ditto.
5870         (lower_reduction_clauses): Ditto.
5871         (expand_parallel_call): Ditto.
5872         (expand_task_call): Ditto.
5873         (maybe_catch_exception): Ditto.
5874         (optimize_omp_library_calls): Ditto.
5875         (expand_omp_for_generic): Ditto.
5876         (expand_omp_for_static_nochunk): Ditto.
5877         (expand_omp_for_static_chunk): Ditto.
5878         (expand_omp_sections): Ditto.
5879         (expand_omp_atomic_fetch_op): Ditto.
5880         (expand_omp_atomic_pipeline): Ditto.
5881         (expand_omp_atomic_mutex): Ditto.
5882         (lower_omp_single_simple): Ditto.
5883         (lower_omp_single_copy): Ditto.
5884         (lower_omp_master): Ditto.
5885         (lower_omp_ordered): Ditto.
5886         (lower_omp_critical): Ditto.
5887         * tree-ssa-ccp.c (optimize_stdarg_builtin): Ditto.
5888         * builtins.c (DEF_BUILTIN_STUB): Ditto.
5889         (BUILT_IN_NONE): Ditto.
5890         * tree-ssa-math-opts.c (execute_optimize_bswap): Ditto.
5891         * gimple-low.c (lower_function_body): Ditto.
5892         (lower_builtin_setjmp): Ditto.
5893         * c-decl.c (merge_decls): Ditto.
5894         * tree-eh.c (lower_resx): Ditto.
5895         (lower_resx): Ditto.
5896         (lower_eh_dispatch): Ditto.
5897         * function (gimplify_parameters): Ditto.
5898         * c-typeck.c (build_function_call_vec): Ditto.
5899         * gimplify.c (build_stack_save_restore): Ditto.
5900         (gimplify_vla_decl): Ditto.
5901         (gimplify_modify_expr_to_memcpy): Ditto.
5902         (gimplify_modify_expr_to_memset): Ditto.
5903         (gimplify_variable_sized_compare): Ditto.
5904         (gimplify_function_tree): Ditto.
5905         * calls.c (emit_call_1): Ditto.
5906         * tree-ssa-forprop.c (simplify_builtin_call): Ditto.
5907         * tree-nested.c (convert_nl_goto_reference): Ditto.
5908         (convert_tramp_reference_op): Ditto.
5909         (finalize_nesting_tree_1): Ditto.
5910         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
5911         (tree_ssa_prefetch_arrays): Ditto.
5912         * tree-streamer-in.c (streamer_get_builtin_tree): Ditto.
5913         * system.h (built_in_decls): Ditto.
5914         (implicit_built_in_decls): Ditto.
5915         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
5916         * config/sparc/sparc.c (sparc_gimplify_va_arg): Ditto.
5917         * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
5918         (ix86_veclibabi_svml): Ditto.
5919         (ix86_veclibabi_acml): Ditto.
5920         * config/vms/vms.c (vms_patch_builtins): Ditto.
5921         * config/ia64/ia64.c (ia64_init_builtins): Ditto.
5922         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Ditto.
5923         (rs6000_builtin_vectorized_libmass): Ditto.
5924         (rs6000_init_builtins): Ditto.
5925         * config/darwin.c (darwin_override_options): Ditto.
5926         (darwin_patch_builtin): Ditto.
5927         (darwin_rename_builtins): Ditto.
5928         * config/pa/pa.c (pa_init_builtins): Ditto.
5929
5930 2011-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5931
5932         * tree.h (copy_ref_info): Expose existing function.
5933         * tree-ssa-loop-ivopts.c (copy_ref_info): Move function to...
5934         * tree-ssa-address.c (copy_ref_info): ...here, and remove static token.
5935
5936 2011-10-11  Georg-Johann Lay  <avr@gjlay.de>
5937
5938         * config/avr/avr-protos.h (avr_mode_code_base_reg_class): New
5939         prototype.
5940         (avr_regno_mode_code_ok_for_base_p): New prototype.
5941         * config/avr/avr.h (BASE_REG_CLASS): Remove.
5942         (REGNO_OK_FOR_BASE_P): Remove.
5943         (REG_OK_FOR_BASE_NOSTRICT_P): Remove.
5944         (REG_OK_FOR_BASE_STRICT_P): Remove.
5945         (MODE_CODE_BASE_REG_CLASS): New define.
5946         (REGNO_MODE_CODE_OK_FOR_BASE_P): New define.
5947         * config/avr/avr.c (avr_mode_code_base_reg_class): New function.
5948         (avr_regno_mode_code_ok_for_base_p): New function.
5949         (avr_reg_ok_for_addr_p): New static function.
5950         (avr_legitimate_address_p): Use it.  Beautify.
5951
5952 2011-10-11  Georg-Johann Lay  <avr@gjlay.de>
5953
5954         PR target/50447
5955         * config/avr/avr.md (cc): Add out_plus attribute alternative.
5956         (addsi3): Use it.  Adapt avr_out_plus to new prototype.  Use
5957         avr_out_plus for all CONST_INT addends.
5958         * config/avr/avr-protos.h (avr_out_plus): Change prototype.
5959         * config/avr/avr.c (notice_update_cc): Call avr_out_plus on
5960         CC_OUT_PLUS.
5961         (avr_out_plus_1): Change prototype and report effect on cc0.
5962         (avr_out_plus): Ditto.
5963         (adjust_insn_length): Adapt call to avr_out_plus to new prototype.
5964
5965 2011-10-11  H.J. Lu  <hongjiu.lu@intel.com>
5966
5967         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove
5968         the extra break.
5969
5970 2011-10-11  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
5971
5972         * doc/invoke.texi: Document new warning.
5973         * common.opt (Wvector-operation-performance): Define new warning.
5974         * tree-vect-generic.c (expand_vector_piecewise): Warn about expanded
5975         vector operation.
5976         (exapnd_vector_parallel): Warn about expanded vector operation.
5977         (lower_vec_shuffle): Warn about expanded vector operation.
5978         * c-typeck.c (c_build_vec_perm_expr): Store correct location
5979         when creating VEC_PERM_EXPR.
5980
5981 2011-10-11  Richard Guenther  <rguenther@suse.de>
5982
5983         PR tree-optimization/50204
5984         * tree-ssa-alias.c (get_continuation_for_phi_1): Split out
5985         two argument handling from ...
5986         (get_continuation_for_phi): ... here.  Handle arbitrary number
5987         of PHI args.
5988
5989 2011-10-11  Richard Sandiford  <richard.sandiford@linaro.org>
5990
5991         * modulo-sched.c: Fix comment typo.  Mention the possibility
5992         of using scheduling windows of II+1 cycles.
5993
5994 2011-10-11  Tristan Gingold  <gingold@adacore.com>
5995
5996         * doc/invoke.texi (C Dialect Options): Document
5997         -fallow-parameterless-variadic-functions.
5998         * c-parser.c (c_parser_parms_list_declarator): Handle it.
5999
6000 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
6001
6002         * config/avr/avr.c (avr_option_override): Set flag_omit_frame_pointer
6003         to 0 if frame pointer is needed for unwinding.
6004
6005 2011-10-10  Uros Bizjak  <ubizjak@gmail.com>
6006
6007         PR bootstrap/50665
6008         * optabs.h (DOI_vec_perm): Rename from OTI_vec_perm.  Move from enum
6009         optab_index to enum direct_optab_index.
6010         (vec_perm_optab): Update.
6011
6012 2011-10-10  Anatoly Sokolov  <aesok@post.ru>
6013
6014         * config/cris/cris.c (cris_preferred_reload_class): New function.
6015         (TARGET_PREFERRED_RELOAD_CLASS): Define.
6016         * config/cris/cris.h (PREFERRED_RELOAD_CLASS): Remove.
6017
6018 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
6019
6020         * config/avr/avr.md (*tablejump_rjmp): Change insn condition to
6021         !AVR_HAVE_JMP_CALL.
6022         (*tablejump_lib): Change insn condition to AVR_HAVE_JMP_CALL.
6023         (*tablejump_enh, *tablejump): Remove insns.
6024         * config/avr/libgcc.S (__tablejump__): Use RET instead of EIND +
6025         EIJMP for indirect jump.  Use LPM Z+ where available.
6026
6027 2011-10-10  Richard Henderson  <rth@redhat.com>
6028
6029         * doc/md.texi (vec_perm_const): Fix typo in cindex.
6030
6031 2011-10-10  Kirill Yukhin  <kirill.yukhin@intel.com>
6032             Yakovlev Vladimir  <vladimir.b.yakovlev@intel.com>
6033
6034         * config/i386/sse.md (fma_fnmsub_<mode>): Fix a typo.
6035
6036 2011-10-10  Richard Guenther  <rguenther@suse.de>
6037
6038         PR middle-end/50389
6039         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
6040         mark symbols for renaming.  Append the VUSE to all statements
6041         that possibly can have one.
6042
6043 2011-10-10  Richard Guenther  <rguenther@suse.de>
6044
6045         * ipa-split.c (pass_split_functions): Add verification TODOs.
6046         (pass_feedback_split_functions): Likewise.
6047
6048 2011-10-10  Richard Guenther  <rguenther@suse.de>
6049
6050         PR middle-end/50195
6051         * fold-const.c (fold_binary_loc): Canonicalize x*x to pow (x, 2)
6052         only when optimizing.
6053
6054 2011-10-10  Nick Clifton  <nickc@redhat.com>
6055
6056         PR middle-end/49801
6057         * compare-elim.c (find_comparisons_in_bb): Use df_get_live_in and
6058         df_get_live_out instead of accessing the bitmaps directly.
6059         (execute_compare_elim_after_reload): Remove calls to df_set_flags,
6060         df_live_add_problem and df_analyze.
6061
6062 2011-10-10  Michael Matz  <matz@suse.de>
6063
6064         PR middle-end/50638
6065         * tree-emutls.c (gen_emutls_addr): Call add_referenced_var.
6066
6067 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
6068
6069         * modulo-sched.c (ps_reg_move_info): Add num_consecutive_stages.
6070         (SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES): Delete.
6071         (node_sched_params): Remove first_reg_move and nreg_moves.
6072         (ps_num_consecutive_stages, extend_node_sched_params): New functions.
6073         (update_node_sched_params): Move up file.
6074         (print_node_sched_params): Print the stage.  Don't dump info related
6075         to first_reg_move and nreg_moves.
6076         (set_columns_for_row): New function.
6077         (set_columns_for_ps): Move up file and use set_columns_for_row.
6078         (schedule_reg_move): New function.
6079         (schedule_reg_moves): Call extend_node_sched_params and
6080         schedule_reg_move.  Extend size of uses bitmap.  Initialize
6081         num_consecutive_stages.  Return false if a move could not be
6082         scheduled.
6083         (apply_reg_moves): Don't emit moves here.
6084         (permute_partial_schedule): Handle register moves.
6085         (duplicate_insns_of_cycles): Remove for_prolog.  Emit moves according
6086         to the same stage-count test as ddg nodes.
6087         (generate_prolog_epilog): Update calls accordingly.
6088         (sms_schedule): Allow move-scheduling to add a new first stage.
6089
6090 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
6091
6092         * modulo-sched.c (ps_insn): Adjust comment.
6093         (ps_reg_move_info): New structure.
6094         (partial_schedule): Add reg_moves field.
6095         (SCHED_PARAMS): Use node_sched_param_vec instead of node_sched_params.
6096         (node_sched_params): Turn first_reg_move into an identifier.
6097         (ps_reg_move): New function.
6098         (ps_rtl_insn): Cope with register moves.
6099         (ps_first_note): Adjust comment and assert that the instruction
6100         isn't a register move.
6101         (node_sched_params): Replace with...
6102         (node_sched_param_vec): ...this vector.
6103         (set_node_sched_params): Adjust accordingly.
6104         (print_node_sched_params): Take a partial schedule instead of a ddg.
6105         Use ps_rtl_insn and ps_reg_move.
6106         (generate_reg_moves): Rename to...
6107         (schedule_reg_moves): ...this.  Remove rescan parameter.  Record each
6108         move in the partial schedule, but don't emit it here.  Don't perform
6109         register substitutions here either.
6110         (apply_reg_moves): New function.
6111         (duplicate_insns_of_cycles): Use register indices directly,
6112         rather than finding instructions using PREV_INSN.  Use ps_reg_move.
6113         (sms_schedule): Call schedule_reg_moves before committing to
6114         a partial schedule.   Try the next ii if the schedule fails.
6115         Use apply_reg_moves instead of generate_reg_moves.  Adjust
6116         call to print_node_sched_params.  Free node_sched_param_vec
6117         instead of node_sched_params.
6118         (create_partial_schedule): Initialize reg_moves.
6119         (free_partial_schedule): Free reg_moves.
6120
6121 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
6122
6123         * modulo-sched.c (ps_insn): Replace node field with an identifier.
6124         (SCHED_ASAP): Replace with..
6125         (NODE_ASAP): ...this macro.
6126         (SCHED_PARAMS): New macro.
6127         (SCHED_TIME, SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES, SCHED_ROW)
6128         (SCHED_STAGE, SCHED_COLUMN): Redefine using SCHED_PARAMS.
6129         (node_sched_params): Remove asap.
6130         (ps_rtl_insn, ps_first_note): New functions.
6131         (set_node_sched_params): Use XCNEWVEC.  Don't copy across the
6132         asap values.
6133         (print_node_sched_params): Use SCHED_PARAMS and NODE_ASAP.
6134         (generate_reg_moves): Pass ids to the SCHED_* macros.
6135         (update_node_sched_params): Take a ps insn identifier rather than
6136         a node as parameter.  Use ps_rtl_insn.
6137         (set_columns_for_ps): Update for above field and SCHED_* macro changes.
6138         (permute_partial_schedule): Use ps_rtl_insn and ps_first_note.
6139         (optimize_sc): Update for above field and SCHED_* macro changes.
6140         Update calls to try_scheduling_node_in_cycle and
6141         update_node_sched_params.
6142         (duplicate_insns_of_cycles): Adjust for above field and SCHED_*
6143         macro changes.  Use ps_rtl_insn and ps_first_note.
6144         (sms_schedule): Pass ids to the SCHED_* macros.
6145         (get_sched_window): Adjust for above field and SCHED_* macro changes.
6146         Use NODE_ASAP instead of SCHED_ASAP.
6147         (try_scheduling_node_in_cycle): Remove node parameter.  Update
6148         call to ps_add_node_check_conflicts.  Pass ids to the SCHED_* macros.
6149         (sms_schedule_by_order): Update call to try_scheduling_node_in_cycle.
6150         (ps_insert_empty_row): Adjust for above field changes.
6151         (compute_split_row): Use ids rather than nodes.
6152         (verify_partial_schedule): Adjust for above field changes.
6153         (print_partial_schedule): Use ps_rtl_insn.
6154         (create_ps_insn): Take an id rather than a node.
6155         (ps_insn_find_column): Adjust for above field changes.
6156         Use ps_rtl_insn.
6157         (ps_insn_advance_column): Adjust for above field changes.
6158         (add_node_to_ps): Remove node parameter.  Update call to
6159         create_ps_insn.
6160         (ps_has_conflicts): Use ps_rtl_insn.
6161         (ps_add_node_check_conflicts): Replace node parameter than an id.
6162
6163 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
6164
6165         * modulo-sched.c (undo_replace_buff_elem): Delete.
6166         (generate_reg_moves): Don't build and return an undo list.
6167         (free_undo_replace_buff): Delete.
6168         (sms_schedule): Adjust call to generate_reg_moves.
6169         Don't call free_undo_replace_buff.
6170
6171 2011-10-10  Matthias Klose <doko@ubuntu.com>
6172
6173         * common/config/m32c: Remove empty directory.
6174
6175 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
6176
6177         * config/avr/avr.md (*mulhi3_enh): Treat squaring smarter.
6178
6179 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
6180
6181         PR target/50652
6182         * config/avr/avr-mcus.def (AVR_MCU): Set .data_section_start of
6183         atmega164a to 0x100.
6184
6185 2011-10-09  Eric Botcazou  <ebotcazou@adacore.com>
6186
6187         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Do not make
6188         the replacement if the conversion to the LHS type is not useless.
6189
6190 2011-10-09  Ira Rosen  <ira.rosen@linaro.org>
6191
6192         PR tree-optimization/50635
6193         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add
6194         DEF_STMT to the list of statements to be replaced by the
6195         pattern statements.
6196         (vect_handle_widen_mult_by_const): Don't check TYPE_OUT.
6197
6198 2011-10-09  Anatoly Sokolov  <aesok@post.ru>
6199
6200         * system.h: Commit forgotten hunk in previous patch.
6201         (OUTPUT_ADDR_CONST_EXTRA): Poison.
6202
6203 2011-10-08  Nicola Pero  <nicola.pero@meta-innovation.com>
6204
6205         PR libobjc/50428
6206         * doc/objc.texi (Garbage Collection): Updated example to protect
6207         +initialize against execution in subclasses.
6208
6209 2011-10-07  Richard Henderson  <rth@redhat.com>
6210
6211         * doc/extend.texi (__builtin_shuffle): Improve the description to
6212         include the modulus of the selector.  Mention OpenCL.
6213         * doc/md.texi (vec_perm, vec_perm_const): Document named patterns.
6214
6215         * tree.def (VEC_PERM_EXPR): Rename from VEC_SHUFFLE_EXPR.
6216         * genopinit.c (optabs): Rename vshuffle to vec_perm.
6217         * c-typeck.c (c_build_vec_perm_expr): Rename from
6218         c_build_vec_shuffle_expr.  Update for name changes.
6219         * optabs.c (expand_vec_perm_expr_p): Rename from
6220         expand_vec_shuffle_expr_p.
6221         (expand_vec_perm_expr): Rename from expand_vec_shuffle_expr.
6222         * optabs.h (OTI_vec_perm): Rename from DOI_vshuffle.
6223         (vec_perm_optab): Rename from vshuffle_optab.
6224         * expr.c, gimple-pretty-print.c, gimple.c, gimplify.c,
6225         c-tree.h, c-parser.c, tree-cfg.c, tree-inline.c, tree-pretty-print.c,
6226         tree-ssa-operands.c, tree-vect-generic.c: Update for name changes.
6227
6228         * config/i386/i386.c (ix86_expand_vec_perm): Rename from
6229         ix86_expand_vshuffle.
6230         * config/i386/i386-protos.h: Update.
6231         * config/i386/sse.md (VEC_PERM_AVX2): Rename from VSHUFFLE_AVX2.
6232         (vec_perm<VEC_PERM_AVX2>): Rename from vshuffle<VSHUFFLE_AVX2>.
6233
6234 2011-10-07  Richard Henderson  <rth@redhat.com>
6235
6236         * config/i386/predicates.md (avx2_pblendw_operand): New.
6237         * config/i386/sse.md (sse4_1_pblendw): Un-macroize.
6238         (avx2_pblendw, *avx2_pblendw): New expander and insn.
6239
6240 2011-10-07  Richard Henderson  <rth@redhat.com>
6241
6242         * config/i386/i386.c (bdesc_args): Update code for
6243         __builtin_ia32_palignr256.  Change type of __builtin_ia32_pslldqi256,
6244         and __builtin_ia32_psrldqi256 to V4DI_FTYPE_V4DI_INT_CONVERT.
6245         (ix86_expand_args_builtin): Handle V4DI_FTYPE_V4DI_INT_CONVERT.
6246         * config/i386/sse.md (mode iterator V16): Add V2TI.
6247         (mode iterator SSESCALARMODE): Use V2TI not V4DI.
6248         (mode attr ssse3_avx2): Add V2TI.
6249         (avx2_lshrqv4di3, avx2_lshlqv4di3): Remove.
6250
6251 2011-10-07  David S. Miller  <davem@davemloft.net>
6252
6253         PR 50655
6254         * configure.ac: Add .register directives to VIS3 test.
6255         * configure: Regenerate.
6256
6257 2011-10-07  Richard Henderson  <rth@redhat.com>
6258
6259         * config.gcc (x86_64-*): Add core-avx-i, core-avx2 for with_cpu.
6260
6261 2011-10-07  Richard Henderson  <rth@redhat.com>
6262
6263         PR 49752
6264         * fold-const.c (fold_checksum_tree): Remove out-of-date assert.
6265
6266 2011-10-07  Andrew Stubbs  <ams@codesourcery.com>
6267
6268         * config/arm/predicates.md (shift_amount_operand): Remove constant
6269         range check.
6270         (shift_operator): Check range of constants for all shift operators.
6271
6272 2011-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6273
6274         * config/s390/s390.c (s390_emit_tls_call_insn): Remove assertion.
6275         Load GOT pointer for non-pic builds.
6276         (s390_load_got): Replace pic_offset_table_rtx with hardcoded r12.
6277         (s390_emit_call): Likewise.
6278
6279 2011-10-07  Tom de Vries  <tom@codesourcery.com>
6280
6281         PR middle-end/50527
6282         * tree.c (build_common_builtin_nodes): Add local_define_builtin for
6283         BUILT_IN_ALLOCA_WITH_ALIGN.  Mark that BUILT_IN_ALLOCA_WITH_ALIGN can
6284         throw.
6285         * builtins.c (expand_builtin_alloca): Handle BUILT_IN_ALLOCA_WITH_ALIGN
6286         arglist.  Set align for BUILT_IN_ALLOCA_WITH_ALIGN.
6287         (expand_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
6288         (is_inexpensive_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
6289         * tree-ssa-ccp.c (evaluate_stmt): Set align for
6290         BUILT_IN_ALLOCA_WITH_ALIGN.
6291         (fold_builtin_alloca_for_var): Rename to ...
6292         (fold_builtin_alloca_with_align): Set DECL_ALIGN from 2nd
6293         BUILT_IN_ALLOCA_WITH_ALIGN argument.
6294         (ccp_fold_stmt): Try folding BUILT_IN_ALLOCA_WITH_ALIGN using
6295         fold_builtin_alloca_with_align.
6296         (optimize_stack_restore): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
6297         * builtins.def (BUILT_IN_ALLOCA_WITH_ALIGN): Declare using
6298         DEF_BUILTIN_STUB.
6299         * ipa-pure-const.c (special_builtin_state): Handle
6300         BUILT_IN_ALLOCA_WITH_ALIGN.
6301         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1)
6302         (call_may_clobber_ref_p_1): Same.
6303         * function.c (gimplify_parameters): Lower vla to
6304         BUILT_IN_ALLOCA_WITH_ALIGN.
6305         * gimplify.c (gimplify_vla_decl): Same.
6306         * cfgexpand.c (expand_call_stmt): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
6307         * tree-mudflap.c (mf_xform_statements): Same.
6308         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
6309         (mark_all_reaching_defs_necessary_1, propagate_necessity): Same.
6310         * varasm.c (incorporeal_function_p): Same.
6311         * tree-object-size.c (alloc_object_size): Same.
6312         * gimple.c (gimple_build_call_from_tree): Same.
6313
6314 2011-10-07  Bernd Schmidt  <bernds@codesourcery.com>
6315
6316         * function.c (frame_required_for_rtx): Remove function.
6317         (requires_stack_frame_p): New arg set_up_by_prologue.  All callers
6318         changed.  Compute a set of mentioned registers and compare against
6319         the new arg rather than calling frame_required_for_rtx.
6320         (thread_prologue_and_epilogue_insns): Compute the set_up_by_prologue
6321         reg set.  Convert the unconverted_simple_returns mechanism to store
6322         jump insns rather than their basic blocks.  Also check the
6323         orig_entry_edge destination for new blocks.
6324
6325 2011-10-07  Jakub Jelinek  <jakub@redhat.com>
6326
6327         PR tree-optimization/50650
6328         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Don't
6329         call vect_is_simple_cond here, instead fail if cond_expr isn't
6330         COMPARISON_CLASS_P or if get_vectype_for_scalar_type returns NULL
6331         for cond_expr's first operand.
6332         * tree-vect-stmts.c (vect_is_simple_cond): Static again.
6333         * tree-vectorizer.h (vect_is_simple_cond): Remove prototype.
6334
6335 2011-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6336
6337         * config/s390/s390.md (DWH, dwh): New mode macros.
6338         ("umulsidi3"): Extend to support "umulditi3" as well.
6339
6340 2011-10-07  Uros Bizjak  <ubizjak@gmail.com>
6341             H.J. Lu  <hongjiu.lu@intel.com>
6342
6343         PR target/50603
6344         * config/i386/i386.c (ix86_fixup_binary_operands): Force src2 of
6345         integer PLUS RTX to a register to improve address combine.
6346
6347 2011-10-06  Richard Henderson  <rth@redhat.com>
6348
6349         * combine-stack-adjust.c (maybe_move_args_size_note): Add after
6350         parameter; use it to decide whether to merge two notes.
6351         (combine_stack_adjustments_for_block): Use maybe_move_args_size_note
6352         for the deallocation case as well.
6353
6354 2011-10-06  Anatoly Sokolov  <aesok@post.ru>
6355
6356         * system.h (OUTPUT_ADDR_CONST_EXTRA): Poison.
6357         * doc/tm.texi.in (OUTPUT_ADDR_CONST_EXTRA): Remove documentation.
6358         * doc/tm.texi: Regenerate.
6359         * target.def (output_addr_const_extra): Use
6360         hook_bool_FILEptr_rtx_false.
6361         * targhooks.c (default_asm_output_addr_const_extra): Remove.
6362         * targhooks.h (default_asm_output_addr_const_extra): Remove.
6363         * hooks.c (hook_bool_FILEptr_rtx_false): New functions.
6364         * hooks.h (hook_bool_FILEptr_rtx_false): Declare.
6365
6366 2011-10-06  David S. Miller  <davem@davemloft.net>
6367
6368         * config/sparc/sparc.md (popcount<mode>2, clz<mode>2): Split up into...
6369         (popcountdi2, popcountsi2, clzdi2, clzsi2): Explicit expanders, in the
6370         SI mode 64-bit code gen case explicitly zero-extend and truncate.
6371         (*popcount<mode>_sp64): Split up into...
6372         (*popcountdi_sp64, *popcountsi_64): Explicit instantiations, and in the
6373         SImode case use truncate.
6374         (*clzsi_sp64): Rewrite to use truncate, and let the expander emit the
6375         subtract so the compiler can optimize it.
6376         (SIDI): Remove unused mode iterator.
6377
6378 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
6379
6380         * function.c (thread_prologue_and_epilogue_insns): Emit split prologue
6381         on the orig_entry_edge. Don't account for it in prologue_clobbered.
6382
6383 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
6384
6385         PR tree-optimization/50596
6386         * tree-vectorizer.h (vect_is_simple_cond): New prototype.
6387         (NUM_PATTERNS): Change to 6.
6388         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): New
6389         function.
6390         (vect_vect_recog_func_ptrs): Add vect_recog_mixed_size_cond_pattern.
6391         (vect_mark_pattern_stmts): Don't create stmt_vinfo for def_stmt
6392         if it already has one, and don't set STMT_VINFO_VECTYPE in it
6393         if it is already set.
6394         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Handle
6395         COND_EXPR in pattern stmts.
6396         (vect_is_simple_cond): No longer static.
6397
6398 2001-10-06  Richard Henderson  <rth@redhat.com>
6399
6400         * config/i386/i386.c (ix86_expand_vshuffle): Add AVX2 support.
6401         * config/i386/sse.md (sseshuffint): Remove.
6402         (sseintvecmode): Support V16HI, V8HI, V32QI, V16QI.
6403         (VSHUFFLE_AVX2): New mode iterator.
6404         (vshuffle<mode>): Use it.
6405         (avx_vec_concat<V_256>): Rename from *vec_concat<V_256>_avx.
6406
6407         * config/i386/i386.c (ix86_expand_sse_movcc): Use correct mode
6408         for vector_all_ones_operand.
6409         (ix86_expand_int_vcond): Distinguish between comparison mode
6410         and data mode.  Allow them to differ.
6411         (ix86_expand_vshuffle): Don't force data mode to match maskmode.
6412
6413 2001-10-06  Richard Henderson  <rth@redhat.com>
6414
6415         * optabs.c (expand_vec_shuffle_expr): Use the proper mode for the
6416         mask operand.  Tidy the code.
6417
6418 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
6419
6420         * tree-vect-patterns.c (vect_pattern_recog_1): Use
6421         vect_recog_func_ptr typedef for the first argument.
6422         (vect_pattern_recog): Rename vect_recog_func_ptr variable
6423         to vect_recog_func, use vect_recog_func_ptr typedef for it.
6424
6425         PR tree-optimization/49279
6426         * tree-ssa-structalias.c (find_func_aliases): Don't handle
6427         CAST_RESTRICT.
6428         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Allow
6429         restrict propagation.
6430         * tree-ssa.c (useless_type_conversion_p): Don't return false
6431         if TYPE_RESTRICT differs.
6432
6433 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
6434
6435         * function.c (thread_prologue_and_epilogue_insns): Build a vector
6436         of unconverted simple return blocks rather than trying to
6437         recompute them later based on bb_flags bitmap tests.
6438
6439 2011-10-06  Michael Matz  <matz@suse.de>
6440
6441         * tree-flow.h (get_var_ann): Don't declare.
6442         * tree-flow-inline.h (get_var_ann): Remove.
6443         (set_is_used): Use var_ann, not get_var_ann.
6444         * tree-dfa.c (add_referenced_var): Inline body of get_var_ann.
6445         * tree-profile.c (gimple_gen_edge_profiler): Call
6446         find_referenced_var_in.
6447         (gimple_gen_interval_profiler): Ditto.
6448         (gimple_gen_pow2_profiler): Ditto.
6449         (gimple_gen_one_value_profiler): Ditto.
6450         (gimple_gen_average_profiler): Ditto.
6451         (gimple_gen_ior_profiler): Ditto.
6452         (gimple_gen_ic_profiler): Ditto plus call add_referenced_var.
6453         (gimple_gen_ic_func_profiler): Call add_referenced_var.
6454         * tree-mudflap.c (execute_mudflap_function_ops): Call
6455         add_referenced_var.
6456
6457 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
6458
6459         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): For lhs
6460         don't set SSA_NAME_DEF_STMT that has been already set by
6461         gimple_build_assign_with_ops.
6462         (vect_recog_pow_pattern, vect_recog_widen_sum_pattern,
6463         vect_operation_fits_smaller_type, vect_recog_over_widening_pattern):
6464         Likewise.
6465
6466         * tree.h (avoid_folding_inline_builtin): New prototype.
6467         * builtins.c (avoid_folding_inline_builtin): No longer static.
6468         * gimple-fold.c (gimple_fold_builtin): Give up if
6469         avoid_folding_inline_builtin returns true.
6470
6471 2011-10-06  Richard Guenther  <rguenther@suse.de>
6472
6473         * tree-vect-generic.c (vector_element): Look at previous
6474         generated results.
6475
6476 2011-10-06  David Edelsohn  <dje.gcc@gmail.com>
6477
6478         PR target/39950
6479         * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Define
6480         __powerpc__, __PPC__, __unix__.
6481
6482 2011-10-06  Michael Matz  <matz@suse.de>
6483
6484         * i386/i386.opt (recip_mask, recip_mask_explicit,
6485         x_recip_mask_explicit): New variables and cl_target member.
6486         (mrecip=): New option.
6487         * i386/i386.h (RECIP_MASK_DIV, RECIP_MASK_SQRT, RECIP_MASK_VEC_DIV,
6488         RECIP_MASK_VEC_SQRT, RECIP_MASK_ALL, RECIP_MASK_NONE): New bitmasks.
6489         (TARGET_RECIP_DIV, TARGET_RECIP_SQRT, TARGET_RECIP_VEC_DIV,
6490         TARGET_RECIP_VEC_SQRT): New tests.
6491         * i386/i386.md (divsf3): Check TARGET_RECIP_DIV.
6492         (sqrt<mode>2): Check TARGET_RECIP_SQRT.
6493         * i386/sse.md (div<mode>3): Check TARGET_RECIP_VEC_DIV.
6494         (sqrt<mode>2): Check TARGET_RECIP_VEC_SQRT.
6495         * i386/i386.c (ix86_option_override_internal): Set recip_mask
6496         for -mrecip and -mrecip=options.
6497         (ix86_function_specific_save): Save recip_mask_explicit.
6498         (ix86_function_specific_restore): Restore recip_mask_explicit.
6499
6500         * doc/invoke.texi (ix86 Options): Document the new option.
6501
6502 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
6503
6504         PR target/49049
6505         * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
6506
6507 2011-10-06  Ulrich Weigand  <ulrich.weigand@linaro.org>
6508
6509         PR target/50305
6510         * config/arm/arm.c (arm_legitimize_reload_address): Recognize
6511         output of a previous pass through legitimize_reload_address.
6512         Do not attempt to optimize addresses if the base register is
6513         equivalent to a constant.
6514
6515 2011-10-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6516
6517         * function.c (thread_prologue_and_epilogue_insns): Mark
6518         last_bb_active as possibly unused.  It is unused for targets which
6519         do neither have "return" nor "simple_return" expanders.
6520
6521 2011-10-06  Richard Guenther  <rguenther@suse.de>
6522
6523         * fold-const.c (fold_ternary_loc): Also fold non-constant
6524         vector CONSTRUCTORs.  Make more efficient.
6525         * tree-ssa-dom.c (cprop_operand): Don't handle virtual operands.
6526         (cprop_into_stmt): Don't propagate into virtual operands.
6527         (optimize_stmt): Really dump original statement.
6528
6529 2011-10-06  Nick Clifton  <nickc@redhat.com>
6530
6531         * config/rx/rx.md (smin3): Revert previous delta.
6532
6533 2011-10-06  Richard Guenther  <rguenther@suse.de>
6534
6535         PR tree-optimization/38884
6536         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial
6537         reads from aggregate SSA names.
6538
6539 2011-10-05  Jakub Jelinek  <jakub@redhat.com>
6540
6541         * tree-vect-patterns.c (vect_pattern_recog_1): Add stmts_to_replace
6542         argument, truncate it at the beginning instead of allocating there
6543         and freeing at the end.
6544         (vect_pattern_recog): Allocate stmts_to_replace here and free at end,
6545         pass its address to vect_pattern_recog_1.
6546
6547 2011-10-05  David S. Miller  <davem@davemloft.net>
6548
6549         * config/sparc/sparc.opt (POPC): New option.
6550         * doc/invoke.texi: Document it.
6551         * config/sparc/sparc.c (sparc_option_override): Enable MASK_POPC by
6552         default on Niagara-2 and later.
6553         * config/sparc/sparc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
6554         * config/sparc/sparc.md (SIDI): New mode iterator.
6555         (ffsdi2): Delete commented out pattern and comments.
6556         (popcount<mode>2, clz<mode>2): New expanders.
6557         (*popcount<mode>_sp64, popcountsi_v8plus, popcountdi_v8plus,
6558         *clzdi_sp64, clzdi_v8plus, *clzsi_sp64, clzsi_v8plus): New insns.
6559
6560 2011-10-06  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
6561
6562         PR middle-end/50607
6563         * c-tree.h (c_expr_t): New typedef for struct c_expr.
6564         (C_EXPR_APPEND): New macro.
6565         * c-parser.c (c_parser_get_builtin_args): Preserve
6566         original_tree_code of c_expr structure.
6567         (c_parser_postfix_expression): Adjust to the new function.
6568
6569 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
6570
6571         * function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap
6572         if profiling after the prologue.
6573
6574 2011-10-05  Jakub Jelinek  <jakub@redhat.com>
6575
6576         PR tree-optimization/50613
6577         * tree-ssa-strlen.c (find_equal_ptrs): If CASE_CONVERT
6578         operand is ADDR_EXPR, fallthru into ADDR_EXPR handling,
6579         and if it is neither that not SSA_NAME, give up.
6580
6581 2011-10-05  Richard Henderson  <rth@redhat.com>
6582
6583         * tree-vect-generic.c (vector_element): Never fail.  Use
6584         build_zero_cst.  Tidy up type references.
6585         (lower_vec_shuffle): Never fail.  Mask shuffle indicies.  Reduce
6586         code duplication.  Do update_stmt here ...
6587         (expand_vector_operations_1): ... not here.
6588
6589         * config/i386/i386.c (ix86_expand_vshuffle): Never fail.  Handle
6590         TARGET_XOP.  Fix pshufb constant vector creation.  Reduce code
6591         duplication.  Handle V2DI without SSE4.1.
6592         * config/i386/i386-protos.h (ix86_expand_vshuffle): Update decl.
6593         * config/i386/i386.md (vshuffle<V_128>): Remove assert for ok.
6594
6595 2011-10-05  Uros Bizjak  <ubizjak@gmail.com>
6596
6597         * config/i386/i386.c (distance_non_agu_define): Simplify calculation
6598         of "found".  Simplify return value calculation.
6599         (distance_agu_use): Ditto.
6600
6601 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
6602
6603         PR bootstrap/50621
6604         * config/i386/i386.c (ix86_add_cfa_restore_note): Omit notes only
6605         if the function was not shrink-wrapped.
6606         (ix86_expand_epilogue): Ensure queued cfa_adjust notes are attached
6607         to an insn.
6608         * function.c (thread_prologue_and_epilogue_insns): Make sure the
6609         shrink_wrapped flag is set even if there is no dump file.
6610
6611 2011-10-05  DJ Delorie  <dj@redhat.com>
6612             Nick Clifton  <nickc@redhat.com>
6613
6614         * config/rx/rx.opt (mpid): Define.
6615         * config/rx/t-rx (MULTILIB_OPTIONS): Add -mpid
6616         (MULTILIB_DIRNAMES): Add pid.
6617         * config/rx/rx.c (rx_gp_base_regnum_val, rx_pid_base_regnum_val)
6618         (rx_num_interrupt_regs): New variable.
6619         (rx_gp_base_regnum): New function.  Returns the number of the
6620         small data area register.
6621         (rx_pid_base_regnum): New function.  Returns the number of the pid
6622         base register.
6623         (rx_decl_for_addr): New function.  Returns the symbolic part of a MEM.
6624         (rx_pid_data_operand): New function.  Returns whether an object is
6625         in the position independent data area.
6626         (rx_legitimize_address): New function.  Puts undecided PID
6627         objects in the PID data area.
6628         (rx_is_legitimate_address): Add support for PID operands.
6629         (rx_print_operand_address): Likewise.
6630         (rx_print_operand): Likewise.
6631         (rx_maybe_pidify_operand): New function.  Determine if an operand
6632         is suitable for PID addressing.
6633         (rx_gen_move_template): Add PID support.
6634         (rx_conditional_register_usage): Likewise.
6635         (rx_option_override): Initialise rx_num_interrupt_regs.
6636         (rx_is_legitimate_constant): Add support for PID constants.
6637         (TARGET_LEGITIMIZE_ADDRESS): Define.
6638         * config/rx/constraints.md (Rpid): Define.
6639         (Rpda): Define.
6640         * config/rx/rx.md (UNSPEC_PID_ADDR): Define.
6641         (tablejump): Add PID support.
6642         (mov<>): Likewise.
6643         (mov<>_internal): Likewise.
6644         (addsi3): Convert to an expander.  Add PID support.
6645         (pid_addr): New pattern.
6646         * config/rx/rx.h (CPP_SPEC): Define.
6647         (ASM_SPEC): Pass -mpid and -mint-register on to assembler.
6648         (CASE_VECTOR_PC_RELATIVE): Define.
6649         (JUMP_TABLES_IN_TEXT_SECTION): Enable for PID mode.
6650         * config/rx/rx-protos.h (rx_maybe_pidify_operand): Prototype.
6651         * doc/invoke.texi (RX Options): Document -mpid command line option.
6652
6653 2011-10-05  Richard Guenther  <rguenther@suse.de>
6654
6655         PR tree-optimization/38885
6656         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial reads
6657         from constants.
6658
6659 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
6660
6661         * doc/invoke.texi (-fshrink-wrap): Document.
6662         * opts.c (default_options_table): Add it.
6663         * common.opt (fshrink-wrap): Add.
6664         * function.c (emit_return_into_block): Remove useless declaration.
6665         (record_hard_reg_uses_1, record_hard_reg_uses, frame_required_for_rtx,
6666         requires_stack_frame_p, gen_return_pattern): New static functions.
6667         (emit_return_into_block): New arg simple_p.  All callers changed.
6668         Use gen_return_pattern.
6669         (thread_prologue_and_epilogue_insns): Implement shrink-wrapping.
6670         * config/i386/i386.md (return): Expand into a simple_return.
6671         (simple_return): New expander):
6672         (simple_return_internal, simple_return_internal_long,
6673         simple_return_pop_internal_long, simple_return_indirect_internal):
6674         Renamed from return_internal, return_internal_long,
6675         return_pop_internal_long and return_indirect_internal; changed to use
6676         simple_return.
6677         * config/i386/i386.c (ix86_expand_epilogue): Adjust to expand
6678         simple returns.
6679         (ix86_pad_returns): Likewise.
6680         * function.h (struct rtl_data): Add member shrink_wrapped.
6681         * cfgcleanup.c (outgoing_edges_match): If shrink-wrapped, edges that
6682         are not jumps or sibcalls can't be compared.
6683
6684 2011-10-05  Richard Guenther  <rguenther@suse.de>
6685
6686         * tree-ssa-sccvn.c (vn_get_expr_for): Handle CONSTRUCTOR of
6687         vector type.
6688         (simplify_unary_expression): Handle BIT_FIELD_REFs.
6689         (try_to_simplify): Handle BIT_FIELD_REFs.
6690
6691 2011-10-05  Georg-Johann Lay  <avr@gjlay.de>
6692
6693         * config/avr/avr-protos.h (avr_out_addto_sp): New prototype.
6694         * config/avr/avr.c (avr_out_addto_sp): New function.
6695         (adjust_insn_length): Handle ADJUST_LEN_ADDTO_SP.
6696         * config/avr/avr.md (adjust_len): Add "addto_sp".
6697         (*movhi_sp): Remove insn.
6698         (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): Merge to *addhi3_sp_R.
6699
6700 2011-10-05  Richard Guenther  <rguenther@suse.de>
6701
6702         * gimple-fold.c (gimple_fold_stmt_to_constant_1): For ternary ops
6703         with an embedded expression valueize and fold that as well.
6704         * tree-ssa-sccvn.c (try_to_simplify): Also allow SSA name
6705         results from gimple_fold_stmt_to_constant_1.
6706
6707 2011-10-05  Nick Clifton  <nickc@redhat.com>
6708
6709         * config/rx/rx.md (tablejump): Add missing label.
6710         (adddi3_internal): Mark operand 0 as early-clobbered.
6711         (smaxsi3): Revert previous delta.
6712         (adc_internal): Fix whitespace in generated asm.
6713         (adc_flags): Likewise.
6714
6715 2011-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6716
6717         * expmed.c (expand_mult_highpart_optab): Replace optab_handler
6718         with the new widening_optab_handler.
6719
6720 2011-10-05  Richard Guenther  <rguenther@suse.de>
6721
6722         PR tree-optimization/50609
6723         * gimple-fold.c (fold_array_ctor_reference): Also handle
6724         vector typed constructors.
6725         (fold_ctor_reference): Dispatch to fold_array_ctor_reference
6726         for vector typed constructors.
6727
6728 2011-10-05  Uros Bizjak  <ubizjak@gmail.com>
6729
6730         * config/i386/i386.c (ix86_emit_binop): New static function.
6731         (ix86_split_lea_for_addr): Use ix86_emit_binop to emit add and shl
6732         instructions.
6733         (x86_output_mi_thunk): Use ix86_emit_binop to emit add instructions.
6734
6735 2011-10-04  David S. Miller  <davem@davemloft.net>
6736
6737         * config/sparc/sparc.md (UNSPEC_FHADD, UNSPEC_FHSUB,
6738         UNSPEC_XMUL): New unspecs.
6739         (muldi3_v8plus): Use output_v8plus_mult.
6740         (*naddsf3, *nadddf3, *nmulsf3, *nmuldf3, *nmuldf3_extend):
6741         New VIS 3.0 combiner patterns.
6742         (fhaddsf_vis, fhadddf_vis, fhsubsf_vis, fhsubdf_vis,
6743         fnhaddsf_vis, fnhaddf_vis, umulxhi_vis, *umulxhi_sp64,
6744         umulxhi_v8plus, xmulx_vis, *xmulx_sp64, xmulx_v8plus,
6745         xmulxhi_vis, *xmulxhi_sp64, xmulxhi_v8plus): New VIS 3.0
6746         builtins patterns.
6747         * config/sparc/sparc.c (sparc_vis_init_builtins): Emit new builtins.
6748         (output_v8plus_mult): New function.
6749         * config/sparc/sparc-protos.h: Declare it.
6750         * config/sparc/visintrin.h (__vis_fhadds, __vis_fhaddd,
6751         __vis_fhsubs, __vis_fhsubd, __vis_fnhadds, __vis_fnhaddd,
6752         __vis_umulxhi, __vis_xmulx, __vis_xmulxhi): New intrinsics.
6753         * doc/extend.texi: Document new builtins.
6754
6755 2011-10-04  Richard Henderson  <rth@redhat.com>
6756
6757         * c-typeck.c (c_build_vec_shuffle_expr): Fix uninitialized variable.
6758         Avoid save_expr unless two_arguments.
6759
6760 2011-10-04  Ozkan Sezer  <sezeroz@gmail.com>
6761
6762         * config/i386/mingw-w64.h (CPP_SPEC): Rename _REENTRANCE to _REENTRANT.
6763         * config/i386/mingw32.h (CPP_SPEC): Likewise.
6764
6765 2011-10-04  David S. Miller  <davem@davemloft.net>
6766
6767         * config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc
6768         under Linux.
6769
6770 2011-10-04  Jakub Jelinek  <jakub@redhat.com>
6771
6772         PR tree-optimization/50604
6773         * builtins.c (fold_builtin_strcpy, fold_builtin_stpcpy,
6774         fold_builtin_strncpy, fold_builtin_stxcpy_chk): Ensure
6775         last argument to memcpy has size_type_node type instead of ssizetype.
6776         * tree-ssa-strlen.c (handle_builtin_memcpy): Use size_type_node
6777         instead of TREE_TYPE (len) as type for newlen.
6778
6779         PR tree-optimization/50522
6780         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Don't test
6781         TYPE_RESTRICT.
6782         (ptr_derefs_may_alias_p): Call pt_solutions_same_restrict_base
6783         unconditionally.
6784
6785         * fold-const.c (fold_unary_loc): Don't optimize
6786         POINTER_PLUS_EXPR casted to TYPE_RESTRICT pointer by
6787         casting the inner pointer if it isn't TYPE_RESTRICT.
6788         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't through
6789         casts from non-TYPE_RESTRICT pointer to TYPE_RESTRICT pointer.
6790
6791 2011-10-04  Joseph Myers  <joseph@codesourcery.com>
6792
6793         * config.gcc (i[34567]86-*-elf*, x86_64-*-elf*): Use i386/t-crtstuff.
6794
6795 2011-10-04  Jan Hubicka  <jh@suse.cz>
6796
6797         * lto-streamer.h (lto_input_toplevel_asms): Add order_base parameter.
6798         * lto-streamer-in.c (lto_input_toplevel_asms): Stream in order.
6799         * lto-streamer-out.c (lto_output_toplevel_asms): Stream out order.
6800         * lto-cgraph.c (order_base): New static var.
6801         (lto_output_node): Stream in order.
6802         (lto_output_varpool_node): Stream out order.
6803         (input_node): Stream in order.
6804         (input_varpool_node): Stream out order.
6805         (input_cgraph_1): Initialize order base; update call of
6806         lto_input_toplevel_asms.
6807
6808 2011-10-04  Georg-Johann Lay  <avr@gjlay.de>
6809
6810         PR target/50566
6811         * config/avr/avr-protos.h (avr_legitimize_reload_address): New
6812         prototype.
6813         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Copy worker code
6814         from here...
6815         * config/avr/avr.c (avr_legitimize_reload_address) ...to this new
6816         function.  Log if avr_log.legitimize_reload_address.
6817
6818 2011-10-04  Eric Botcazou  <ebotcazou@adacore.com>
6819
6820         * config/sparc/sparc.c (sparc_fold_builtin): Use a sequence of tests.
6821
6822 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6823
6824         * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
6825         variables.  Fix second operand of DR.  Swap inputs for sdiv_qrnnd.
6826
6827 2011-10-03  David S. Miller  <davem@davemloft.net>
6828
6829         * config/sparc/sparc.md (fpack16_vis, fpackfix_vis, fpack32_vis): Make
6830         GSR_REG an input operand to UNSPEC instead of a parallel USE.
6831         (faligndata<V64I:mode>_vis): Likewise and use DI mode.
6832         (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis, alignaddrldi_vis):
6833         Reference GSR_REG in DI mode, simplify convoluted expressions by using
6834         zero_extract.
6835         (bshuffle<V64I:mode>_vis): Reference GSR_REG in DI mode.
6836
6837 2011-10-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
6838
6839         * tree-eh.c (remove_unreachable_handlers): Obvious cleanup.
6840
6841 2011-10-03  Jakub Jelinek  <jakub@redhat.com>
6842             Ian Lance Taylor  <iant@google.com>
6843
6844         * godump.c (go_output_typedef): Support printing enum values that
6845         don't fit in a signed HOST_WIDE_INT.
6846
6847 2011-10-03  Anatoly Sokolov  <aesok@post.ru>
6848
6849         * config/cris/cris.c (cris_output_addr_const_extra): Make static.
6850         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6851         * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6852         * config/cris/cris-protos.h (cris_output_addr_const_extra): Remove.
6853
6854 2011-10-03  Anatoly Sokolov  <aesok@post.ru>
6855
6856         * config/m68k/m68k.c (m68k_output_addr_const_extra): Make static.
6857         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6858         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6859         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Remove.
6860
6861 2011-10-03  Steve Ellcey  <sje@cup.hp.com>
6862
6863         PR target/49967
6864         * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
6865         (gcc_cv_ld_static_option): Ditto.
6866         (gcc_cv_ld_dynamic_option): Ditto.
6867         * configure: Regenerate.
6868
6869 2011-10-03  David S. Miller  <davem@davemloft.net>
6870
6871         * config/sparc/sparc.md (bmask<P:mode>_vis): Split into explicit 'di'
6872         and 'si' patterns which describe the GSR changes explicitly in the
6873         RTL using zero_extract.
6874         (bshuffle<V64I:mode>_vis): Put the GSR use inside of the unspec.
6875
6876         * config/sparc/sparc.md (bshuffle<V64I:mode>_vis): Don't wrap
6877         GSR_REG in a USE, since it's now a true arg to the UNSPEC.
6878
6879 2011-10-03  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
6880
6881         * optabs.c (expand_vec_shuffle_expr_p): New function. Checks
6882         if given expression can be expanded by the target.
6883         (expand_vec_shuffle_expr): New function. Expand VEC_SHUFFLE_EXPR
6884         using target vector instructions.
6885         * optabs.h: New optab vshuffle.
6886         (expand_vec_shuffle_expr_p): New prototype.
6887         (expand_vec_shuffle_expr): New prototype.
6888         (vshuffle_optab): New optab.
6889         * genopinit.c: Adjust to support vecshuffle.
6890         * c-tree.h (c_build_vec_shuffle_expr): New prototype.
6891         * expr.c (expand_expr_real_2): Adjust.
6892         * c-typeck.c: (c_build_vec_shuffle_expr): Build a VEC_SHUFFLE_EXPR
6893         recognizing the cases of two and three arguments.
6894         (convert_arguments) (build_binary_op)
6895         (scalar_to_vector) (build_array_ref): Spurious whitespace.
6896         * gimplify.c (gimplify_exp): Adjusted to support VEC_SHUFFLE_EXPR.
6897         * tree.def: New tree code VEC_SHUFFLE_EXPR.
6898         * tree-inline.c (estimate_operator_cost): Recognize VEC_SHUFFLE_EXPR.
6899         * tree-vect-generic.c (vector_element): New function. Returns an
6900         element of the vector at the given position.
6901         (lower_vec_shuffle): Checks if VEC_SHUFLLE_EXPR is supported
6902         by the backend or expand an expression piecewise.
6903         (expand_vector_operations_1): Adjusted.
6904         (gate_expand_vector_operations_noop): New gate function.
6905         * Makefile.in (tree-vect-generic.o): New include.
6906         * gimple.c (get_gimple_rhs_num_ops): Adjust.
6907         * tree-cfg.c (verify_gimple_assign_trenary): Verify VEC_SHUFFLE_EXPR.
6908         * passes.c: Move veclower down.
6909         * tree-pretty-print.c (dump_generic_node): Recognize
6910         VEC_SHUFFLE_EXPR as valid expression.
6911         * c-parser.c (c_parser_get_builtin_args): Helper function for the
6912         builtins with variable number of arguments.
6913         (c_parser_postfix_expression): Use a new helper function for
6914         RID_CHOOSE_EXPR, RID_BUILTIN_COMPLEX and RID_BUILTIN_SHUFFLE.
6915         * tree-ssa-operands: Adjust.
6916         * c-family/c-common.c: New __builtin_shuffle keyword.
6917         * c-family/c-common.h: New __builtin_shuffle keyword.
6918         * gcc/doc/extend.texi: Adjust.
6919
6920         * gcc/config/i386/sse.md: (sseshuffint) New mode_attr.  Correspondence
6921         between the vector and the type of the mask when shuffling.
6922         (vecshuffle<mode>): New expansion.
6923         * gcc/config/i386/i386-protos.h (ix86_expand_vshuffle): New prototype.
6924         * gcc/config/i386/i386.c (ix86_expand_vshuffle): New function.
6925         (ix86_vectorize_builtin_vec_perm_ok): Adjust.
6926
6927 2011-10-03  Jakub Jelinek  <jakub@redhat.com>
6928
6929         PR tree-optimization/50587
6930         * tree-ssa-reassoc.c (init_range_entry): Stop iterating when
6931         arg0 is not a SSA_NAME.
6932
6933 2011-10-03  Richard Sandiford  <rdsandiford@googlemail.com>
6934
6935         * ipa-inline-analysis.c (MAX_TIME): Update comment.
6936
6937 2011-10-02  Richard Henderson  <rth@redhat.com>
6938             David S. Miller  <davem@davemloft.net>
6939
6940         * config/sparc/sparc.md (ashlsi3, *ashldi3_sp64): Remove
6941         conditional insn type setting, we always emit a shift.
6942         (*ashlsi3_extend, *lshrsi3_extend0): New patterns.
6943         (*lshrsi3_extend): Rename to *lshrsi3_extend1.
6944         * config/sparc/predicates.md (const_one_operand): Delete.
6945
6946 2011-10-02  Gerald Pfeifer  <gerald@pfeifer.com>
6947
6948         * invoke.texi (SPARC Options): Refer to GNU/Linux.
6949
6950 2011-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
6951
6952         * config/mips/mips.c (mips_frame_barrier): New function.
6953         (mips_expand_prologue): Call it after allocating stack space.
6954         (mips_deallocate_stack): New function.
6955         (mips_expand_epilogue): Call mips_frame_barrier and
6956         mips_deallocate_stack.
6957
6958 2011-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
6959
6960         PR target/49696
6961         * config/mips/sync.md (sync_<optab>_12): Allow zero operands.
6962         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
6963         (sync_old_nand_12, sync_new_nand_12, test_and_set_12): Likewise.
6964
6965 2011-10-02  Jan Hubicka  <jh@suse.cz>
6966
6967         * cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
6968
6969         * cgraphunit.c (ipa_passes): Remove unrechable nodes.
6970         * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
6971         * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
6972         functions are reachable when address is taken.
6973         * tree-sra.c (modify_function): Free dominance info.
6974
6975 2011-10-02  Jan Hubicka  <jh@suse.cz>
6976
6977         * ipa-inline-analysis.c (inline_summary_alloc): Bounds check.
6978
6979         * ipa-inline-analysis.c (reset_inline_edge_summary): New function.
6980         (reset_inline_summary): New function.
6981         (compute_inline_parameters, inline_node_removal_hook,
6982         inline_edge_removal_hook): Use it.
6983         (inline_free_summary): Reset holders correctly.
6984         (inline_generate_summary): Free summary before computing it.
6985
6986 2011-10-02  Paolo Carlini  <paolo.carlini@oracle.com>
6987
6988         PR preprocessor/36819
6989         * incpath.c (merge_include_chains): Call free_path on
6990         heads[QUOTE] and tails[QUOTE].
6991
6992 2011-10-02  Jan Hubicka  <jh@suse.cz>
6993
6994         PR lto/47247
6995         * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
6996         when resolution is already availbale from plugin.
6997         (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
6998         * cgraph.c (ld_plugin_symbol_resolution): Add
6999         prevailing_def_ironly_exp.
7000         * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
7001         * ipa.c (varpool_externally_visible_p): IRONLY variables are never
7002         externally visible.
7003         * varasm.c (resolution_to_local_definition_p): Add
7004         LDPR_PREVAILING_DEF_IRONLY_EXP.
7005         (resolution_local_p): Likewise.
7006
7007 2011-10-01  David S. Miller  <davem@davemloft.net>
7008
7009         * config/sparc/sparc.opt (VIS3): New option.
7010         * doc/invoke.texi: Document it.
7011         * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
7012         not capable of such instructions.
7013         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
7014         to 0x300 when TARGET_VIS3.
7015         * config/sparc/sparc-modes.def: Create 16-byte vector modes.
7016         * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
7017         UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
7018         (V64N8, VASS): New mode iterators.
7019         (vis3_shift, vis3_addsub_ss): New code iterators.
7020         (vbits, vconstr): New mode attributes.
7021         (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
7022         (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
7023         fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
7024         fmean16_vis, fpadd64_vis, fpsub64_vis,
7025         <vis3_addsub_ss_insn><vbits>_vis, fucmp<code>8<P:mode>_vis): New
7026         VIS 3.0 instruction patterns.
7027         * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
7028         default when targetting capable cpus.  TARGET_VIS3 implies
7029         TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is disabled.
7030         (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
7031         (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
7032         is ignored.
7033         * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
7034         __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
7035         __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
7036         __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
7037         __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
7038         __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
7039         __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
7040         __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
7041         * doc/extend.texi: Document new VIS 3.0 builtins.
7042
7043 2011-10-01  Eric Botcazou  <ebotcazou@adacore.com>
7044
7045         * ira-color.c (assign_hard_reg): Fix typo.
7046
7047 2011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
7048
7049         * doc/extend.texi: Add missing ','.
7050
7051 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
7052
7053         * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
7054         Enable -fmodulo-sched at -O2 and above.
7055         * config/c6x/c6x.md (doloop_end): New expander.
7056         (mvilc, sploop, spkernel, loop_end): New patterns.
7057         (loop_end with memory destination splitter): New.
7058         * config/c6x/c6x.c: Include "hw-doloop.h".
7059         (enum unitreqs): New.
7060         (unit_req_table): New typedef.
7061         (unit_reqs): New static variable.
7062         (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
7063         res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
7064         hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
7065         hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
7066         (struct c6x_sched_context): New member last_scheduled_iter0.
7067         (init_sched_state): Initialize it.
7068         (c6x_variable_issue): Update it.
7069         (sploop_max_uid_iter0): New static variable.
7070         (c6x_sched_reorder_1): Be careful about issuing sploop.
7071         (c6x_reorg): Call c6x_hwlooops before the final schedule.
7072
7073 2011-09-30  Georg-Johann Lay  <avr@gjlay.de>
7074
7075         PR target/50566
7076         * config/avr/avr-protos.h (avr_log_t): New field address_cost.
7077         * config/avr/avr.c (avr_address_cost): Use it.
7078         * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
7079         (avr_log_vadump): Unknown %-codes finish printing.
7080
7081 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
7082
7083         PR inline-asm/50571
7084         * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
7085         input constraints allow mem and not reg, pass true instead of
7086         false as second argument to maybe_fold_reference.
7087
7088         PR tree-optimization/46309
7089         * fold-const.c (make_range, merge_ranges): Remove prototypes.
7090         (make_range_step): New function.
7091         (make_range): Use it.
7092         * tree.h (make_range_step): New prototypes.
7093         * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
7094         * tree-ssa-reassoc.c: Include diagnostic-core.h.
7095         (struct range_entry): New type.
7096         (init_range_entry, range_entry_cmp, update_range_test,
7097         optimize_range_tests): New functions.
7098         (reassociate_bb): Call optimize_range_tests.
7099
7100 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
7101             Richard Guenther  <rguenther@suse.de>
7102
7103         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
7104         BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
7105         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise.  Fix
7106         handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
7107         (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
7108         BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
7109
7110 2011-09-30  Jan Beulich  <jbeulich@suse.com>
7111
7112         * lto-cgraph.c (output_cgraph): Remove processing of
7113         'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
7114         (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
7115         lto_input_toplevel_asms() instead.
7116         * lto-section-in.c (lto_section_name): Add "asm" entry.
7117         * lto-streamer-in.c (lto_input_toplevel_asms): New.
7118         * lto-streamer-out.c (lto_output_toplevel_asms): New.
7119         * lto-streamer.h (LTO_minor_version): Bump.
7120         (enum lto_section_type): Add LTO_section_asm.
7121         (struct lto_asm_header): New.
7122         (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
7123         * tree-streamer.h (streamer_write_string_cst): Declare.
7124         * tree-streamer-out.c (write_string_cst): Rename to
7125         streamer_write_string_cst and make global. Handle incoming string
7126         being NULL.
7127         (streamer_write_tree_header): Adjust call to renamed function.
7128
7129 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
7130
7131         * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
7132         modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
7133         modulo_last_stage): New static variables.
7134         (set_modulo_params, discard_delay_pairs_above): New functions.
7135         (struct delay_pair): New member stages.
7136         (htab_i2_traverse, htab_i1_traverse): New static functions.
7137         (record_delay_slot_pair): New arg stages.  All callers changed.
7138         Record it.
7139         (pair_delay): Take stages into account.
7140         (add_delay_dependencies): Don't do so for stage pairs.
7141         (struct sched_block_state): New member modulo_epilogue.
7142         (save_backtrack_point): Don't set SHADOW_P for stage pairs.
7143         (unschedule_insns_until): Decrease modulo_insns_scheduled.
7144         Set HARD_DEP without using or.
7145         (resolve_dependencies): New static function.
7146         (prune_ready_list): New arg modulo_epilogue_p.  All callers changed.
7147         If it is true, allow only insns with INSN_EXACT_TICK set.
7148         (schedule_block): Return bool, always true for normal scheduling,
7149         true or false depending on modulo scheduling success otherwise.
7150         Add bookkeeping for modulo scheduling, and call resolve_dependencies
7151         on everything left over after a modulo schedule.
7152         (haifa_sched_init): Remove check_cfg call.  Clear modulo_ii.
7153         * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
7154         declarations.
7155         (set_modulo_params, discard_delay_pairs_above): Declare.
7156         * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
7157         * doc/invoke.texi (--param): Document it.
7158
7159         * sched-ebb.c (schedule_ebb): No longer static.  Remove declaration.
7160         New arg modulo_scheduling.  All callers changed.  Move note handling
7161         code here from schedule_ebbs.
7162         (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
7163         out of schedule_ebbs.
7164         (schedule_ebbs): Call them.  Remove note handling code moved to
7165         schedule_ebb.
7166         * sched-int.h (schedule_ebb, schedule_ebbs_init,
7167         schedule_ebbs_finish): Declare.
7168
7169 2011-09-30  Richard Guenther  <rguenther@suse.de>
7170
7171         PR middle-end/50574
7172         * tree-cfg.c (verify_gimple_comparison): Compare component
7173         mode sizes for vector comparisons.
7174
7175 2011-09-30  Revital Eres  <revital.eres@linaro.org>
7176
7177         * ddg.c (autoinc_var_is_used_p): New function.
7178         (create_ddg_dep_from_intra_loop_link,
7179         add_cross_iteration_register_deps): Call it.
7180         * ddg.h (autoinc_var_is_used_p): Declare.
7181         * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
7182         (sms_schedule): Handle instructions with REG_INC.
7183
7184 2011-09-30  Revital Eres  <revital.eres@linaro.org>
7185
7186         * modulo-sched.c (generate_reg_moves): Skip instructions that
7187         do not set a register and verify no regmoves are created for
7188         !single_set instructions.
7189
7190 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
7191
7192         * hw-doloop.c (scan_loop): Compute register usage only for non-debug
7193         insns.
7194
7195 2011-09-30  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7196
7197         PR target/50099
7198         * config/arm/iterators.md (qhs_zextenddi_cstr): New.
7199         (qhs_zextenddi_op): New.
7200         * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
7201         * config/arm/predicates.md ("arm_extendqisi_mem_op"):
7202         Distinguish between ARM and Thumb2 states.
7203
7204 2011-09-30  David S. Miller  <davem@davemloft.net>
7205
7206         * config/sparc/sparc.opt (VIS2): New option.
7207         * doc/invoke.texi: Document it.
7208         * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
7209         UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
7210         UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
7211         (define_attr type): New insn type 'edgen'.
7212         (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
7213         edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
7214         edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
7215         patterns.
7216         * niagara.md: Handle edgen.
7217         * niagara2.md: Likewise.
7218         * ultra1_2.md: Likewise.
7219         * ultra3.md: Likewise.
7220         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
7221         to 0x200 when TARGET_VIS2.
7222         * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
7223         default when targetting capable cpus.  TARGET_VIS2 implies
7224         TARGET_VIS, clear and it when TARGET_FPU is disabled.
7225         (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
7226         (sparc_expand_builtin): Fix predicate indexing when builtin returns
7227         void.
7228         (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
7229         * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
7230         __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
7231         __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
7232         __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
7233         * doc/extend.texi: Document new VIS 2.0 builtins.
7234
7235 2011-09-29  Nick Clifton  <nickc@redhat.com>
7236             Bernd Schmidt  <bernds@codesourcery.com>
7237
7238         * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header file.
7239         * config/frv/frvend.c: Likewise.
7240         * config/frv/frv.c (frv_function_prologue): Move misplaced
7241         CALL_ARG_LOCATION notes back to their proper locations.
7242
7243 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
7244
7245         PR target/50566
7246         * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
7247         * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
7248         from avr_rtx_costs.
7249         (avr_legitimate_address_p): Use avr_edump to print log information
7250         filtered by avr_log.
7251         (extra_constraint_Q): Ditto.
7252         (avr_legitimize_address): Ditto.
7253         (avr_rtx_costs): Ditto.  Rewrite as wrapper for avr_rtx_costs_1.
7254         (final_prescan_insn): Use avr_log.rtx_costs as filter.
7255
7256 2011-09-29  Richard Sandiford  <richard.sandiford@linaro.org>
7257
7258         * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
7259         * config/arm/arm.h (MODES_TIEABLE_P): Use it.
7260         * config/arm/arm.c (arm_modes_tieable_p): New function.  Allow
7261         NEON vector and structure modes to be tied.
7262
7263 2011-09-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7264
7265         * graphite-scop-detection.c (make_close_phi_nodes_unique):  New
7266         forward declaration.
7267         (remove_duplicate_close_phi): Detect and repair creation of
7268         duplicate close-phis for a containing loop.
7269
7270 2011-09-27   Andi Kleen <ak@linux.intel.com>
7271
7272         * gcc.c (get_local_tick). Rename to get_random_number.  Read from
7273         /dev/urandom.  Add getpid call.
7274         (compare_debug_dump_opt_spec_function): Drop getpid call.
7275
7276 2011-09-26   Andi Kleen <ak@linux.intel.com>
7277
7278         * toplev.c (init_local_tick): Try reading random seed
7279         from /dev/urandom.
7280
7281 2011-09-26   Andi Kleen <ak@linux.intel.com>
7282
7283         * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
7284         * lto-streamer.c (lto_get_section_name): Remove crc32_string.
7285         Handle numerical random seed.
7286         * lto-streamer.h (lto_file_decl_data): Change id to
7287         unsigned HOST_WIDE_INT.
7288         * toplev.c (random_seed): Add.
7289         (init_random_seed): Change for numerical random seed.
7290         (get_random_seed): Return as HOST_WIDE_INT.
7291         (set_random_seed): Crc32 existing string.
7292         * toplev.h (get_random_seed): Change to numercal return.
7293         * tree.c (get_file_function_name): Remove CRC. Handle
7294         numerical random seed.
7295
7296 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
7297
7298         PR target/50566
7299         * config.gcc (extra_objs): Add avr-log.o for $target in:
7300         avr-*-rtems*, avr-*-*.
7301         * config/avr/t-avr (avr-log.o): New rule to compile...
7302         * config/avr/avr-log.c: ...this new file.
7303         * config/avr/avr.opt (mlog=): New option.
7304         * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
7305         (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
7306         (avr_log_set_avr_log): New prototype.
7307         (avr_log_t): New typedef.
7308         (avr_log): New declaration.
7309         * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
7310
7311 2011-09-29  Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
7312
7313         * expr.c (do_store_flag): Expand vector comparison by
7314         building an appropriate VEC_COND_EXPR.
7315         * c-typeck.c (build_binary_op): Typecheck vector comparisons.
7316         (c_objc_common_truthvalue_conversion): Adjust.
7317         * tree-vect-generic.c (do_compare): Helper function.
7318         (expand_vector_comparison): Check if hardware supports
7319         vector comparison of the given type or expand vector piecewise.
7320         (expand_vector_operation): Treat comparison as binary
7321         operation of vector type.
7322         (expand_vector_operations_1): Adjust.
7323
7324 2011-09-29  Richard Guenther  <rguenther@suse.de>
7325
7326         * tree.c (build_opaque_vector_type): Make opaque vectors
7327         variant types of the corresponding non-opaque type.  Make
7328         sure to share opaque vector types properly.
7329
7330 2011-09-29  David S. Miller  <davem@davemloft.net>
7331
7332         * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
7333         UNSPEC_ARRAY32): New unspec.
7334         (define_attr type): New type 'array'.
7335         (array{8,16,32}<P:mode>_vis): New patterns.
7336         * config/sparc/ultra1_2.md: Add reservations for 'array'.
7337         * config/sparc/ultra3.md: Likewise.
7338         * config/sparc/niagara.md: Likewise.
7339         * config/sparc/niagara2.md: Likewise.
7340         * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
7341         array builtins.
7342         * config/sparc/visintrin.h (__vis_array8, __vis_array16,
7343         __vis_array32): New.
7344         * doc/extend.texi: Document new VIS builtins.
7345
7346         * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
7347         (VIS pixel-compare insn): Just use <gcond:name>.
7348
7349         * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
7350         code iterator used, so just use <code>.  There are two mode iterators
7351         so explicitly use <GCM:gcm_name>.
7352
7353 2011-09-29  Iain Sandoe  <iains@gcc.gnu.org>
7354
7355         * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
7356         Darwin >= 9.
7357
7358 2011-09-28  David S. Miller  <davem@davemloft.net>
7359
7360         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
7361         UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
7362         (UNSPEC_FCMP): New unspec.
7363         (gcond): New code iterator.
7364         (gcond_name): New code attr.
7365         (GCM): New mode iterator.
7366         (gcm_name): New mode attr.
7367         (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
7368
7369 2011-09-28  Oleg Endo  <oleg.endo@t-online.de>
7370
7371         PR target/49486
7372         * config/sh/sh.md (negdi2): Move expansion into split to
7373         allow more combination options.  Add T_REG clobber.
7374         (abssi2): New expander.
7375         (*negdi2, *abssi2, *negabssi2): New insns.
7376         (cneg): Change from insn to insn_and_split.  Rename to
7377         negsi_cond.  Add alternative for non-SH4.
7378
7379 2011-09-28  Richard Sandiford  <richard.sandiford@linaro.org>
7380
7381         * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
7382         (neon_move_hi_quad_<mode>): Likewise.
7383         (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
7384
7385 2011-09-28  Nick Clifton  <nickc@redhat.com>
7386
7387         * config/rx/predicates.md (rx_minmax_operand): New predicate.
7388         Accepts immediates and a restricted subset of MEMs.
7389         * config/rx/rx.md (int_modes): New iterator.
7390         (smaxsi3, sminsi3): Delete and replace with...
7391         (smax<int_mode>3, smin<int_mode>3): New patterns.
7392         (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
7393
7394 2011-09-28  Richard Guenther  <rguenther@suse.de>
7395
7396         PR middle-end/50460
7397         * fold-const.c (try_move_mult_to_index): Handle &a.array the
7398         same as &a.array[0].
7399
7400 2011-09-28  Kai Tietz  <ktietz@redhat.com>
7401
7402         * configure.ac: Add test for new section attribute
7403         specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
7404         * config.in: Regenerated.
7405         * configure: Regenerated.
7406         * config/i386/winnt.c (i386_pe_asm_named_section): Emit
7407         new section flag "e" for excluded sections, if supported.
7408         Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
7409
7410 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
7411
7412         * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
7413         throughout file.
7414
7415 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
7416
7417         * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
7418         throughout file.
7419
7420 2011-09-27  Sriraman Tallam  <tmsriram@google.com>
7421
7422         * output.h (SECTION_EXCLUDE): New macro.
7423         * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
7424
7425 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
7426
7427         * fwprop.c (forward_propagate_and_simplify): After checking
7428         reg/subreg combinations, check whether the modes are the same.
7429
7430 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
7431             Richard Sandiford  <rdsandiford@googlemail.com>
7432
7433         * config/mips/mips.c (mips_add_cfa_restore): New function.
7434         (mips16e_save_restore_reg): Use it.
7435         (mips_restore_reg): Likewise.  Split double FPRs for
7436         REG_CFA_RESTORE notes.
7437
7438 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
7439
7440         PR middle-end/50386
7441         PR middle-end/50326
7442         * tree-sra.c (build_ref_for_model): Use the type of the field as
7443         the type of the COMPONENT_REF.
7444
7445 2011-09-27  Jeff Law  <law@redhat.com>
7446
7447         * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument.  Scale
7448         non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
7449         (find_if_case_1): Use the probability of the THEN clause when
7450         determining if speculation is profitable.
7451         (find_if_case_2): Similarly for the ELSE clause.
7452
7453 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
7454
7455         * common.opt: Add -foptimize-strlen option.
7456         * Makefile.in (OBJS): Add tree-ssa-strlen.o.
7457         (tree-sssa-strlen.o): Add dependencies.
7458         * opts.c (default_options_table): Enable -foptimize-strlen
7459         by default at -O2 if not -Os.
7460         * passes.c (init_optimization_passes): Add pass_strlen
7461         after pass_object_sizes.
7462         * timevar.def (TV_TREE_STRLEN): New timevar.
7463         * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
7464         * tree-pass.h (pass_strlen): Declare.
7465         * tree-ssa-strlen.c: New file.
7466         * c-decl.c (merge_decls): If compatible stpcpy prototype
7467         is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
7468
7469 2011-09-27  Tom de Vries  <tom@codesourcery.com>
7470
7471         PR middle-end/43864
7472         * tree-ssa-tail-merge.c: New file.
7473         (struct same_succ_def): Define.
7474         (same_succ, const_same_succ): New typedef.
7475         (struct bb_cluster_def): Define.
7476         (bb_cluster, const_bb_cluster): New typedef.
7477         (struct aux_bb_info): Define.
7478         (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
7479         (gvn_uses_equal): New function.
7480         (same_succ_print, same_succ_print_traverse, update_dep_bb)
7481         (stmt_update_dep_bb, local_def, same_succ_hash)
7482         (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
7483         (same_succ_reset): New function.
7484         (same_succ_htab, same_succ_edge_flags)
7485         (deleted_bbs, deleted_bb_preds): New var.
7486         (debug_same_succ): New function.
7487         (worklist): New var.
7488         (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
7489         (init_worklist, delete_worklist, delete_basic_block_same_succ)
7490         (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
7491         (print_cluster, debug_cluster, update_rep_bb)
7492         (add_bb_to_cluster, new_cluster, delete_cluster): New function.
7493         (all_clusters): New var.
7494         (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
7495         (merge_clusters, set_cluster): New function.
7496         (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
7497         (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
7498         (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
7499         (find_clusters_1, find_clusters): New function.
7500         (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
7501         (update_bbs): New var.
7502         (apply_clusters): New function.
7503         (update_debug_stmt, update_debug_stmts): New function.
7504         (tail_merge_optimize): New function.
7505         tree-pass.h (tail_merge_optimize): Declare.
7506         * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
7507         * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
7508         (tree-ssa-tail-merge.o): New rule.
7509         * opts.c (default_options_table): Set OPT_ftree_tail_merge by
7510         default at OPT_LEVELS_2_PLUS.
7511         * tree-ssa-sccvn.c (vn_valueize): Move to ...
7512         * tree-ssa-sccvn.h (vn_valueize): Here.
7513         * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
7514         * common.opt (ftree-tail-merge): New switch.
7515         * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
7516         (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
7517         * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
7518         (-ftree-tail-merge, max-tail-merge-comparisons)
7519         (max-tail-merge-iterations): New item.
7520
7521 2011-09-27  Jan Hubicka  <jh@suse.cz>
7522
7523         * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
7524
7525 2011-09-27  Jan Hubicka  <jh@suse.cz>
7526
7527         * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
7528         parameters passed by reference; handle loads from non-SSA scalars
7529         and update comments.
7530
7531 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
7532
7533         PR rtl-optimization/50249
7534         * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
7535         instead of opnum and type.  All callers changed.  Remove useless
7536         declaration.
7537         Search forward for other reloads of the same type for the same operand
7538         using the same register; if any are found, return false.
7539         (reload_regs_reach_end_p): Same argument changes; all callers changed.
7540
7541 2011-09-27  Andi Kleen  <ak@linux.intel.com>
7542             Jan Hubicka  <jh@suse.cz>
7543
7544         * doc/invoke.texi (ffat-lto-objects): Document.
7545         * toplev.c (compile_file): Do not output assembly when doing slim lto;
7546         Output __gnu_slim_lto when doing slim lto.
7547         * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
7548         (cgraph_optimize): Return early when doing slim lto.
7549         * opts.c (finish_options): Complain about lack of linker plugin
7550         when doing slim lto.
7551         * common.opt (ffat-lto-objects): New.
7552
7553 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
7554
7555         * ipa-inline-analysis.c (predicate_probability): Avoid comparison
7556         between signed and unsigned.
7557
7558 2011-09-27  Ira Rosen  <ira.rosen@linaro.org>
7559
7560         * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
7561         vectorization.
7562         (vectorizable_type_promotion): Likewise.
7563         (vect_analyze_stmt): Call vectorizable_type_demotion and
7564         vectorizable_type_promotion for basic blocks.
7565         (supportable_widening_operation): Don't assume loop vectorization.
7566         * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
7567         basic blocks.  Update vectorization factor for basic block
7568         vectorization.
7569         (vect_analyze_slp_instance): Allow multiple types for basic block
7570         vectorization.  Recheck unrolling factor after construction of SLP
7571         instance.
7572
7573 2011-09-27  Richard Guenther  <rguenther@suse.de>
7574
7575         * tree-object-size.c (compute_object_sizes): Fix dumping of
7576         folded statement.
7577
7578 2011-09-27  Richard Guenther  <rguenther@suse.de>
7579
7580         PR tree-optimization/50363
7581         * tree-ssa-pre.c (create_expression_by_pieces): Handle
7582         pointer conversions in POINTER_PLUS_EXPRs properly.
7583
7584 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
7585
7586         * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
7587         (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
7588         (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
7589         (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
7590         that produce subreg moves.  Define using VQX iterators.
7591
7592 2011-09-27  Georg-Johann Lay  <avr@gjlay.de>
7593
7594         * config/avr/avr.md (ashrqi3): Split alternative "n"
7595         into its remaining parts C03, C04, C05, C06, C07 and describe
7596         impact in CC by attribute "cc" appropriately.
7597         * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
7598         by digging RTX.
7599
7600 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
7601
7602         * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
7603         from 3 x MAX_MACHINE_MODE.
7604         (CONSTM1_RTX): Define.
7605         * emit-rtl.c (const_tiny_rtx): Change into array of
7606         4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
7607         (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
7608         CONSTM1_RTX.
7609         (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
7610         MODE_VECTOR_INT modes.
7611         * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
7612         Optimize if one operand is CONSTM1_RTX.
7613         * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
7614         into mask | x.
7615
7616 2011-09-26  David S. Miller  <davem@davemloft.net>
7617
7618         * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
7619         (fcmp{le,ne,gt,eq}{16,32}): Likewise.
7620         * config/sparc/visintrin.h: Update edge and pixel-compare
7621         intrinsics to return 'long' instead of 'int'.
7622         * doc/extend.texi: Update documentation to match.
7623         * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
7624         flat, allow any instruction.  Otherwise, when V9 allow parallels
7625         which consist only of sets to registers outside of %o0 to %o5.
7626         (sparc_vis_init_builtins): Update VIS builtin types for edge
7627         and pixel-compare.
7628
7629         * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
7630         is enabled, mark %gsr as global.
7631         * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
7632         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
7633
7634         * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
7635         which will now define __VIS and __VIS__ when -mvis is enabled.
7636         * config/sparc/t-sparc: Likewise.
7637         * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
7638         and add t-sparc to tmake_file for all sparc targets.
7639         * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
7640         * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
7641
7642         * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
7643         builtins for VIS vector addition and subtraction.
7644         * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
7645         __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
7646         __vis_fpsub32, __vis_fpsub32s): New.
7647         * doc/extend.texi: Document new VIS intrinsics.
7648
7649 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
7650
7651         * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
7652         * config/avr/avr.c (avr_out_compare): Print shorter sequence for
7653         EQ/NE comparisons against +/-1 in the case of unused-after,
7654         non-ld-regs target.
7655
7656 2011-09-26  Jakub Jelinek  <jakub@redhat.com>
7657
7658         * gimple-fold.c (gimplify_and_update_call_from_tree): Set
7659         gctx.into_ssa after push_gimplify_context.
7660
7661         * gimple.c (gimple_build_call_valist): New function.
7662         * gimple.h (gimple_build_call_valist): New prototype.
7663         * tree-ssa-propagate.c (finish_update_gimple_call): New function.
7664         (update_gimple_call): Likewise.
7665         (update_call_from_tree): Use finish_update_gimple_call.
7666         * tree-ssa-propagate.h (update_gimple_call): New prototype.
7667
7668 2011-09-26  Richard Guenther  <rguenther@suse.de>
7669
7670         PR tree-optimization/50472
7671         * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
7672         volatile references.
7673
7674 2011-09-26  Bingfeng Mei <bmei@broadcom.com>
7675
7676         * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
7677         * target.def: (addr_space_subset_p): Likewise.
7678
7679 2011-09-26  Tom de Vries  <tom@codesourcery.com>
7680
7681         * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
7682         * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
7683         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
7684         of new var.
7685
7686 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
7687
7688         PR target/50465
7689         * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
7690         * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
7691         output_reload_insisf.
7692         (adjust_len): Set default to "no".
7693         Remove alternative "yes".  Add alternatives: "mov8", "mov16",
7694         "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
7695         "lshrhi", "ashlsi, "ashrsi", "lshrsi".
7696         (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
7697         *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
7698         *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
7699         *lshrsi3_const): Set attribute "adjust_len".
7700         * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
7701         (output_movsisf): Don't pass insn to output_reload_insisf.
7702         (adjust_insn_length): Handle new alternatives to adjust_len.
7703         Remove handling of ADJUST_LEN_YES.  Clean-up code.
7704
7705 2011-09-26  Eric Botcazou  <ebotcazou@adacore.com>
7706
7707         * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
7708         may_trap_p to detect loads that may trap of fault.
7709
7710 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
7711
7712         * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
7713         * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
7714         (*reload_inhi): Use it.  Adapt call to output_reload_inhi to new
7715         prototype.
7716         (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
7717         * config/avr/avr.c: Rename output_reload_insisf_1 to
7718         output_reload_in_const.
7719         (avr_popcount_each_byte): Handle SFmode, too.
7720         (output_reload_in_const): Change so it can handle HI loads, too.
7721         Use avr_popcount_each_byte to work out if scratch register must be
7722         created on the fly.
7723         (output_reload_inhi): Rewrite using output_reload_in_const and...
7724         (output_movhi): ...use it to print constants' loads.
7725         (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
7726
7727 2011-09-25  David S. Miller  <davem@davemloft.net>
7728
7729         * config/sparc/constraints.md (C, P, Z): New constraints for
7730         const_doube, const_int, and const_vector "all ones" values.
7731         Make unused constraint letters comment match reality.
7732         * config/sparc/predicates.md (const_all_ones_operand,
7733         register_or_zero_or_all_ones_operand): New predicates.
7734         * config/sparc/sparc.c (sparc_expand_move): Allow all ones
7735         as well as zero constants when VIS.
7736         (sparc_legitimate_constant_p): Likewise.
7737         * config/sparc/sparc.md (movsi_insn): Add fones alternative.
7738         (movsf_insn): Likewise
7739         (movdi_insn_sp64): Add fone alternative.
7740         (movdf_insn_sp32_v9): Likewise.
7741         (movdf_insn_sp64): Likewise.
7742
7743         * configure.ac: Add feature check to make sure the assembler
7744         supports the FMAF, HPC, and VIS 3.0 instructions found on
7745         Niagara-3 and later cpus.
7746         * configure: Rebuild.
7747         * config.in: Likewise.
7748         * config/sparc/sparc.opt: New option '-mfmaf'.
7749         * config/sparc/sparc.md: Add float fused multiply-add patterns.
7750         * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
7751         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
7752         * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
7753         ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
7754         * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
7755         by default for Niagara-3 and later.  Turn it off if TARGET_FPU is
7756         disabled.
7757         (sparc_rtx_costs): Handle 'FMA'.
7758         * doc/invoke.texi: Document -mfmaf.
7759
7760 2011-09-25  Jakub Jelinek  <jakub@redhat.com>
7761
7762         * tree-ssa-structalias.c (intra_create_variable_infos): Treat
7763         TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
7764         DECL_BY_REFERENCE parameters.
7765
7766 2011-09-25  Eric Botcazou  <ebotcazou@adacore.com>
7767
7768         * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
7769         if there is no outgoing edge.
7770
7771         * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
7772         integral types.
7773
7774 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
7775
7776         * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
7777         of vect_analyze_bb here.
7778         (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
7779
7780 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
7781
7782         * tree-data-ref.c (dr_analyze_innermost): Add new argument.
7783         Allow not simple iv if analyzing basic block.
7784         (create_data_ref): Update call to dr_analyze_innermost.
7785         (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
7786         * tree-loop-distribution.c (generate_memset_zero): Likewise.
7787         * tree-predcom.c (find_looparound_phi): Likewise.
7788         * tree-data-ref.h (dr_analyze_innermost): Add new argument.
7789
7790 2011-09-24  David S. Miller  <davem@davemloft.net>
7791
7792         * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
7793         (SPARC_GSR_REG): Define.
7794         (FIXED_REGISTERS): Mark GSR as fixed.
7795         (CALL_USED_REGISTERS): Mark GSR as call used.
7796         (HARD_REGNO_NREGS): GSR is always 1 register.
7797         (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
7798         (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
7799         (REGISTER_NAMES): Add "%gsr".
7800         * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
7801         (UNSPEC_WRGSR): New unspec.
7802         (GSR_REG): New constant.
7803         (type): Add new insn type 'gsr'.
7804         (fpack16_vis, fpackfix_vis, fpack32_vis,
7805         faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
7806         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
7807         rdgsr_v8plus): New expanders and insns.
7808         (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
7809         using patterns which show that this is a plus in addition to a
7810         modification of GSR_REG, instead of an unspec.
7811         * config/sparc/ultra1_2.md: Handle 'gsr'.
7812         * config/sparc/ultra3.md: Likewise.
7813         * config/sparc/niagara.md: Likewise.
7814         * config/sparc/niagara2.md: Likewise.
7815         * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
7816         end of table.
7817         (sparc_option_override): Make -mvis imply -mv8plus.
7818         (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
7819         for %gsr.
7820         (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
7821         __builtin_vis_read_gsr.
7822         (sparc_expand_buildin): Handle builtins that take one argument and
7823         return void.
7824         (sparc_fold_builtin): Never fold writes to %gsr.
7825         * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
7826         * doc/extend.texi: Document new VIS intrinsics.
7827
7828 2011-09-23  Jan Hubicka  <jh@suse.cz>
7829
7830         * ipa-inline-transform.c (inline_call): Add comment.
7831         * ipa-inline.h (inline_param_summary): New structure and vector.
7832         (struct inline_edge_summary): Add param field.
7833         * ipa-inline-analysis.c (CHANGED): New constant.
7834         (add_clause): Handle CHANGED and NOT_CONSTANT.
7835         (predicate_probability): New function.
7836         (dump_condition): Dump CHANGED predicate.
7837         (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
7838         of unknown function wide invariant.
7839         (evaluate_conditions_for_edge): Handle change probabilities.
7840         (inline_edge_duplication_hook): Copy param summaries.
7841         (inline_edge_removal_hook): Free param summaries.
7842         (dump_inline_edge_summary): Fix dumping of indirect edges and callee
7843         sizes; dump param summaries.
7844         (will_be_nonconstant_predicate): Use CHANGED predicate.
7845         (record_modified_bb_info): New structure.
7846         (record_modified): New function.
7847         (param_change_prob): New function.
7848         (estimate_function_body_sizes): Compute param summaries.
7849         (estimate_edge_size_and_time): Add probability argument.
7850         (estimate_node_size_and_time): Add inline_param_summary argument;
7851         handle predicate probabilities.
7852         (remap_predicate): Fix formating.
7853         (remap_edge_change_prob): New function.
7854         (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
7855         (remap_edge_predicates): ... this one.
7856         (inline_merge_summary): Remap edge summaries; handle predicate
7857         probabilities; remove param summaries after we are done.
7858         (do_estimate_edge_time): Update.
7859         (do_estimate_edge_growth): Update.
7860         (read_inline_edge_summary): Read param info.
7861         (inline_read_summary): Fix formating.
7862         (write_inline_edge_summary): Write param summaries.
7863
7864 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
7865
7866         * config/i386/i386.c (ix86_print_operand): Handle %~.
7867         (ix86_print_operand_punct_valid_p): Return true also for '~'.
7868         * config/i386/sse.md (i128): New mode_attr.
7869         (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
7870         avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
7871         *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
7872         vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
7873         patterns, use "<sseinsnmode>" for "mode" attribute.
7874         (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
7875         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
7876         %~128 in the patterns, use "OI" for "mode" attribute.
7877
7878 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
7879
7880         PR target/50447
7881         * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
7882         "tstsi", "compare".
7883         (*cmpqi_sign_extend): Use s8_operand.
7884         (*cmphi, *cmpsi): Rewrite using avr_out_compare.
7885         * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
7886         prototypes.
7887         (out_tsthi, out_tstsi): Remove prototypes.
7888         (avr_out_tsthi, avr_out_tstsi): New prototypes.
7889         * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
7890         (avr_asm_len): Negative length now sets *plen to -length.
7891         (compare_sign_p): Return bool instead of int.
7892         (compare_diff_p, compare_eq_p): Ditto and make static.
7893         (avr_out_tsthi): New function.
7894         (avr_out_tstsi): New function.
7895         (avr_out_compare): New function.
7896         (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
7897         ADJUST_LEN_COMPARE.
7898
7899 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
7900
7901         PR target/50447
7902         * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
7903         (addsi3): Rewrite using QI scratch register.  Adjust text
7904         peepholes using plus:SI.
7905         (*addsi3_zero_extend.hi): New insn.
7906         (*subsi3_zero_extend.hi): New insn.
7907         (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
7908         (*subsi3_zero_extend): Ditto.
7909         (subsi3): Change predicate #2 to register_operand.
7910         * config/avr/avr-protos.h (avr_out_plus): New prototype.
7911         (avr_out_plus_1): New static function.
7912         (avr_out_plus): New function.
7913         (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
7914
7915 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
7916
7917         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
7918         GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
7919
7920 2011-09-23  Ian Lance Taylor  <iant@google.com>
7921
7922         * godump.c (go_define): Treat a single character in single quotes,
7923         or a string, as an operand.
7924
7925 2011-09-23  Martin Jambor  <mjambor@suse.cz>
7926
7927         * ipa-prop.h (jump_func_type): Updated comments.
7928         (ipa_known_type_data): New type.
7929         (ipa_jump_func): Use it to describe known type jump functions.
7930         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
7931         reflect the new known type jump function contents.
7932         (compute_known_type_jump_func): Likewise.
7933         (combine_known_type_and_ancestor_jfs): Likewise.
7934         (try_make_edge_direct_virtual_call): Likewise.
7935         (ipa_write_jump_function): Likewise.
7936         (ipa_read_jump_function): Likewise.
7937         * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
7938         (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
7939         (propagate_accross_jump_function): Likewise.
7940
7941 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
7942
7943         PR target/50446
7944         * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
7945         (rotlqi3_4): Turn insn into expander.
7946         (*rotlqi3): New insn.
7947         (rotlhi3, rotlsi3): Support rotate left/right by 1.
7948         (*rotlhi2.1, *rotlhi2.15): New insns.
7949         (*rotlsi2.1, *rotlsi2.31): New insns.
7950         * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
7951
7952 2011-09-23  Bin Cheng  <bin.cheng@arm.com>
7953
7954         * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
7955
7956 2011-09-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
7957
7958         * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
7959
7960 2011-09-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7961
7962         * reload.c (find_reloads): Set operand_mode to Pmode for address
7963         operands consisting of just a CONST_INT.
7964
7965 2011-09-22  Uros Bizjak  <ubizjak@gmail.com>
7966
7967         PR target/50482
7968         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
7969         blendv, force op_true to register if it doesn't satisfy
7970         nonimmediate_operand predicate.
7971
7972 2011-09-22  Richard Sandiford  <rdsandiford@googlemail.com>
7973
7974         PR middle-end/50113
7975         PR middle-end/50061
7976         * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
7977         get the locate.where_pad value for register-only arguments.
7978         * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
7979         (arm_pad_reg_upward): Handle null types.
7980
7981 2011-09-22  Jan Hubicka  <jh@suse.cz>
7982
7983         * ipa-inline-analysis.c: Fix overly long lines.
7984
7985 2011-09-22  Jan Hubicka  <jh@suse.cz>
7986
7987         * ipa-inline-transform.c (inline_call): Always update jump functions
7988         after inlining.
7989         * ipa-inline.c (ipa_inline): Likewise; do not call
7990         ipa_create_all_structures_for_iinln.
7991         (ipa_inline): Always free jump functions.
7992         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
7993         (remap_edge_predicates): Fix pasto.
7994         (inline_merge_summary): Remove nlined edge predicate; remove hack.
7995         (inline_analyze_function): Always initialize jump functions.
7996         (inline_generate_summary): Likewise.
7997         (inline_write_summary): Always write jump functions when ipa-cp
7998         is not doing that.
7999         (inline_read_summary): Always read jump functions when ipa-cp
8000         is not doing that.
8001         * ipa-prop.c (iinlining_processed_edges): Remove.
8002         (update_indirect_edges_after_inlining): Do not use
8003         iinlining_processed_edges; instead set param_index to -1.
8004         (propagate_info_to_inlined_callees): Only try to indirect inlining
8005         when asked to do so; update jump functions of indirect calls, too;
8006         remove jump functions of the inlined edge.
8007         (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
8008         (ipa_create_all_structures_for_iinln): Remove.
8009         (ipa_free_all_structures_after_iinln): Do not free
8010         iinlining_processed_edges.
8011         * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
8012
8013 2011-09-22  Richard Sandiford  <richard.sandiford@linaro.org>
8014
8015         * config/arm/predicates.md (expandable_comparison_operator): New
8016         predicate, extracted from...
8017         (arm_comparison_operator): ...here.
8018         * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
8019         (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
8020         (movdfcc): Use expandable_comparison_operator.
8021
8022 2011-09-22  Georg-Johann Lay  <avr@gjlay.de>
8023
8024         PR target/50447
8025         PR target/50465
8026         * config/avr/avr-protos.h (avr_out_bitop): New prototype.
8027         (avr_popcount_each_byte): New prototype.
8028         * config/avr/avr.c (avr_popcount): New static function.
8029         (avr_popcount_each_byte): New function.
8030         (avr_out_bitop): New function.
8031         (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
8032         avr_out_bitop.  Cleanup code.
8033         * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
8034         (Ca4, Co4, Cx4): New constraints.
8035         * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
8036         alternative.
8037         (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
8038         (andsi3, iorsi3, xorsi3): Ditto.
8039         (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
8040
8041 2011-09-22  Ira Rosen  <ira.rosen@linaro.org>
8042
8043         PR tree-optimization/50451
8044         * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
8045         constant operands in reduction.
8046         (vect_get_slp_defs): Don't create vector operand for NULL scalar
8047         operand.
8048
8049 2011-09-22  David S. Miller  <davem@davemloft.net>
8050
8051         * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
8052         fpack16, fpack32, fpackfix as const.
8053
8054         * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
8055         I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
8056         constants.  Use them everywhere.
8057
8058 2011-09-22  Oleg Endo  <oleg.endo@t-online.de>
8059
8060         * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
8061         Added AND special case.  Adapted comments.
8062         (sh_rtx_costs): Added XOR and IOR case.
8063
8064 2011-09-21  Jan Hubicka  <jh@suse.cz>
8065
8066         * ipa-inline-analsis.c (compute_inline_parameters): Set
8067         cfun and current_function_decl.
8068
8069 2011-09-21  Jan Hubicka  <jh@suse.cz>
8070
8071         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
8072         handled components in parameter of builtin_constant_p.
8073         (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
8074
8075 2011-09-21  Jan Hubicka  <jh@suse.cz>
8076
8077         * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
8078         * ipa-inline.h (estimate_edge_time): Fix pasto.
8079         * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
8080
8081 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
8082
8083         * config/i386/i386.c (ix86_expand_sse_movcc): Use
8084         blendvps, blendvpd and pblendvb if possible.
8085
8086 2011-09-21  Uros Bizjak  <ubizjak@gmail.com>
8087
8088         PR target/50464
8089         * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
8090         operand 1 predicate to register_operand and operand 2 predicate
8091         to nonimmediate_operand.
8092         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
8093         xop_pcmov, force op_true to register.  Also, force op_false to
8094         register if it doesn't satisfy nonimmediate_operand predicate.
8095
8096 2011-09-21  Kirill Yukhin  <kirill.yukhin@intel.com>
8097
8098         * config/i386/bmi2intrin.h (_mulx_u64): New.
8099         (_mulx_u32): Ditto.
8100
8101 2011-09-21  Jan Hubicka  <jh@suse.cz>
8102
8103         PR tree-optimization/50433
8104         * ipa-inline-analysis.c (eliminated_by_inlining_prob):
8105         Use get_base_address.
8106
8107 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
8108
8109         * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
8110         nonimmediate_operand instead of register_operand predicate for operands
8111         1 and 2, force them into registers if expanding them as comparison.
8112         (<code><mode>3 umaxmin:VI124_128 expander): Similarly.  For UMAX
8113         V8HImode force into register just operand 1.
8114
8115 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
8116
8117         PR target/45099
8118         * config/avr/avr.c (avr_function_arg_advance): Change error to
8119         warning if a fixed register is needed as function argument.
8120
8121 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
8122
8123         PR target/50449
8124         PR target/50465
8125         * config/avr/avr.md (adjust_len): New insn attribute.
8126         (*reload_insi, *reload_insf): Use it.
8127         (*movsi, *movsf): Use new interface of output_movsisf.
8128         * config/avr/avr-protos.h (output_movsisf): Change prototype.
8129         * config/avr/avr.c (output_movsisf): Ditto.
8130         (adjust_insn_length): Use insn attribute "adjust_len" to adjust
8131         lengths of insns *reload_insi, *reload_insf.
8132         (output_reload_insisf_1): New static function.
8133         (output_reload_insisf): Use it.
8134
8135 2011-09-21  David S. Miller  <davem@davemloft.net>
8136
8137         * config/sparc/sparc.c (def_builtin): Change from macro into function.
8138         (def_builtin_const): New.
8139         (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
8140         other than alignaddr and falignaddr.
8141
8142         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
8143         UNSPEC_FCMPEQ): New unspec codes.
8144         (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
8145         fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
8146         * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
8147         new pixel compare VIS patterns.
8148         * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
8149         __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
8150         __vis_fcmpeq16, __vis_fcmpeq32): New.
8151         * doc/extend.texi: Document new pixel compare VIS intrinsics.
8152
8153 2011-09-21  Tom de Vries  <tom@codesourcery.com>
8154
8155         * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
8156
8157 2011-09-20  David S. Miller  <davem@davemloft.net>
8158
8159         * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
8160         (aligneddrl<P:mode>_vis): New pattern.
8161         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
8162         edge32l_vis): Adjust to take Pmode arguments, and return SImode.
8163         * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
8164         alignaddrl insn, and adjust edge operations for updated types.
8165         * config/sparc/visintrin.h: Likewise.
8166         * doc/extend.texi: Make typing in VIS documentation match reality.
8167
8168 2011-09-20  Terry Guo  <terry.guo@arm.com>
8169
8170         * config/arm/arm-arches.def: Add armv6s-m.
8171         * config/arm/arm-tables.opt: Regenerate.
8172
8173 2011-09-20  Wei Guozhi  <carrot@google.com>
8174
8175         PR rtl-optimization/49452
8176         * postreload.c (reload_combine): Invalidate use information when across
8177         volatile insn.
8178
8179 2011-09-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
8180
8181         * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
8182         Remove maintenance overhead.
8183         (haifa_sched_init, sched_finish): Update.
8184
8185 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
8186
8187         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
8188         to calculate unit, prefix_rep and prefix_data16 attributes.
8189         (*mov<mode>_internal): Ditto for unit attribute.
8190         (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
8191         (*movv2sf_internal): Ditto.
8192         * config/i386/sse.md (VI1248_256): Remove mode iterator.
8193         (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
8194         (*avx2_eq<mode>3): Ditto.
8195         (avx2_gt<mode>3): Ditto.
8196
8197 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
8198
8199         * config/i386/i386.md (maxmin): New code iterator.
8200         * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
8201         from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
8202         code iterator.
8203         (*avx2_<maxmin:code><mode>3): Macroize isn from
8204         *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
8205         maxmin code iterator.
8206         (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
8207         (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
8208         <umaxmin:code>v16qi3.
8209
8210 2011-09-19  Alan Modra  <amodra@gmail.com>
8211             Michael Meissner  <meissner@linux.vnet.ibm.com>
8212
8213         PR target/50341
8214         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
8215         split the load of the indirect function's TOC from the call to
8216         prevent the compiler from moving the load of the new TOC above
8217         code that references the current function's TOC.
8218         (call_indirect_aix<ptrsize>_internal): Ditto.
8219         (call_indirect_aix<ptrsize>_nor11): Ditto.
8220         (call_indirect_aix<ptrsize>_internal2): Ditto.
8221         (call_value_indirect_aix<ptrsize>): Ditto.
8222         (call_value_indirect_aix<ptrsize>_internal): Ditto.
8223         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
8224         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
8225
8226 2011-09-19  Jakub Jelinek  <jakub@redhat.com>
8227
8228         * config/i386/sse.md (*sse4_1_extractps): Change into
8229         define_insn_and_split, add =x 0 n and =x x n alternatives
8230         and split them after reload.
8231
8232 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
8233
8234         * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
8235
8236 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
8237
8238         * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
8239
8240 2011-09-19  Ira Rosen  <ira.rosen@linaro.org>
8241
8242         PR tree-optimization/50413
8243         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
8244         a basic block if one of its data-refs can't be analyzed.
8245
8246 2011-09-19  Paul Brook  <paul@codesourcery.com>
8247
8248         * config/arm/predicates.md (shift_amount_operand): Check constant
8249         shift count is in range.
8250         (const_shift_operand): Remove.
8251
8252 2011-09-18  Eric Botcazou  <ebotcazou@adacore.com>
8253             Iain Sandoe  <developer@sandoe-acoustics.co.uk>
8254
8255         PR target/50091
8256         * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
8257         * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
8258
8259 2011-09-18  H.J. Lu  <hongjiu.lu@intel.com>
8260
8261         * config/i386/bmiintrin.h: Remove tmp.
8262         * config/i386/tbmintrin.h: Likewise.
8263
8264 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
8265
8266         PR tree-optimization/50414
8267         * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
8268         MIN_EXPR.
8269
8270 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
8271
8272         PR tree-optimization/50412
8273         * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
8274         acceses that require epilogue loop if vectorizing outer loop.
8275
8276 2011-09-17  David S. Miller  <davem@davemloft.net>
8277
8278         * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
8279         UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
8280         New unspecs.
8281         (define_attr type): New type 'edge'.
8282         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
8283         edge32l_vis): New patterns.
8284         * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
8285         * config/sparc/ultra3.md: Likewise.
8286         * config/sparc/niagara.md: Likewise.
8287         * config/sparc/niagara2.md: Likewise.
8288         * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
8289         builtins for VIS edge instructions.
8290         * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
8291         (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
8292         intrinsics.
8293         (__v8qi, __v4qi): Make unsigned.
8294         (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
8295         __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
8296         __vis_fpack32): Fix types.
8297         * doc/extend.texi: Document new 'edge' VIS intrinsics.
8298
8299         * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
8300         divide costs.
8301         (niagara3_costs): New.
8302         (sparc_option_override): Use it.
8303         * gcc/config/sparc/niagara2.md: Adjust with more accurate
8304         Niagara-3 reservations.
8305
8306 2011-09-17  Jakub Jelinek  <jakub@redhat.com>
8307
8308         * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
8309         (sse2_avx, sseinsnmode): Add V2TI.
8310         (REDUC_SMINMAX_MODE): New mode iterator.
8311         (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
8312         reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
8313         (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
8314         (sse2_lshrv1ti3): Rename to...
8315         (<sse2_avx2>_lshr<mode>3): ... this.  Use VIMAX_AVX2 mode
8316         iterator.  Move before umaxmin expanders.
8317         * config/i386/i386.h (VALID_AVX256_REG_MODE,
8318         SSE_REG_MODE_P): Accept V2TImode.
8319         * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
8320         V16HImode, V8SImode and V4DImode.
8321
8322         * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
8323         and V4DImode.
8324         (ix86_build_signbit_mask): Likewise.
8325         (ix86_expand_int_vcond): Likewise.  Handle V16HImode and V32QImode.
8326         (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
8327         instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
8328         * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
8329         (<code><mode>3) ... this.
8330         (avx2_<code><mode>3 smaxmin expand): Rename to...
8331         (<code><mode>3) ... this.
8332         (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
8333         (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
8334         VI8_AVX2 mode iterator.
8335         (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
8336         VI8_AVX2 mode iterator.
8337         (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
8338         New expanders.
8339
8340 2011-09-17  Richard Sandiford  <rdsandiford@googlemail.com>
8341
8342         * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
8343         throughout file.
8344
8345 2011-09-16  David S. Miller  <davem@davemloft.net>
8346
8347         * config/sparc/visintrin.h: New file.
8348         * config.gcc: Add it to extra_headers on sparc.
8349
8350 2011-09-16  Jakub Jelinek  <jakub@redhat.com>
8351
8352         * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
8353         (ix86_expand_reduc): ... this.  Handle also V8SFmode and V4DFmode.
8354         * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
8355         reduc_smin_v4sf): Adjust callers.
8356         (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
8357         New expanders.
8358
8359         * config/i386/sse.md (vec_extract_hi_<mode>,
8360         vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
8361         vextracti128 instead of vextractf128 for -mavx2 and
8362         integer vectors.  For V4DFmode fix up mode attribute.
8363         (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
8364         (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
8365         instead of V8SF mode attribute.
8366         (avx2_extracti128): Change into define_expand.
8367         * config/i386/i386.c (ix86_expand_vector_extract): Handle
8368         32-byte vector modes if TARGET_AVX.
8369
8370 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
8371
8372         * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
8373         (umulqi3_highpart, smulqi3_highpart): Ditto.
8374         (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
8375         (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
8376         (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
8377
8378 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
8379
8380         PR target/50358
8381         * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
8382         (*maddqi4, *maddqi4.const): New insns.
8383         (*msubqi4, *msubqi4.const): New insns.
8384         * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
8385         PLUS:QI and MINUS:QI.  Increase costs of multiply-add/-sub for
8386         HImode by 1 in the case of multiplying with a CONST_INT.
8387         Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
8388
8389 2011-09-15   Jan Hubicka  <jh@suse.cz>
8390
8391         PR lto/50430
8392         * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
8393         error_mark_node in the DECL_INITIAL of vtable.
8394
8395 2011-09-15   Diego Novillo  <dnovillo@google.com>
8396
8397         * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
8398         @SYSROOT_CFLAGS_FOR_TARGET@.
8399         * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
8400         * configure: Regenerate.
8401         (site.exp): Add definition of TEST_ALWAYS_FLAGS.
8402         Remove setting of GCC_UNDER_TEST.
8403
8404 2011-09-15  Uros Bizjak  <ubizjak@gmail.com>
8405
8406         * config/i386/i386.c (output_fp_compare): Return %v prefixed
8407         instruction mnemonics for TARGET_AVX.
8408
8409         * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
8410         "type" attribute calculation.
8411         (*movdf_internal): Ditto.
8412         (*movsf_internal): Ditto.
8413
8414 2011-09-15  James Greenhalgh  <james.greenhalgh@arm.com>
8415
8416         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
8417
8418 2011-09-15  Jason Merrill  <jason@redhat.com>
8419
8420         PR c++/50361
8421         * expr.c (count_type_elements): Handle NULLPTR_TYPE.
8422
8423 2011-09-15  Jan Hubicka  <jh@suse.cz>
8424
8425         * ipa-inline-analysis.c (add_condition): Add conditions parameter;
8426         simplify obviously true clauses.
8427         (and_predicates, or_predicates): Add conditions parameter.
8428         (inline_duplication_hoook): Update.
8429         (mark_modified): New function.
8430         (unmodified_parm): New function.
8431         (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
8432         set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
8433         Use unmodified_parm.
8434         (estimate_function_body_sizes): Update.
8435         (remap_predicate): Update.
8436
8437 2011-09-15  Ira Rosen  <ira.rosen@linaro.org>
8438
8439         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
8440         read-after-read dependencies in basic block SLP.
8441
8442 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
8443
8444         * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
8445         throughout file.
8446
8447 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
8448
8449         * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
8450         throughout file.
8451
8452 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
8453
8454         * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
8455         throughout file.
8456
8457 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
8458
8459         * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
8460         throughout file.
8461         * config/rs6000/constraints.md: Likewise.
8462
8463 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
8464
8465         * config/microblaze/microblaze.md: Use match_test rather than
8466         eq/ne symbol_ref throughout file.
8467
8468 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
8469
8470         * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
8471         throughout file.
8472
8473 2011-09-14  Tom de Vries  <tom@codesourcery.com>
8474
8475         PR middle-end/50251
8476         * explow.c (emit_stack_restore): Set crtl->need_drap if
8477         stack_restore is emitted.
8478
8479 2011-09-14  Julian Brown  <julian@codesourcery.com>
8480
8481         * config/arm/arm.c (arm_override_options): Add unaligned_access
8482         support.
8483         (arm_file_start): Emit attribute for unaligned access as appropriate.
8484         * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
8485         (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
8486         (insv, extzv): Add unaligned-access support.
8487         (extv): Change to expander. Likewise.
8488         (extzv_t1, extv_regsi): Add helpers.
8489         (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
8490         (unaligned_storesi, unaligned_storehi): New.
8491         (*extv_reg): New (previous extv implementation).
8492         * config/arm/arm.opt (munaligned_access): Add option.
8493         * config/arm/constraints.md (Uw): New constraint.
8494         * expmed.c (store_bit_field_1): Adjust bitfield numbering according
8495         to size of access, not size of unit, when BITS_BIG_ENDIAN !=
8496         BYTES_BIG_ENDIAN. Don't use bitfield accesses for
8497         volatile accesses when -fstrict-volatile-bitfields is in effect.
8498         (extract_bit_field_1): Likewise.
8499
8500 2011-09-14  Richard Sandiford  <richard.sandiford@linaro.org>
8501
8502         * simplify-rtx.c (simplify_subreg): Check that the inner mode is
8503         a scalar integer before applying integer-only optimisations to
8504         inner arithmetic.
8505
8506 2011-09-14  Bernd Schmidt  <bernds@codesourcery.com>
8507
8508         * config/mips/mips.c (mips_expand_epilogue): Generate a
8509         simple_return only if the return address is in r31.
8510
8511 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
8512
8513         * cfgcleanup.c (try_head_merge_bb): If get_condition returns
8514         NULL for a jump that is a cc0 insn, pick the previous insn for
8515         move_before.
8516
8517 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
8518
8519         * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
8520         throughout file.
8521
8522 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
8523
8524         * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
8525         throughout file.
8526
8527 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
8528
8529         * config/mn10300/mn10300.md: Use match_test rather than eq/ne
8530         symbol_ref throughout file.
8531
8532 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
8533
8534         * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
8535         throughout file.
8536
8537 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
8538
8539         * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
8540         throughout file.
8541
8542 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
8543
8544         * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
8545         throughout file.
8546         * config/arm/neon.md: Likewise.
8547         * config/arm/vfp.md: Likewise.
8548         * config/arm/thumb2.md: Likewise.
8549         * config/arm/cortex-m4.md: Likewise.
8550
8551 2011-09-13  Sevak Sargsyan <sevak.sargsyan@ispras.ru>
8552
8553         * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
8554         define_insn patterns for combine.
8555
8556 2011-09-13  Giuseppe Scrivano  <gscrivano@gnu.org>
8557
8558         * reorg.c: Always define make_return_insns.
8559
8560 2011-09-13  Jan Hubicka  <jh@suse.cz>
8561
8562         PR other/49533
8563         * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
8564
8565 2011-09-13  Jan Hubicka  <jh@suse.cz>
8566
8567         PR other/49533
8568         * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
8569
8570 2011-09-13  Paul Brook  <paul@codesourcery.com>
8571
8572         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
8573         (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
8574         * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
8575         * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
8576         * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
8577         * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
8578         * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
8579         * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
8580         enabling unwind tables.
8581         (c6x_debug_unwind_info): New function.
8582         (TARGET_ARM_EABI_UNWINDER): Define.
8583         (TARGET_DEBUG_UNWIND_INFO): Define.
8584         * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
8585         (TARGET_EXTRA_CFI_SECTION): Remove.
8586         * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
8587         * ginclude/unwind-arm-common.h: New file.
8588
8589 2011-09-13  Georg-Johann Lay  <avr@gjlay.de>
8590
8591         PR target/50358
8592         * config/avr/predicates.md (const_1_to_6_operand): New predicate.
8593         * config/avr/avr.md: (extend_s): New code attribute.
8594         (mul_r_d): New code attribute.
8595         (*maddqihi4, *umaddqihi4): New insns.
8596         (*msubqihi4, *umsubqihi4): New insns.
8597         (*usmaddqihi4, *sumaddqihi4): New insns.
8598         (*usmsubqihi4, *susubdqihi4): New insns.
8599         (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
8600         (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
8601         (*umsubqihi4.uconst.ashift): New insn-and-split.
8602         (*msubqihi4.sconst.ashift): New insn-and-split.
8603         (*sumaddqihi4.uconst): New insn-and-split.
8604         (*sumsubqihi4.uconst): New insn-and-split.
8605         * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
8606         PLUS:HI and MINUS:HI.
8607
8608 2011-09-13  Revital Eres  <revital.eres@linaro.org>
8609
8610         modulo-sched.c (remove_node_from_ps): Return void instead of bool.
8611         (optimize_sc): Adjust call to remove_node_from_ps.
8612         (sms_schedule): Add print info.
8613
8614 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
8615
8616         * rtl.c (copy_rtx): Do not handle frame_related, jump or call
8617         flags specially.
8618
8619 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
8620
8621         PR bootstrap/50010
8622         * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
8623         NOTE_INSN_CFI notes, with the exception of
8624         NOTE_INSN_SWITCH_TEXT_SECTIONS.
8625
8626 2011-09-12  Bernd Schmidt  <bernds@codesourcery.com>
8627             Richard Sandiford  <rdsandiford@googlemail.com>
8628
8629         * config/mips/mips.c (mips_epilogue): New structure.
8630         (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
8631         restoring registers.
8632         (mips_epilogue_emit_cfa_restores): New function.
8633         (mips_epilogue_set_cfa): Likewise.
8634         (mips_restore_reg): Queue REG_CFA_RESTORE notes.  When restoring
8635         the current CFA register from the stack, redefine the CFA in terms
8636         of the stack pointer.
8637         (mips_expand_epilogue): Set up mips_epilogue.  Attach CFA information
8638         to the epilogue instructions.
8639
8640 2011-09-12  Richard Sandiford  <rdsandiford@googlemail.com>
8641
8642         * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
8643         argument.
8644         (mips16e_build_save_restore): Update accordingly.
8645
8646 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
8647
8648         PR rtl-optimization/50212
8649         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
8650         Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
8651
8652         PR debug/50299
8653         * calls.c (load_register_parameters): Use use_reg_mode instead
8654         of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
8655         entry.
8656         (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
8657         for stack CALL_INSN_FUNCTION_USAGE uses.
8658         * expr.h (use_reg_mode): New prototype.
8659         (use_reg): Changed into inline around use_reg_mode.
8660         * expr.c (use_reg): Renamed to...
8661         (use_reg_mode): ... this.  Added MODE argument, set EXPR_LIST
8662         mode to that mode instead of VOIDmode.
8663         * var-tracking.c (prepare_call_arguments): Don't track parameters
8664         whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
8665         to it using lowpart_subreg.  Convert VALUE and REG/MEM to the
8666         EXPR_LIST mode.
8667
8668 2011-09-12  Georg-Johann Lay  <avr@gjlay.de>
8669
8670         PR target/43746
8671         * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
8672         (progmem_section): New Variable.
8673         (avr_asm_init_sections): Initialize it.
8674         (TARGET_ASM_SELECT_SECTION): Define to...
8675         (avr_asm_select_section): ... this new Function.
8676         (avr_replace_prefix): New Function.
8677         (avr_asm_function_rodata_section): Use it.
8678         (avr_insert_attributes): Don't add section attribute for PROGMEM.
8679         (avr_section_type_flags): Use avr_progmem_p instead of section
8680         name to detect if object is in PROGMEM.
8681         (avr_asm_named_section): Set section name prefix for objects in
8682         PROGMEM.
8683
8684 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
8685
8686         PR bootstrap/50352
8687         * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
8688         sprintf format string.
8689
8690 2011-09-12  Richard Guenther  <rguenther@suse.de>
8691
8692         PR tree-optimization/50343
8693         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
8694         that the reduction is over an SSA name before checking its definition.
8695
8696 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
8697
8698         * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
8699         throughout file.
8700
8701 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
8702
8703         * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
8704         throughout file.
8705         * config/mips/sb1.md: Likewise.
8706         * config/mips/predicates.md: Replace (match_test "!...")
8707         with (not (match_test "..."))
8708         * config/mips/constraints.md: Likewise.
8709
8710 2011-09-09  Andrew Stubbs  <ams@codesourcery.com>
8711
8712         * config/arm/arm-cores.def (generic-armv7-a): New architecture.
8713         * config/arm/arm-tables.opt: Regenerate.
8714         * config/arm/arm-tune.md: Regenerate.
8715         * config/arm/arm.c (arm_file_start): Output .arch directive when
8716         user passes -mcpu=generic-*.
8717         (arm_issue_rate): Add genericv7a support.
8718         * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
8719         (ASM_CPU_SPEC): New define.
8720         * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
8721         * config/arm/semi.h (ASM_SPEC): Likewise.
8722         * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
8723         and -mtune=generic-*.
8724
8725 2011-09-09  Richard Guenther  <rguenther@suse.de>
8726
8727         PR tree-optimization/50328
8728         * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
8729         constant or default-def operand.
8730
8731 2011-09-09  Richard Guenther  <rguenther@suse.de>
8732
8733         * tree-ssa-pre.c (create_expression_by_pieces): Fold the
8734         last statement.
8735
8736 2011-09-09  Richard Guenther  <rguenther@suse.de>
8737
8738         * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
8739         instead of a statement.
8740         * gimple-fold.c (fold_stmt_inplace): Likewise.
8741         * sese.c (graphite_copy_stmts_from_block): Adjust.
8742         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
8743         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
8744         fold_stmt.
8745         (forward_propagate_addr_into_variable_array_index): Likewise.
8746         (forward_propagate_addr_expr_1): adjust.
8747         (associate_plusminus): Likewise.
8748         (ssa_forward_propagate_and_combine): Likewise.
8749         * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
8750         (execute_cse_reciprocals): Likewise.
8751         * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
8752
8753 2011-09-09  Nick Clifton  <nickc@redhat.com>
8754
8755         * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
8756         Return a positive value to indicate that the bits at the
8757         bottom of the register should be cleared.
8758
8759 2011-09-09  Richard Guenther  <rguenther@suse.de>
8760
8761         * tree-ssa-operands.c (swap_tree_operands): Always adjust
8762         existing operand positions.
8763
8764 2011-09-09  Richard Guenther  <rguenther@suse.de>
8765
8766         PR middle-end/50333
8767         * tree-data-ref.c (split_constant_offset): Do not try to handle
8768         ternary ops.
8769
8770 2011-09-08  Andrew Stubbs  <ams@codesourcery.com>
8771
8772         PR tree-optimization/50318
8773         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
8774         typo in use of mult_rhs1 and mult_rhs2.
8775
8776 2011-09-08  Uros Bizjak  <ubizjak@gmail.com>
8777
8778         * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
8779         (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
8780
8781 2011-09-08  Bernd Schmidt  <bernds@codesourcery.com>
8782
8783         * config/arm/arm.md (push_multi): Emit predicates.
8784         (push_fp_multi): Likewise.
8785         * config/arm/arm.c (vfp_output_fstmd): Likewise.
8786
8787 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
8788
8789         PR c++/33255 - Support -Wunused-local-typedefs warning
8790         * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
8791         (pushdecl): Use the new record_locally_defined_typedef.
8792         (store_parm_decls): Allocate cfun->language.
8793         (finish_function): Use the new maybe_warn_unused_local_typedefs,
8794         and free cfun->language.
8795         (c_push_function_context): Allocate cfun->language here only if needed.
8796         (c_pop_function_context): Likewise, mark cfun->language
8797         for collection only when it should be done.
8798         * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
8799         * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
8800         maybe_record_local_typedef_use.
8801         * doc/invoke.texi: Update documentation for
8802         -Wunused-local-typedefs.
8803
8804 2011-09-08  Enkovich Ilya  <ilya.enkovich@intel.com>
8805
8806         * config/i386/i386-protos.h (ix86_lea_outperforms): New.
8807         (ix86_avoid_lea_for_add): Likewise.
8808         (ix86_avoid_lea_for_addr): Likewise.
8809         (ix86_split_lea_for_addr): Likewise.
8810
8811         * config/i386/i386.c (LEA_MAX_STALL): New.
8812         (increase_distance): Likewise.
8813         (insn_defines_reg): Likewise.
8814         (insn_uses_reg_mem): Likewise.
8815         (distance_non_agu_define_in_bb): Likewise.
8816         (distance_agu_use_in_bb): Likewise.
8817         (ix86_lea_outperforms): Likewise.
8818         (ix86_ok_to_clobber_flags): Likewise.
8819         (ix86_avoid_lea_for_add): Likewise.
8820         (ix86_avoid_lea_for_addr): Likewise.
8821         (ix86_split_lea_for_addr): Likewise.
8822         (distance_non_agu_define): Search in pred BBs added.
8823         (distance_agu_use): Search in succ BBs added.
8824         (IX86_LEA_PRIORITY): Value changed from 2 to 0.
8825         (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
8826         (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
8827
8828         * config/i386/i386.md: Split added to transform non destructive
8829         add into move and add.
8830         (lea_1): transformed into insn_and_split to avoid AGU stalls.
8831         (lea<mode>_2): Likewise.
8832
8833 2011-09-08  Martin Jambor  <mjambor@suse.cz>
8834
8835         PR tree-optimization/50287
8836         * ipa-split.c (split_function): Do not create SSA names for
8837         non-gimple-registers.
8838
8839 2011-09-08  Richard Guenther  <rguenther@suse.de>
8840
8841         PR tree-optimization/19831
8842         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
8843         skip builtins with vdefs that do not really store something.
8844         (propagate_necessity): For calls to free that we can associate
8845         with an allocation function do not mark the freed pointer
8846         definition necessary.
8847         (eliminate_unnecessary_stmts): Remove a call to free if
8848         the associated call to an allocation function is not necessary.
8849
8850 2011-09-08  Richard Guenther  <rguenther@suse.de>
8851
8852         PR tree-optimization/19831
8853         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
8854         allocation functions as necessary.
8855
8856 2011-09-08  Iain Sandoe  <iains@gcc.gnu.org>
8857
8858         * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
8859         cut from ...
8860         (darwin_default_min_version): Amended to provide defaults
8861         for the cross directory case.
8862         (darwin_driver_init): call darwin_default_min_version unconditionally.
8863         * config/darwin.h (DEF_MIN_OSX_VERSION): New.
8864         * config/darwin9.h: Likewise.
8865         * config/darwin10.h: Likewise.
8866         * config/rs6000/darwin7.h: Likewise.
8867
8868 2011-09-08  Jakub Jelinek  <jakub@redhat.com>
8869
8870         PR target/50310
8871         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
8872         code early if TARGET_AVX.
8873         (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
8874
8875 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
8876
8877         * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
8878         duplicates.
8879
8880         PR target/50310
8881         * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
8882         "mode" attribute computation.
8883
8884 2011-09-07  Bernd Schmidt  <bernds@codesourcery.com>
8885
8886         * regrename.c (struct du_head): Make nregs signed.
8887         (closed_chains): Remove.
8888         (create_new_chain): Return the new chain.
8889         (chain_from_id): New static function.
8890         (dump_def_use_chain): Change argument to be an int, indicating
8891         the first ID to print.  All callers changed.
8892         (merge_overlapping_regs): Use chain_from_id.  Assert that
8893         chains don't conflict with themselves.
8894         (rename_chains): Take no argument.  Iterate over id_to_chain
8895         rather to find chains to rename.  Clear tick before the main loop.
8896         (struct incoming_reg_info): New struct.
8897         (struct bb_rename_info): New struct.
8898         (init_rename_info, set_incoming_from_chain, merge_chains): New
8899         static functions.
8900         (regrename_analyze): New static function, broken out of
8901         regrename_optimize.  Record and make use of open chain information
8902         at basic block boundaries, and merge chains where possible.
8903         (scan_rtx_reg): Make this_nregs signed.  Don't update
8904         closed_chains.
8905         (build_def_use): Return a bool to indicate success.  All callers
8906         changed.  Don't initialize global data here.
8907         (regrename_optimize): Move most code out of here into
8908         regrename_analyze.
8909         * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
8910         range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
8911         static inline functions.
8912         * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
8913
8914         * bb-reorder.c (insert_section_boundary_note): Don't check
8915         optimize_function_for_speed_p.
8916         (gate_handle_partition_blocks): Do it here instead.
8917         (gate_handle_reorder_blocks): Move preliminary checks here ...
8918         (rest_of_handle_reorder_blocks): ... from here.
8919
8920 2011-09-07  Martin Jambor  <mjambor@suse.cz>
8921
8922         PR middle-end/50301
8923         * ipa-cp.c (find_more_values_for_callers_subset): Check jump
8924         function index bounds.
8925         (perhaps_add_new_callers): Likewise.
8926
8927 2011-09-07  Martin Jambor  <mjambor@suse.cz>
8928
8929         PR tree-optimization/49911
8930         * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
8931         enumerations to the corresponding plain integer type.
8932
8933 2011-09-07  Richard Guenther  <rguenther@suse.de>
8934
8935         PR tree-optimization/50319
8936         * tree-if-conv.c (set_bb_predicate): Assert we only set
8937         canonical predicates.
8938         (add_to_predicate_list): Simplify.  Allow TRUTH_NOT_EXPR
8939         around canonical predicates.
8940         (predicate_bbs): Do not re-gimplify already canonical
8941         predicates.  Properly unshare them though.
8942         (find_phi_replacement_condition): Simplify.
8943
8944 2011-09-07  Richard Sandiford  <richard.sandiford@linaro.org>
8945
8946         PR target/49030
8947         * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
8948         * config/arm/arm.c (maybe_get_arm_condition_code): New function,
8949         reusing the old code from get_arm_condition_code.  Return ARM_NV
8950         for invalid comparison codes.
8951         (get_arm_condition_code): Redefine in terms of
8952         maybe_get_arm_condition_code.
8953         * config/arm/predicates.md (arm_comparison_operator): Use
8954         maybe_get_arm_condition_code.
8955
8956 2011-09-07  Richard Guenther  <rguenther@suse.de>
8957
8958         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
8959         Canonicalize negated predicates by swapping edges.
8960         (forward_propagate_into_cond): Likewise.
8961
8962 2011-09-07  Richard Guenther  <rguenther@suse.de>
8963
8964         PR tree-optimization/50213
8965         * tree-flow.h (simple_iv_increment_p): Declare.
8966         * tree-ssa-dom.c (simple_iv_increment_p): Export.  Also handle
8967         POINTER_PLUS_EXPR.
8968         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
8969         not propagate simple IV counter increments.
8970
8971 2011-09-07  Eric Botcazou  <ebotcazou@adacore.com>
8972             Iain Sandoe  <iains@gcc.gnu.org>
8973
8974         * config/rs6000/rs6000.c (compute_save_world_info): Test
8975         cfun->has_nonlocal_label to determine if the out-of-line save
8976         world call may be used.
8977
8978 2011-09-07  Nick Clifton  <nickc@redhat.com>
8979
8980         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
8981         label on the parallel part of the insn.
8982
8983 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
8984
8985         PR debug/50191
8986         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
8987         avoid_constant_pool_reference first instead of last.
8988
8989 2011-09-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
8990
8991         * doc/configfiles.texi (Configuration Files): Update documentation
8992         about tm_p.h and remove FIXME comment.
8993
8994 2011-09-06  Uros Bizjak  <ubizjak@gmail.com>
8995
8996         * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
8997         (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
8998
8999 2011-09-06  Iain Sandoe  <iains@gcc.gnu.org>
9000
9001         * config/darwin10.h Remove duplicate LIB_SPEC.
9002
9003 2011-09-06  Enkovich Ilya  <ilya.enkovich@intel.com>
9004
9005         PR middle-end/44382
9006         * target.def (reassociation_width): New hook.
9007
9008         * doc/tm.texi.in (reassociation_width): Likewise.
9009
9010         * doc/tm.texi (reassociation_width): Likewise.
9011
9012         * doc/invoke.texi (tree-reassoc-width): New param documented.
9013
9014         * hooks.h (hook_int_uint_mode_1): New default hook.
9015
9016         * hooks.c (hook_int_uint_mode_1): Likewise.
9017
9018         * config/i386/i386.h (ix86_tune_indices): Add
9019         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
9020
9021         (TARGET_REASSOC_INT_TO_PARALLEL): New.
9022         (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
9023
9024         * config/i386/i386.c (initial_ix86_tune_features): Add
9025         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
9026
9027         (ix86_reassociation_width): New function.
9028
9029         * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
9030
9031         * tree-ssa-reassoc.c (get_required_cycles): New function.
9032         (get_reassociation_width): Likewise.
9033         (swap_ops_for_binary_stmt): Likewise.
9034         (rewrite_expr_tree_parallel): Likewise.
9035
9036         (rewrite_expr_tree): Refactored.  Part of code moved into
9037         swap_ops_for_binary_stmt.
9038
9039         (reassociate_bb): Now checks reassociation width to be used and
9040         call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
9041
9042 2011-09-06  Richard Guenther  <rguenther@suse.de>
9043
9044         PR tree-optimization/47025
9045         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
9046         uses nothing.
9047         (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
9048         BUILT_IN_FREE.
9049         (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
9050         definitely points to.
9051         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9052         BUILT_IN_VA_START doesn't let its va_list argument escape.
9053         * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
9054         not make any previous stores necessary.
9055
9056 2011-09-06  Martin Jambor  <mjambor@suse.cz>
9057
9058         * ipa-inline.h (struct inline_summary): Move versionable flag...
9059         * cgraph.h (struct cgraph_local_info): ...here
9060         * ipa-cp.c (determine_versionability): Use the new versionable flag.
9061         (determine_versionability): Likewise.
9062         (ipcp_versionable_function_p): Likewise.
9063         (ipcp_generate_summary): Likewise.
9064         * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
9065         versionable flag.
9066         (compute_inline_parameters): Do not clear the versionable flag.
9067         (inline_read_section): Do not stream the versionable flag.
9068         (inline_write_summary): Likewise.
9069         * lto-cgraph.c (lto_output_node): Stream the versionable flag.
9070         (input_overwrite_node): Likewise.
9071
9072 2011-09-06  Richard Guenther  <rguenther@suse.de>
9073
9074         PR tree-optimization/48149
9075         * tree-ssa-sccvn.c (vn_get_expr_for): Simplify.  Fix tuplification bug.
9076         (vn_valueize): Move earlier.
9077         (valueize_expr): Use vn_valueize.
9078         (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
9079         operands.
9080         (simplify_unary_expression): Simplify.
9081
9082 2011-09-06  Richard Guenther  <rguenther@suse.de>
9083
9084         PR tree-optimization/48317
9085         * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
9086         trailing array.
9087         (sizeof_vn_nary_op): New inline function.
9088         (vn_nary_op_lookup_pieces): Adjust.
9089         (vn_nary_op_insert_pieces): Likewise.
9090         * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
9091         (init_vn_nary_op_from_pieces): Adjust signature.  Deal with
9092         any number of operands.
9093         (vn_nary_length_from_stmt): New function.
9094         (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
9095         (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
9096         sized temporary.
9097         (vn_nary_op_lookup): Likewise.
9098         (vn_nary_op_lookup_stmt): Likewise.
9099         (vn_nary_op_insert_into): Likewise.
9100         (vn_nary_op_insert_stmt): Likewise.
9101         (visit_use): Handle CONSTRUCTOR as nary.
9102         * tree-ssa-pre.c (phi_translate_1): Adjust.
9103         (create_expression_by_pieces): Likewise.
9104         (compute_avail): Likewise.
9105
9106 2011-09-06  Ira Rosen  <ira.rosen@linaro.org>
9107
9108          * config/arm/arm.c (arm_preferred_simd_mode): Check
9109         TARGET_NEON_VECTORIZE_DOUBLE instead of
9110         TARGET_NEON_VECTORIZE_QUAD.
9111         (arm_autovectorize_vector_sizes): Likewise.
9112         * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
9113         mask of mvectorize-with-neon-double.  Add RejectNegative.
9114         (mvectorize-with-neon-double): New.
9115
9116 2011-09-06  Richard Guenther  <rguenther@suse.de>
9117
9118         * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
9119
9120 2011-09-06  Tom de Vries  <tom@codesourcery.com>
9121
9122         * recog.c (asm_labels_ok): New function.
9123         (check_asm_operands): Use asm_labels_ok.
9124
9125 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
9126
9127         PR target/49606
9128         * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
9129         (PMODE_INSN): New macro.
9130         * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
9131         (mips_got_load, mips_expand_synci_loop): Likewise.
9132         (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
9133         cprestore patterns.
9134         (mips_emit_loadgp): Use PMODE_INSN.  Handle SImode and DImode
9135         copygp_mips16 patterns.
9136         (mips_expand_prologue): Handle SImode and DImode potential_cprestore
9137         and use_cprestore patterns.
9138         (mips_override_options): Check for incompatible -mabi and -mlong
9139         combinations.
9140         * config/mips/mips.md (unspec_got<mode>): Rename to...
9141         (unspec_got_<mode>): ...this.
9142         (copygp_mips16): Use the Pmode iterator.
9143         (potential_cprestore, cprestore, use_cprestore): Likewise.
9144         (clear_cache, indirect_jump): Use PMODE_INSN.
9145         (indirect_jump<mode>): Rename to...
9146         (indirect_jump_<mode>): ...this.
9147         (tablejump): Use PMODE_INSN.
9148         (tablejump<mode>): Rename to...
9149         (tablejump_<mode>): ...this.
9150         (exception_receiver): Handle restore_gp_si and restore_gp_di.
9151         (restore_gp): Use the Pmode iterator.
9152         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
9153         PMODE_INSN.
9154
9155 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
9156
9157         * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
9158         Fix the type of the BIT_AND_EXPR.
9159
9160 2011-09-05  David S. Miller  <davem@davemloft.net>
9161
9162         * config.host: Add driver-sparc.o and sparc/x-sparc on
9163         native sparc*-*-linux* builds.
9164         * config/sparc/driver-sparc.c: Correct Linux strings.
9165         * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
9166         * config/sparc/linux64.h: Likewise.
9167         * doc/invoke.texi: Document that Linux also supports
9168         -mcpu=native and -mtune=native on sparc.
9169
9170         * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
9171         PROCESSOR_NIAGARA4): New.
9172         * config/sparc/sparc.opt: Handle new processor types.
9173         * config/sparc/sparc.md: Add to "cpu" attribute.
9174         * config/sparc/sparc.h (TARGET_CPU_niagara3,
9175         TARGET_CPU_niagara4): New, treat as niagara2.
9176         * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
9177         * config/sparc/sol2.h: Likewise.
9178         * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
9179         * config/sparc/sparc.c (sparc_option_override): Add
9180         niagara3 and niagara4 handling.
9181         (sparc32_initialize_trampoline): Likewise.
9182         (sparc64_initialize_trampoline): Likewise.
9183         (sparc_use_sched_lookahead): Likewise.
9184         (sparc_issue_rate): Likewise.
9185         (sparc_register_move_cost): Likewise.
9186         * config/sparc/driver-sparc.c (cpu_names): Use niagara3
9187         and niagara4 as appropriate.
9188         * doc/invoke.texi: Document new processor types.
9189         * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
9190         and --with-tune options.
9191
9192         * config/sparc/sol2-64.h: Move ...
9193         * config/sparc/default-64.h: ... to here.  Update comment.
9194         * config.gcc: Update Solaris sparc to use default-64.h, also
9195         prefix this header into the list on sparc64-*-linux.
9196         * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
9197         TARGET_64BIT_DEFAULT is defined.  Remove commented out reference
9198         to MASK_HARD_QUAD.
9199
9200 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
9201
9202         PR target/50289
9203         * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
9204         that contain global register variable.
9205
9206 2011-09-05  Richard Guenther  <rguenther@suse.de>
9207
9208         * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
9209
9210 2011-09-05  Richard Guenther  <rguenther@suse.de>
9211
9212         * stor-layout.c (layout_type): Use size_binop for array size
9213         calculations.
9214
9215 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
9216
9217         * config/avr/avr.h (progmem_section): Remove Declaration.
9218         * config/avr/avr.c (progmem_section): Make static and rename to
9219         progmem_swtable_section.
9220         (avr_output_addr_vec_elt): No need to switch sections.
9221         (avr_asm_init_sections): Use output_section_asm_op as section
9222         callback for progmem_swtable_section.
9223         (avr_output_progmem_section_asm_op): Remove Function.
9224         (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
9225         (avr_asm_function_rodata_section): New static Function.
9226         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
9227         alignment 2**1 for jump tables.
9228
9229 2011-09-04  Jan Hubicka  <jh@suse.cz>
9230
9231         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
9232         parameter is SSA name.
9233
9234 2011-09-04  Richard Guenther  <rguenther@suse.de>
9235
9236         Revert
9237         2011-08-31  Richard Guenther  <rguenther@suse.de>
9238
9239         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
9240         special-casing.
9241
9242 2011-09-04  Iain Sandoe  <iains@gcc.gnu.org>
9243
9244         PR debug/49901
9245         * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
9246
9247 2011-09-04  Jakub Jelinek  <jakub@redhat.com>
9248             Ira Rosen  <ira.rosen@linaro.org>
9249
9250         PR tree-optimization/50208
9251         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
9252         argument.  Check that def_stmt is inside the loop.
9253         (vect_recog_widen_mult_pattern): Update calls to
9254         vect_handle_widen_mult_by_cons.
9255         (vect_operation_fits_smaller_type): Check that def_stmt is
9256         inside the loop.
9257
9258 2011-09-04  Ira Rosen  <ira.rosen@linaro.org>
9259
9260         * tree-vectorizer.c (vect_print_dump_info): Print line
9261         number when dumping to a file.
9262         (vectorize_loops): Add new messages to dump file.
9263
9264 2011-09-03  Martin Jambor  <mjambor@suse.cz>
9265
9266         * ipa-prop.h (ipa_jump_func_t): New typedef.
9267         (struct ipa_edge_args): Removed field argument_count, field
9268         jump_functions turned into a vector.
9269         (ipa_set_cs_argument_count): Removed.
9270         (ipa_get_cs_argument_count): Updated to work on vectors.
9271         (ipa_get_ith_jump_func): Likewise.
9272         * ipa-prop.c (ipa_count_arguments): Removed.
9273         (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
9274         jump functions.  Update caller.
9275         (compute_pass_through_member_ptrs): Likewise.
9276         (compute_cst_member_ptr_arguments): Likewise.
9277         (ipa_compute_jump_functions_for_edge): Get number of arguments from
9278         the statement, allocate vector.
9279         (ipa_compute_jump_functions): Do not call ipa_count_arguments.
9280         (duplicate_ipa_jump_func_array): Removed.
9281         (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
9282         (ipa_read_node_info): Allocate vector.
9283
9284 2011-09-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9285
9286         PR middle-end/50232
9287         * config/pa/pa.md (return): Define "return" insn pattern.
9288         (epilogue): Use it when no epilogue is needed.
9289         * config/pa/pa.c (pa_can_use_return_insn): New function.
9290         * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
9291
9292 2011-09-03  Eric Botcazou  <ebotcazou@adacore.com>
9293
9294         * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
9295         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
9296         Force at least BITS_PER_UNIT alignment on the new variable.
9297
9298 2011-09-02  Gary Funck <gary@intrepid.com>
9299
9300         * opts.c (print_specific_help): Fix off-by-one compare in
9301         assertion check.
9302         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
9303         CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
9304         Increase by +5 to allow for more languages.
9305         * optc-gen.awk: Generate #if that ensures that the number of
9306         languages is within the implementation-defined limit.
9307
9308 2011-09-02  Michael Matz  <matz@suse.de>
9309
9310         PR middle-end/50260
9311         * ipa-split.c (split_function): Call add_referenced_var.
9312
9313         * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
9314         (cond_if_else_store_replacement_1): Ditto.
9315         * tree-ssa-pre.c (get_representative_for): Ditto.
9316         (create_expression_by_pieces): Ditto.
9317         (insert_into_preds_of_block): Ditto.
9318         * tree-sra.c (create_access_replacement): Ditto.
9319         (get_replaced_param_substitute): Ditto.
9320
9321 2011-09-02  Bernd Schmidt  <bernds@codesourcery.com>
9322
9323         * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
9324         automata_options.
9325         (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
9326         (l1w, s1w, l2w, s2w): Define in the main automaton.
9327         (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
9328         units.
9329         * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
9330         (c6x_unit_names): Add the new units.
9331         (c6x_unit_codes): New static array.
9332         (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
9333         UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
9334         UNIT_QID_SIDE_OFFSET): New macros.
9335         (RESERVATION_S2): Adjust value.
9336         (c6x_option_override): Compute c6x_unit_codes.
9337         (assign_reservations): Take the unit_mask of the last instruction
9338         into account.  Detect floating point reservations by looking for
9339         the new units.  Don't assign reservations if the field is already
9340         nonzero.
9341         (struct c6x_sched_context): Add member prev_cycle_state_ctx.
9342         (init_sched_state): Initialize it.
9343         (c6x_clear_sched_context): Free it.
9344         (insn_set_clock): Clear reservation.
9345         (prev_cycle_state): New static variable.
9346         (c6x_init_sched_context): Save it.
9347         (c6x_sched_init): Allocate space for it and clear it.
9348         (c6x_sched_dfa_pre_cycle_insn): New static function.
9349         (c6x_dfa_new_cycle): Save state at the start of a new cycle.
9350         (c6x_variable_issue): Only record units in the unit_mask that
9351         were not set at the start of the cycle.
9352         (c6x_variable_issue): Compute and store the unit_mask from the
9353         current state.
9354         (reorg_split_calls): Ensure the new information remains correct.
9355         (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
9356         TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
9357         * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
9358         * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
9359         Add special reservations.
9360         * config/c6x/c6x-sched.md: Regenerate.
9361
9362 2011-09-02  Martin Jambor  <mjambor@suse.cz>
9363
9364         * ipa-prop.h (ipa_node_params): Removed fields
9365         called_with_var_arguments and node_versionable.
9366         (ipa_set_called_with_variable_arg): Removed.
9367         (ipa_is_called_with_var_arguments): Likewise.
9368         * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
9369         (determine_versionability): Do not check for type attributes and va
9370         builtins.  Record versionability into inline summary.
9371         (initialize_node_lattices): Do not check
9372         ipa_is_called_with_var_arguments.
9373         (propagate_constants_accross_call): Likewise, ignore arguments we do
9374         not have PARM_DECLs for, set variable flag for parameters that were
9375         not passed a value.
9376         (create_specialized_node): Dump info that we cannot change signature.
9377         * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
9378         number of arguments.
9379         (ipa_make_edge_direct_to_target): Likewise.
9380         (ipa_update_after_lto_read): Likewise.
9381         (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
9382         * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
9383         they were remapped.
9384
9385 2011-09-02  Richard Guenther  <rguenther@suse.de>
9386
9387         PR tree-optimization/27460
9388         PR middle-end/29269
9389         * doc/md.texi (vcond): Document.
9390         * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
9391         optab with two modes.
9392         * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
9393         (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
9394         (vcond_optab): Adjust.
9395         (vcondu_optab): Likewise.
9396         (expand_vec_cond_expr_p): Adjust prototype.
9397         * optabs.c (get_vcond_icode): Adjust.
9398         (expand_vec_cond_expr_p): Likewise.
9399         (expand_vec_cond_expr): Likewise.
9400         * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
9401         vector type.
9402         (vectorizable_condition): Allow differing types for comparison
9403         and result.
9404         * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
9405         for the comparison.
9406         * config/i386/sse.md (vcond<mode>): Split to
9407         vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
9408         vcond<V_128:mode><VI124_128:mode> and
9409         vcondu<V_128:mode><VI124_128:mode>.
9410         (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
9411         (vconduv2di): Likewise.
9412         * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
9413         (vcondu<mode>): Likewise.
9414         * config/ia64/vect.md (vcond<mode>): Likewise.
9415         (vcondu<mode>): Likewise.
9416         (vcondv2sf): Likewise.
9417         * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
9418         * config/rs6000/paired.md (vcondv2sf): Likewise.
9419         * config/rs6000/vector.md (vcond<mode>): Likewise.
9420         (vcondu<mode>): Likewise.
9421         * config/spu/spu.md (vcond<mode>): Likewise.
9422         (vcondu<mode>): Likewise.
9423
9424 2011-09-02  Richard Guenther  <rguenther@suse.de>
9425
9426         * pretty-print.h (pp_unsigned_wide_integer): New.
9427         * tree-pretty-print.c (dump_generic_node): Print unsigned
9428         host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
9429
9430 2011-09-02  Richard Sandiford  <richard.sandiford@linaro.org>
9431
9432         PR target/49987
9433         * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
9434         valid CONST_VECTOR operands.
9435         (rs6000_expand_vector_init): Likewise.
9436
9437 2011-09-02  Martin Jambor  <mjambor@suse.cz>
9438
9439         * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
9440         * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
9441         BINFO_VTABLE.  Parameter delta removed, all callers updated.
9442         * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
9443         BINFO_VTABLE.
9444         * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
9445         all calls.
9446         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
9447         handling of thunk_delta.
9448         * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
9449         (devirtualization_time_bonus): Do not handle thunk deltas.
9450         (ipcp_discover_new_direct_edges): Likewise.
9451         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
9452         (try_make_edge_direct_simple_call): Likewise.
9453         (try_make_edge_direct_virtual_call): Likewise.
9454         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
9455         parameter set as unused.
9456         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
9457         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
9458         parameter set as unused.
9459         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
9460         (input_edge_opt_summary): Likewise.
9461         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
9462         BINFO_VIRTUALS at all.
9463         * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
9464
9465 2011-09-02  Richard Guenther  <rguenther@suse.de>
9466
9467         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
9468         (ccp_fold_stmt): Continue replacing args when folding alloca fails.
9469
9470 2011-08-31  Richard Guenther  <rguenther@suse.de>
9471
9472         * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
9473         handling here, from ...
9474         (expand_expr_real_1): ... here.
9475         * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
9476         and VEC_COND_EXPR.
9477         * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
9478         a GIMPLE_TERNARY_RHS.
9479         * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
9480         and VEC_COND_EXPR here ...
9481         (verify_gimple_assign_single): ... not here.
9482         * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
9483         * tree-object-size.c (cond_expr_object_size): Adjust.
9484         (collect_object_sizes_for): Likewise.
9485         * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
9486         * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
9487         (ssa_forward_propagate_and_combine): Adjust.
9488         * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
9489         as ternary.
9490         * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
9491         * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
9492         * tree-vect-stmt.c (vectorizable_condition): Likewise.
9493         * tree-vrp.c (extract_range_from_cond_expr): Likewise.
9494         (extract_range_from_assignment): Likewise.
9495
9496 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
9497
9498         * config/i386/i386.md: Use (match_test ...) for attribute tests.
9499         * config/i386/mmx.md: Likewise.
9500         * config/i386/sse.md: Likewise.
9501         * config/i386/predicates.md (call_insn_operand): Use
9502         (not (match_test "...")) instead of (match_test "!...")
9503         * config/i386/constraints.md (w): Likewise.
9504
9505 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
9506
9507         * doc/md.texi: Describe the use of match_tests in attribute tests.
9508         * rtl.def (MATCH_TEST): Update commentary.
9509         * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
9510         (write_test_expr, walk_attr_value): Handle MATCH_TEST.
9511
9512 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
9513
9514         * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
9515         (attr_string): Use copy_md_ptr_loc.
9516
9517 2011-08-31  Martin Jambor  <mjambor@suse.cz>
9518
9519         PR middle-end/49886
9520         * ipa-inline-analysis.c (compute_inline_parameters): Set
9521         can_change_signature of noes with typde attributes.
9522         * ipa-split.c (split_function): Do not skip any arguments if
9523         can_change_signature is set.
9524
9525 2011-08-31  Martin Jambor  <mjambor@suse.cz>
9526
9527         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
9528         check removed.
9529
9530 2011-08-31  Richard Guenther  <rguenther@suse.de>
9531
9532         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
9533         special-casing.
9534
9535 2011-08-31  Marc Glisse  <marc.glisse@inria.fr>
9536
9537         * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
9538
9539 2011-08-31  Tom de Vries  <tom@codesourcery.com>
9540
9541         PR middle-end/43513
9542         * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
9543         * tree-ssa-ccp.c (params.h): Include.
9544         (fold_builtin_alloca_for_var): New function.
9545         (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
9546
9547 2011-08-30  Uros Bizjak  <ubizjak@gmail.com>
9548
9549         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
9550         Handle FMA option.
9551
9552 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
9553
9554         * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
9555         b3 and b4 unsigned.
9556
9557 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
9558
9559         * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
9560         when code is SET.
9561
9562 2011-08-30  Richard Guenther  <rguenther@suse.de>
9563
9564         PR middle-end/48571
9565         * gimple.h (maybe_fold_offset_to_address): Remove.
9566         (maybe_fold_offset_to_reference): Likewise.
9567         (maybe_fold_stmt_addition): Likewise.
9568         (may_propagate_address_into_dereference): Likewise.
9569         * tree-inline.c (remap_gimple_op_r): Do not reconstruct
9570         array references.
9571         * gimple-fold.c (canonicalize_constructor_val): Likewise.
9572         Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
9573         addresses instead.
9574         (may_propagate_address_into_dereference): Remove.
9575         (maybe_fold_offset_to_array_ref): Likewise.
9576         (maybe_fold_offset_to_reference): Likewise.
9577         (maybe_fold_offset_to_address): Likewise.
9578         (maybe_fold_stmt_addition): Likewise.
9579         (fold_gimple_assign): Do not reconstruct array references but
9580         instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
9581         MEM_REF addresses.
9582         (gimple_fold_stmt_to_constant_1): Likewise.
9583         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
9584         * gimplify.c (gimplify_conversion): Likewise.
9585         (gimplify_expr): Likewise.
9586
9587 2011-08-30  Ilya Tocar  <ilya.tocar@intel.com>
9588
9589         * config/i386/fmaintrin.h: New.
9590         * config.gcc: Add fmaintrin.h.
9591         * config/i386/i386.c
9592         (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
9593         <IX86_BUILTIN_VFMADDSD3>: Likewise.
9594         * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
9595         (*fmai_fmadd_<mode>): Likewise.
9596         (*fmai_fmsub_<mode>): Likewise.
9597         (*fmai_fnmadd_<mode>): Likewise.
9598         (*fmai_fnmsub_<mode>): Likewise.
9599         * config/i386/immintrin.h: Add fmaintrin.h.
9600
9601 2011-08-30  Bernd Schmidt  <bernds@codesourcery.com>
9602
9603         * genautomata.c (NO_COMB_OPTION): New macro.
9604         (no_comb_flag): New static variable.
9605         (gen_automata_option): Handle NO_COMB_OPTION.
9606         (comb_vect_p): False if no_comb_flag.
9607         (add_vect): Move computation of min/max values.  Return early if
9608         no_comb_flag.
9609         * doc/md.texi (automata_option): Document no-comb-vect.
9610
9611         * config/i386/i386.c (get_pc_thunk_name): Change prefix to
9612         "__x86.get_pc_thunk".
9613
9614         * bb-reorder.c (insert_section_boundary_note): Only do it if
9615         we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
9616
9617 2011-08-30  Christian Bruel  <christian.bruel@st.com>
9618
9619         * coverage.c (coverage_init): Check flag_branch_probabilities instead of
9620         flag_profile_use.
9621
9622 2011-08-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
9623
9624         * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
9625         to off.  Document switch.
9626         * doc/invoke.texi (-msave-toc-indirect): Ditto.
9627
9628 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
9629
9630         * gthr-posix.h (__gthread_active_p): Do not use preprocessor
9631         conditionals and comments inside macro arguments.
9632
9633 2011-08-29  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
9634             Richard Guenther  <rguenther@suse.de>
9635
9636         * tree.h (constant_boolean_node): Adjust prototype.
9637         * fold-const.c (fold_convert_loc): Move aggregate conversion
9638         leeway down.
9639         (constant_boolean_node): Make value parameter boolean, add
9640         vector type handling.
9641         (fold_unary_loc): Use constant_boolean_node.
9642         (fold_binary_loc): Preserve types properly when folding
9643         COMPLEX_EXPR <__real x, __imag x>.
9644         * gimplify.c (gimplify_expr): Handle vector comparison.
9645         * tree.def (EQ_EXPR, ...): Document behavior on vector typed
9646         comparison.
9647         * tree-cfg.c (verify_gimple_comparison): Verify vector typed
9648         comparisons.
9649
9650 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
9651
9652         PR middle-end/48722
9653         * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
9654         reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
9655         (verify_rtl_sharing): Likewise and verify_rtx_sharing
9656         in there too.
9657         (unshare_all_rtl_in_chain): For CALL_INSNs
9658         copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
9659
9660 2011-08-29  Richard Guenther  <rguenther@suse.de>
9661
9662         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
9663         on the built ADDR_EXPR.
9664
9665 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
9666
9667         PR debug/50215
9668         * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
9669         before adding ENTRY_VALUE to val->locs.
9670
9671 2011-08-28  Mikael Pettersson  <mikpe@it.uu.se>
9672
9673         PR bootstrap/50218
9674         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
9675         comp.
9676
9677 2011-08-27  Bernd Schmidt  <bernds@codesourcery.com>
9678
9679         * doc/rtl.texi (simple_return): Document.
9680         (parallel, PATTERN): Here too.
9681         * doc/md.texi (return): Mention it's allowed to expand to simple_return
9682         in some cases.
9683         (simple_return): Document standard pattern.
9684         * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
9685         * final.c (final_scan_insn): Use ANY_RETURN_P on body.
9686         * reorg.c (function_return_label, function_simple_return_label):
9687         New static variables, replacing...
9688         (end_of_function_label): ... this.
9689         (simplejump_or_return_p): New static function.
9690         (optimize_skip, steal_delay_list_from_fallthrough,
9691         fill_slots_from_thread): Use it.
9692         (relax_delay_slots): Likewise.  Use ANY_RETURN_P on body.
9693         (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
9694         (find_end_label): Take a new arg which is one of the two return
9695         rtxs.  Depending on which, set either function_return_label or
9696         function_simple_return_label.  All callers changed.
9697         (make_return_insns): Make both kinds.
9698         (dbr_schedule): Adjust for two kinds of end labels.
9699         * function.c (emit_return_into_block): Set JUMP_LABEL properly.
9700         * genemit.c (gen_exp): Handle SIMPLE_RETURN.
9701         (gen_expand, gen_split): Use ANY_RETURN_P.
9702         * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
9703         * rtl.def (SIMPLE_RETURN): New code.
9704         * ifcvt.c (find_if_case_1): Be more careful about
9705         redirecting jumps to the EXIT_BLOCK.
9706         * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
9707         returnjump_p_1): Handle SIMPLE_RETURNs.
9708         * print-rtl.c (print_rtx): Likewise.
9709         * rtl.c (copy_rtx): Likewise.
9710         * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
9711         * combine.c (simplify_set): Likewise.
9712         * resource.c (find_dead_or_set_registers, mark_set_resources):
9713         Likewise.
9714         * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
9715         copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
9716         (init_emit_regs): Initialize simple_return_rtx.
9717         * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
9718         force_nonfallthru_and_redirect.
9719         * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
9720         (GR_SIMPLE_RETURN): New enum value.
9721         (simple_return_rtx): New macro.
9722         * basic-block.h (force_nonfallthru_and_redirect): Adjust
9723         declaration.
9724         * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
9725         argument.  All callers changed.  Be careful about what kinds of
9726         returnjumps to generate.
9727         * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
9728         ix86_pad_short_function): Likewise.
9729         * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
9730         of return.
9731         * config/mips/mips.md (any_return): New code_iterator.
9732         (optab): Add cases for return and simple_return.
9733         (return): Expand to a simple_return.
9734         (simple_return): New pattern.
9735         (*<optab>, *<optab>_internal for any_return): New patterns.
9736         (return_internal): Remove.
9737         * config/mips/mips.c (mips_expand_epilogue): Make the last insn
9738         a simple_return_internal.
9739
9740 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
9741
9742         * config/i386/sse.md (*absneg<mode>2): Fix split condition.
9743         (vec_extract_lo_<mode>): Prevent both operands in memory.
9744         (vec_extract_lo_v16hi): Ditto.
9745         (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
9746
9747 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
9748
9749         * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
9750         (*sse2_mulv4si3): Ditto.
9751         (mulv2di3): Ditto.
9752         * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
9753         notes to REG_EQUAL.
9754
9755 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
9756
9757         PR target/50202
9758         * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
9759         when all outputs are unused.
9760         (sse4_2_pcmpistr): Ditto.
9761
9762 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
9763
9764         * config/i386/i386.md (round<mode>2): New expander.
9765         * config/i386/i386.c (enum ix86_builtins): Add
9766         IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
9767         (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
9768         descriptions.
9769         (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
9770         (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
9771
9772 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
9773
9774         PR middle-end/50083
9775         * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
9776         only when TARGET_C99_FUNCTIONS.
9777         <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
9778         <BUILT_IN_RINT{,F,L}>: Ditto.
9779
9780 2011-08-26  Michael Matz  <matz@suse.de>
9781             Jakub Jelinek  <jakub@redhat.com>
9782
9783         PR lto/50165
9784         * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
9785         don't call strlen twice, use memcpy.
9786
9787 2011-08-26  H.J. Lu  <hongjiu.lu@intel.com>
9788
9789         * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
9790         * config/i386/bmiintrin.h: Likewise.
9791         * config/i386/lzcntintrin.h: Likewise.
9792
9793         * config/i386/immintrin.h: Include <lzcntintrin.h>,
9794         <bmiintrin.h> and <bmi2intrin.h>.
9795
9796 2011-08-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9797
9798         PR target/50166
9799         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
9800         * configure: Regenerate.
9801
9802 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
9803
9804         PR c/50179
9805         * c-typeck.c (c_process_expr_stmt): Skip over nops and
9806         call mark_exp_read even if exprv is ADDR_EXPR.
9807
9808 2011-08-26  Richard Sandiford  <richard.sandiford@linaro.org>
9809
9810         * df-problems.c (df_note_bb_compute): Pass uses rather than defs
9811         to df_set_dead_notes_for_mw.
9812
9813 2011-08-26  Richard Guenther  <rguenther@suse.de>
9814
9815         * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
9816
9817 2011-08-26  Zdenek Dvorak  <ook@ucw.cz>
9818             Tom de Vries  <tom@codesourcery.com>
9819
9820         * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
9821         (struct ivopts_data): Add loop_single_exit_p field.
9822         (niter_for_exit): Change parameter desc_p into return value.  Return
9823         desc if desc->may_be_zero.  Free desc if unused.
9824         (niter_for_single_dom_exit): Change return type.
9825         (find_induction_variables): Handle changed return type of
9826         niter_for_single_dom_exit.  Dump may_be_zero.
9827         (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
9828         (set_use_iv_cost): Add and handle comp parameter.
9829         (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
9830         comp argument to set_use_iv_cost.
9831         (strip_wrap_conserving_type_conversions, expr_equal_p)
9832         (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
9833         (may_eliminate_iv): Add comp parameter.  Handle new return type of
9834         niter_for_exit.  Use loop_single_exit_p.  Use iv_elimination_compare_lt.
9835         (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
9836         and may_eliminate_iv.
9837         (rewrite_use_compare): Move call to iv_elimination_compare to ...
9838         (may_eliminate_iv): Here.
9839         (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
9840
9841 2011-08-26  Tom de Vries  <tom@codesourcery.com>
9842
9843         * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
9844         accessing TREE_TYPE.
9845
9846 2011-08-26  Jiangning Liu  <jiangning.liu@arm.com>
9847
9848         * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
9849         (*ior_scc_scc_cmp): Likewise
9850         (*and_scc_scc): Likewise.
9851         (*and_scc_scc_cmp): Likewise.
9852         (*and_scc_scc_nodom): Likewise.
9853         (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
9854
9855 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
9856
9857         * rtlanal.c (nonzero_bits1): Handle CLRSB.
9858
9859 2011-08-26  Richard Guenther  <rguenther@suse.de>
9860
9861         * expr.c (string_constant): Handle &MEM_REF.
9862
9863 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
9864
9865         * config/arm/arm.c (struct four_ints): New type.
9866         (count_insns_for_constant): Delete function.
9867         (find_best_start): Delete function.
9868         (optimal_immediate_sequence): New function.
9869         (optimal_immediate_sequence_1): New function.
9870         (arm_gen_constant): Move constant splitting code to
9871         optimal_immediate_sequence.
9872         Rewrite constant negation/invertion code.
9873
9874 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
9875
9876         * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
9877         * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
9878         Remove prototype. Remove static function type.
9879         * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
9880         Add arch attribute.
9881         * config/arm/constraints.md (Pj, PJ): New constraints.
9882
9883 2011-08-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9884
9885         * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
9886         ("cortex_a9_multiply_long"): New and use above.  Handle all
9887         long multiply cases.
9888         ("cortex_a9_multiply"): Handle smmul and smmulr.
9889         ("cortex_a9_mac"): Handle smmla.
9890
9891 2011-08-25  Richard Henderson  <rth@redhat.com>
9892
9893         PR 50132
9894         PR 49864
9895         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
9896         non-constant stack adjutment.
9897         * expr.c (find_args_size_adjust): Break out from ...
9898         (fixup_args_size_notes): ... here.
9899         * rtl.h (find_args_size_adjust): Declare.
9900
9901 2011-08-25  Uros Bizjak  <ubizjak@gmail.com>
9902
9903         * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
9904         sse4 and sse4_noavx.
9905         (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
9906         (*pushdf_rex64): Change Y2 register constraint to x.
9907         (*movdf_internal_rex64): Ditto.
9908         (*zero_extendsidi2_rex64): Ditto.
9909         (*movdi_internal): Change Y2 register constraint to x
9910         and update "isa" attribute.
9911         (*pushdf): Ditto.
9912         (*movdf internal): Ditto.
9913         (zero_extendsidi2_1): Ditto.
9914         (*truncdfdf_mixed): Ditto.
9915         (*truncxfdf2_mixed): Ditto.
9916         * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
9917         register constraint to x.
9918         (*movv2sf_internal_rex64): Ditto.
9919         (*mov<mode>_internal): Change Y2 register constraint to x
9920         and add "isa" attribute.
9921         (*movv2sf_internal): Ditto.
9922         (*vec_extractv2si_1): Ditto.
9923         * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
9924         constraints to x and update "isa" attribute.
9925         (*vec_interleave_highv2df): Change Y3 registerconstraint
9926         to x and update "isa" attribute.
9927         (*vec_interleave_lowv2df): Ditto.
9928         (*vec_concatv2df): Change Y2 register constraint to x and
9929         update "isa" attribute.
9930         (sse2_loadld): Ditto.
9931         (*vec_extractv2di_1): Ditto.
9932         (*vec_dupv4si): Ditto.
9933         (*vec_dupv2di): Ditto.
9934         (*vec_concatv4si): Ditto.
9935         (vec_concatv2di): Ditto.
9936         * config/i386/constraints.md (Y2): Remove.
9937         (Y3): Ditto.
9938         (Y4): Ditto.
9939
9940 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
9941
9942         * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
9943         dump_def_use_chain): Don't declare.
9944         (mark_conflict, create_new_chain): Move before users.
9945         (regrename_optimize): Move to near end of file.
9946
9947 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
9948
9949         * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
9950         (secondary_input_reload_class): Remove Prototype.
9951         * config/avr/avr.c (byte_immediate_operand): Remove Function.
9952         * config/avr/avr.md (setmemhi): Use u8_operand.
9953         (strlenhi): Use const0_rtx for comparison.
9954         * config/avr/avr.h (avr_reg_order): Remove Declaration.
9955
9956 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
9957
9958         * config/avr/avr.c (reg_class_tab): Make local to
9959         avr_regno_reg_class.  Return smallest register class available.
9960
9961 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
9962
9963         * config/avr/avr.c (STR_PREFIX_P): New Define.
9964         (avr_asm_declare_function_name): Use it.
9965         (avr_asm_named_section): Use it.
9966         (avr_section_type_flags): Use it.
9967
9968 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
9969
9970         * doc/md.texi (automata_option): Document collapse-ndfa.
9971         * genautomata.c (COLLAPSE_OPTION): New macro.
9972         (collapse_flag): New static variable.
9973         (struct description): New member normal_decls_num.
9974         (struct automaton): New members advance_ainsn and collapse_ainsn.
9975         (gen_automata_option): Check for COLLAPSE_OPTION.
9976         (collapse_ndfa_insn_decl): New static variable.
9977         (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
9978         (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
9979         (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
9980         necessary.  Use normal_decls_num rather than decls_num, remove
9981         test for special decls.
9982         (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
9983         (make_automaton); Likewise.  Use the new advance_cycle_insn member
9984         of struct automaton.
9985         (create_composed_state): Disallow advance-cycle arcs if collapse_flag
9986         is set.
9987         (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
9988         transition.  Create the necessary transitions for it.
9989         (create_ainsns): Return void.  Take an automaton_t argument, and
9990         update its ainsn_list, advance_ainsn and collapse_ainsn members.  All
9991         callers changed.
9992         (COLLAPSE_NDFA_VALUE_NAME): New macro.
9993         (output_tables): Output code to define it.
9994         (output_internal_insn_code_evaluation): Output code to accept
9995         const0_rtx as collapse-ndfa transition.
9996         (output_default_latencies, output_print_reservation_func,
9997         output_print_description): Reorganize loops to use normal_decls_num
9998         as loop bound; remove special case for advance_cycle_insn_decl.
9999         (initiate_automaton_gen): Handle COLLAPSE_OPTION.
10000         (check_automata_insn_issues): Check for collapse_ainsn.
10001         (expand_automate): Allocate sufficient space.  Initialize
10002         normal_decls_num.
10003
10004 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
10005
10006         * config/avr/avr.md: Fix indentation from r177991.
10007
10008 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
10009
10010         * regrename.c (struct du_head): Remove member terminated.
10011         (create_new_chain): Don't initialize it.
10012         (scan_rtx_reg): Don't set or test it, test the open_chains_set
10013         bitmap instead.
10014         (tick, this_tick): New global variables, moved out of
10015         regrename_optimize.
10016         (current_id, open_chains, closed_chains, open_chains_set,
10017         live_in_chains, live_hard_regs): Reorder declarations.
10018         (dump_def_use_chain): Move function earlier in the file.
10019         (rename_chains): New static function, broken out of
10020         regrename_optimize.
10021         (regrename_optimize): Use it.  Remove #if 0'ed code.
10022
10023 2011-08-25  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10024
10025         * varasm.c: (default_binds_local_p_1): Commentary typo fix.
10026
10027 2011-08-24  H.J. Lu  <hongjiu.lu@intel.com>
10028
10029         PR target/50172
10030         * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
10031
10032 2011-08-24  Richard Guenther  <rguenther@suse.de>
10033
10034         * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
10035         ref in the basic-block case.  Move stripping array-refs
10036         to the place we create an access-function for it.  Remove
10037         bogus stripping down a MEM_REF to its base.
10038
10039 2011-08-24  Richard Guenther  <rguenther@suse.de>
10040
10041         * fold-const.c (fold_comparison): Fold &a < &a + 4 even
10042         with -fno-strict-overflow.
10043
10044 2011-08-24  Richard Guenther  <rguenther@suse.de>
10045
10046         * tree-vectorizer.c (vect_print_dump_info): Avoid the
10047         file and location clutter when dumping to dump files.
10048
10049 2011-08-24  Simon Baldwin  <simonb@google.com>
10050
10051         * gengtype-state.c (write_state): Remove timestamped header line.
10052
10053 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
10054
10055         * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
10056         (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
10057         (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
10058         (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
10059         (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
10060         (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
10061         (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
10062         rules.
10063         (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
10064
10065 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
10066
10067         * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
10068
10069 2011-08-24  Richard Guenther  <rguenther@suse.de>
10070
10071         PR tree-optimization/50067
10072         * tree-data-ref.c (dr_analyze_indices): Do not add an access
10073         function for a MEM_REF base that has no evolution in the loop
10074         nest or that is not analyzable.
10075
10076 2011-08-23  Vladimir Makarov  <vmakarov@redhat.com>
10077
10078         * ira.c (ira_init_register_move_cost): Check small subclasses
10079         through ira_reg_class_max_nregs and ira_available_class_regs.
10080
10081 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
10082
10083         * config/i386/constraints.md (Yp): New register constraint.
10084         * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
10085         Yp register constraint.
10086         (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
10087         (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
10088         (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
10089
10090 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
10091
10092         * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
10093
10094 2011-08-23  Mark Heffernan  <meheff@google.com>
10095
10096         PR middle-end/38509
10097         * common.opt (Wfree-nonheap-object): New option.
10098         * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
10099         * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
10100         to warning.
10101         (expand_builtin): Make warning conditional.
10102
10103 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
10104
10105         * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
10106         (length_immediate): Handle imulx, ishiftx and rotatex.
10107         (imm_disp): Ditto.
10108         (isa): Add bmi2.
10109         (enabled): Handle bmi2.
10110         (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
10111         (*umul<mode><dwi>3): Ditto.  Add imulx BMI2 alternative.
10112         (*bmi2_umulditi3_1): New insn pattern.
10113         (*bmi2_umulsidi3_1): Ditto.
10114         (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
10115         (*bmi2_ashl<mode>3_1): New insn pattern.
10116         (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
10117         (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
10118         (*bmi2_ashlsi3_1_zext): New insn pattern.
10119         (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
10120         (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
10121         (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
10122         (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
10123         (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
10124         flags dependency.
10125         (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
10126         (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
10127         (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
10128         flags dependency.
10129         (*bmi2_rorx<mode>3_1): New insn pattern.
10130         (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
10131         (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
10132         (*rotatert<mode>3_1 splitter): Ditto.
10133         (*bmi2_rorxsi3_1_zext): New insn pattern.
10134         (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
10135         (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
10136         (*rotatertsi3_1_zext splitter): Ditto.
10137
10138 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
10139
10140         * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
10141         (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
10142         (ix86_handle_option): Handle OPT_mbmi2 case.
10143         * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
10144         (x86_64-*-*): Likewise.
10145         * config/i386/bmi2intrin.h: New file.
10146         * config/i386/cpuid.h (bit_BMI2): New.
10147         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
10148         BMI2 feature.
10149         * config/i386/i386-c.c (ix86_target_macros_internal):
10150         Conditionally define __BMI2__.
10151         * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
10152         Handle BMI2 option.
10153         (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
10154         (print_reg): New code.
10155         (ix86_print_operand): Likewise.
10156         (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
10157         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
10158         IX86_BUILTIN_PEXT64.
10159         (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
10160         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
10161         IX86_BUILTIN_PEXT64.
10162         * config/i386/i386.h (TARGET_BMI2): New.
10163         * config/i386/i386.md (UNSPEC_PDEP): New.
10164         (UNSPEC_PEXT): Likewise.
10165         (*bmi2_bzhi_<mode>3): Likewise.
10166         (*bmi2_pdep_<mode>3): Likewise.
10167         (*bmi2_pext_<mode>3): Likewise.
10168         * config/i386/i386.opt (mbmi2): New.
10169         * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
10170         is defined.
10171         * doc/extend.texi: Document BMI2 built-in functions.
10172         * doc/invoke.texi: Document -mbmi2.
10173
10174 2011-08-23  Jakub Jelinek  <jakub@redhat.com>
10175
10176         PR middle-end/50161
10177         * simplify-rtx.c (simplify_const_unary_operation): If
10178         op is CONST_INT, don't look at op_mode, but use instead mode.
10179         * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
10180         CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
10181         operation and TRUNCATE/ZERO_EXTEND if needed.
10182         * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
10183         Document that operand mode must be same as operation mode,
10184         or VOIDmode.
10185         * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
10186         *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
10187         *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
10188         *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
10189         use the mode of operand for the operation and add truncate
10190         or zero_extend around if needed.
10191         * config/c6x/c6x.md (ctzdi2): Likewise.
10192         * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
10193
10194 2011-08-12  Michael Matz  <matz@suse.de>
10195
10196         * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
10197         (gimple_expand_cfg): Merge alignment info for coalesced pointer
10198         SSA names.
10199
10200 2011-08-23  Richard Guenther  <rguenther@suse.de>
10201
10202         * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
10203         * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
10204         * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
10205         from ...
10206         * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
10207         (mem_refs_may_alias_p): Adjust.
10208         * tree-data-ref.h (dr_may_alias_p): Adjust.
10209         * tree-data-ref.c: Include tree-affine.h.
10210         (dr_analyze_indices): Do nothing for the non-loop case.
10211         (dr_may_alias_p): Distinguish loop and non-loop case.  Disambiguate
10212         more cases in the non-loop case.
10213         * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
10214         calls to dr_may_alias_p.
10215         (write_alias_graph_to_ascii_ecc): Likewise.
10216         (write_alias_graph_to_ascii_dot): Likewise.
10217         (build_alias_set_optimal_p): Likewise.
10218
10219 2011-08-23  Richard Guenther  <rguenther@suse.de>
10220
10221         PR tree-optimization/50162
10222         * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
10223
10224 2011-08-23  Richard Guenther  <rguenther@suse.de>
10225
10226         * tree-data-ref.c (dr_analyze_indices): Add comments, handle
10227         REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
10228         (create_data_ref): Also dump access functions for the created data-ref.
10229
10230 2011-08-22  Uros Bizjak  <ubizjak@gmail.com>
10231             Kirill Yukhin  <kirill.yukhin@intel.com>
10232
10233         PR target/50155
10234         * config/i386/sse.md (VI_AVX2): New.
10235         (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
10236         (*<plusminus_insn><mode>3): Ditto.
10237         (<sse2_avx2>_andnot<mode>3): Ditto.
10238         (*andnot<mode>3): Fix order of cond operands.
10239         Add asserts for correct TARGET_xxx.
10240         (*<any_logic:code><mode>3): Ditto.
10241
10242 2011-08-22  Anatoly Sokolov  <aesok@post.ru>
10243
10244         * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
10245         * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
10246         * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
10247         regclass argument type to reg_class_t. Change 'max' and 'v' vars
10248         and return types to unsigned char. Use reg_class_contents instead
10249         of class_contents.
10250         (TARGET_CLASS_MAX_NREGS): Define.
10251
10252 2011-08-22  Bernd Schmidt  <bernds@codesourcery.com>
10253
10254         * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
10255         to make computed_jump_p return true.
10256
10257 2011-08-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10258
10259         * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
10260         (PICFLAG_FOR_TARGET): Substitute.
10261         * aclocal.m4: Regenerate.
10262         * configure: Regenerate.
10263
10264 2011-08-22  Dodji Seketeli  <dodji@redhat.com>
10265
10266         * c-family/c-pch.c (c_common_read_pch): Re-set line table right
10267         after reading in the pch.
10268
10269 2011-08-22  H.J. Lu  <hongjiu.lu@intel.com>
10270
10271         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
10272         * configure: Regenerated.
10273
10274 2011-08-22  Jakub Jelinek  <jakub@redhat.com>
10275
10276         PR tree-optimization/50133
10277         * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
10278         from stmt instead of some statement around gsi.
10279
10280         PR middle-end/50141
10281         * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
10282         innerdecl is a VAR_DECL.
10283
10284 2011-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
10285
10286         * config/i386/avx2intrin.h: New file.
10287         * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
10288         PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
10289         V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
10290         V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
10291         V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
10292         V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
10293         V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
10294         V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
10295         V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
10296         V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
10297         V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
10298         V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
10299         V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
10300         V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
10301         V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
10302         V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
10303         V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
10304         V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
10305         VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
10306         VOID_FTYPE_PV8SI_V8SI_V8SI,
10307         V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
10308         V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
10309         V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
10310         V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
10311         V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
10312         V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
10313         V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
10314         V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
10315         V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
10316         V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
10317         V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
10318         V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
10319         V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
10320         V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
10321         V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
10322         V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
10323         V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
10324         V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
10325         V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
10326         V4DI_FTYPE_V4DI_INT_CONVERT,
10327         V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
10328         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
10329         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
10330         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
10331         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
10332         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
10333         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
10334         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
10335         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
10336         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
10337         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
10338         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
10339         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
10340         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
10341         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
10342         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
10343         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
10344         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
10345         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
10346         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
10347         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
10348         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
10349         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
10350         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
10351         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
10352         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
10353         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
10354         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
10355         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
10356         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
10357         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
10358         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
10359         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
10360         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
10361         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
10362         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
10363         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
10364         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
10365         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
10366         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
10367         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
10368         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
10369         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
10370         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
10371         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
10372         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
10373         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
10374         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
10375         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
10376         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
10377         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
10378         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
10379         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
10380         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
10381         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
10382         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
10383         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
10384         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
10385         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
10386         IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
10387         IX86_BUILTIN_VBROADCASTSS_PS256,
10388         IX86_BUILTIN_VBROADCASTSD_PD256,
10389         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
10390         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
10391         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
10392         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
10393         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
10394         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
10395         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
10396         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
10397         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
10398         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
10399         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
10400         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
10401         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
10402         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
10403         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
10404         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
10405         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
10406         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
10407         IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
10408         IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
10409         IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
10410         IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
10411         IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
10412         IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
10413         IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
10414         IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
10415         (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
10416         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
10417         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
10418         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
10419         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
10420         (bdesc_args): Add  IX86_BUILTIN_MPSADBW256,
10421         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
10422         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
10423         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
10424         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
10425         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
10426         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
10427         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
10428         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
10429         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
10430         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
10431         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
10432         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
10433         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
10434         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
10435         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
10436         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
10437         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
10438         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
10439         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
10440         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
10441         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
10442         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
10443         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
10444         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
10445         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
10446         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
10447         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
10448         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
10449         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
10450         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
10451         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
10452         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
10453         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
10454         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
10455         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
10456         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
10457         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
10458         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
10459         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
10460         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
10461         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
10462         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
10463         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
10464         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
10465         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
10466         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
10467         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
10468         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
10469         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
10470         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
10471         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
10472         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
10473         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
10474         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
10475         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
10476         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
10477         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
10478         IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
10479         IX86_BUILTIN_VBROADCASTSD_PD256,
10480         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
10481         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
10482         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
10483         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
10484         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
10485         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
10486         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
10487         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
10488         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
10489         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
10490         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
10491         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
10492         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
10493         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
10494         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
10495         IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
10496         IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
10497         IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
10498         IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
10499         IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
10500         IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
10501         IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
10502         IX86_BUILTIN_GATHERDIV8SI.
10503         (ix86_preferred_simd_mode): Support AVX2 modes.
10504         (ix86_expand_args_builtin): Support AVX2 builtins.
10505         (ix86_expand_special_args_builtin): Likewise.
10506         (ix86_expand_builtin): Likewise.
10507         * config/i386/i386.md (UNSPEC_VPERMSI): New.
10508         (UNSPEC_VPERMDF): Likewise.
10509         (UNSPEC_VPERMSF): Likewise.
10510         (UNSPEC_VPERMDI): Likewise.
10511         (UNSPEC_VPERMTI): Likewise.
10512         (UNSPEC_GATHER): Likewise.
10513         (ssemodesuffix): Extend.
10514         * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
10515         is defined.
10516         * config/i386/predicates.md (const1248_operand): New.
10517         * config/i386/sse.md (VI1_AVX2): New mode iterator.
10518         (VI2_AVX2): Likewise.
10519         (VI4_AVX2): Likewise.
10520         (VI8_AVX2): Likewise.
10521         (VIMAX_AVX2): Likewise.
10522         (SSESCALARMODE): Likewise.
10523         (VI12_AVX2): Likewise.
10524         (VI24_AVX2): Likewise.
10525         (VI124_AVX2): Likewise.
10526         (VI248_AVX2): Likewise.
10527         (VI48_AVX2): Likewise.
10528         (VI4SD_AVX2): Likewise.
10529         (V48_AVX2): Likewise.
10530         (AVX256MODE2P): Likewise.
10531         (AVXMODE48P_DI): Likewise.
10532         (sse2_avx2): New mode attribute.
10533         (ssse3_avx2): Likewise.
10534         (sse4_1_avx2): Likewise.
10535         (avx_avx2): Likewise.
10536         (ssebytemode): Likewise.
10537         (AVXTOSSEMODE): Likewise.
10538         (AVXMODE48P_DI): Likewise.
10539         (gthrfirstp): Likewise.
10540         (gthrlastp): Likewise.
10541         (lshift): New code_iterator
10542         (lshift): New code attribute.
10543         (lshift): Likewise.
10544         (ssescalarmodesuffix): Update.
10545         (sseunpackmode): Likewise.
10546         (ssepackmode): Likewise.
10547         (avx2_vec_dupv4sf): New insn pattern.
10548         (avx2_vec_dupv8sf): Likewise.
10549         (avx2_interleave_highv4di): Likewise.
10550         (avx2_interleave_lowv4di): Likewise.
10551         (avx2_umulv4siv4di3): Likewise
10552         (*avx2_umulv4siv4di3): Likewise
10553         (avx2_pmaddwd): Likewise.
10554         (*avx2_pmaddwd): Likewise.
10555         (avx2_lshrqv4di3): Likewise.
10556         (avx2_lshlqv4di3): Likewise.
10557         (avx2_lshl<mode>3): Likewise.
10558         (avx2_<umaxmin:code><mode>3): Likewise.
10559         (*avx2_<umaxmin:code><mode>3): Likewise.
10560         (avx2_<smaxmin:code><mode>3): Likewise.
10561         (*avx2_<smaxmin:code><mode>3): Likewise.
10562         (avx2_eq<mode>3): Likewise.
10563         (*avx2_eq<mode>3): Likewise.
10564         (avx2_gt<mode>3): Likewise.
10565         (avx2_interleave_highv32qi): New.
10566         (avx2_interleave_lowv32qi): Likewise.
10567         (avx2_interleave_highv16hi): Likewise.
10568         (avx2_interleave_lowv16hi): Likewise.
10569         (avx2_interleave_highv8si): Likewise.
10570         (avx2_interleave_lowv8si): Likewise.
10571         (avx2_pshufd): Likewise.
10572         (avx2_pshufd_1): Likewise.
10573         (avx2_pshuflwv3): Likewise.
10574         (avx2_pshuflw_1): Likewise.
10575         (avx2_pshufhwv3): Likewise.
10576         (avx2_pshufhw_1): Likewise.
10577         (avx2_uavgv32qi3): Likewise.
10578         (*avx2_uavgv32qi3): Likewise.
10579         (avx2_uavgv16hi3): Likewise.
10580         (*avx2_uavgv16hi3): Likewise.
10581         (avx2_pmovmskb): Likewise.
10582         (avx2_phaddwv16hi3): Likewise.
10583         (avx2_phadddv8si3): Likewise.
10584         (avx2_phaddswv16hi3): Likewise.
10585         (avx2_phsubwv16hi3): Likewise.
10586         (avx2_phsubdv8si3): Likewise.
10587         (avx2_phsubswv16hi3): Likewise.
10588         (avx2_pmaddubsw256): Likewise.
10589         (avx2_umulhrswv16hi3): Likewise.
10590         (*avx2_umulhrswv16hi3): Likewise.
10591         (avx2_packusdw): Likewise.
10592         (avx2_pblendd<mode>): Likewise.
10593         (avx2_<code>v16qiv16hi2): Likewise.
10594         (avx2_<code>v8qiv8si2): Likewise.
10595         (avx2_<code>v8hiv8si2): Likewise.
10596         (avx2_<code>v4qiv4di2): Likewise.
10597         (avx2_<code>v4hiv4di2): Likewise.
10598         (avx2_<code>v4siv4di2): Likewise.
10599         (avx2_pbroadcast<mode>): Likewise.
10600         (avx2_permvarv8si): Likewise.
10601         (avx2_permv4df): Likewise.
10602         (avx2_permvarv8sf): Likewise.
10603         (avx2_permv4di): Likewise.
10604         (avx2_permv2ti): Likewise.
10605         (avx2_vec_dupv4df): Likewise.
10606         (avx2_vbroadcasti128_<mode>): Likewise.
10607         (avx2_vec_set_lo_v4di): Likewise.
10608         (avx2_vec_set_hi_v4di): Likewise.
10609         (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
10610         (avx2_extracti128): Likewise.
10611         (avx2_inserti128): Likewise.
10612         (avx2_ashrvv8si): Likewise.
10613         (avx2_ashrvv4si): Likewise.
10614         (avx2_<lshift>vv8si): Likewise.
10615         (avx2_<lshift>v<mode>): Likewise.
10616         (avx2_<lshift>vv2di): Likewise.
10617         (avx2_gathersi<mode>): Likewise.
10618         (*avx2_gathersi<mode>): Likewise.
10619         (avx2_gatherdi<mode>): Likewise.
10620         (*avx2_gatherdi<mode>): Likewise.
10621         (avx2_gatherdi<mode>256): Likewise.
10622         (*avx2_gatherdi<mode>256): Likewise.
10623         (<plusminus_insn><mode>3): Use VI mode iterator.
10624         (*<plusminus_insn><mode>3): Use VI mode iterator.
10625         (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
10626         sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
10627         (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
10628         *sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
10629         (mul<mode>3): Rename from mulv8hi3.  Use VI2_AVX2 mode iterator.
10630         (*mul<mode>3): Rename from *mulv8hi3.  Use VI2_AVX2 mode iterator.
10631         (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
10632         Use VI2_AVX2 mode iterator.
10633         (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
10634         Use VI2_AVX2 mode iterator.
10635         (mul<mode>3): Rename from mulv4si3.  Use VI4_AVX2 mode iterator.
10636         (*mul<mode>3): Rename from *mulv4si3.  Use VI4_AVX2 mode iterator.
10637         (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
10638         Use VI4_AVX2 mode iterator.
10639         (ashr<mode>3): Use VI24_AVX2 mode iterator.
10640         (lshr<mode>3): Use VI248_AVX2 mode iterator.
10641         (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
10642         Use VIMAX_AVX2 mode iterator.
10643         (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
10644         Use VI mode iterator.
10645         (*andnot<mode>3): Update for AVX2.
10646         (*<any_logic:code><mode>3): Likewise.
10647         (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
10648         Use VI1_AVX mode iterator.
10649         (<sse2_avx2>_packssdw):  Rename from sse2_packssdw.
10650         Use VI2_AVX mode iterator.
10651         (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
10652         Use VI1_AVX mode iterator.
10653         (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
10654         Use VI8_AVX2 mode iterator.
10655         (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
10656         Use VI1_AVX2 mode iterator.
10657         (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
10658         Use VI124_AVX2 mode iterator.
10659         (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
10660         Use SSESCALARMODE mode iterator.
10661         (abs<mode>2): Use VI124_AVX2 mode iterator.
10662         (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
10663         Use VI8_AVX2 mode iterator.
10664         (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
10665         Use VI1_AVX2 mode iterator.
10666         (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
10667         Use VI1_AVX2 mode iterator.
10668         (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
10669         Use VI2_AVX2 mode iterator.
10670         (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
10671         avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
10672         (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
10673         avx_maskstore<ssemodesuffix><avxsizesuffix>.
10674         Use V48_AVX2 mode iterator.
10675         * doc/extend.texi: Document AVX2 built-in functions.
10676         * doc/invoke.texi: Document -mavx2.
10677
10678 2011-08-22  Matthias Klose <doko@debian.org>
10679
10680         Revert:
10681         2011-07-11  Arthur Loiret  <aloiret@debian.org>
10682                     Matthias Klose <doko@debian.org>
10683         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
10684         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
10685         convention.
10686         * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
10687
10688 2011-08-22  Mikael Pettersson  <mikpe@it.uu.se>
10689
10690         PR bootstrap/50146
10691         * ira-color.c (assign_hard_reg): Move saved_nregs declaration
10692         to #ifndef HONOR_REG_ALLOC_ORDER block.
10693
10694 2011-08-21  Richard Henderson  <rth@redhat.com>
10695
10696         * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
10697         * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
10698         * resource.c (next_insn_no_annul): Likewise.
10699         (mark_set_resources): Likewise.
10700         * reorg.c (delete_from_delay_slot): Likewise.
10701         (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
10702         (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
10703
10704 2011-08-21  Uros Bizjak  <ubizjak@gmail.com>
10705
10706         * config/i386/i386.md (any_div): Remove.
10707         (sgnprefix): Update for removal.
10708         (u): Ditto.
10709
10710 2011-08-20  Vladimir Makarov  <vmakarov@redhat.com>
10711
10712         * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
10713         for ira_reg_class_max_nregs.  Increase pressure by 1.
10714         (mark_pseudo_regno_subword_dead): Use allocno class
10715         for ira_reg_class_max_nregs.
10716
10717 2011-08-20  Richard Henderson  <rth@redhat.com>
10718
10719         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
10720         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
10721         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
10722         config/c6x/ltf.c: Adjust include path for soft-fp.
10723
10724 2011-08-20  H.J. Lu  <hongjiu.lu@intel.com>
10725
10726         PR other/46770
10727         * config.gcc (tm_file): Add initfini-array.h if
10728         .init_arrary/.fini_array are supported.
10729
10730         * crtstuff.c: Don't generate .ctors nor .dtors sections if
10731         USE_INITFINI_ARRAY is defined.
10732
10733         * output.h (default_elf_init_array_asm_out_constructor): New.
10734         (default_elf_fini_array_asm_out_destructor): Likewise.
10735         * varasm.c (elf_init_array_section): Likewise.
10736         (elf_fini_array_section): Likewise.
10737         (get_elf_initfini_array_priority_section): Likewise.
10738         (default_elf_init_array_asm_out_constructor): Likewise.
10739         (default_elf_fini_array_asm_out_destructor): Likewise.
10740
10741         * config/initfini-array.h: New.
10742
10743 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
10744
10745         * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
10746         OK for ST_REGS and FP_REGS before taking those classes into account.
10747
10748 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
10749
10750         * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
10751         before checking for annulled branches.
10752
10753 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
10754
10755         * config/i386/i386.c (ix86_binary_operator_ok): Use
10756         satisfies_constraint_L.
10757
10758 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
10759             Michael Matz  <matz@suse.de>
10760
10761         * config/i386/i386.c (ix86_expand_round_sse4): Expand as
10762         trunc (a + copysign (nextafter (0.5, 0.0), a)).
10763
10764 2011-08-20  Anatoly Sokolov  <aesok@post.ru>
10765
10766         * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10767         * doc/tm.texi: Regenerate.
10768         * targhooks.c (default_preferred_output_reload_class): Don't use
10769         PREFERRED_OUTPUT_RELOAD_CLASS macro.
10770         * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
10771
10772 2011-08-20  Jakub Jelinek  <jakub@redhat.com>
10773
10774         PR tree-optimization/48739
10775         * tree-ssa.c: Include cfgloop.h.
10776         (execute_update_addresses_taken): When updating ssa, if in loop closed
10777         SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
10778         * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
10779
10780 2011-08-19  Vladimir Makarov  <vmakarov@redhat.com>
10781
10782         PR rtl-optimization/49936
10783         * ira.c (ira_init_register_move_cost): Ignore too small subclasses
10784         for calculation of max register move costs.
10785
10786 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
10787
10788         * c-parser.c (c_parser_postfix_expression): Convert operands of
10789         __builtin_complex to their semantic types.
10790
10791 2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
10792
10793         PR middle-end/49721
10794         * explow.c (convert_memory_address_addr_space): Also permute the
10795         conversion and addition of constant for zero-extend.
10796
10797 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
10798
10799         * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
10800         * doc/extend.texi (__builtin_complex): Document.
10801
10802 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
10803
10804         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
10805         beyond conversions.
10806         (convert_mult_to_widen): Convert constant inputs to the right type.
10807         (convert_plusminus_to_widen): Don't automatically reject inputs that
10808         are not an SSA_NAME.
10809         Convert constant inputs to the right type.
10810
10811 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
10812
10813         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
10814         to the correct type.
10815
10816 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
10817
10818         * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
10819         unsigned inputs of different modes.
10820         (convert_plusminus_to_widen): Likewise.
10821
10822 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
10823
10824         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
10825         'type'.
10826         Use 'type' from caller, not inferred from 'rhs'.
10827         Don't reject non-conversion statements. Do return lhs in this case.
10828         (is_widening_mult_p): Add new argument 'type'.
10829         Use 'type' from caller, not inferred from 'stmt'.
10830         Pass type to is_widening_mult_rhs_p.
10831         (convert_mult_to_widen): Pass type to is_widening_mult_p.
10832         (convert_plusminus_to_widen): Likewise.
10833
10834 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
10835
10836         * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
10837         Ensure the the larger type is the first operand.
10838
10839 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
10840
10841         * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
10842         unsupported unsigned multiplies to signed.
10843         (convert_plusminus_to_widen): Likewise.
10844
10845 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
10846
10847         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
10848         conversion statement separating multiply-and-accumulate.
10849
10850 2011-08-19  Richard Guenther  <rguenther@suse.de>
10851
10852         PR tree-optimization/50067
10853         * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
10854         offset only if we accounted for it.
10855
10856 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
10857
10858         * config/arm/arm.md (maddhidi4): Remove '*' from name.
10859         * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
10860         * optabs.c (find_widening_optab_handler_and_mode): New function.
10861         (expand_widen_pattern_expr): Use find_widening_optab_handler.
10862         (expand_binop_directly): Likewise.
10863         (expand_binop): Likewise.
10864         * optabs.h (find_widening_optab_handler): New macro define.
10865         (find_widening_optab_handler_and_mode): New prototype.
10866         * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
10867         type precision rules.
10868         (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
10869         * tree-ssa-math-opts.c (build_and_insert_cast): New function.
10870         (is_widening_mult_rhs_p): Allow widening by more than one mode.
10871         Explicitly disallow mis-matched input types.
10872         (convert_mult_to_widen): Use find_widening_optab_handler, and cast
10873         input types to fit the new handler.
10874         (convert_plusminus_to_widen): Likewise.
10875
10876 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
10877
10878         * expr.c (expand_expr_real_2): Use widening_optab_handler.
10879         * genopinit.c (optabs): Use set_widening_optab_handler for $N.
10880         (gen_insn): $N now means $a must be wider than $b, not consecutive.
10881         * optabs.c (widened_mode): New function.
10882         (expand_widen_pattern_expr): Use widening_optab_handler.
10883         (expand_binop_directly): Likewise.
10884         (expand_binop): Likewise.
10885         * optabs.h (widening_optab_handlers): New struct.
10886         (optab_d): New member, 'widening'.
10887         (widening_optab_handler): New function.
10888         (set_widening_optab_handler): New function.
10889         * tree-ssa-math-opts.c (convert_mult_to_widen): Use
10890         widening_optab_handler.
10891         (convert_plusminus_to_widen): Likewise.
10892
10893 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
10894
10895         * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
10896         pedantic.
10897         * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
10898         * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
10899
10900 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
10901
10902         * opth-gen.awk: Do not declare target save/restore structures and
10903         functions if IN_RTS defined.
10904
10905 2011-08-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
10906
10907         PR target/49437
10908         * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
10909         when stack was realigned in interrupt handler prologue.
10910
10911 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
10912
10913         * c-decl.c (shadow_tag_warned): Check for _Noreturn.
10914         (quals_from_declspecs): Assert _Noreturn not present.
10915         (grokdeclarator): Handle _Noreturn.
10916         (build_null_declspecs): Initialize noreturn_p.
10917         (declspecs_add_scspec): Handle RID_NORETURN.
10918         * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
10919         (c_parser_attributes): Handle RID_NORETURN.
10920         * c-tree.h (struct c_declspecs): Add noreturn_p.
10921         * ginclude/stdnoreturn.h: New.
10922         * Makefile.in (USER_H): Add stdnoreturn.h.
10923
10924 2011-08-18  Kirill Yukhin  <kirill.yukhin@intel.com>
10925
10926         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
10927         (OPTION_MASK_ISA_AVX_UNSET): Update.
10928         (OPTION_MASK_ISA_AVX2_UNSET): New.
10929         (ix86_handle_option): Handle OPT_mavx2 case.
10930         * config/i386/cpuid.h (bit_AVX2): New.
10931         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
10932         AVX2 feature.
10933         * config/i386/i386-c.c (ix86_target_macros_internal):
10934         Conditionally define __AVX2__.
10935         * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
10936         Define "core-avx2" processor alias.  Handle avx2 option.
10937         (ix86_valid_target_attribute_inner_p): Handle avx2 option.
10938         * config/i386/i386.h (TARGET_AVX2): New.
10939         * config/i386/i386.opt (mavx2): New.
10940         * doc/invoke.texi: Document -mavx2.
10941
10942 2011-08-18  Vladimir Makarov  <vmakarov@redhat.com>
10943
10944         PR rtl-optimization/49890
10945         * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
10946         subclasses of class which is superset of a pressure class.
10947
10948 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
10949             Igor Zamyatin <igor.zamyatin@intel.com>
10950
10951         * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
10952         with HOST_WIDE_INT for isa_flag.
10953         (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
10954         isa variables.
10955
10956         * config/i386/i386.c (ix86_target_string): Replace int with
10957         HOST_WIDE_INT for isa.  Use HOST_WIDE_INT_PRINT to print isa.
10958         (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
10959         (pta_flags): Removed.
10960         (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
10961         (pta): Use HOST_WIDE_INT on flags.
10962         (builtin_isa): Use HOST_WIDE_INT on isa.
10963         (ix86_add_new_builtins): Likewise.
10964         (def_builtin): Use HOST_WIDE_INT on mask.
10965         (def_builtin_const): Likewise.
10966         (builtin_description): Likewise.
10967
10968         * config/i386/i386.opt (ix86_isa_flags): Replace int with
10969         HOST_WIDE_INT.
10970         (ix86_isa_flags_explicit): Likewise.
10971         (x_ix86_isa_flags_explicit): Likewise.
10972
10973 2011-08-17  Vladimir Makarov  <vmakarov@redhat.com>
10974
10975         PR rtl-optimization/50107
10976         * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
10977         (ira_hard_reg_in_set_p): New.
10978
10979         * ira-color.c (calculate_saved_nregs): New.
10980         (assign_hard_reg): Use it.  Set up allocated_hard_reg_p for all
10981         hard regs.
10982         (allocno_reload_assign, fast_allocation): Use
10983         ira_hard_reg_set_intersection_p instead of
10984         ira_hard_reg_not_in_set_p.
10985
10986         * ira.c (setup_reg_renumber): Use
10987         ira_hard_reg_set_intersection_p instead of
10988         ira_hard_reg_not_in_set_p.
10989         (setup_allocno_assignment_flags, calculate_allocation_cost): Use
10990         ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
10991
10992         * ira-costs.c (ira_tune_allocno_costs): Use
10993         ira_hard_reg_set_intersection_p instead of
10994         ira_hard_reg_not_in_set_p.
10995
10996 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
10997             Igor Zamyatin <igor.zamyatin@intel.com>
10998
10999         * hwint.h (HOST_WIDE_INT_1): New.
11000
11001         * opt-functions.awk (switch_bit_fields): Initialize the
11002         host_wide_int field.
11003         (host_wide_int_var_name): New.
11004         (var_type_struct): Check and return HOST_WIDE_INT.
11005
11006         * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
11007
11008         * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
11009
11010         * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT.  Properly
11011         check masks for HOST_WIDE_INT.
11012
11013         * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
11014         (option_enabled): Likewise.
11015         (get_option_state): Likewise.
11016
11017         * opts.h (cl_option): Add cl_host_wide_int.  Change var_value
11018         to HOST_WIDE_INT.
11019
11020 2011-08-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11021             Marc Glisse  <marc.glisse@normalesup.org>
11022
11023         PR libstdc++-v3/1773
11024         * target.def (decl_mangling_context): New C++ hook.
11025         * doc/tm.texi: Regenerate.
11026         * config/sol2-cxx.c, config/sol2-stubs.c: New files.
11027         * config/sol2-protos.h: Group by source file.
11028         (solaris_cxx_decl_mangling_context): Declare.
11029         * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
11030         * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
11031         Use $<.
11032         * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
11033         Add sol2-stubs.o to extra_objs.
11034
11035 2011-08-18  Jakub Jelinek  <jakub@redhat.com>
11036
11037         PR target/50009
11038         * stor-layout.c (update_alignment_for_field): Don't ICE on
11039         packed flexible array members if ms_bitfield_layout_p.
11040
11041         PR target/50092
11042         * config/i386/i386.c (assign_386_stack_local): Call validize_mem
11043         on the result before returning it.
11044
11045         PR debug/50017
11046         * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
11047         is a debug stmt, use location of the first non-debug stmt after it.
11048
11049 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
11050
11051         * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
11052         (arm_size_rtx_costs): Likewise.
11053
11054 2011-08-18  Richard Guenther  <rguenther@suse.de>
11055
11056         * tree.h (tree_int_cst_msb): Remove.
11057         * tree.c (tree_int_cst_msb): Likewise.
11058         (tree_int_cst_sign_bit): Move from ...
11059         * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
11060
11061 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
11062
11063         * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
11064         * doc/tm.texi: Regenerate.
11065         * target.def (rtx_costs): Add an opno parameter.
11066         * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
11067         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
11068         * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
11069         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
11070         * cse.c (COST_IN): Add an opno parameter.
11071         (notreg_cost): Likewise.  Update call to rtx_cost.
11072         (COST, fold_rtx): Update accordingly.
11073         * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
11074         * expmed.c (emit_store_flag): Likewise.
11075         * optabs.c (avoid_expensive_constant): Add an opno parameter.
11076         Update call to rtx_cost.
11077         (expand_binop_directly, expand_binop): Likewise.
11078         (expand_twoval_binop, prepare_cmp_insn): Likewise.
11079         * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
11080         (set_src_cost, get_full_set_src_cost): Update accordingly.
11081         * rtlanal.c (rtx_cost): Add an opno parameter.  Update call
11082         to target hook.
11083         (get_full_rtx_cost): Add an opno paramter.  Update calls to rtx_cost.
11084         (default_adress_cost): Update calls to rtx_cost.
11085
11086         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
11087         (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
11088         (arm_rtx_costs): Add an opno parameter.
11089         * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
11090         adjust any recursive rtx-cost calls.
11091         * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
11092         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
11093         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
11094         * config/cris/cris.c (cris_rtx_costs): Likewise.
11095         * config/frv/frv.c (frv_rtx_costs): Likewise.
11096         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
11097         * config/i386/i386.c (ix86_rtx_costs): Likewise.
11098         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
11099         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
11100         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
11101         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
11102         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
11103         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
11104         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
11105         * config/mep/mep.c (mep_rtx_cost): Likewise.
11106         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
11107         * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
11108         (mips_zero_extend_cost): Add an opno parameter.
11109         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
11110         * config/mn10300/mn10300.c (mn10300_address_cost): Update call
11111         to rtx_cost.
11112         (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
11113         rtx-cost calls.
11114         * config/pa/pa.c (hppa_rtx_costs): Likewise.
11115         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
11116         * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
11117         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
11118         (rs6000_debug_rtx_costs): Likewise.
11119         * config/s390/s390.c (s390_rtx_costs): Likewise.
11120         * config/score/score-protos.h (score_rtx_costs): Likewise.
11121         * config/score/score.c (score_rtx_costs): Likewise.
11122         * config/sh/sh.c (andcosts): Update call to rtx_cost.
11123         (sh_rtx_costs): Add an opno parameter.
11124         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
11125         * config/spu/spu.c (spu_rtx_costs): Likewise.
11126         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
11127         * config/v850/v850.c (v850_rtx_costs): Likewise.
11128         * config/vax/vax.c (vax_rtx_costs): Likewise.
11129         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
11130
11131 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
11132
11133         * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
11134         * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
11135         rtx_cost.
11136         * calls.c (precompute_register_parameters): Likewise.
11137         * combine.c (expand_compound_operation, make_extraction): Likewise.
11138         (force_to_mode, distribute_and_simplify_rtx): Likewise.
11139         * dse.c (find_shift_sequence): Likewise.
11140         * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
11141         * expr.c (compress_float_constant): Likewise.
11142         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
11143         * gcse.c (want_to_gcse_p): Likewise.
11144         * ifcvt.c (noce_try_sign_mask): Likewise.
11145         * loop-doloop.c (doloop_optimize): Likewise.
11146         * loop-invariant.c (create_new_invariant): Likewise.
11147         * optabs.c (avoid_expensive_constant): Likewise.
11148         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
11149         (try_replace_in_use, reload_cse_move2add): Likewise.
11150         * reload1.c (calculate_elim_costs_all_insns): Likewise.
11151         (note_reg_elim_costly): Likewise.
11152         * rtlanal.c (insn_rtx_cost): Likewise.
11153         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
11154         * stmt.c (lshift_cheap_p): Likewise.
11155         * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
11156         * config/avr/avr.c (final_prescan_insn): Likewise.
11157         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
11158         * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
11159
11160 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
11161
11162         * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
11163         * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
11164         * cfgloopanal.c (seq_cost): Likewise.
11165         * loop-invariant.c (create_new_invariant): Likewise.
11166         * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
11167         (reload_cse_move2add): Use get_full_set_rtx_cost.
11168
11169 2011-08-18  Richard Guenther  <rguenther@suse.de>
11170
11171         * expr.c (get_inner_reference): Fix typo in last change.
11172
11173 2011-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
11174             Joseph Myers  <joseph@codesourcery.com>
11175
11176         PR tree-optimization/49963
11177         * hwint.c (absu_hwi): Define.
11178         * hwint.h (absu_hwi): Declare.
11179         * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
11180         of abs_hwi.
11181         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
11182         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
11183
11184 2011-08-18  Richard Guenther  <rguenther@suse.de>
11185
11186         * expr.c (get_inner_reference): Sign-extend the constant
11187         twos-complement offset before doing arbitrary precision
11188         arithmetic on it.
11189         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
11190         (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
11191         to get_constraint_for_ptr_offset.
11192
11193 2011-08-17  Kaz Kojima  <kkojima@gcc.gnu.org>
11194
11195         PR target/50068
11196         * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
11197
11198 2011-08-17  Richard Guenther  <rguenther@suse.de>
11199
11200         * tree.h (convert_to_ptrofftype_loc): New function.
11201         (convert_to_ptrofftype): Define.
11202         * builtins.c (expand_builtin_bzero): Use size_type_node.
11203         (fold_builtin_bzero): Likewise.
11204         (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
11205         * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
11206         * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
11207         (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
11208         * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
11209         * fold-const.c (build_range_check): Negate using the original type.
11210         (fold_unary_loc): Use fold_build_pointer_plus_loc.
11211         * gimple-fold.c (gimple_adjust_this_by_delta): Use
11212         convert_to_ptrofftype.
11213         * gimplify.c (gimplify_self_mod_expr): Likewise.
11214         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
11215         (graphite_create_new_loop_guard): Likewise.
11216         * graphite-sese-to-poly.c (my_long_long): Remove.
11217         (scop_ivs_can_be_represented): Adjust.
11218         * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
11219         * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
11220         * tree-loop-distribution.c (build_size_arg_loc): Use
11221         size_type_node.
11222         (generate_memset_zero): Simplify.
11223         * tree-mudflap.c: Use fold_convert, not convert.
11224         * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
11225         its own type.
11226         (determine_offset): Likewise for DR_STEP.
11227         (valid_initializer_p): Likewise.
11228         * tree-profile.c (prepare_instrumented_value): Convert the pointer
11229         to an integer type of same size.
11230         * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
11231         to sizetype without need.
11232         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
11233         * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
11234         * tree-ssa-loop-manip.c (create_iv): Likewise.
11235         (determine_exit_conditions): Adjust comment.
11236         * tree-ssa-pre.c (create_expression_by_pieces): Use
11237         convert_to_ptrofftype.
11238         * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
11239         * varasm.c (array_size_for_constructor): Compute using double_ints.
11240
11241 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11242
11243         * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
11244         when generating an integer result where possible.  Short-cut
11245         comparison against 0 also for QImode.
11246
11247 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11248
11249         * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
11250         * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
11251         prototype.
11252         * config/spu/spu.c (spu_legitimize_reload_address): New function.
11253         (spu_legitimate_address_p): Do not check displacement if the base
11254         is an eliminable stack register.
11255
11256 2011-08-16  Anatoly Sokolov  <aesok@post.ru>
11257
11258         * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
11259         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
11260         * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
11261         m32c_preferred_output_reload_class): Remove.
11262         * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
11263         Change rclass argument and return types to reg_class_t. Use
11264         reg_class_subset_p instead of class_sizes.
11265         (m32c_preferred_output_reload_class): Make static. Change rclass
11266         argument and return types to reg_class_t.
11267         (TARGET_PREFERRED_RELOAD_CLASS,
11268         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11269
11270 2011-08-16  Kai Tietz  <ktietz@redhat.com>
11271
11272         * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
11273
11274 2011-08-16  Richard GUenther  <rguenther@suse.de>
11275
11276         PR tree-optimization/50082
11277         * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
11278         warnings here, instead of ...
11279         (ssa_forward_propagate_and_combine): ... here.
11280         (forward_propagate_into_comparison_1): Adjust.
11281         (forward_propagate_into_comparison): Likewise.
11282         (forward_propagate_into_gimple_cond): Likewise.
11283         (forward_propagate_into_cond): Likewise.
11284
11285 2011-08-16  Andreas Schwab  <schwab@redhat.com>
11286
11287         * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
11288         instead of ggc_alloc_zone_vec_rtvec_def.
11289
11290 2011-08-16  Richard Guenther  <rguenther@suse.de>
11291
11292         * tree.h (ptrofftype_p): New helper function.
11293         * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
11294         offset verification.
11295         (verify_gimple_assign_binary): Likewise.
11296         * tree.c (build2_stat): Likewise.
11297         * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
11298         (reset_evolution_in_loop): Likewise.
11299         * tree-chrec.h (build_polynomial_chrec): Likewise.
11300
11301 2011-08-16  Liang Wang  <lwang1@marvell.com>
11302
11303         * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
11304         ggc_alloc_zone_vec_rtvec_def.
11305
11306 2011-08-16  Richard Guenther  <rguenther@suse.de>
11307
11308         * tree-vrp.c (extract_range_from_multiplicative_op_1): New
11309         helper factored out from ...
11310         (extract_range_from_binary_expr_1): ... here.  Re-structure
11311         to not glob handling too different tree codes.
11312
11313 2011-08-15  Richard Henderson  <rth@redhat.com>
11314
11315         PR middle-end/50006
11316         * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
11317         setting out to include allocate_stack named pattern as well.
11318         * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
11319         * stmt.c (expand_stack_restore): Likewise.
11320
11321 2011-08-15  Richard Guenther  <rguenther@suse.de>
11322
11323         PR middle-end/50082
11324         * fold-const.c (maybe_canonicalize_comparison_1): Properly
11325         convert the modified operand to the other operand type.
11326         (fold_comparison): Call maybe_canonicalize_comparison_1 with
11327         useless conversions stripped from comparison operands.
11328
11329 2011-08-15  Richard Guenther  <rguenther@suse.de>
11330
11331         * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
11332         (extract_range_from_unary_expr_1): Restructure.
11333
11334 2011-08-15  Richard Guenther  <rguenther@suse.de>
11335
11336         PR tree-optimization/50058
11337         * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
11338         copy matching.
11339
11340 2011-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11341
11342         PR target/50022
11343         * config/arm/arm.c (output_move_double): Add 2 parameters
11344         to count the number of insns emitted and whether to emit or not.
11345         Use the flag to decide when to emit and count number of instructions
11346         that will be emitted.
11347         Handle case where output_move_double might be called for calculating
11348         lengths with an invalid constant.
11349         (arm_count_output_move_double_insns): Define.
11350         * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
11351         (output_move_double): Adjust prototype.
11352         * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
11353         output_move_double.
11354         ("*movdi_vfp_cortexa8"): Likewise and add attribute
11355         for ce_count.
11356         * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
11357         ("*movdf_soft_insn"): Likewise.
11358         * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
11359         ("*cirrus_thumb2_movdi"): Likewise.
11360         ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
11361         ("*cirrus_movdf_hard_insn"): Likewise.
11362         * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
11363         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
11364         ("mov<mode>_internal VMMX"): Likewise.
11365         * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
11366
11367 2011-08-14  Uros Bizjak  <ubizjak@gmail.com>
11368
11369         * config/i386/i386.c (ix86_expand_round_sse4): New function.
11370         * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
11371         * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
11372         for TARGET_ROUND.
11373
11374         (rint<mode>2): Simplify TARGET_ROUND check.
11375         (floor<mode>2): Ditto.
11376         (ceil<mode>2): Ditto.
11377         (btrunc<mode>2): Ditto.
11378
11379 2011-08-14  Anatoly Sokolov  <aesok@post.ru>
11380
11381         * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
11382         as mmix_preferred_output_reload_class.
11383
11384 2011-08-14  Georg-Johann Lay  <avr@gjlay.de>
11385
11386         * PR target/49903
11387         * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
11388         (branch_unspec): New insn.
11389         (branch): Beauty farm.
11390         * config/avr/avr.c (compare_condition): Use JUMP_P.  Test SET_SRC
11391         to be IF_THEN_ELSE.
11392         (avr_compare_pattern, avr_reorg_remove_redundant_compare):
11393         New static functions.
11394         (avr_reorg): Use them.  Use next_real_insn instead of NEXT_INSN.
11395         Use CONST_INT_P.  Beauty.
11396
11397 2011-08-12  Richard Henderson  <rth@redhat.com>
11398
11399         PR rtl-opt/49994
11400         * sched-init.h (struct deps_desc): Add sched_before_next_jump.
11401         * sched-deps.c (init_deps): Clear it.
11402         (deps_analyze_insn): Consume it.
11403         (sched_analyze_insn): Fill it.
11404
11405 2011-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11406
11407         PR target/48328
11408         * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
11409         for tbh instructions.
11410
11411 2011-08-12  Diego Novillo  <dnovillo@google.com>
11412
11413         * data-streamer.h (streamer_write_zero): Rename from output_zero.
11414         (streamer_write_uhwi): Rename from lto_output_uleb128.
11415         (streamer_write_hwi): Rename from output_sleb128.
11416         (streamer_write_string): Rename from lto_output_string.
11417         (streamer_string_index): Rename from lto_string_index.
11418         (streamer_write_string_with_length): Rename from
11419         lto_output_string_with_length.
11420         (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
11421         (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
11422         (streamer_read_string): Rename from lto_input_string.
11423         (streamer_read_indexed_string): Rename from input_string_internal.
11424         (streamer_read_uhwi): Rename from lto_input_uleb128.
11425         (streamer_read_hwi): Rename from lto_input_sleb128.
11426         (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
11427         (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
11428         (streamer_write_enum): Rename from lto_output_enum.
11429         (streamer_read_enum): Rename from lto_input_enum.
11430         (streamer_write_record_start): Rename from output_record_start.
11431         (streamer_read_record_start): Rename from input_record_start.
11432         (streamer_write_bitpack): Rename from lto_output_bitpack.
11433         (streamer_read_bitpack): Rename from lto_input_bitpack.
11434         (streamer_write_char_stream): Rename from lto_output_1_stream.
11435         (streamer_read_uchar): Rename from lto_input_1_unsigned.
11436         * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
11437         (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
11438         (streamer_read_string_cst): Rename from input_string_cst.
11439         (streamer_read_chain): Rename from lto_input_chain.
11440         (streamer_alloc_tree): Rename from lto_materialize_tree.
11441         (streamer_read_tree_body): Rename from lto_input_tree_pointers.
11442         (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
11443         (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
11444         (streamer_read_integer_cst): Rename from lto_input_integer_cst.
11445         (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
11446         (streamer_write_chain): Rename from lto_output_chain.
11447         (streamer_write_tree_header): Rename from lto_output_tree_header.
11448         (streamer_pack_tree_bitfields): Rename from pack_value_fields.
11449         (streamer_write_tree_body): Rename from lto_output_tree_pointers.
11450         (streamer_write_integer_cst): Rename from lto_output_integer_cst.
11451         (streamer_write_builtin): Rename from lto_output_builtin_tree.
11452         (streamer_check_handled_ts_structures): Rename from
11453         check_handled_ts_structures.
11454         (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
11455         (streamer_tree_cache_insert_at): Rename from
11456         lto_streamer_cache_insert_at.
11457         (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
11458         (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
11459         (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
11460         (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
11461         (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
11462         * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
11463         (write_identifier): Rename from output_identifier.
11464         (write_ts_common_tree_pointers): Rename from
11465         lto_output_ts_common_tree_pointers.
11466         (write_ts_vector_tree_pointers): Rename from
11467         lto_output_ts_vector_tree_pointers.
11468         (write_ts_complex_tree_pointers): Rename from
11469         lto_output_ts_complex_tree_pointers.
11470         (write_ts_decl_minimal_tree_pointers): Rename from
11471         lto_output_ts_decl_minimal_tree_pointers.
11472         (write_ts_decl_common_tree_pointers): Rename from
11473         lto_output_ts_decl_common_tree_pointers.
11474         (write_ts_decl_non_common_tree_pointers): Rename from
11475         lto_output_ts_decl_non_common_tree_pointers.
11476         (write_ts_decl_with_vis_tree_pointers): Rename from
11477         lto_output_ts_decl_with_vis_tree_pointers.
11478         (write_ts_field_decl_tree_pointers): Rename from
11479         lto_output_ts_field_decl_tree_pointers.
11480         (write_ts_function_decl_tree_pointers): Rename from
11481         lto_output_ts_function_decl_tree_pointers.
11482         (write_ts_type_common_tree_pointers): Rename from
11483         lto_output_ts_type_common_tree_pointers.
11484         (write_ts_type_non_common_tree_pointers): Rename from
11485         lto_output_ts_type_non_common_tree_pointers.
11486         (write_ts_list_tree_pointers): Rename from
11487         lto_output_ts_list_tree_pointers.
11488         (write_ts_vec_tree_pointers): Rename from
11489         lto_output_ts_vec_tree_pointers.
11490         (write_ts_exp_tree_pointers): Rename from
11491         lto_output_ts_exp_tree_pointers.
11492         (write_ts_block_tree_pointers): Rename from
11493         lto_output_ts_block_tree_pointers.
11494         (write_ts_binfo_tree_pointers): Rename from
11495         lto_output_ts_binfo_tree_pointers.
11496         (write_ts_constructor_tree_pointers): Rename from
11497         lto_output_ts_constructor_tree_pointers.
11498         (write_ts_target_option): Rename from lto_output_ts_target_option.
11499         (write_ts_translation_unit_decl_tree_pointers): Rename from
11500         lto_output_ts_translation_unit_decl_tree_pointers.
11501         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
11502         Rename from lto_streamer_cache_add_to_node_array.
11503         (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
11504         (record_common_node): Rename from lto_record_common_node.
11505
11506         * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
11507         declarations.
11508         * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
11509         function.
11510         * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
11511         unused function.
11512         * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
11513         (ipa-reference.o): Likewise.
11514         * lto-section-out.c: Include data-streamer.h.
11515         * ipa-reference.c: Include data-streamer.h.
11516
11517 2011-08-12  Nick Clifton  <nickc@redhat.com>
11518
11519         * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
11520         * doc/md.texi (cmpstrn): Note that the comparison stops if both
11521         fetched bytes are zero.
11522         (cmpstr): Likewise.
11523         (cmpmem): Note that the comparison does not stop if both of the
11524         fetched bytes are zero.
11525
11526 2011-08-12  Uros Bizjak  <ubizjak@gmail.com>
11527
11528         * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
11529         BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
11530         * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
11531         BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
11532         to integer_type_node.
11533         * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
11534         BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
11535         * builtins.c (expand_builtin_in): Ditto.
11536         (mathfn_built_in_1): Ditto.
11537         (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
11538         BUILT_IN_IFLOOR.
11539         (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
11540         BUILT_IN_IROUND.
11541         (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
11542         BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
11543         BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
11544
11545 2011-08-12  Richard Guenther  <rguenther@suse.de>
11546
11547         * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
11548
11549 2011-08-12  Romain Geissler  <romain.geissler@gmail.com>
11550
11551         * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
11552
11553 2011-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
11554
11555         * config/arm/arm.c (get_label_padding): New function.
11556         (create_fix_barrier, arm_reorg): Use it.
11557
11558 2011-08-11  Uros Bizjak  <ubizjak@gmail.com>
11559
11560         PR target/49781
11561         * config/i386/i386.md (*lea_5_zext): New.
11562         (*lea_6_zext): Ditto.
11563         * config/i386/predicates.md (const_32bit_mask): New predicate.
11564         (lea_address_operand): Reject AND.
11565         * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
11566         const_32bit_mask immediate.
11567         (ix86_print_operand_address): Handle AND.
11568         (memory_address_length): Ditto.
11569
11570 2011-08-11  Romain Geissler  <romain.geissler@gmail.com>
11571             Brian Hackett  <bhackett1024@gmail.com>
11572
11573         * plugin.def: Add event for finish_decl.
11574         * plugin.c (register_callback, invoke_plugin_callbacks): Same.
11575         * c-decl.c (finish_decl): Invoke callbacks on above event.
11576         * doc/plugins.texi: Document above event.
11577
11578 2011-08-11  Richard Guenther  <rguenther@suse.de>
11579
11580         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
11581         lookups, make looking through aggregate copies stronger.
11582
11583 2011-08-11  Richard Henderson  <rth@redhat.com>
11584
11585         PR bootstrap/50018
11586         * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
11587
11588 2011-08-11  Richard Guenther  <rguenther@suse.de>
11589
11590         * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
11591         * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
11592         (vrp_visit_stmt): Likewise.
11593
11594 2011-08-11  Richard Guenther  <rguenther@suse.de>
11595
11596         PR middle-end/50040
11597         * gimplify.c (gimplify_modify_expr_complex_part): Mark the
11598         load of the other piece with TREE_NO_WARNING.
11599         * tree-flow.h (warn_uninit): Adjust prototype.
11600         * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
11601         the base variable and the expression that is used separately.
11602         Properly query all TREE_NO_WARNING flags.
11603         (struct walk_data): Remove.
11604         (warn_uninitialized_var): Likewise.
11605         (warn_uninitialized_vars): Do not walk gimple pieces but simply
11606         look at all SSA uses of the statement.  Handle unused memory
11607         separately.
11608         * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
11609
11610 2011-08-11   Kazuhiro Inaoka  <kazuhiro.inaoka.ud@renesas.com>
11611
11612         * config/rx/rx.md (movsicc): Allow register to register transfers.
11613         (*movsicc): Likewise.
11614         (*stcc): Restrict this pattern to EQ and NE compares.
11615         (*stcc_reg): New pattern.  Works for any comparison but only for
11616         register transfers.
11617
11618 2011-08-11   Diego Novillo  <dnovillo@google.com>
11619
11620         * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
11621         Call stream_write_tree instead of output_record_start.
11622         (lto_output_ts_binfo_tree_pointers): Likewise.
11623
11624         * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
11625         Convert it to a macro.
11626         (stream_read_tree): Likewise.
11627
11628         * lto-streamer.h (lto_stream_as_builtin_p): Move ...
11629         * tree-streamer.h (lto_stream_as_builtin_p): ... here.
11630
11631         * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
11632         and tree_read_bitfields.
11633         * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
11634         (lto_write_tree): Call it.
11635         * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
11636         * streamer-hooks.h (struct streamer_hooks): Remove fields
11637         name, is_streamable and alloc_tree. Update all users.
11638         * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
11639         (lto_materialize_tree): ... here.
11640         Handle CALL_EXPR codes.
11641         Remove call to lto_streamer_cache_append.
11642         * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
11643         * tree-streamer.h (tree_read_bitfields): Declare.
11644
11645         * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
11646         (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
11647         * tree-streamer.h (stream_read_tree): New.  Replace all calls
11648         to lto_input_tree with it.
11649         (stream_write_tree): New.  Replace all calls to lto_output_tree,
11650         lto_output_tree_ref and lto_output_tree_or_ref with it.
11651         * lto-streamer-in.c (lto_read_tree): Inline code from
11652         lto_streamer_read_tree.
11653         (lto_input_tree): Move from tree-streamer-in.c.
11654         * lto-streamer-out.c (lto_output_tree_ref): Make static.
11655         Remove handling of NULL values for EXPR.
11656         Do not handle EXPRs that are not indexable.
11657         (lto_write_tree): Move from tree-streamer-out.c.
11658         Inline lto_streamer_write_tree.
11659         (lto_output_tree): Move from tree-streamer-out.c.
11660         If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
11661         * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
11662         (lto_preload_common_nodes): Likewise.
11663         Remove assertions and adjustments for nodes
11664         main_identifier_node, ptrdiff_type_node and fileptr_type_node.
11665         (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
11666         lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
11667         * lto-streamer.h (lto_input_tree): Declare.
11668         (lto_output_tree_ref): Remove.
11669         * streamer-hooks.h (struct streamer_hooks): Remove fields
11670         preload_common_nodes, indexable_with_decls_p,
11671         pack_value_fields, unpack_value_fields and output_tree_header.
11672         Update all users.
11673         * tree-streamer-in.c (lto_materialize_tree): Make extern.
11674         (lto_input_tree_pointers): Likewise.
11675         (lto_read_tree): Move to lto-streamer-in.c.
11676         (lto_input_integer_cst): Make extern.
11677         (lto_get_pickled_tree): Likewise.
11678         (lto_get_builtin_tree): Likewise.
11679         (lto_input_tree): Move to lto-streamer-in.c.
11680         * tree-streamer-out.c (pack_value_fields): Make extern.
11681         (lto_output_tree_or_ref): Remove.  Replace all callers with
11682         calls to stream_write_tree.
11683         (lto_output_builtin_tree): Make extern.
11684         (lto_streamer_write_tree): Inline into lto_write_tree.
11685         (lto_output_tree_pointers): Make extern.
11686         (lto_output_tree_header): Likewise.
11687         (lto_output_integer_cst): Likewise.
11688         (lto_write_tree): Move to lto-streamer-out.c.
11689         (lto_output_tree): Likewise.
11690         * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
11691         (preload_common_nodes): Likewise.
11692         (lto_streamer_cache_create): Call it.
11693         * tree-streamer.h: Include streamer-hooks.h.
11694         (stream_write_tree): New.
11695         (stream_read_tree): New.
11696         (lto_input_tree): Remove.
11697         (lto_materialize_tree): Declare.
11698         (lto_input_tree_pointers): Declare.
11699         (lto_get_pickled_tree): Declare.
11700         (lto_get_builtin_tree): Declare.
11701         (lto_input_integer_cst): Declare.
11702         (lto_output_tree_header): Declare.
11703         (pack_value_fields): Declare.
11704         (lto_output_tree_pointers): Declare.
11705         (lto_output_integer_cst): Declare.
11706         (lto_output_builtin_tree): Declare.
11707
11708 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
11709
11710         * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
11711         only if producer writes to the register given by regno.
11712
11713 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
11714             Alexander Monakov  <amonakov@ispras.ru>
11715
11716         * sched-deps.c (sched_get_condition_with_rev): Rename to ...
11717         (sched_get_condition_with_rev_uncached): ... this.  Factor out
11718         condition caching logic into ...
11719         (sched_get_condition_with_rev): ... this.  Reimplement.  Do not
11720         attempt to use cache for instructions with zero luid.
11721         (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
11722         * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
11723
11724 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
11725
11726         * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
11727         get_seqno_for_a_jump.  Update the caller.
11728         (get_seqno_by_succs): New.  Use it ...
11729         (get_seqno_for_a_jump): ... here to find a seqno if looking at
11730         predecessors was not sufficient.
11731         (get_seqno_by_preds): Include head in iteration range, exclude insn.
11732
11733 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
11734
11735         * sel-sched-ir.c (invalidate_av_set): Remove the assert.
11736
11737 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
11738
11739         * sel-sched-ir.h (register_unavailable_p): Declare.
11740         * sel-sched-ir.c (register_unavailable_p): New.  Use it...
11741         (set_unavailable_target_for_expr): ... here to properly test
11742         availability of a register.
11743         (speculate_expr): Ditto.
11744         * sel-sched.c (substitute_reg_in_expr): Ditto.
11745         (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
11746
11747 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
11748
11749         * sel-sched.c (verify_target_availability): Fix usage of
11750         hard_regno_nregs.
11751
11752 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
11753
11754         * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
11755         recognized by cannot_copy_insn_p hook and volatile instructions.
11756
11757 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
11758
11759         * sel-sched-ir.c (merge_expr_data): Take maximum spec.
11760
11761 2011-08-11  Richard Sandiford  <richard.sandiford@linaro.org>
11762
11763         * doc/md.texi (define_bypass): Say that the instruction names can
11764         be filename-style globs.
11765         * Makefile.in (FNMATCH_H): Define.
11766         (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
11767         * genattrtab.c: Include fnmatch.h.
11768         (bypass_list): Change field name from "insn" to "pattern".
11769         (gen_bypass_1): Update accordingly.
11770         (process_bypasses): Use fnmatch to check for matches between
11771         insn reservations and define_bypasses.
11772         * genautomata.c: Include fnmatch.h.
11773         (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
11774         and out_pattern respectively.
11775         (gen_bypass, insert_bypass): Update accordingly.
11776         (for_each_matching_insn, process_bypass_2, process_bypass_1)
11777         (process_bypass): New functions.
11778         (process_decls): Use process_bypass.  Update after field name changes.
11779
11780 2011-08-11  Georg-Johann Lay  <avr@gjlay.de>
11781
11782         PR target/49687
11783         * config/avr/avr.md (smulqi3_highpart): New insn.
11784         (umulqi3_highpart): New insn.
11785         (*subqi3.ashiftrt7): New insn.
11786         (smulhi3_highpart): New expander.
11787         (umulhi3_highpart): Nex expander.
11788         (*smulhi3_highpart_call): New insn.
11789         (*umulhi3_highpart_call): New insn.
11790         (extend_u): New code attribute.
11791         (extend_prefix): Rename code attribute to extend_su.
11792         * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
11793         widening QI/HI multiply.
11794
11795 2011-08-11  Ira Rosen  <ira.rosen@linaro.org>
11796
11797         PR tree-optimization/50039
11798         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
11799         that DEF_STMT has a stmt_vec_info.
11800
11801 2011-08-10  Richard Guenther  <rguenther@suse.de>
11802
11803         * tree.h (can_trust_pointer_alignment): Remove.
11804         * builtins.c (can_trust_pointer_alignment): Remove.
11805
11806 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
11807
11808         * c-typeck.c (scalar_to_vector): New function. Try scalar to
11809         vector conversion.
11810         (stv_conv): New enum for scalar_to_vector return type.
11811         (build_binary_op): Adjust.
11812         * doc/extend.texi: Description of scalar to vector expansion.
11813
11814 2011-08-10  Richard Guenther  <rguenther@suse.de>
11815
11816         * tree.h (get_pointer_alignment): Remove max-align argument.
11817         (get_object_alignment): Likewise.
11818         * builtins.c (get_object_alignment_1): Adjust.
11819         (get_object_alignment): Remove max-align argument.
11820         (get_pointer_alignment): Likewise.
11821         (expand_builtin_strlen): Adjust.
11822         (expand_builtin_memcpy): Likewise.
11823         (expand_builtin_mempcpy_args): Likewise.
11824         (expand_builtin_strncpy): Likewise.
11825         (expand_builtin_memset_args): Likewise.
11826         (expand_builtin_memcmp): Likewise.
11827         (expand_builtin_strcmp): Likewise.
11828         (expand_builtin_strncmp): Likewise.
11829         (get_builtin_sync_mem): Likewise.
11830         (fold_builtin_memset): Likewise.
11831         (fold_builtin_memory_op): Likewise.
11832         (expand_builtin_memory_chk): Likewise.
11833         * emit-rtl.c (get_mem_align_offset): Likewise.
11834         (set_mem_attributes_minus_bitpos): Likewise.
11835         * expr.c (expand_assignment): Likewise.
11836         (expand_expr_real_1): Likewise.
11837         * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
11838         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
11839         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
11840         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
11841         * value-prof.c (gimple_stringops_transform): Likewise.
11842
11843 2011-08-10  Paulo J. Matos  <paulo.matos@csr.com>
11844
11845         * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
11846         * doc/tm.texi: Regenerate.
11847
11848 2011-08-10  Georg-Johann Lay  <avr@gjlay.de>
11849
11850         PR target/29560
11851         * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
11852         (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
11853         (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
11854         Add peephole2 to map ashlhi3 to ashlqi3 if high part of
11855         shift target is unused.
11856
11857 2011-08-10  Richard Guenther  <rguenther@suse.de>
11858
11859         PR tree-optimization/49937
11860         * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
11861         using get_object_alignment_1.
11862
11863 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
11864
11865         * config/i386/i386.c (ix86_emit_i387_round): New function.
11866         * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
11867         * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
11868         Use ix86_emit_i387_round to expand round function for i387 math.
11869         (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
11870         Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
11871
11872 2011-08-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11873
11874         * config/sync.c: Move to ../libgcc.
11875         * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
11876         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
11877         Remove.
11878
11879 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
11880
11881         * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
11882         * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
11883         * config/mmix/mmix.c (mmix_register_move_cost): Make static.
11884         Change 'from' and 'to' arguments type to reg_class_t.
11885         (TARGET_REGISTER_MOVE_COST): Define.
11886
11887 2011-08-09  Vladimir Makarov  <vmakarov@redhat.com>
11888
11889         PR target/50026
11890         Revert:
11891         PR rtl-optimization/49990
11892         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
11893         ignore classes which can not change mode.
11894         (find_costs_and_classes): Ditto.
11895
11896 2011-08-09  Richard Guenther  <rguenther@suse.de>
11897
11898         * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
11899         information for ranges with only negative values.
11900         (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
11901         BIT_AND_EXPR handling to handle ranges with negative values.
11902
11903 2011-08-09  Kirill Yukhin  <kirill.yukhin@intel.com>
11904
11905         * config/i386/i386.c: Remove traling spaces.
11906         * config/i386/sse.md: Likewise.
11907         (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
11908         (*fma_fmsub_<mode>): Likewise.
11909         (*fma_fnmadd_<mode>): Likewise.
11910         (*fma_fnmsub_<mode>): Likewise.
11911
11912 2011-08-09  Nick Clifton  <nickc@redhat.com>
11913
11914         * config/rx/rx.md: Disable extender peepholes at -O3.
11915
11916 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
11917
11918         PR target/49781
11919         * config/i386/i386.md (reload_noff_load): New.
11920         (reload_noff_store): Ditto.
11921         * config/i386/i386.c (ix86_secondary_reload): Use
11922         CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
11923         double-word moves from/to non-offsetable addresses instead of
11924         generating XMM temporary.
11925
11926 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
11927
11928         * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
11929
11930 2011-08-09  Ira Rosen  <ira.rosen@linaro.org>
11931
11932         PR tree-optimization/50014
11933         * tree-vect-loop.c (vectorizable_reduction): Get def type before
11934         calling vect_get_vec_def_for_stmt_copy ().
11935
11936 2011-08-08  Vladimir Makarov  <vmakarov@redhat.com>
11937
11938         PR rtl-optimization/49990
11939         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
11940         ignore classes which can not change mode.
11941         (find_costs_and_classes): Ditto.
11942
11943 2011-08-08  Richard Henderson  <rth@redhat.com>
11944
11945         PR middle-end/49990
11946         * config/i386/i386.c (ix86_expand_prologue): Call
11947         for SEH target gen_prologue_use instead of gen_blockage
11948         at prologue's end.
11949
11950 2011-08-08  Martin Jambor  <mjambor@suse.cz>
11951
11952         PR middle-end/49923
11953         * tree-sra.c (access_precludes_ipa_sra_p): Also check access
11954         memory alignment.
11955
11956 2011-08-08   Diego Novillo  <dnovillo@google.com>
11957
11958         * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
11959         (DATA_STREAMER_H): New.
11960         (GIMPLE_STREAMER_H): New.
11961         (TREE_STREAMER_H): New.
11962         (STREAMER_HOOKS_H): New.
11963         (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
11964         gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
11965         tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
11966         (data-streamer.o): New.
11967         (data-streamer-in.o): New.
11968         (data-streamer-out.o): New.
11969         (gimple-streamer-in.o): New.
11970         (gimple-streamer-out.o): New.
11971         (streamer-hooks.o): New.
11972         (tree-streamer.o): New.
11973         (tree-streamer-in.o): New.
11974         (tree-streamer-out.o): New.
11975         (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
11976         (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
11977         GIMPLE_STREAMER_H and TREE_STREAMER_H.
11978         (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
11979         GIMPLE_STREAMER_H and TREE_STREAMER_H.
11980         (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
11981         (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
11982         (ipa-inline-analysis.o): Likewise.
11983         (ipa-pure-const.o): Likewise.
11984         * data-streamer-in.c: New.
11985         * data-streamer-out.c: New.
11986         * data-streamer.c: New.
11987         * data-streamer.h: New.
11988         * gimple-streamer-in.c: New.
11989         * gimple-streamer-out.c: New.
11990         * gimple-streamer.h: New.
11991         * ipa-inline-analysis.c: Include data-streamer.h.
11992         * ipa-prop.c: Include data-streamer.h.
11993         * ipa-pure-const.c: Include data-streamer.h.
11994         * lto-cgraph.c: Include data-streamer.h.
11995         * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
11996         (lto_input_widest_uint_uleb128): Likewise.
11997         (lto_input_sleb128): Likewise.
11998         (bp_unpack_var_len_unsigned): Likewise.
11999         (bp_unpack_var_len_int): Likewise.
12000         * lto-section-out.c (lto_output_uleb128_stream): Move to
12001         data-streamer-out.c.
12002         (lto_output_widest_uint_uleb128_stream): Likewise.
12003         (lto_output_sleb128_stream): Likewise.
12004         (bp_pack_var_len_unsigned): Likewise.
12005         (bp_pack_var_len_int): Likewise.
12006         * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
12007         (struct string_slot): Remove.  Update all users.
12008         (lto_tag_check_set): Make extern.
12009         (lto_tag_check_range): Move to lto-streamer.h.
12010         (lto_tag_check): Likewise.
12011         (hash_string_slot_node): Remove.  Update all users.
12012         (eq_string_slot_node): Remove.  Update all users.
12013         (string_for_index): Move to data-streamer-in.c
12014         (input_string_internal): Likewise.
12015         (input_string_cst): Move to tree-streamer-in.c.
12016         (input_identifier): Likewise.
12017         (lto_input_string): Move to data-streamer-in.c
12018         (input_record_start): Move to data-streamer.h
12019         (canon_file_name): Use new definition of struct string_slot
12020         from data-streamer.h.  Set S_SLOT.LEN.
12021         (lto_input_location): Make extern.
12022         (lto_input_chain): Move to tree-streamer-in.c.
12023         (lto_init_eh): Make extern.
12024         (input_phi): Move to gimple-streamer-in.c.
12025         (input_gimple_stmt): Likewise.
12026         (input_bb): Likewise.
12027         (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
12028         (unpack_ts_real_cst_value_fields): Likewise.
12029         (unpack_ts_fixed_cst_value_fields): Likewise.
12030         (unpack_ts_decl_common_value_fields): Likewise.
12031         (unpack_ts_decl_wrtl_value_fields): Likewise.
12032         (unpack_ts_decl_with_vis_value_fields): Likewise.
12033         (unpack_ts_function_decl_value_fields): Likewise.
12034         (unpack_ts_type_common_value_fields): Likewise.
12035         (unpack_ts_block_value_fields): Likewise.
12036         (unpack_ts_translation_unit_decl_value_fields): Likewise.
12037         (unpack_value_fields): Likewise.
12038         (lto_materialize_tree): Likewise.
12039         (lto_input_ts_common_tree_pointers): Likewise.
12040         (lto_input_ts_vector_tree_pointers): Likewise.
12041         (lto_input_ts_complex_tree_pointers): Likewise.
12042         (lto_input_ts_decl_minimal_tree_pointers): Likewise.
12043         (lto_input_ts_decl_common_tree_pointers): Likewise.
12044         (lto_input_ts_decl_non_common_tree_pointers): Likewise.
12045         (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
12046         (lto_input_ts_field_decl_tree_pointers): Likewise.
12047         (lto_input_ts_function_decl_tree_pointers): Likewise.
12048         (lto_input_ts_type_common_tree_pointers): Likewise.
12049         (lto_input_ts_type_non_common_tree_pointers): Likewise.
12050         (lto_input_ts_list_tree_pointers): Likewise.
12051         (lto_input_ts_vec_tree_pointers): Likewise.
12052         (lto_input_ts_exp_tree_pointers): Likewise.
12053         (lto_input_ts_block_tree_pointers): Likewise.
12054         (lto_input_ts_binfo_tree_pointers): Likewise.
12055         (lto_input_ts_constructor_tree_pointers): Likewise.
12056         (lto_input_ts_target_option): Likewise.
12057         (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
12058         (lto_input_tree_pointers): Likewise.
12059         (lto_get_pickled_tree): Likewise.
12060         (lto_get_builtin_tree): Likewise.
12061         (lto_read_tree): Likewise.
12062         (lto_input_integer_cst): Likewise.
12063         (lto_input_tree): Likewise.
12064         * lto-streamer-out.c: Include data-streamer.h,
12065         gimple-streamer.h and streamer-hooks.h.
12066         (struct string_slot): Move to data-streamer.h.
12067         (hash_string_slot_node): Likewise.
12068         (eq_string_slot_node): Likewise.
12069         (lto_string_index): Move to data-streamer-out.c.
12070         (lto_output_string_with_length): Likewise.
12071         (lto_output_string): Likewise.
12072         (output_string_cst): Move to tree-streamer-out.c.
12073         (output_identifier): Likewise.
12074         (output_zero): Move to data-streamer-out.c
12075         (output_uleb128): Likewise.
12076         (output_sleb128): Likewise.
12077         (output_record_start): Move to data-streamer.h
12078         (pack_ts_base_value_fields): Move to tree-streamer-out.c.
12079         (pack_ts_real_cst_value_fields): Likewise.
12080         (pack_ts_fixed_cst_value_fields): Likewise.
12081         (pack_ts_decl_common_value_fields): Likewise.
12082         (pack_ts_decl_wrtl_value_fields): Likewise.
12083         (pack_ts_decl_with_vis_value_fields): Likewise.
12084         (pack_ts_function_decl_value_fields): Likewise.
12085         (pack_ts_type_common_value_fields): Likewise.
12086         (pack_ts_block_value_fields): Likewise.
12087         (pack_ts_translation_unit_decl_value_fields): Likewise.
12088         (pack_value_fields): Likewise.
12089         (lto_output_chain): Likewise.
12090         (lto_output_ts_common_tree_pointers): Likewise.
12091         (lto_output_ts_vector_tree_pointers): Likewise.
12092         (lto_output_ts_complex_tree_pointers): Likewise.
12093         (lto_output_ts_decl_minimal_tree_pointers): Likewise.
12094         (lto_output_ts_decl_common_tree_pointers): Likewise.
12095         (lto_output_ts_decl_non_common_tree_pointers): Likewise.
12096         (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
12097         (lto_output_ts_field_decl_tree_pointers): Likewise.
12098         (lto_output_ts_function_decl_tree_pointers): Likewise.
12099         (lto_output_ts_type_common_tree_pointers): Likewise.
12100         (lto_output_ts_type_non_common_tree_pointers): Likewise.
12101         (lto_output_ts_list_tree_pointers): Likewise.
12102         (lto_output_ts_vec_tree_pointers): Likewise.
12103         (lto_output_ts_exp_tree_pointers): Likewise.
12104         (lto_output_ts_block_tree_pointers): Likewise.
12105         (lto_output_ts_binfo_tree_pointers): Likewise.
12106         (lto_output_ts_constructor_tree_pointers): Likewise.
12107         (lto_output_ts_target_option): Likewise.
12108         (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
12109         (lto_output_tree_pointers): Likewise.
12110         (lto_output_tree_header): Likewise.
12111         (lto_output_builtin_tree): Likewise.
12112         (lto_write_tree): Likewise.
12113         (lto_output_integer_cst): Likewise.
12114         (lto_output_tree): Likewise.
12115         (output_phi): Move to gimple-streamer-out.c.
12116         (output_gimple_stmt): Likewise.
12117         (output_bb): Likewise.
12118         * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
12119         (streamer_hooks): Move to streamer-hooks.c.
12120         (check_handled_ts_structures): Move to tree-streamer.c
12121         (lto_streamer_cache_add_to_node_array): Likewise.
12122         (lto_streamer_cache_insert_1): Likewise.
12123         (lto_streamer_cache_insert): Likewise.
12124         (lto_streamer_cache_insert_at): Likewise.
12125         (lto_streamer_cache_append): Likewise.
12126         (lto_streamer_cache_lookup): Likewise.
12127         (lto_streamer_cache_get): Likewise.
12128         (lto_record_common_node): Likewise.
12129         (lto_preload_common_nodes): Likewise.
12130         (lto_streamer_cache_create): Likewise.
12131         (lto_streamer_cache_delete): Likewise.
12132         (streamer_hooks_init): Move to streamer-hooks.c.
12133         * lto-streamer.h: Include diagnostic.h
12134         (struct output_block, struct lto_input_block,
12135         struct data_in, struct bitpack_d): Remove forward declarations.
12136         (struct bitpack_d): Move to data-streamer.h.
12137         (struct lto_streamer_cache_d): Move to tree-streamer.h.
12138         (struct streamer_hooks): Move to streamer-hooks.h.
12139         (bp_pack_var_len_unsigned): Move to data-streamer.h.
12140         (bp_pack_var_len_int): Likewise.
12141         (bp_unpack_var_len_unsigned): Likewise.
12142         (bp_unpack_var_len_int): Likewise.
12143         (lto_input_location): Declare.
12144         (lto_tag_check_set): Declare.
12145         (lto_init_eh): Declare.
12146         (lto_output_tree_ref): Declare.
12147         (lto_output_location): Declare.
12148         (bitpack_create): Move to data-streamer.h.
12149         (bp_pack_value): Likewise.
12150         (lto_output_bitpack): Likewise.
12151         (lto_input_bitpack): Likewise.
12152         (bp_unpack_value): Likewise.
12153         (lto_output_1_stream): Likewise.
12154         (lto_input_1_unsigned): Likewise.
12155         (lto_output_int_in_range): Likewise.
12156         (lto_input_int_in_range): Likewise.
12157         (bp_pack_int_in_range): Likewise.
12158         (bp_unpack_int_in_range): Likewise.
12159         (lto_output_enum): Likewise.
12160         (lto_input_enum): Likewise.
12161         (bp_pack_enum): Likewise.
12162         (bp_unpack_enum): Likewise.
12163         * streamer-hooks.c: New.
12164         * streamer-hooks.h: New.
12165         * tree-streamer-in.c: New.
12166         * tree-streamer-out.c: New.
12167         * tree-streamer.c: New.
12168         * tree-streamer.h: New.
12169
12170 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12171
12172         * gthr-posix95.h: Remove.
12173         * gthr.h [_PTHREADS95]: Remove.
12174         * configure.ac (enable_threads): Remove posix95.
12175         * configure: Regenerate.
12176         * doc/install.texi (Configuration, --enable-threads): Remove posix95.
12177
12178 2011-08-08  Uros Bizjak  <ubizjak@gmail.com>
12179
12180         PR target/49781
12181         * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
12182         SImode addresses.
12183         (ix86_print_operand_address): Handle zero-extended addresses.
12184         (memory_address_length): Add length of addr32 prefix for
12185         zero-extended addresses.
12186         (ix86_secondary_reload): Handle moves to/from double-word general
12187         registers from/to zero-extended addresses.
12188         * config/i386/predicates.md (lea_address_operand): Reject
12189         zero-extended operands.
12190
12191 2011-08-08  H.J. Lu  <hongjiu.lu@intel.com>
12192
12193         PR other/48007
12194         * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
12195
12196         * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
12197         (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
12198
12199         * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
12200         (_Unwind_Context_Reg_Val): Likewise.
12201         (_Unwind_Get_Unwind_Word): Likewise.
12202         (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
12203         (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
12204         (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
12205         for EXTENDED_CONTEXT_BIT.
12206         (__frame_state_for): Likewise.
12207         (uw_init_context_1): Likewise.
12208         (_Unwind_GetGR): Updated.
12209         (_Unwind_SetGR): Likewise.
12210         (_Unwind_GetGRPtr): Likewise.
12211         (_Unwind_SetGRPtr): Likewise.
12212         (_Unwind_SetGRValue): Likewise.
12213         (_Unwind_GRByValue): Likewise.
12214         (uw_install_context_1): Likewise.
12215
12216         * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
12217         ASSUME_EXTENDED_UNWIND_CONTEXT.
12218         * doc/tm.texi: Regenerated.
12219
12220 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12221
12222         * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
12223
12224 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12225
12226         * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
12227         Linux/GNU-specific.
12228         (DEC Alpha Options, -mtune): Likewise.
12229         (MIPS Options, -march): native is supported on IRIX.
12230
12231 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12232
12233         * config/sparc/driver-sparc.c: New file.
12234         * config/sparc/x-sparc: New file.
12235         * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
12236         * config/sparc/sparc.opt (native): New value for enum processor_type.
12237         * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
12238         * config/sparc/sparc.c (sparc_option_override): Abort if
12239         PROCESSOR_NATIVE gets here.
12240         * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
12241         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
12242         DRIVER_SELF_SPECS): Define.
12243         * doc/invoke.texi (SPARC Options, -mcpu): Document native.
12244         (SPARC Options, -mtune): Likewise.
12245         * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
12246         Substitute result.
12247         * configure: Regenerate.
12248         * Makefile.in (EXTRA_GCC_LIBS): Set.
12249         (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
12250         (cpp$(exeext)): Likewise.
12251
12252 2011-08-08  Richard Guenther  <rguenther@suse.de>
12253
12254         * tree-vrp.c (extract_range_from_unary_expr_1): New function,
12255         split out from ...
12256         (extract_range_from_unary_expr): ... here.  Handle BIT_NOT_EXPR
12257         by composition.
12258
12259 2011-08-08  Mikael Pettersson  <mikpe@it.uu.se>
12260
12261         PR tree-optimization/50005
12262         * ipa-inline-analysis (remap_predicate): Add cast to
12263         silence signed/unsigned comparison warning.
12264
12265 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
12266
12267         * modulo-sched.c (get_sched_window): Use a table for the debug output.
12268         Print the current ii.
12269         (sms_schedule_by_order): Reduce whitespace in dump line.
12270
12271 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
12272
12273         * modulo-sched.c (get_sched_window): Use just one loop for predecessors
12274         and one loop for successors.  Fix upper bound of memory range.
12275
12276 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
12277
12278         PR target/50001
12279         * config/alpha/alpha.c (alpha_instantiate_decls): New function.
12280         (TARGET_INSTANTIATE_DECLS): New define.
12281
12282 2011-08-06  Paolo Bonzini  <bonzini@gnu.org>
12283             Mikael Morin   <mikael.morin@sfr.fr>
12284
12285         * Makefile.in (INCLUDES_FOR_TARGET): New.
12286         (LIBGCC2_CFLAGS): Use it.
12287         (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
12288
12289 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
12290
12291         * config/i386/i386.c (ix86_compute_frame_layout): Simplify
12292         frame->save_regs_using_mov calculation.
12293
12294 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
12295
12296         * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
12297         * config/i386/sse.md (castmode): New mode attribute.
12298         (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
12299         avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
12300
12301 2011-08-05  Jan Hubicka  <jh@suse.cz>
12302
12303         PR middle-end/49494
12304         * ipa-inline-analysis.c (remap_predicate): Add bounds check.
12305
12306 2011-08-05  Jan Hubicka  <jh@suse.cz>
12307
12308         PR middle-end/49500
12309         * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
12310         handle aliases.
12311         (create_emultls_var):New function.
12312         (ipa_lower_emutls): Handle aliases correctly.
12313
12314 2011-08-05  Jan Hubicka  <jh@suse.cz>
12315
12316         PR middle-end/49735
12317         * ipa-inline.c (recursive_inlining): Look through aliases.
12318
12319 2011-08-05  Jason Merrill  <jason@redhat.com>
12320
12321         * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
12322         declarations to beginning of function.
12323
12324 2011-08-05  Bernd Schmidt  <bernds@codesourcery.com>
12325
12326         PR rtl-optimization/49900
12327         * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
12328         ensure basic blocks stay in the same order.
12329
12330 2011-08-05  Aldy Hernandez  <aldyh@redhat.com>
12331
12332         * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
12333         store_bit_field.
12334         (s390_expand_atomic): Same.
12335
12336 2011-08-05  Richard Henderson  <rth@redhat.com>
12337
12338         PR rtl-opt/49977
12339         * dwarf2cfi.c (scan_insn_after): Split out of ...
12340         (scan_trace): ... here.  Correctly place notes wrt sequences.
12341
12342 2011-08-05  Kaz Kojima  <kkojima@gcc.gnu.org>
12343             Richard Henderson  <rth@redhat.com>
12344
12345         PR rtl-opt/49982
12346         * expr.c (fixup_args_size_notes): Look through no-op moves.
12347
12348 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
12349
12350         * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
12351         of "m" for operand 0.  Add type and mode attribute.
12352         (*pushxf_nointeger"): Use "<" constraint for operand 0.
12353         (*pushdf_rex64): New pattern, split out of *pushdf.  Use "m"
12354         constraint instead of "o" for opreand 1.
12355         (*pushdf): Disable for TARGET_64BIT.  Correct mode attribute.
12356         (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
12357         operand 0, alternative 4.
12358         (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
12359
12360 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
12361
12362         * config/i386/predicates.md (lea_address_operand): Rename from
12363         no_seg_address_operand.
12364         * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
12365         (*lea_1_zext): Ditto.
12366         (*lea_2): Ditto.
12367         (*lea_2_zext): Ditto.
12368
12369 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
12370
12371         * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
12372         parts.base and parts.index.
12373         * config/i386/predicates.md (aligned_operand): Ditto.
12374         (cmpxchg8b_pic_memory_operand): Ditto.
12375
12376 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12377
12378         * config/soft-fp: Move to ../libgcc.
12379         * Makefile.in (SFP_MACHINE): Remove.
12380         (libgcc-support): Remove $(SFP_MACHINE) dependency.
12381         * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
12382         * config/arm/t-arm-softfp: Move to
12383         ../libgcc/config/arm/t-softfp.
12384         * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
12385         * config/c6x/t-c6x-softfp: Remove.
12386         * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
12387         * config/i386/t-fprules-softfp: Move to
12388         ../libgcc/config/t-softfp-tf.
12389         * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
12390         * config/ia64/t-fprules-softfp: Remove.
12391         * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
12392         * config/lm32/t-fprules-softfp: Remove.
12393         * config/moxie/sfp-machine.h: Remove.
12394         * config/moxie/t-moxie-softfp: Remove.
12395         * config/rs6000/darwin-ldouble-format: Move to
12396         ../libgcc/config/rs6000/ibm-ldouble-format.
12397         * config/rs6000/darwin-ldouble.c: Move to
12398         ../libgcc/config/rs6000/ibm-ldouble.c
12399         * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
12400         * config/rs6000/libgcc-ppc64.ver: Likewise.
12401         * config/rs6000/sfp-machine.h: Likewise.
12402         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
12403         $(srcdir)/config/rs6000/libgcc-ppc64.ver.
12404         (LIB2FUNCS_EXTRA): Remove.
12405         (TARGET_LIBGCC2_CFLAGS): Remove.
12406         * config/rs6000/t-aix52: Likewise
12407         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
12408         $(srcdir)/config/rs6000/darwin-ldouble.c.
12409         (SHLIB_MAPFILES): Remove.
12410         * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
12411         $(srcdir)/config/rs6000/darwin-ldouble.c.
12412         * config/rs6000/t-fprules-softfp: Move to
12413         ../libgcc/config/t-softfp-sfdf.
12414         * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
12415         * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
12416         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
12417         $(srcdir)/config/rs6000/darwin-ldouble.c.
12418         * config/score/sfp-machine.h: Move to ../libgcc/config/score.
12419         * config/score/t-score-softfp: Remove.
12420         * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
12421         soft-fp/t-softfp from tmake_file.
12422         (arm*-*-uclinux*): Likewise.
12423         (arm*-*-ecos-elf): Likewise.
12424         (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
12425         (arm*-*-rtems*): Likewise.
12426         (arm*-*-elf): Likewise.
12427         (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
12428         tmake_file.
12429         (moxie-*-uclinux*): Likewise.
12430         (moxie-*-rtems*): Likewise.
12431         (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
12432         tmake_file.
12433         (lm32-*-rtems*): Likewise.
12434         (lm32-*-uclinux*): Likewise.
12435         (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
12436         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
12437         (powerpc-*-linux*, powerpc64-*-linux*): Remove
12438         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
12439         (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
12440         tmake_file.
12441         (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
12442         tmake_file.
12443         (tic6x-*-uclinux): Likewise.
12444         (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
12445         soft-fp/t-softfp from tmake_file.
12446         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
12447         (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
12448         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
12449         (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
12450         (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
12451
12452 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12453
12454         * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
12455         (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
12456         (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
12457         TPBIT, TPBIT_FUNCS.
12458         * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
12459         * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
12460         Remove.
12461         * config/arm/t-vxworks: Likewise.
12462         * config/arm/t-wince-pe: Likewise.
12463         * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
12464         * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
12465         * config/bfin/t-bfin-elf: Likewise.
12466         * config/bfin/t-bfin-linux: Likewise.
12467         * config/bfin/t-bfin-uclinux: Likewise.
12468         * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
12469         Remove.
12470         * config/fr30/t-fr30: Likewise.
12471         * config/frv/t-frv: Likewise.
12472         * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
12473         * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
12474         * config/m32c/t-m32c: Likewise.
12475         * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
12476         * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
12477         * config/mcore/t-mcore: Likewise.
12478         * config/mep/t-mep: Likewise.
12479         * config/microblaze/t-microblaze: Likewise.
12480         * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
12481         * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
12482         * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
12483         * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
12484         * config/mn10300/t-linux: Remove.
12485         * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
12486         * config/pdp11/t-pdp11: Likewise.
12487         * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
12488         * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
12489         * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
12490         (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
12491         * config/rs6000/t-aix52: Likewise.
12492         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
12493         $(srcdir)/config/rs6000/ppc64-fp.c.
12494         * config/rs6000/t-fprules-fpbit: Remove.
12495         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
12496         * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
12497         * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
12498         * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
12499         * config/sparc/t-elf: Likewise.
12500         * config/sparc/t-leon: Likewise.
12501         * config/sparc/t-leon3: Likewise.
12502         * config/spu/t-spu-elf: Likewise.
12503         (DPBIT_FUNCS): Remove.
12504         * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
12505         * config/v850/t-v850: Likewise.
12506         * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
12507         (avr-*-*): Likewise.
12508         (h8300-*-rtems*): Set libgcc_tm_file.
12509         (h8300-*-elf*): Likewise.
12510         (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
12511         tmake_file.
12512         (powerpc-*-eabisim*): Likewise.
12513         (powerpc-*-elf*): Likewise.
12514         (powerpc-*-eabialtivec*): Likewise.
12515         (powerpc-xilinx-eabi*): Likewise.
12516         (powerpc-*-eabi*): Likewise.
12517         (powerpc-*-rtems*): Likewise.
12518         (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
12519         (powerpcle-*-elf*): Likewise.
12520         (powerpcle-*-eabisim*): Likewise.
12521         (powerpcle-*-eabi*): Likewise.
12522         (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
12523         (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
12524         * doc/fragments.texi (Target Fragment, Floating Point Emulation):
12525         Remove.
12526
12527 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12528
12529         * Makefile.in (UNWIND_H): Remove.
12530         (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
12531         ../libgcc/Makefile.in.
12532         (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
12533         (LIBUNWINDDEP): Remove.
12534         (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
12535         (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
12536         LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
12537         (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
12538         Don't copy $(UNWIND_H).
12539         * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
12540         * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
12541         * aclocal.m4: Regenerate.
12542         * configure: Regenerate.
12543         * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
12544         unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
12545         unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
12546         unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
12547         * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
12548         * config/arm/libunwind.S, config/arm/pr-support.c,
12549         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
12550         ../libgcc/config/arm.
12551         * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
12552         * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
12553         * config/frv/t-frv ($(T)frvbegin$(objext)): Use
12554         $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
12555         ($(T)frvend$(objext)): Likewise.
12556         * config/ia64/t-glibc (LIB2ADDEH): Remove.
12557         * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
12558         * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
12559         config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
12560         ../libgcc/config/ia64.
12561         * config/ia64/t-hpux (LIB2ADDEH): Remove.
12562         * config/ia64/t-ia64 (LIB2ADDEH): Remove.
12563         * config/ia64/t-vms (LIB2ADDEH): Remove.
12564         * config/ia64/vms.h (UNW_IVMS_MODE,
12565         MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
12566         * config/picochip/t-picochip (LIB2ADDEH): Remove.
12567         * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
12568         * config/rs6000/t-darwin (LIB2ADDEH): Remove.
12569         * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
12570         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
12571         $(srcdir)/../libgcc to refer to unwinder sources.
12572         * config/spu/t-spu-elf (LIB2ADDEH): Remove.
12573         * config/t-darwin (LIB2ADDEH): Remove.
12574         * config/t-freebsd (LIB2ADDEH): Remove.
12575         * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
12576         * config/t-libunwind-elf: Move to ../libgcc/config.
12577         * config/t-linux (LIB2ADDEH): Remove.
12578         * config/t-sol2 (LIB2ADDEH): Remove.
12579         * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
12580         * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
12581
12582 2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
12583
12584         * config/i386/i386.c (processor_alias_table): Add core-avx-i.
12585
12586         * doc/invoke.texi: Document core-avx-i.
12587
12588 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12589
12590         * tsystem.h (CONST_CAST2, CONST_CAST): Define.
12591
12592 2011-08-05  Ira Rosen  <ira.rosen@linaro.org>
12593
12594         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
12595         result of multiple results reduction when extracting the final
12596         value using scalar code.
12597
12598 2011-08-05  Richard Guenther  <rguenther@suse.de>
12599
12600         PR tree-optimization/49984
12601         * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
12602
12603 2011-08-05  Richard Guenther  <rguenther@suse.de>
12604
12605         * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
12606         return true for constant integer ranges.
12607         (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
12608         BIT_IOR_EXPR handling.
12609
12610 2011-08-04  Kai Tietz  <ktietz@redhat.com>
12611
12612         * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
12613         ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
12614
12615 2011-08-04  Ira Rosen  <ira.rosen@linaro.org>
12616
12617         * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
12618         pattern def statement, and its access macro.
12619         (NUM_PATTERNS): Set to 5.
12620         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
12621         pattern def statement.
12622         (vect_transform_loop): Likewise.
12623         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
12624         function vect_recog_over_widening_pattern ().
12625         (vect_operation_fits_smaller_type): New function.
12626         (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
12627         Likewise.
12628         (vect_pattern_recog_1): Move the code that marks pattern
12629         statements to vect_mark_pattern_stmts (), and call it.  Update
12630         documentation.
12631         * tree-vect-stmts.c (vect_supportable_shift): New function.
12632         (vect_analyze_stmt): Handle pattern def statement.
12633         (new_stmt_vec_info): Initialize pattern def statement.
12634
12635 2011-08-04  Richard Henderson  <rth@redhat.com>
12636
12637         PR target/49964
12638         * config/i386/i386.c (ix86_expand_call): Don't create nested
12639         PARALLELs for TARGET_VZEROUPPER.
12640         (ix86_split_call_vzeroupper): Fix extraction of the original call.
12641         * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
12642         recognize nested PARALLELs.
12643         (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
12644         *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
12645         *sibcall_value_pop_vzeroupper): Likewise.
12646
12647 2011-08-04  Richard Henderson  <rth@redhat.com>
12648
12649         PR middle-end/49968
12650         * calls.c (expand_call): Use fixup_args_size_notes for
12651         emit_stack_restore.
12652         * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
12653         in non-standard modes.
12654
12655 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
12656
12657         * gcc.c (self_spec): New variable.
12658         (static_specs): Add self_spec.
12659         (main): Call do_self_spec on "self_spec" specs after reading
12660         user specs files.  Move compare_debug handling right after that.
12661
12662 2011-08-04  Richard Guenther  <rguenther@suse.de>
12663
12664         * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
12665         (value_range_nonnegative_p): New function.
12666         (ssa_name_nonnegative_p): Use it.
12667         (value_range_constant_singleton): New function.
12668         (op_with_constant_singleton_value_range): Use it.
12669         (extract_range_from_binary_expr_1): New function, split out from ...
12670         (extract_range_from_binary_expr): ... this.  Remove fallback
12671         constant folding done here.
12672
12673 2011-08-04  Richard Guenther  <rguenther@suse.de>
12674
12675         PR tree-optimization/49806
12676         * tree-vrp.c (op_with_boolean_value_range_p): New function.
12677         (simplify_truth_ops_using_ranges): Simplify.  Allow inserting
12678         a new statement for a final conversion to bool.
12679
12680 2011-08-04  Romain Geissler  <romain.geissler@gmail.com>
12681
12682         * gengtype-state.c: Include "bconfig.h" if
12683         GENERATOR_FILE is defined, "config.h" otherwise.
12684         * gengtype.c: Likewise.
12685         * gengtype-lex.l: Likewise.
12686         * gengtype-parse.c: Likewise.
12687         * Makefile.in (gengtype-lex.o-warn): New variable.
12688         (plugin_resourcesdir): Likewise.
12689         (plugin_bindir): Likewise.
12690         (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
12691         (MOSTLYCLEANFILES): Add gengtype$(exeext).
12692         (native): Depend on gengtype$(exeext) is $enable_plugin
12693         is set to "yes".
12694         (gtype.state): Depend on s-gtype. Use temporary file.
12695         (gengtype-lex.o): New rule.
12696         (gengtype-parse.o): Likewise.
12697         (gengtype-state.o): Likewise.
12698         (gengtype$(exeext)): Likewise.
12699         (install-gengtype): Likewise.
12700         (gengtype.o): Likewise.
12701         (build/gengtype.o): Depend on version.h.
12702         (build/gengtype-state): Depend on double-int.h, version.h,
12703         $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
12704         (install-plugin): Depend on install-gengtype.
12705
12706 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
12707
12708         PR middle-end/49905
12709         * tree.h (init_attributes): New prototype.
12710         * attribs.c (init_attributes): No longer static.
12711
12712 2011-08-04  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12713
12714         * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
12715         maybe_suffix.
12716
12717 2011-08-03   David Li  <davidxl@google.com>
12718
12719         * tree-optimize.c (execute_fixup_cfg): Fix up entry
12720         outgoing edge counts after inlining.
12721
12722 2011-08-03   David Li  <davidxl@google.com>
12723
12724         * profile.c (compute_branch_probabilities): Compute
12725         function frequency after profile annotation.
12726
12727 2011-08-04  Alan Modra  <amodra@gmail.com>
12728
12729         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
12730         use_backchain_to_restore_sp initialisation.
12731         (rs6000_legitimate_offset_address_p): Simplify offset test.
12732
12733 2011-08-03  Richard Henderson  <rth@redhat.com>
12734
12735         * config/spu/spu.md: Use define_c_enum instead of define_constants.
12736         (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
12737         (UNSPECV_NOP): New.
12738
12739 2011-08-03  Richard Henderson  <rth@redhat.com>
12740
12741         PR target/34888
12742         * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
12743
12744 2011-08-03  Jakub Jelinek  <jakub@redhat.com>
12745
12746         PR tree-optimization/49948
12747         * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
12748
12749 2011-08-03  Anatoly Sokolov  <aesok@post.ru>
12750
12751         * config/m32c/m32c.c (class_sizes): Remove.
12752         (reduce_class): Change arguments and return type to reg_class_t.
12753         Change type cc var to HARD_REG_SET. Change type best var to
12754         reg_class_t. Change type best_size var to unsigned int. Remove
12755         initialization class_sizes var. Use reg_class_size array instead
12756         of class_sizes. Use reg_class_contents array instead
12757         of class_contents.
12758
12759 2011-08-03  Richard Guenther  <rguenther@suse.de>
12760
12761         PR middle-end/49958
12762         * fold-const.c (fold_binary_loc): Only associate
12763         (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
12764         overflow wraps.
12765
12766 2011-08-03  Alan Modra  <amodra@gmail.com>
12767
12768         PR rtl-optimization/49941
12769         * jump.c (mark_jump_label): Comment.
12770         (mark_jump_label_1): Set JUMP_LABEL for return jumps.
12771         * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
12772         (mark_used_flags): Don't mark RETURN.
12773
12774 2011-08-03  Richard Guenther  <rguenther@suse.de>
12775
12776         PR tree-optimization/49938
12777         * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
12778         deal with a POLYNOMIAL_CHREC.
12779
12780 2011-08-03  Revital Eres  <revital.eres@linaro.org>
12781
12782         * modulo-sched.c (calculate_stage_count,
12783         calculate_must_precede_follow, get_sched_window,
12784         try_scheduling_node_in_cycle, remove_node_from_ps): Add
12785         declaration.
12786         (update_node_sched_params, set_must_precede_follow, optimize_sc):
12787         New functions.
12788         (reset_sched_times): Call update_node_sched_params.
12789         (sms_schedule): Call optimize_sc.
12790         (get_sched_window): Change function arguments.
12791         (sms_schedule_by_order): Update call to get_sched_window.
12792         Call set_must_precede_follow.
12793         (calculate_stage_count): Add function argument.
12794
12795 2011-08-02  Richard Henderson  <rth@redhat.com>
12796
12797         PR target/49864
12798         PR target/49879
12799         * reg-notes.def (REG_ARGS_SIZE): New.
12800         * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
12801         (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
12802         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
12803         different stack levels.
12804         * combine-stack-adj.c (adjust_frame_related_expr): Remove.
12805         (maybe_move_args_size_note): New.
12806         (combine_stack_adjustments_for_block): Use it.
12807         * combine.c (distribute_notes): Place REG_ARGS_SIZE.
12808         * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
12809         (dw_trace_info): Add beg_true_args_size, end_true_args_size,
12810         beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
12811         (cur_cfa): New.
12812         (queued_args_size): Remove.
12813         (add_cfi_args_size): Assert size is non-negative.
12814         (stack_adjust_offset, dwarf2out_args_size): Remove.
12815         (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
12816         (notice_args_size, notice_eh_throw): New.
12817         (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
12818         (dwarf2out_frame_debug_adjust_cfa): Likewise.
12819         (dwarf2out_frame_debug_cfa_offset): Likewise.
12820         (dwarf2out_frame_debug_expr): Likewise.  Don't stack_adjust_offset.
12821         (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
12822         (change_cfi_row): Don't emit args_size.
12823         (maybe_record_trace_start_abnormal): Split out from ...
12824         (maybe_record_trace_start): Here.  Set args_size_undefined.
12825         (create_trace_edges): Update to match.
12826         (scan_trace): Handle REG_ARGS_SIZE.
12827         (connect_traces): Connect args_size between EH insns.
12828         * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
12829         * explow.c (suppress_reg_args_size): New.
12830         (adjust_stack_1): Split out from ...
12831         (adjust_stack): ... here.
12832         (anti_adjust_stack): Use it.
12833         (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
12834         * expr.c (mem_autoinc_base): New.
12835         (fixup_args_size_notes): New.
12836         (emit_single_push_insn_1): Rename from emit_single_push_insn.
12837         (emit_single_push_insn): New.  Generate REG_ARGS_SIZE.
12838         * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
12839         * reload1.c (reload_as_needed): Likewise.
12840         * rtl.h (fixup_args_size_notes): Declare.
12841
12842 2011-08-02  Paolo Carlini  <paolo.carlini@oracle.com>
12843
12844         PR bootstrap/49914
12845         * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
12846         of abs.
12847         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
12848         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
12849
12850 2011-08-02  Richard Henderson  <rth@redhat.com>
12851
12852         * config/h8300/h8300.c (push, pop): Return the insn.
12853         (h8300_swap_into_er6): Generate correct unwind info.
12854         (h8300_swap_out_of_er6): Likewise.
12855         * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
12856         complex cfa expression.
12857         (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
12858
12859 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
12860
12861         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
12862
12863 2011-08-02  Richard Henderson  <rth@redhat.com>
12864
12865         PR target/49878
12866         * config/h8300/h8300.c (h8300_move_ok): New.
12867         * config/h8300/h8300-protos.h: Declare it.
12868         * config/h8300/h8300.md (P): New mode iterator.
12869         (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
12870         (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
12871         (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
12872         (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
12873         (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
12874         and pushqi1_h8300hs_normal; use PRE_MODIFY and
12875         register_no_sp_elim_operand.
12876         (*pushhi1_h8300hs_<P>): Similarly.
12877         (pushqi1, pushhi1, pushhi1_h8300): Remove.
12878         * config/h8300/predicates.md (register_no_sp_elim_operand): New.
12879
12880 2011-08-02  Richard Henderson  <rth@redhat.com>
12881
12882         PR target/49881
12883         * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
12884
12885 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
12886
12887         * c-parser.c (enum c_parser_prec): New enum, moved from within
12888         c_parser_binary_expression.
12889         (c_parser_binary_expression): Add PREC argument.  Stop parsing
12890         if operator has lower or equal precedence than PREC.
12891         (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
12892         callers.
12893         (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
12894         Adjust c_finish_omp_atomic caller.
12895         (c_parser_omp_taskyield): New function.
12896         (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
12897         (c_parser_omp_clause_name): Handle final and mergeable clauses.
12898         (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
12899         functions.
12900         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
12901         and PRAGMA_OMP_CLAUSE_MERGEABLE.
12902         (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
12903         (c_parser_omp_clause_reduction): Handle min and max.
12904         * c-typeck.c (c_finish_omp_clauses): Don't complain about
12905         const qualified predetermined vars in firstprivate clause.
12906         andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
12907         Handle MIN_EXPR and MAX_EXPR.
12908         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
12909         and OMP_CLAUSE_MERGEABLE.
12910         (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
12911         and OMP_ATOMIC_CAPTURE_NEW.
12912         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
12913         OMP_CLAUSE_MERGEABLE.
12914         (omp_clause_code_name): Likewise.
12915         (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
12916         * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
12917         and OMP_CLAUSE_MERGEABLE.
12918         (OMP_CLAUSE_FINAL_EXPR): Define.
12919         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
12920         OMP_CLAUSE_MERGEABLE.
12921         (expand_task_call): Likewise.
12922         (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
12923         (expand_omp_atomic_fetch_op): Handle cases where old or new
12924         value is needed afterwards.
12925         (expand_omp_atomic): Call expand_omp_atomic_load resp.
12926         expand_omp_atomic_store.
12927         * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
12928         OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
12929         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
12930         OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
12931         * tree-nested.c (convert_nonlocal_omp_clauses,
12932         convert_local_omp_clauses): Likewise.
12933         * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
12934         OMP_ATOMIC_CAPTURE_NEW): New.
12935         * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
12936         (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
12937         New inlines.
12938         * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
12939         * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
12940         OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
12941
12942 2011-08-02  Kai Tietz  <ktietz@redhat.com>
12943
12944         * gimple.c (canonicalize_cond_expr_cond): Handle cast from
12945         boolean-type.
12946         (ssa_forward_propagate_and_combine): Interprete result of
12947         forward_propagate_comparison.
12948         * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
12949         boolean-typed operands for comparisons.
12950
12951 2011-08-02  Georg-Johann Lay  <avr@gjlay.de>
12952
12953         * config/avr/libgcc.S: Gather related function in the
12954         same input section.
12955         (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
12956         __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
12957         references.
12958         (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
12959         __udivmodsi4, __divmodsi4, __prologue_saves__,
12960         __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
12961         __do_copy_data, __do_clear_bss, __do_global_ctors,
12962         __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
12963
12964 2011-08-02  Uros Bizjak  <ubizjak@gmail.com>
12965
12966         PR target/47766
12967         * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
12968         (stack_protect_test): The pattern compares ptr_mode value.
12969
12970 2011-08-02  Alan Modra  <amodra@gmail.com>
12971
12972         * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
12973         note for save_LR_around_toc_setup sequence.
12974
12975 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
12976
12977         * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
12978
12979 2011-08-01  Sebastian Pop  <sebastian.pop@amd.com>
12980             Joseph Myers  <joseph@codesourcery.com>
12981
12982         * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
12983         * hwint.c: Include diagnostic-core.h.
12984         (abs_hwi): New.
12985         (gcd): Moved here...
12986         (pos_mul_hwi): New.
12987         (mul_hwi): New.
12988         (least_common_multiple): Moved here...
12989         * hwint.h (gcd): ... from here.
12990         (least_common_multiple): ... from here.
12991         (HOST_WIDE_INT_MIN): New.
12992         (HOST_WIDE_INT_MAX): New.
12993         (abs_hwi): Declared.
12994         (gcd): Declared.
12995         (pos_mul_hwi): Declared.
12996         (mul_hwi): Declared.
12997         (least_common_multiple): Declared.
12998         * omega.c (check_pos_mul): Removed.
12999         (check_mul): Removed.
13000         (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
13001         mul_hwi instead of check_mul.
13002
13003 2011-08-01  Richard Henderson  <rth@redhat.com>
13004
13005         PR target/49881
13006         * config/avr/avr.h (PUSH_ROUNDING): New.
13007         * config/avr/avr.md (pushqi1): Rename from *pushqi.
13008         (*pushhi, *pushsi, *pushsf): Remove.
13009         (MPUSH): New mode iterator.
13010         (push<MPUSH>1): New expander.
13011
13012 2011-08-01  Anatoly Sokolov  <aesok@post.ru>
13013
13014         * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
13015         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
13016         * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
13017         mmix_preferred_output_reload_class): Remove.
13018         * config/mmix/mmix.c (mmix_preferred_reload_class,
13019         mmix_preferred_output_reload_class): Make static. Change rclass
13020         argument and return type to reg_class_t.
13021         (TARGET_PREFERRED_RELOAD_CLASS,
13022         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13023
13024 2011-08-01  Joern Rennecke  <joern.rennecke@embecosm.com>
13025
13026         * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
13027         handling.
13028
13029 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
13030
13031         PR target/47766
13032         * config/i386/i386.md (PTR): New.
13033         (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
13034         (stack_protect_test): Likewise.
13035         (stack_protect_set_<mode>): Replace ":P" with ":PTR".
13036         (stack_tls_protect_set_<mode>): Likewise.
13037         (stack_tls_protect_test_<mode>): Likewise.
13038
13039 2011-08-01  Uros Bizjak  <ubizjak@gmail.com>
13040
13041         PR target/49927
13042         * config/i386/i386.c (ix86_address_subreg_operand): New.
13043         (ix86_decompose_address): Use ix86_address_subreg_operand.
13044         (ix86_legitimate_address_p): Do not assert that subregs satisfy
13045         register_no_elim_operand in DImode.
13046
13047 2011-08-01  Ira Rosen  <ira.rosen@linaro.org>
13048
13049         PR tree-optimization/49926
13050         * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
13051         in a chain doesn't have uses both inside and outside the loop.
13052
13053 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
13054
13055         * config/avr/avr.h (mcu_type_s): Add errata_skip field.
13056         * config/avr/avr-devices.c (avr_mcu_types): Use it.
13057         * config/avr/avr-mcus.def (AVR_MCU): Use it.
13058         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
13059         define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
13060         * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
13061         Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
13062         to detect if XJMP must not be skipped.
13063
13064 2011-08-02  Alan Modra  <amodra@gmail.com>
13065
13066         * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
13067         Delete.
13068         * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
13069         (rs6000_emit_prologue): Don't prematurely return when
13070         TARGET_SINGLE_PIC_BASE.  Don't emit eh_frame info in
13071         save_toc_in_prologue case.
13072         (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
13073         calls_alloca.
13074
13075 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
13076
13077         * config/avr/avr-devices.c: Delete SVN property svn:executable.
13078         * config/avr/predicates.md: Ditto.
13079         * config/avr/driver-avr.c: Ditto.
13080         * config/avr/genopt.sh: Set SVN property svn:executable to *.
13081
13082 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
13083
13084         * calls.c (emit_library_call_value_1): Declare size only if
13085         BLOCK_REG_PADDING is defined.
13086
13087 2011-08-01  Kirill Yukhin  <kirill.yukhin@intel.com>
13088
13089         PR target/49547
13090         * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
13091         (x86_64-*-*): Likewise.
13092         * config/i386/i386.opt (mlzcnt): New.
13093         * config/i386/abmintrin.h: File removed.
13094         (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
13095         * config/i386/lzcntintrin.h: ... here.  New file.
13096         (__lzcnt): Rename to ...
13097         (__lzcnt32): ... this.
13098         * config/i386/bmiintrin.h (head): Update copyright year.
13099         (__lzcnt_u16): Removed.
13100         (__lzcnt_u32): Likewise.
13101         (__lzcnt_u64): Likewise.
13102         * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
13103         is defined, remove abmintrin.h.
13104         * config/i386/cpuid.h (bit_LZCNT): New.
13105         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
13106         LZCNT feature.
13107         * config/i386/i386-c.c (ix86_target_macros_internal): Define
13108         __LZCNT__ if needed.
13109         * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
13110         (ix86_option_override_internal): Handle LZCNT option.
13111         (ix86_valid_target_attribute_inner_p): Likewise.
13112         (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
13113         * config/i386/i386.h (TARGET_LZCNT): New.
13114         (CLZ_DEFINED_VALUE_AT_ZERO): Update.
13115         * config/i386/i386.md (clz<mode>2): Update insn constraint.
13116         (clz<mode>2_lzcnt): Likewise.
13117         * doc/invoke.texi: Mention -mlzcnt option.
13118         * doc/extend.texi: Likewise.
13119
13120 2011-08-01  Julian Brown  <julian@codesourcery.com>
13121
13122         * configure.ac (fixed-point): Add ARM support.
13123         * configure: Regenerate.
13124         * config/arm/arm.c (arm_fixed_mode_set): New struct.
13125         (arm_set_fixed_optab_libfunc): New.
13126         (arm_set_fixed_conv_libfunc): New.
13127         (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
13128         ARM-specific names.
13129         (aapcs_libcall_value): Return sub-word-size fixed-point libcall
13130         return values in SImode.
13131         (arm_return_in_msb): Return fixed-point types in the msb.
13132         (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
13133         upwards.
13134         (arm_scalar_mode_supported_p): Support fixed-point modes.
13135         (arm_vector_mode_supported_p): Support vector fixed-point modes.
13136         * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
13137         (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
13138         (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
13139         (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
13140         * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
13141         New mode iterators.
13142         (qaddsub_suf): New mode attribute.
13143         * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
13144         vector modes.
13145         * config/arm/predicates.md (sat_shift_operator): New predicate.
13146         * config/arm/arm-fixed.md: New.
13147         * config/arm/arm.md: Include arm-fixed.md.
13148         * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
13149
13150 2011-08-01  Julian Brown  <julian@codesourcery.com>
13151
13152         * calls.c (emit_library_call_value_1): Support padding for libcall
13153         arguments and return values.
13154         * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
13155         downwards in big-endian mode.
13156
13157 2011-08-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13158
13159         PR debug/49887
13160         * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
13161         * config/sol2-protos.h: Likewise.
13162         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
13163         solaris_code_end.
13164         * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
13165         * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
13166         solaris_file_end.
13167         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
13168
13169 2011-08-01  Julian Brown  <julian@codesourcery.com>
13170
13171         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
13172
13173 2011-08-01  Julian Brown  <julian@codesourcery.com>
13174
13175         * final.c (output_addr_const): Print fixed-point constants as
13176         decimal not hex.
13177
13178 2011-08-01  Richard Guenther  <rguenther@suse.de>
13179
13180         * stor-layout.c (initialize_sizetypes): Properly sign-extend
13181         bitsiztype TYPE_MAX_VALUE.
13182
13183 2011-08-01  Julian Brown  <julian@codesourcery.com>
13184
13185         * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
13186         comparison helpers.
13187
13188 2011-07-31  Richard Henderson  <rth@redhat.com>
13189
13190         * config/h8300/crti.asm: Add flags to .section directive.
13191         * config/h8300/crtn.asm: Likewise.
13192
13193 2011-07-31  Richard Henderson  <rth@redhat.com>
13194
13195         * stor-layout.c (initialize_sizetypes): Handle unsigned short.
13196         * tree.c (build_common_tree_nodes): Likewise.
13197
13198 2011-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
13199
13200         PR target/49880
13201         * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
13202         (divsi3_i1): Likewise.
13203
13204 2011-07-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13205
13206         PR tree-optimization/49749
13207         * tree-ssa-reassoc.c (get_rank): New forward declaration.
13208         (PHI_LOOP_BIAS): New macro.
13209         (phi_rank): New function.
13210         (loop_carried_phi): Likewise.
13211         (propagate_rank): Likewise.
13212         (get_rank): Add calls to phi_rank and propagate_rank.
13213
13214 2011-07-31  H.J. Lu  <hongjiu.lu@intel.com>
13215
13216         * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
13217         of TARGET_64BIT.
13218         (PTRDIFF_TYPE): Likewise.
13219
13220 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
13221
13222         PR target/49920
13223         * config/i386/i386.md (strset): Do not expand strset_singleop
13224         when %eax or $edi are fixed.
13225         (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
13226         (*strsetsi_1): Ditto.
13227         (*strsethi_1): Ditto.
13228         (*strsetqi_1): Ditto.
13229         (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
13230         (*rep_stossi): Ditto.
13231         (*rep_stosqi): Ditto.
13232         (*strlenqi_1): Ditto.
13233         (cmpstrnsi): Also fail when %ecx is fixed.
13234         (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
13235         (*cmpstrnqi_1): Ditto.
13236         (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
13237         (*strmovsi_1): Ditto.
13238         (*strmovhi_1): Ditto.
13239         (*strmovqi_1): Ditto.
13240         (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
13241         (*rep_movsi): Ditto.
13242         (*rep_movqi): Ditto.
13243
13244 2011-07-31  Mikael Pettersson  <mikpe@it.uu.se>
13245
13246         PR target/47908
13247         * config/m68k/m68k.c (m68k_override_options_after_change): New function.
13248         Disable instruction scheduling for non-ColdFire targets.
13249         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
13250
13251 2011-07-31  Revital Eres  <revital.eres@linaro.org>
13252
13253         * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
13254         of anti-dep edge from a branch.
13255         (add_cross_iteration_register_deps): Create anti-dep edge from
13256         a branch.
13257
13258 2011-07-31  Revital Eres  <revital.eres@linaro.org>
13259
13260         * modulo-sched.c: Change comment.
13261         (reset_sched_times): Fix print message.
13262         (print_partial_schedule): Add print info.
13263
13264 2011-07-31  Tom de Vries  <tom@codesourcery.com>
13265
13266         PR middle-end/43513
13267         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
13268         get_object_alignment and TYPE_ALIGN.
13269
13270 2011-07-30  Tom de Vries  <tom@codesourcery.com>
13271
13272         PR middle-end/43513
13273         * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
13274         (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
13275
13276 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13277
13278         * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
13279         <sys/sbd.h>.
13280         (cpu_types): New array.
13281         (cputype): New function.
13282         (host_detect_local_cpu): Only define buf, f if !__sgi__.
13283         Use scaninvent instead of /proc/cpuinfo if __sgi__.
13284         * config.host: Also use driver-native.o, mips/x-native on
13285         mips-sgi-irix*.
13286         * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
13287         (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
13288         (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
13289
13290 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
13291
13292         PR middle-end/49897
13293         PR middle-end/49898
13294         * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
13295         in nested parallel and outer is a gimple_reg, mark it as addressable
13296         and set its bit in task_shared_vars bitmap too.
13297
13298 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
13299
13300         * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
13301
13302 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13303
13304         * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
13305         IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
13306         (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
13307         AMASK_LOCKPFTCHOK): Define.
13308         (host_detect_local_cpu): Remove buf, f, cpu_names.
13309         Define cpu_types, implver, amask.
13310         Use __builtin_alpha_implver, __builtin_alpha_amask to determine
13311         native CPU.
13312         * config.host: Also use driver-alpha.o, alpha/x-alpha on
13313         alpha*-dec-osf*.
13314         * config/alpha/osf5.h [__alpha__ || __alpha]
13315         (host_detect_local_cpu): Declare.
13316         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
13317         (DRIVER_SELF_SPECS): Define.
13318
13319 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
13320
13321         PR target/47715
13322         * config/i386/i386.md (*load_tp_x32): New.
13323         (*load_tp_x32_zext): Ditto.
13324         (*add_tp_x32): Ditto.
13325         (*add_tp_x32_zext): Ditto.
13326         (*load_tp_<mode>): Disable for TARGET_X32 targets.
13327         (*add_tp_<mode>): Ditto.
13328         * config/i386/i386.c (get_thread_pointer): Load thread pointer in
13329         ptr_mode and convert to Pmode if needed.
13330
13331 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
13332
13333         PR target/49687
13334         * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
13335         muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
13336         *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
13337         Add X to register footprint: Clobber r26/r27.
13338
13339 2011-07-29  Richard Guenther  <rguenther@suse.de>
13340
13341         * builtins.c (fold_builtin_signbit): Build the comparison
13342         with a proper type.
13343
13344 2011-07-29  Richard Guenther  <rguenther@suse.de>
13345
13346         PR tree-optimization/49893
13347         * tree-predcom.c (suitable_reference_p): Volatile references
13348         are not suitable.
13349
13350 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
13351
13352         PR target/49313
13353         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
13354         (__ctzsi2): Result for 0 may be undefined.
13355         (__ctzhi2): Result for 0 may be undefined.
13356         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
13357         (__popcountsi2): Ditto. And don't clobber r26.
13358         (__popcountdi2): Ditto. And don't clobber r27.
13359         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
13360         (parityhi2): New expand.
13361         (paritysi2): New expand.
13362         (popcounthi2): New expand.
13363         (popcountsi2): New expand.
13364         (clzhi2): New expand.
13365         (clzsi2): New expand.
13366         (ctzhi2): New expand.
13367         (ctzsi2): New expand.
13368         (ffshi2): New expand.
13369         (ffssi2): New expand.
13370         (copysignsf3): New insn.
13371         (bswapsi2): New expand.
13372         (*parityhi2.libgcc): New insn.
13373         (*parityqihi2.libgcc): New insn.
13374         (*paritysihi2.libgcc): New insn.
13375         (*popcounthi2.libgcc): New insn.
13376         (*popcountsi2.libgcc): New insn.
13377         (*popcountqi2.libgcc): New insn.
13378         (*popcountqihi2.libgcc): New insn-and-split.
13379         (*clzhi2.libgcc): New insn.
13380         (*clzsihi2.libgcc): New insn.
13381         (*ctzhi2.libgcc): New insn.
13382         (*ctzsihi2.libgcc): New insn.
13383         (*ffshi2.libgcc): New insn.
13384         (*ffssihi2.libgcc): New insn.
13385         (*bswapsi2.libgcc): New insn.
13386
13387 2011-07-29  Richard Guenther  <rguenther@suse.de>
13388
13389         * tree-vrp.c (get_value_range): Only set parameter default
13390         definitions to varying, leave others at undefined.
13391         (extract_range_from_binary_expr): Fix undefined handling.
13392         (vrp_visit_phi_node): Handle merged undefined state.
13393
13394 2011-07-29  Wei Guozhi  <carrot@google.com>
13395
13396         PR rtl-optimization/49799
13397         * combine.c (make_compound_operation): Check if the bit field is valid
13398         before change it to bit field extraction.
13399
13400 2011-07-29  Bernd Schmidt  <bernds@codesourcery.com>
13401
13402         PR rtl-optimization/49891
13403         * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
13404         newly created returnjumps.
13405
13406 2011-07-28  DJ Delorie  <dj@redhat.com>
13407
13408         * expr.c (expand_expr_addr_expr_1): Detect a user request for a
13409         local frame in a naked function, and produce a suitable error for
13410         that specific case.
13411
13412         * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
13413         registers to be reloaded in HI classes when the target is HI.
13414
13415 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
13416
13417         * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
13418         bound_one, bound_two.
13419
13420 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
13421
13422         PR middle-end/48648
13423         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
13424         CLAST assignments.
13425         (translate_clast): Same.
13426         (translate_clast_assignment): New.
13427
13428 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
13429
13430         PR tree-optimization/49876
13431         * sese.c (rename_uses): Do not return false on gloog_error: set
13432         the new_expr to integer_zero_node and continue code generation.
13433         (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
13434
13435 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
13436
13437         PR debug/49846
13438         * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
13439         arguments also check if they aren't initialized with a MODE_INT
13440         mode of the same size.
13441
13442 2011-07-28  Aldy Hernandez  <aldyh@redhat.com>
13443
13444         * expr.c (get_bit_range): Handle *MEM_REF's.
13445
13446 2011-07-28  Bernd Schmidt  <bernds@codesourcery.com>
13447
13448         * rtlanal.c (tablejump_p): False for returns.
13449         * reorg.c (first_active_target_insn): New static function.
13450         (find_end_label): Set JUMP_LABEL for a new returnjump.
13451         (optimize_skip, get_jump_flags, rare_destination,
13452         mostly_true_jump, get_branch_condition,
13453         steal_delay_list_from_target, own_thread_p,
13454         fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
13455         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
13456         dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
13457         * jump.c (delete_related_insns): Likewise.
13458         (jump_to_label_p): New function.
13459         (redirect_target): New static function.
13460         (redirect_exp_1): Use it.  Adjust to handle ret_rtx in JUMP_LABELS.
13461         (redirect_jump_1): Assert that the new label is nonnull.
13462         (redirect_jump): Likewise.
13463         (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
13464         * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
13465         exit block.
13466         (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE.  All callers
13467         changed.  Ensure that the right label is passed to redirect_jump.
13468         * function.c (emit_return_into_block,
13469         thread_prologue_and_epilogue_insns): Ensure new returnjumps have
13470         ret_rtx in their JUMP_LABEL.
13471         * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
13472         * emit-rtl.c (skip_consecutive_labels): Allow the caller to
13473         pass ret_rtx as label.
13474         * cfglayout.c (fixup_reorder_chain): Use
13475         force_nonfallthru_and_redirect rather than force_nonfallthru.
13476         (duplicate_insn_chain): Copy JUMP_LABELs for returns.
13477         * rtl.h (ANY_RETURN_P): New macro.
13478         (jump_to_label_p): Declare.
13479         * resource.c (find_dead_or_set_registers): Handle ret_rtx in
13480         JUMP_LABELs.
13481         (mark_target_live_regs): Likewise.
13482         * basic-block.h (force_nonfallthru_and_redirect): Declare.
13483         * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
13484         * config/alpha/alpha.c (alpha_tablejump_addr_vec,
13485         alpha_tablejump_best_label): Remove functions.
13486         * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
13487         alpha_tablejump_best_label): Remove declarations.
13488         * config/sh/sh.c (barrier_align, split_branches): Adjust for
13489         ret_rtx in JUMP_LABELs.
13490         * config/arm/arm.c (is_jump_table): Likewise.
13491
13492 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
13493
13494         * config/i386/predicates.md (pic_32bit_opreand): Do not define as
13495         special predicate.  Remove explicit mode checks.
13496
13497 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
13498
13499         * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
13500         DW_AT_data_member_location containing just DW_OP_plus_uconst.
13501
13502         PR debug/49871
13503         * dwarf2out.c (size_of_die, value_format, output_die): Use
13504         DW_FORM_udata instead of DW_FORM_data[48] for
13505         dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
13506
13507 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
13508
13509         * config/i386/i386.md (*tls_global_dynamic_64): Update
13510         length attribute.
13511
13512 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
13513
13514         PR target/47715
13515         * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
13516         tls_symbolic_operand check.  Update code sequence for TARGET_X32.
13517         (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
13518         (tls_dynamic_gnu2_64): Ditto.
13519         (*tls_dynamic_gnu2_lea_64): Ditto.
13520         (*tls_dynamic_gnu2_call_64): Ditto.
13521         (*tls_dynamic_gnu2_combine_64): Ditto.
13522
13523 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
13524
13525         * config.gcc: Set need_64bit_hwint to yes for x86 targets.
13526
13527 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
13528
13529         PR target/47364
13530         * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
13531
13532 2011-07-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13533
13534         * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
13535         before the core constraints. Adjust attributes.
13536         ("*thumb2_movdf_vfp"): Likewise.
13537
13538 2011-07-28  Kai Tietz  <ktietz@redhat.com>
13539
13540         * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
13541         (simplify_truth_ops_using_ranges): Likewise.
13542         (build_assert_expr_for): Likewise.
13543         (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
13544         and handle BIT_NOT_EXPR for truth-operation.
13545
13546 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
13547
13548         PR target/49313
13549         Undo r176835 from trunk
13550         2011-07-27  Georg-Johann Lay
13551
13552 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
13553
13554         PR target/49687
13555         * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
13556         Add _muluhisi3, _mulshisi3, _usmulhisi3.
13557         * config/avr/libgcc.S (__mulsi3): Rewrite.
13558         (__mulhisi3): Rewrite.
13559         (__umulhisi3): Rewrite.
13560         (__usmulhisi3): New.
13561         (__muluhisi3): New.
13562         (__mulshisi3): New.
13563         (__mulohisi3): New.
13564         (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
13565         declare.
13566         * config/avr/predicates.md (pseudo_register_operand): Rewrite.
13567         (pseudo_register_or_const_int_operand): New.
13568         (combine_pseudo_register_operand): New.
13569         (u16_operand): New.
13570         (s16_operand): New.
13571         (o16_operand): New.
13572         * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
13573         * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
13574         (any_extend, any_extend2): New code iterators.
13575         (extend_prefix): New code attribute.
13576         (mulsi3): Rewrite. Turn insn to expander.
13577         (mulhisi3): Ditto.
13578         (umulhisi3): Ditto.
13579         (usmulhisi3): New expander.
13580         (*mulsi3): New insn-and-split.
13581         (mulu<mode>si3): New insn-and-split.
13582         (muls<mode>si3): New insn-and-split.
13583         (mulohisi3): New insn-and-split.
13584         (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
13585         *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
13586         *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
13587         *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
13588         insn-and-split.
13589         (*mulsi3_call): Rewrite.
13590         (*mulhisi3_call): Rewrite.
13591         (*umulhisi3_call): Rewrite.
13592         (*usmulhisi3_call): New insn.
13593         (*muluhisi3_call): New insn.
13594         (*mulshisi3_call): New insn.
13595         (*mulohisi3_call): New insn.
13596         (extendqihi2): Use combine_pseudo_register_operand as predicate
13597         for operand 1.
13598         (extendqisi2): Ditto.
13599         (zero_extendqihi2): Ditto.
13600         (zero_extendqisi2): Ditto.
13601         (zero_extendhisi2): Ditto.
13602         (extendhisi2): Ditto. Don't early-clobber operand 0.
13603
13604 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
13605
13606         * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
13607
13608 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
13609
13610         PR tree-optimization/49471
13611         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
13612         iv only when the largest type is unsigned.  Do not call
13613         lang_hooks.types.type_for_size.
13614
13615 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
13616
13617         PR middle-end/45450
13618         * graphite-poly.c (apply_poly_transforms): Disable legality check
13619         after an openscop read.
13620
13621 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
13622
13623         PR middle-end/47691
13624         * graphite-clast-to-gimple.c (translate_clast_user): Update use of
13625         copy_bb_and_scalar_dependences.
13626         * sese.c (rename_uses): Do not call gcc_assert.  Set gloog_error.
13627         (graphite_copy_stmts_from_block): Update call to rename_uses.
13628         (copy_bb_and_scalar_dependences): Update call to
13629         graphite_copy_stmts_from_block.
13630         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
13631
13632 2011-07-27  Georg-Johann Lay  <avr@gjlay.de>
13633
13634         PR target/49313
13635         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
13636         (__ctzsi2): Result for 0 may be undefined.
13637         (__ctzhi2): Result for 0 may be undefined.
13638         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
13639         (__popcountsi2): Ditto. And don't clobber r26.
13640         (__popcountdi2): Ditto. And don't clobber r27.
13641         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
13642         (parityhi2): New expand.
13643         (paritysi2): New expand.
13644         (popcounthi2): New expand.
13645         (popcountsi2): New expand.
13646         (clzhi2): New expand.
13647         (clzsi2): New expand.
13648         (ctzhi2): New expand.
13649         (ctzsi2): New expand.
13650         (ffshi2): New expand.
13651         (ffssi2): New expand.
13652         (copysignsf3): New insn.
13653         (bswapsi2): New expand.
13654         (*parityhi2.libgcc): New insn.
13655         (*parityqihi2.libgcc): New insn.
13656         (*paritysihi2.libgcc): New insn.
13657         (*popcounthi2.libgcc): New insn.
13658         (*popcountsi2.libgcc): New insn.
13659         (*popcountqi2.libgcc): New insn.
13660         (*popcountqihi2.libgcc): New insn-and-split.
13661         (*clzhi2.libgcc): New insn.
13662         (*clzsihi2.libgcc): New insn.
13663         (*ctzhi2.libgcc): New insn.
13664         (*ctzsihi2.libgcc): New insn.
13665         (*ffshi2.libgcc): New insn.
13666         (*ffssihi2.libgcc): New insn.
13667         (*bswapsi2.libgcc): New insn.
13668
13669 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
13670
13671         * config/i386/i386.c (ix86_expand_move): Do not explicitly check
13672         the mode of symbolic_opreand RTXes.
13673
13674 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
13675
13676         * config/i386/predicates.md (x86_64_movabs_operand): Return false
13677         for pic_32bit_operand RTXes.
13678         * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
13679         in DImode.
13680
13681 2011-07-27  Kai Tietz  <ktietz@redhat.com>
13682
13683         * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
13684         for 32-bit, too.
13685         (ix86_handle_abi_attribute): Allow function attributes
13686         ms_abi/sysv_abi in 32-bit mode, too.
13687         * doc/extend.texi: Adjust attribute documentation.
13688
13689         * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
13690         expression handling.
13691         (and_var_with_comparison_1): Likewise.
13692
13693 2011-07-27  Aldy Hernandez  <aldyh@redhat.com>
13694
13695         * params.h (ALLOW_STORE_DATA_RACES): New.
13696         * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
13697         * Makefile.in (expr.o): Depend on PARAMS_H.
13698         * machmode.h (get_best_mode): Add argument.
13699         * fold-const.c (optimize_bit_field_compare): Add argument to
13700         get_best_mode.
13701         (fold_truthop): Same.
13702         * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
13703         * expr.c (emit_group_store): Same.
13704         (copy_blkmode_from_reg): Same.
13705         (write_complex_part): Same.
13706         (optimize_bitfield_assignment_op): Add argument.
13707         Add argument to get_best_mode.
13708         (get_bit_range): New.
13709         (expand_assignment): Calculate maxbits and pass it down accordingly.
13710         (store_field): New argument.
13711         (expand_expr_real_2): New argument to store_field.  Include params.h.
13712         * expr.h (store_bit_field): New argument.
13713         * stor-layout.c (get_best_mode): Restrict mode expansion by taking
13714         into account maxbits.
13715         * calls.c (store_unaligned_arguments_into_pseudos): New argument
13716         to store_bit_field.
13717         * expmed.c (store_bit_field_1): New argument.  Use it.
13718         (store_bit_field): Same.
13719         (store_fixed_bit_field): Same.
13720         (store_split_bit_field): Same.
13721         (extract_bit_field_1): Pass new argument to get_best_mode.
13722         (extract_bit_field): Same.
13723         * stmt.c (store_bit_field): Pass new argument to store_bit_field.
13724         * doc/invoke.texi: Document parameter allow-store-data-races.
13725
13726 2011-07-27  Jakub Jelinek  <jakub@redhat.com>
13727
13728         * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
13729
13730 2011-07-27  Kai Tietz  <ktietz@redhat.com>
13731
13732         * tree-vrp.c (extract_range_from_binary_expr): Remove
13733         TRUTH-binary cases and add new bitwise-cases.
13734         (extract_range_from_assignment): Likewise.
13735         (register_edge_assert_for_1): Likeiwise.
13736         (register_edge_assert_for): Likewise.
13737         (simplify_truth_ops_using_ranges): Likewise.
13738         (simplify_stmt_using_ranges): Likewise.
13739
13740 2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
13741
13742         PR target/47372
13743         * config/i386/i386.c (ix86_delegitimize_address): Call
13744         simplify_gen_subreg for PIC with mode of x only if modes of
13745         x and orig_x are different.
13746
13747 2011-07-26  Jakub Jelinek  <jakub@redhat.com>
13748
13749         * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
13750         to GC allocated copy of the string.
13751         (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
13752         before .debug_line, not after it.
13753
13754 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
13755
13756         PR middle-end/47046
13757         * tree-chrec.h (evolution_function_is_affine_p): Recursively call
13758         evolution_function_is_affine_p on CHREC_RIGHT.
13759
13760 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
13761
13762         * tree-data-ref.c (max_stmt_executions_tree): Do not call
13763         lang_hooks.types.type_for_size.
13764
13765 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
13766
13767         PR middle-end/47653
13768         * graphite-scop-detection.c (graphite_can_represent_loop): Discard
13769         loops using wrapping semantics.
13770
13771 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
13772
13773         PR middle-end/48805
13774         * tree-scalar-evolution.c (instantiate_scev_r): Return
13775         chrec_dont_know for ADDR_EXPR.
13776
13777 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
13778             H.J. Lu  <hongjiu.lu@intel.com>
13779
13780         PR target/47369
13781         PR target/49853
13782         * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
13783         if legitimize_tls_address returned operand in wrong mode. Allow
13784         SImode and DImode symbolic operand for PIC.  Call convert_to_mode
13785         if legitimize_pic_address returned operand in wrong mode.
13786
13787 2011-07-26  Martin Jambor  <mjambor@suse.cz>
13788
13789         * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
13790         return false for invariants.
13791
13792 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
13793
13794         * config/i386/i386.md (add->lea splitter): Implement using SWI
13795         mode iterator.  Change operand 2 predicate to <nonmemory_operand>.
13796         (add->lea zext splitter): Change operand 2 predicate to
13797         x86_64_nonmemory_operand.
13798
13799 2011-07-26  Richard Guenther  <rguenther@suse.de>
13800
13801         * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
13802         frequency makes everything hot.
13803
13804 2011-07-26  Richard Guenther  <rguenther@suse.de>
13805
13806         PR tree-optimization/49840
13807         * tree-vrp.c (range_fits_type_p): Properly handle full
13808         double-int precision.
13809
13810 2011-07-26  Martin Jambor  <mjambor@suse.cz>
13811
13812         PR bootstrap/49786
13813         * ipa-cp.c (update_profiling_info): Avoid overflow when updating
13814         counts.
13815         (update_specialized_profile): Likewise.
13816
13817 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
13818             H.J. Lu  <hongjiu.lu@intel.com>
13819
13820         PR target/47381
13821         PR target/49832
13822         PR target/49833
13823         * config/i386/i386.md (i): Change SImode attribute to "e".
13824         (g): Change SImode attribute to "rme".
13825         (di): Change SImode attribute to "nF".
13826         (general_operand): Change SImode attribute to x86_64_general_operand.
13827         (general_szext_operand): Change SImode attribute to
13828         x86_64_szext_general_operand.
13829         (immediate_operand): Change SImode attribute to
13830         x86_64_immediate_operand.
13831         (nonmemory_operand): Change SImode attribute to
13832         x86_64_nonmemory_operand.
13833         (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
13834         (*movsi_internal): Ditto.  Use "e" constraint in alternative 2.
13835         (*lea_1): Use SWI48 mode iterator.
13836         (*lea_1_zext): New insn pattern.
13837         (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
13838         (*bt<mode>): Ditto.
13839         (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
13840         Update operand constraints.
13841         (addsi_1_zext): Ditto.
13842         (*add<mode>2): Ditto.
13843         (*addsi_3_zext): Ditto.
13844         (*subsi_1_zext): Ditto.
13845         (*subsi_2_zext): Ditto.
13846         (*subsi_3_zext): Ditto.
13847         (*addsi3_carry_zext): Ditto.
13848         (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
13849         (*mulsi3_1_zext): Ditto.
13850         (*andsi_1): Ditto.
13851         (*andsi_1_zext): Ditto.
13852         (*andsi_2_zext): Ditto.
13853         (*<any_or:code>si_1_zext): Ditto.
13854         (*<any_or:code>si_2_zext): Ditto.
13855         (*test<mode>_1): Use <general_operand> predicate for operand 1.
13856         (*and<mode>_2): Ditto.
13857         (mov<mode>cc): Use  <general_operand> predicate for operands 1 and 2.
13858         (add->lea splitter): Check operand modes in insn constraint.  Extend
13859         operands less than SImode wide to SImode.
13860         (add->lea zext splitter): Do not extend input operands to DImode.
13861         (*lea_general_1): Handle only QImode and HImode operands.
13862         (*lea_general_2): Ditto.
13863         (*lea_general_3): Ditto.
13864         (*lea_general_1_zext): Remove.
13865         (*lea_general_2_zext): Ditto.
13866         (*lea_general_3_zext): Ditto.
13867         (*lea_general_4): Check operand modes in insn constraint.  Extend
13868         operands less than SImode wide to SImode.
13869         (ashift->lea splitter): Ditto.
13870         * config/i386/i386.c (ix86_print_operand_address): Print address
13871         registers with 'q' modifier on 64bit targets.
13872         * config/i386/predicates.md (pic_32bit_opreand): Define as special
13873         predicate.  Reject non-SI and non-DI modes.
13874
13875 2011-07-25  Andrew Pinski  <apinski@cavium.com>
13876
13877         PR tree-opt/49671
13878         * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
13879         TREE_THIS_NOTRAP into the inner most MEM_REF.
13880         Always copy TREE_THIS_VOLATILE.
13881         * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
13882         arguments are not volatile references.
13883
13884 2011-07-25  Richard Henderson  <rth@redhat.com>
13885
13886         * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
13887         * final.c (final_scan_insn): Don't test for it.
13888         (rest_of_clean_state): Likewise.
13889
13890 2011-07-25  Richard Henderson  <rth@redhat.com>
13891
13892         PR debug/49841
13893         * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
13894         (emit_frame_save): Likewise.
13895         (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
13896         insn onto a dummy blockage insn after the join label.
13897
13898 2011-07-25  Richard Henderson  <rth@redhat.com>
13899
13900         * dwarf2cfi.c (dw_trace_info): Add ID member.
13901         (get_trace_index): Remove.  Change users to use ID member.
13902         (before_next_cfi_note): New.
13903         (connect_traces): Remove unreachable traces before the main loop.
13904         Look across one trace and generate remember/restore_state if needed.
13905
13906 2011-07-25  Richard Henderson  <rth@redhat.com>
13907
13908         * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
13909
13910 2011-07-25  Joern Rennecke  <joern.rennecke@embecosm.com>
13911
13912         * genattr.c (write_upcase, gen_attr <enum definition writing>):
13913         Move to ...
13914         * genattr-common.c ... here.
13915         (main): Call gen_attr.
13916         * optc-gen.awk: Make generated program include insn-attr-common.h .
13917         * Makefile.in (oprions.o): Depend on insn-attr-common.h
13918
13919 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
13920
13921         * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
13922         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
13923         * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
13924         m32c_print_operand, m32c_print_operand_address): Remove.
13925         * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
13926         Change return type to bool. Change argument type to bool.
13927         (m32c_print_operand, m32c_print_operand_address): Make static.
13928         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
13929         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
13930
13931 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13932
13933         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
13934         attributes): Document mmap.
13935
13936 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
13937
13938         * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
13939         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
13940         * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
13941         mmix_print_operand, mmix_print_operand_address): Remove.
13942         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
13943         Change return type to bool. Change argument type to bool.
13944         (mmix_print_operand, mmix_print_operand_address): Make static.
13945         (mmix_intval, mmix_output_condition): Change 'x' argument type
13946         to const_rtx.
13947         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
13948         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
13949
13950 2011-07-25  Georg-Johann Lay  <avr@gjlay.de>
13951
13952         PR target/39386
13953         * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
13954         shift counter for x << x and x >> x shifts.
13955
13956 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13957
13958         PR target/47124
13959         * config.gcc: Reject *-*-solaris2 configuration.
13960
13961 2011-07-25  Richard Sandiford  <richard.sandiford@linaro.org>
13962
13963         PR tree-optimization/49809
13964         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
13965         gimple_get_lhs instead of gimple_assign_lhs.
13966
13967 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13968
13969         * system.h [__cplusplus]: Wrap C function declarations in extern "C".
13970
13971 2011-07-25  Richard Guenther  <rguenther@suse.de>
13972
13973         PR tree-optimization/49822
13974         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
13975         more.  Make sure to preserve stmts with side-effects.  Properly
13976         handle virtual defs, follow a longer def chain.
13977
13978 2011-07-22  Romain Geissler  <romain.geissler@gmail.com>
13979
13980         PR plugins/45348
13981         PR plugins/48425
13982         PR plugins/46577
13983         * Makefile.in: Do not flatten c-family directory when installing
13984         plugin headers.
13985
13986 2011-07-25  Eric Botcazou  <ebotcazou@adacore.com>
13987
13988         * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
13989         original nodes if we are dealing with virtual clones.
13990
13991 2011-07-25  Bernd Schmidt  <bernds@codesourcery.com>
13992
13993         * common/config/c6x/c6x-common.c: New file.
13994
13995 2011-07-25  Roman Zhuykov  <zhroma@ispras.ru>
13996
13997         * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
13998
13999 2011-07-25  Richard Guenther  <rguenther@suse.de>
14000
14001         PR tree-optimization/49715
14002         * tree-vrp.c: Include expr.h and optabs.h.
14003         (range_fits_type_): New function.
14004         (simplify_float_conversion_using_ranges): Likewise.
14005         (simplify_stmt_using_ranges): Call it.
14006         * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
14007         * optabs.c (can_float_p): Export.
14008         * optabs.h (can_float_p): Declare.
14009
14010 2011-07-25  Richard Guenther  <rguenther@suse.de>
14011
14012         * tree-vrp.c (num_vr_values, values_propagated): New global vars.
14013         (get_value_range): For out-of-range SSA names or names created
14014         after propagation return a read-only varying range.
14015         (dump_all_value_ranges): Adjust.
14016         (vrp_initialize): Likewise.
14017         (vrp_finalize): Likewise.
14018
14019 2011-07-24  Richard Henderson  <rth@redhat.com>
14020
14021         PR debug/49831
14022         * dwarf2cfi.c (connect_traces): Allow unvisited traces.  Skip
14023         them entirely.
14024
14025 2011-07-24  Richard Henderson  <rth@redhat.com>
14026
14027         PR debug/49825
14028         * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
14029         (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
14030
14031 2011-07-24  Richard Henderson  <rth@redhat.com>
14032
14033         PR debug/49827
14034         * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
14035
14036 2011-07-24  Richard Henderson  <rth@redhat.com>
14037
14038         * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
14039         Zero args_size for abnormal edges.  Adjust all callers.
14040
14041 2011-07-24  Richard Henderson  <rth@redhat.com>
14042
14043         PR debug/49825
14044         * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
14045
14046 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
14047
14048         PR bootstrap/49835
14049         * collect2.c (demangle_flag): Removed.
14050
14051 2011-07-24  Sandra Loosemore  <sandra@codesourcery.com>
14052
14053         * configure.ac (demangler_in_ld): Default to yes.
14054         * configure: Regenerated.
14055         * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
14056         mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
14057         --no-demangle options straight through to ld.  When
14058         HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
14059         way that has the intended effect on Windows.
14060
14061 2011-07-23  Richard Henderson  <rth@redhat.com>
14062
14063         * dwarf2cfi.c: Include basic-block.h.
14064         (dw_label_info): Remove.
14065         (trace_work_list, trace_index): New.
14066         (remember_row, emit_cfa_remember): Remove.
14067         (dw_trace_info_hash, dw_trace_info_eq): New.
14068         (get_trace_index, get_trace_info): New.
14069         (save_point_p): New.
14070         (free_cfi_row): Remove.
14071         (add_cfi): Do not emit DW_CFA_remember_state.
14072         (cfa_row_equal_p): New.
14073         (barrier_args_size): Remove.
14074         (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
14075         (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
14076         (maybe_record_trace_start, create_trace_edges, scan_trace): New.
14077         (dwarf2out_cfi_begin_epilogue): Remove.
14078         (dwarf2out_frame_debug_restore_state): Remove.
14079         (connect_traces, create_pseudo_cfg): New.
14080         (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
14081         * Makefile.in (dwarf2cfi.o): Update.
14082
14083 2011-07-23  Richard Henderson  <rth@redhat.com>
14084
14085         * dwarf2cfi.c (dw_trace_info): New.
14086         (dw_label_info): New.
14087         (cie_return_save): New.
14088         (cur_trace): New.
14089         (queued_args_size): Rename from args_size.  Update all users.
14090         (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
14091         (def_cfa_1): Use cur_trace instead of cfa_*.
14092         (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
14093         (clobbers_queued_reg_save, reg_saved_in): Likewise.
14094         (dwarf2out_frame_debug_expr): Likewise.
14095         (create_cie_data): Split out from ...
14096         (execute_dwarf2_frame): ... here.  Initialize cur_trace.
14097
14098 2011-07-23  Richard Henderson  <rth@redhat.com>
14099
14100         * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
14101         Update all users to match.
14102         (execute_dwarf2_frame): Free reg_saved_in_data.
14103
14104 2011-07-23  Richard Henderson  <rth@redhat.com>
14105
14106         * dwarf2cfi.c (queued_reg_save): Reorder for packing.  Don't GTY.
14107         (queued_reg_saves): Don't GTY.  Change to a VEC.
14108         (queue_reg_save): Update to match.
14109         (dwarf2out_flush_queued_reg_saves): Likewise.
14110         (clobbers_queued_reg_save): Likewise.
14111         (reg_saved_in): Likewise.
14112         (execute_dwarf2_frame): Free queued_reg_saves.
14113
14114 2011-07-23  Richard Henderson  <rth@redhat.com>
14115
14116         * dwarf2cfi.c (dw_cfi_row_ref): Remove.  Update all users.
14117
14118 2011-07-23  Richard Henderson  <rth@redhat.com>
14119
14120         * dwarf2cfi.c (add_cfi_args_size): Split out from...
14121         (dwarf2out_args_size): ... here.
14122         (add_cfi_restore): Split out from ...
14123         (dwarf2out_frame_debug_cfa_restore): ... here.
14124         (def_cfa_0): Split out from ...
14125         (def_cfa_1): ... here.
14126         (cfi_oprnd_equal_p, cfi_equal_p): New.
14127         (change_cfi_row): New.
14128         (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
14129         (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
14130         (output_cfis): Remove.
14131         * dwarf2out.c (output_fde): Simplify output_cfi loop.
14132         (dwarf2out_switch_text_section): Don't call output_cfis.
14133         (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
14134         * dwarf2out.h: Update decls.
14135         (enum dw_val_class): Add dw_val_class_none.
14136
14137 2011-07-23  Richard Henderson  <rth@redhat.com>
14138
14139         * dwarf2cfi.c (update_row_reg_save): New.
14140         (dwarf2out_frame_debug_cfa_expression): Use it.
14141         (dwarf2out_frame_debug_cfa_restore): Likewise.
14142         (reg_save): Likewise.  Do not emit DW_CFA_same_value.
14143
14144 2011-07-23  Richard Henderson  <rth@redhat.com>
14145
14146         * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
14147
14148 2011-07-23  Richard Henderson  <rth@redhat.com>
14149
14150         * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
14151         (cie_cfi_row): New.
14152         (new_cfi_row, copy_cfi_row, free_cfi_row): New.
14153         (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
14154         (cur_row, remember_row): New.
14155         (def_cfa_1): Use cur_row instead of the old_* variables.
14156         (dwarf2out_frame_debug_restore_state): Similarly.
14157         (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
14158         (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
14159         (dwarf2out_frame_debug_adjust_cfa): Likewise.
14160         (dwarf2out_frame_debug_cfa_offset): Likewise.
14161         (dwarf2out_frame_debug_expr): Likewise.
14162         (execute_dwarf2_frame): Set up cur_row.
14163         * dwarf2out.h (struct cfa_loc): Mark for GTY.
14164
14165 2011-07-23  Richard Henderson  <rth@redhat.com>
14166
14167         * basic-block.h (EDGE_PRESERVE): New.
14168         (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
14169         * bb-reorder.c: Include except.h.
14170         (fix_up_crossing_landing_pad): New.
14171         (find_rarely_executed_basic_blocks_and_crossing_edges): Place
14172         landing pads in the right partition.  Duplicate as necessary.
14173         (partition_hot_cold_basic_blocks): Fix up DF info after
14174         duplicating landing pads.
14175         * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
14176         * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
14177         is set properly.  Validate that EH edges are not CROSSING.
14178         * except.c (expand_dw2_landing_pad_for_region): Split out from ...
14179         (dw2_build_landing_pads): ... here.
14180         (convert_to_eh_region_ranges): Remove code to fixup crossing
14181         landing pads.
14182         * except.h (expand_dw2_landing_pad_for_region): Declare.
14183         * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
14184
14185 2011-07-23  Richard Earnshaw  <rearnsha@arm.com>
14186
14187         PR target/49816
14188         * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
14189
14190 2011-07-22  Jason Merrill  <jason@redhat.com>
14191
14192         * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
14193
14194 2011-07-22  Richard Henderson  <rth@redhat.com>
14195
14196         * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
14197
14198 2011-07-22  Richard Henderson  <rth@redhat.com>
14199
14200         * jump.c (maybe_propagate_label_ref): Split out of...
14201         (mark_all_labels): ... here.  Do not attempt label_ref
14202         propagation while in cfglayout mode.
14203
14204 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
14205
14206         * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
14207         (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
14208         (dwarf_attr_name): Handle DW_AT_GNU_macros.
14209         (dwarf2out_define): If the vector is empty and
14210         lineno is 0, emit a dummy entry first.
14211         (dwarf2out_undef): Likewise.  Remove redundant semicolon.
14212         (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
14213         optimize_macinfo_range): New functions.
14214         (output_macinfo): Use them.  If !dwarf_strict and .debug_str is
14215         mergeable, optimize longer strings using
14216         DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
14217         optimize longer sequences of define/undef ops from headers
14218         using DW_MACRO_GNU_transparent_include.  For !dwarf_strict
14219         emit a section headers.
14220         (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
14221         and macinfo_section_label to DEBUG_MACRO_SECTION
14222         resp. DEBUG_MACRO_SECTION_LABEL.
14223         (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
14224         instead of DW_AT_macro_info.
14225
14226         PR other/32998
14227         * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
14228         options.
14229         * dwarf2out.c: Include opts.h.
14230         (dchar_p): New typedef.  Define heap VEC for it.
14231         (producer_string): New variable.
14232         (gen_producer_string): New function.
14233         (gen_compile_unit_die): Use it.
14234         (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
14235         * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
14236         * doc/invoke.texi: Document -grecord-gcc-switches and
14237         -gno-record-gcc-switches, add a -grecord-gcc-switches reference
14238         to -frecord-gcc-switches description.
14239
14240 2011-07-22  Jason Merrill  <jason@redhat.com>
14241
14242         PR c++/30112
14243         * c-decl.c (c_linkage_bindings): Define.
14244
14245 2011-07-22  Eric Botcazou  <ebotcazou@adacore.com>
14246
14247         PR debug/49815
14248         * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
14249
14250 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
14251
14252         * config/i386/i386.c (ix86_option_override_internal): Disallow
14253         MS ABI in x32 mode.
14254         (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
14255         only for TARGET_LP64.
14256         (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
14257
14258 2011-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
14259
14260         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
14261         avoid warnings when GCC is built with a C++ compiler.
14262
14263 2011-07-22  Martin Jambor  <mjambor@suse.cz>
14264
14265         PR lto/49796
14266         * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
14267         if decl node is in another partition, call cgraph_get_node only once.
14268
14269 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
14270
14271         * config.gcc (x86_64-*-linux*): Set
14272         default_gnu_indirect_function to yes.
14273
14274 2011-07-22  Richard Guenther  <rguenther@suse.de>
14275
14276         PR tree-optimization/45819
14277         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
14278         preserve volatile and notrap flags.
14279
14280 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14281             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14282
14283         PR bootstrap/49794
14284         * configure.ac: Test AM_ICONV with CXX.
14285         * configure: Regenerate.
14286         * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
14287
14288 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14289
14290         PR bootstrap/49797
14291         * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
14292         (set_cloog_options): Use it.
14293
14294 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
14295
14296         PR c++/49756
14297         * gcc.c (main): Call stack_limit_increase (64MB).
14298         * toplev.c (toplev_main): Likewise.
14299
14300 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
14301
14302         * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
14303         instead of force_reg.
14304
14305 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
14306
14307         * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
14308         needed and use force_reg after convert.
14309         (ix86_expand_call): Likewise.
14310         (ix86_expand_special_args_builtin): Likewise.
14311         (ix86_expand_builtin): Likewise.
14312
14313 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
14314
14315         PR middle-end/47654
14316         PR middle-end/49649
14317         * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
14318         in parameter.  Initialize v1 and v2 based on the values returned
14319         by clast_name_to_lb_ub.
14320         (type_for_clast_red): Pass v1 and v2 in parameter, and set their
14321         values.
14322         (type_for_clast_bin): Same.
14323         (type_for_clast_expr): Same.
14324         (type_for_clast_eq): Update calls to type_for_clast_expr.
14325         (type_for_clast_for): Same.
14326         (build_iv_mapping): Same.
14327         * graphite-ppl.h (value_min): New.
14328
14329 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
14330
14331         * graphite-clast-to-gimple.c (type_for_interval): Generate signed
14332         types whenever possible.
14333
14334 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
14335
14336         * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
14337         and ub fields.
14338         (new_clast_name_index): Add lb and ub parameters.
14339         (free_clast_name_index): New.
14340         (clast_name_to_lb_ub): New.
14341         (save_clast_name_index): Add lb and ub parameters.
14342         (compute_bounds_for_param): New.
14343         (type_for_level): Removed.
14344         (type_for_clast_for): Removed level parameter.  Do not call
14345         type_for_level.
14346         (graphite_create_new_loop): Store the lb and ub for the clast_name
14347         of the iterator of the loop that has been generated.
14348         (graphite_create_new_loop_guard): Remove parameter level.
14349         (create_params_index): Store the lb and ub of each parameter.
14350         (gloog): Use free_clast_name_index.  Pass to create_params_index
14351         the current scop.
14352
14353 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
14354
14355         * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
14356         (max_precision_type): Inline max_signed_precision_type.
14357         (type_for_clast_red): Use max_precision_type.
14358         (type_for_clast_bin): Same.
14359         (type_for_clast_for): Same.
14360
14361 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
14362
14363         * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
14364         type_for_interval.
14365         (gcc_type_for_value): Renamed type_for_value.
14366         (gcc_type_for_clast_term): Renamed type_for_clast_term.
14367         (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
14368         (gcc_type_for_clast_red): Renamed type_for_clast_red.
14369         (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
14370         (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
14371         (graphite_translate_clast_equation): Update calls.
14372         (compute_type_for_level): Renamed type_for_level.
14373         (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
14374         (build_iv_mapping): Update calls.
14375         (graphite_create_new_loop_guard): Same.
14376
14377 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
14378
14379         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
14380         comment.
14381
14382 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
14383
14384         * graphite-clast-to-gimple.c (struct ivs_params): New.
14385         (clast_name_to_gcc): Use ivs_params to pass around parameters.
14386         (clast_to_gcc_expression): Same.
14387         (clast_to_gcc_expression_red): Same.
14388         (gcc_type_for_clast_term): Same.
14389         (gcc_type_for_clast_expr): Same.
14390         (gcc_type_for_clast_red): Same.
14391         (gcc_type_for_clast_bin): Same.
14392         (gcc_type_for_clast_eq): Same.
14393         (graphite_translate_clast_equation): Same.
14394         (graphite_create_guard_cond_expr): Same.
14395         (graphite_create_new_guard): Same.
14396         (graphite_create_new_loop): Same.
14397         (build_iv_mapping): Same.
14398         (translate_clast_user): Same.
14399         (graphite_create_new_loop_guard): Same.
14400         (translate_clast): Same.
14401         (translate_clast_for_loop): Same.
14402         (translate_clast_for): Same.
14403         (translate_clast_guard): Same.
14404         (initialize_cloog_names): Fix typo.
14405         (gloog): Initialize an ivs_params struct, pass it to translate_clast.
14406
14407 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
14408
14409         * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
14410         (new_clast_name_index): Add level parameter.
14411         (clast_name_to_level): New.
14412         (save_clast_name_index): Add level parameter.
14413         (newivs_to_depth_to_newiv): Removed.
14414         (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
14415         (graphite_create_new_loop): Add level parameter.  Pass level to
14416         save_clast_name_index.
14417         (translate_clast_for_loop): Pass level to graphite_create_new_loop.
14418         (create_params_index): Pass level to save_clast_name_index.
14419
14420 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
14421
14422         * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
14423         recompute type, lb, and ub.  Get them from...
14424         (graphite_create_new_loop_guard): ...here.  Pass in parameter
14425         pointers to type, lb, and ub.
14426         (translate_clast_for_loop): Update function calls.
14427         (translate_clast_for): Same.
14428
14429 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
14430
14431         * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
14432         psct_dynamic_dim.
14433         (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
14434         (gcc_type_for_iv_of_clast_loop): Update use of level.
14435         (gloog): Start counting nesting level from 0.
14436         * graphite-clast-to-gimple.h (get_scattering_level): Removed.
14437         * graphite-dependences.c (graphite_carried_dependence_level_k): Call
14438         psct_dynamic_dim on level.
14439
14440 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
14441
14442         * config/i386/i386.c (ix86_legitimize_address): Convert to
14443         Pmode if needed.
14444
14445 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
14446
14447         * config/i386/i386.c (function_value_64): Always return pointers
14448         in Pmode.
14449         (ix86_promote_function_mode): New.
14450         (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
14451
14452 2011-07-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14453
14454         PR tree-optimization/49749
14455         * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
14456         remove no-longer-used maxrank variable.
14457
14458 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
14459
14460         * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
14461
14462 2011-07-21  Jason Merrill  <jason@redhat.com>
14463
14464         * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
14465         * recog.h (struct insn_data_d): Check it instead of
14466         HAVE_DESIGNATED_INITIALIZERS.
14467         * genoutput.c (output_insn_data): Likewise.
14468
14469 2011-07-21  Richard Guenther  <rguenther@suse.de>
14470
14471         PR tree-optimization/49770
14472         * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
14473         valueized any operand.  Renamed from ...
14474         (valueize_refs): ... this.  New wrapper around valueize_refs_1.
14475         (valueize_shared_reference_ops_from_ref): Return whether we
14476         valueized any operand.
14477         (vn_reference_lookup): Only when we valueized any operand
14478         use the valueized reference for alias analysis.  Do not preserve
14479         the original reference tree in this case.
14480
14481 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
14482
14483         * config/i386/i386.c (ix86_decompose_address): Reject all but
14484         register operands and subregs of DImode hard registers in index.
14485
14486 2011-07-21  Kai Tietz  <ktietz@redhat.com>
14487
14488         * fold-const.c (fold_unary_loc): Preserve indirect
14489         comparison cast to none-boolean type.
14490         * tree-ssa.c (useless_type_conversion_p): Preserve cast
14491         from/to boolean-type.
14492         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
14493         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
14494         * tree-cfg.c (verify_gimple_comparison): Check result
14495         type of comparison expression.
14496         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
14497         of condition result and disallow type-cast sinking into comparison.
14498
14499 2011-07-21  Richard Guenther  <rguenther@suse.de>
14500
14501         * tree-ssa-forwprop.c (combine_conversions): Return whether
14502         we have to run cfg-cleanup.  Properly remove dead stmts.
14503         (ssa_forward_propagate_and_combine): Adjust.
14504
14505 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
14506
14507         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
14508
14509 2011-07-21  Kai Tietz  <ktietz@redhat.com>
14510
14511         * tree-ssa-propagate.c (substitute_and_fold): Use
14512         do_dce flag to deside, if BB's statements are scanned
14513         in last to first, or first to last order.
14514
14515 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
14516
14517         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
14518
14519 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
14520             Uros Bizjak  <ubizjak@gmail.com>
14521             Richard Henderson  <rth@redhat.com>
14522
14523         * config/i386/constraints.md (w): New.
14524
14525         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
14526         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
14527
14528         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
14529         instead of TARGET_64BIT.
14530
14531         * config/i386/i386.md (indirect_jump): Replace
14532         nonimmediate_operand with indirect_branch_operand.
14533         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
14534         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
14535         Convert operand 0 to Pmode for x32 if not PIC.
14536         (*tablejump_1): Replace nonimmediate_operand with
14537         indirect_branch_operand.  Replace constraint "m" with "w".
14538         (*call_vzeroupper): Replace constraint "m" with "w".
14539         (*call): Likewise.
14540         (*call_rex64_ms_sysv_vzeroupper): Likewise.
14541         (*call_rex64_ms_sysv): Likewise.
14542         (*call_value_vzeroupper): Likewise.
14543         (*call_value): Likewise.
14544         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
14545         (*call_value_rex64_ms_sysv): Likewise.
14546         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
14547
14548         * config/i386/predicates.md (indirect_branch_operand): New.
14549         (call_insn_operand): Support x32.
14550
14551 2011-07-20  Michael Eager  <eager@eagercon.com>
14552
14553         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
14554
14555 2011-07-20  Richard Henderson  <rth@redhat.com>
14556
14557         * cfg.c (dump_bb_info): Dump basic_block->flags.
14558         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
14559
14560 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
14561
14562         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
14563         of DImode hard registers in index.
14564         (ix86_legitimate_address_p): Allow subregs of base and index to span
14565         more than a word.  Assert that subregs of base and index satisfy
14566         register_no_elim_operand predicates.  Reject addresses where
14567         base and index have different modes.
14568
14569 2011-07-20  Robert Millan  <rmh@gnu.org>
14570
14571         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
14572
14573 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14574
14575         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
14576         removing now-unnecessary assignment.
14577
14578 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14579
14580         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
14581         memory address space to the type's address space.
14582
14583 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
14584
14585         PR target/36467
14586         PR target/49687
14587         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
14588         and expand appropriately if there is a CONST_INT in operand2.
14589         (usmulqihi3): New insn.
14590         (*sumulqihi3): New insn.
14591         (*osmulqihi3): New insn.
14592         (*oumulqihi3): New insn.
14593         (*muluqihi3.uconst): New insn_and_split.
14594         (*muluqihi3.sconst): New insn_and_split.
14595         (*mulsqihi3.sconst): New insn_and_split.
14596         (*mulsqihi3.uconst): New insn_and_split.
14597         (*mulsqihi3.oconst): New insn_and_split.
14598         (*ashifthi3.signx.const): New insn_and_split.
14599         (*ashifthi3.signx.const7): New insn_and_split.
14600         (*ashifthi3.zerox.const): New insn_and_split.
14601         (mulsqihi3): New insn.
14602         (muluqihi3): New insn.
14603         (muloqihi3): New insn.
14604         * config/avr/predicates.md (const_2_to_7_operand): New.
14605         (const_2_to_6_operand): New.
14606         (u8_operand): New.
14607         (s8_operand): New.
14608         (o8_operand): New.
14609         (s9_operand): New.
14610         (register_or_s9_operand): New.
14611
14612 2011-07-20  Kai Tietz  <ktietz@redhat.com>
14613
14614         * builtins.c (fold_builtin_expect): See through the cast
14615         from truthvalue_type_node to long.
14616
14617 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
14618
14619         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
14620         where we can use them from the standard and altivec instruction
14621         sets, instead of always using the 3 operand VSX forms that require
14622         the destination to overlap one of the inputs.
14623         (vsx_fms*): Ditto.
14624         (vsx_fnma*): Ditto.
14625         (vsx_fnms*): Ditto.
14626
14627         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
14628         for DF types.
14629         (fmsdf4_fpr): Ditto.
14630         (nfmadf4_fpr): Ditto.
14631         (nfmsdf4_fpr): Ditto.
14632
14633 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
14634
14635         * genrecog.c (make_insn_sequence): Correct position numbering
14636         when filtering out match_scratch and match_dup.
14637
14638 2011-07-20  Richard Guenther  <rguenther@suse.de>
14639
14640         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
14641         against already removed statements.
14642         (forward_propagate_into_comparison): Remove dead defining stmts.
14643         (forward_propagate_into_gimple_cond): Likewise.
14644         (forward_propagate_into_cond): Simplify.
14645         (ssa_forward_propagate_and_combine): Handle changed cfg from
14646         forward_propagate_into_comparison.
14647         * tree-ssa-phiopt.c (conditional_replacement): Use proper
14648         locations for newly built statements.
14649
14650 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
14651
14652         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
14653
14654 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14655
14656         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
14657         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
14658
14659 2011-07-20  Richard Guenther  <rguenther@suse.de>
14660
14661         PR middle-end/18908
14662         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
14663         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
14664         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
14665
14666 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
14667
14668         * config/frv/frv.c (frv_register_move_cost): Define explicitly
14669         costs for subclasses of GR_REGS.
14670
14671 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
14672
14673         PR target/49780
14674         * config/i386/predicates.md (no_seg_addres_operand): No more special.
14675         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
14676         of DImode hard registers in base.
14677         (ix86_legitimate_address_p): Allow SImode and DImode base and index
14678         registers.
14679
14680 2011-07-20  Richard Guenther  <rguenther@suse.de>
14681
14682         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
14683         (unify_nodes): Deal with that.
14684         (solve_graph): Likewise.
14685
14686 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
14687
14688         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
14689         canonicalize left operand from ZERO_EXTEND to AND.
14690
14691 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
14692
14693         * target.def (class_max_nregs): New hook.
14694         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
14695         * doc/tm.texi: Regenerate.
14696         * targhooks.c (default_class_max_nregs): New function.
14697         * targhooks.h (default_class_max_nregs): Declare.
14698         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
14699         x_ira_reg_class_min_nregs arrays to unsigned char.
14700         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
14701         hook instead of CLASS_MAX_NREGS macro.
14702         * reginfo.c (restore_register_info): Ditto.
14703         * ira-conflicts.c (process_regs_for_copy): Use
14704         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
14705         Change type rclass and aclass vars to reg_class_t.
14706         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
14707         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
14708         reg_class_t.
14709         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
14710         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
14711
14712         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
14713         * config/i386/i386.c (ix86_class_max_nregs): New function.
14714         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
14715         instead of CLASS_MAX_NREGS macro.
14716         (TARGET_CLASS_MAX_NREGS): Define.
14717         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
14718         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
14719         * config/avr/avr.c (class_max_nregs): Remove function.
14720         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
14721         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
14722         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
14723         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
14724         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
14725         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
14726         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
14727         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
14728         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
14729         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
14730         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
14731         * config/score/score.h (CLASS_MAX_NREGS): Remove.
14732         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
14733         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
14734         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
14735
14736 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
14737
14738         * cif-code.def (OVERWRITABLE): Fix typo and move around.
14739         (TARGET_OPTIMIZATION_MISMATCH): Delete.
14740         (EH_PERSONALITY): Fix typo.
14741         (NON_CALL_EXCEPTIONS): Fix message.
14742         (OPTIMIZATION_MISMATCH): Adjust message.
14743         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
14744
14745 2011-07-19  Ian Lance Taylor  <iant@google.com>
14746
14747         * doc/install.texi (Configuration): Document
14748         --enable-build-poststage1-with-cxx.
14749
14750 2011-07-19  Robert Millan  <rmh@gnu.org>
14751
14752         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
14753         (GLIBC_DYNAMIC_LINKER): Remove.
14754
14755         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
14756         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
14757         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
14758         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
14759         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
14760         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
14761
14762         * config/mips/linux.h: Remove everything except for ...
14763         (GLIBC_DYNAMIC_LINKER): ... this macro.
14764
14765         * config/mips/linux64.h: Remove everything except for ...
14766         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
14767         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
14768         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
14769         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
14770         (GNU_USER_LINK_EMULATIONN32): New macros.
14771
14772         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
14773         Use the new headers.
14774
14775 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
14776
14777         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
14778         Add offset_known_p and size_known_p fields.
14779         (MEM_OFFSET_KNOWN_P): Update accordingly.
14780         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
14781         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
14782         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
14783         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
14784         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
14785         (init_emit_regs): Likewise.
14786
14787 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
14788
14789         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
14790         (MEM_OFFSET): Change from returning an rtx to returning a
14791         HOST_WIDE_INT.
14792         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
14793         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
14794         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
14795         (clear_mem_offset): Declare.
14796         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
14797         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
14798         MEM_OFFSET to get a HOST_WIDE_INT offset.
14799         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
14800         (adjust_offset_for_component_ref): Take a bool "known_p"
14801         parameter and a HOST_WIDE_INT "offset" parameter.
14802         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
14803         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
14804         than an rtx.  Use clear_mem_offset to clear the offset.
14805         * cfgcleanup.c (merge_memattrs): Likewise.
14806         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
14807         * function.c (assign_parm_find_stack_rtl): Likewise.
14808         (assign_parm_setup_stack): Likewise.
14809         * print-rtl.c (print_rtx): Likewise.
14810         * reload.c (find_reloads_subreg_address): Likewise.
14811         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
14812         * var-tracking.c (INT_MEM_OFFSET): Likewise.
14813         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
14814         (get_mem_align_offset): Likewise.
14815         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
14816         (clear_mem_offset): New function.
14817         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
14818         offset rather than an rtx.  Assume both the expressio and offset
14819         are available.
14820         (r10k_needs_protection_p_1): Update accordingly, checking the
14821         expression and offset availability here instead.
14822
14823 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
14824
14825         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
14826         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
14827         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
14828         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
14829         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
14830         (clear_mem_size): Declare.
14831         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
14832         (clear_mem_size): New function.
14833         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
14834         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
14835         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
14836         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
14837         to clear the size.
14838         (nonoverlapping_memrefs_p): Likewise.
14839         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
14840         (expand_builtin_init_trampoline): Likewise.
14841         * calls.c (compute_argument_addresses): Likewise.
14842         * cfgcleanup.c (merge_memattrs): Likewise.
14843         * dce.c (find_call_stack_args): Likewise.
14844         * dse.c (record_store, scan_insn): Likewise.
14845         * dwarf2out.c (dw_sra_loc_expr): Likewise.
14846         * expr.c (emit_block_move_hints): Likewise.
14847         * function.c (assign_parm_find_stack_rtl): Likewise.
14848         * print-rtl.c (print_rtx): Likewise.
14849         * reload.c (find_reloads_subreg_address): Likewise.
14850         * rtlanal.c (may_trap_p_1): Likewise.
14851         * var-tracking.c (track_expr_p): Likewise.
14852         * varasm.c (assemble_trampoline_template): Likewise.
14853         * config/arm/arm.c (arm_print_operand): Likewise.
14854         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
14855         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
14856         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
14857         (expand_constant_setmem_prologue): Likewise.
14858         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
14859         * config/rs6000/rs6000.c (expand_block_move): Likewise.
14860         (adjacent_mem_locations): Likewise.
14861         * config/s390/s390.c (s390_expand_setmem): Likewise.
14862         (s390_expand_insv): Likewise.
14863         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
14864         (*extendqi<mode>2_short_displ): Likewise.
14865         * config/sh/sh.c (expand_block_move): Likewise.
14866         * config/sh/sh.md (extv, extzv): Likewise.
14867
14868 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
14869
14870         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
14871         (mem_attrs_htab_eq): ...here.
14872         (find_mem_attrs): Replace with...
14873         (set_mem_attrs): ...this function.  Take a mem_attrs structure
14874         rather than individual fields.
14875         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
14876         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
14877         (set_mem_size, change_address, adjust_address_1, offset_address)
14878         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
14879         Update accordingly.
14880
14881 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
14882
14883         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
14884         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
14885         Provide a dummy definition of MEM_ADDR_SPACE for generators.
14886         (target_rtl): Add x_mode_mem_attrs.
14887         (mode_mem_attrs): New macro.
14888         (get_mem_attrs): New function.
14889         * emit-rtl.c (get_mem_attrs): Rename to...
14890         (find_mem_attrs): ...this.
14891         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
14892         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
14893         (set_mem_size, change_address, adjust_address_1, offset_address)
14894         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
14895         Update accordingly.
14896         (init_emit_regs): Initialize mode_mem_attrs.
14897
14898 2011-07-19  Richard Guenther  <rguenther@suse.de>
14899
14900         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
14901         TRUTH_*_EXPR handling.
14902         * tree-ssa-operands.c (get_expr_operands): Likewise.
14903         * tree-ssa-pre.c (fully_constant_expression): Likewise.
14904         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
14905         Likewise.
14906         (is_and_or_or): Likewise.
14907         (is_norm_cond_subset_of): Likewise.
14908
14909 2011-07-19  Richard Guenther  <rguenther@suse.de>
14910
14911         * tree.h (fold_build_pointer_plus_loc): New helper function.
14912         (fold_build_pointer_plus_hwi_loc): Likewise.
14913         (fold_build_pointer_plus): Define.
14914         (fold_build_pointer_plus_hwi): Likewise.
14915         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
14916         (fold_builtin_memory_op): Likewise.
14917         (fold_builtin_stpcpy): Likewise.
14918         (fold_builtin_memchr): Likewise.
14919         (fold_builtin_strstr): Likewise.
14920         (fold_builtin_strchr): Likewise.
14921         (fold_builtin_strrchr): Likewise.
14922         (fold_builtin_strpbrk): Likewise.
14923         (fold_builtin_strcat): Likewise.
14924         (expand_builtin_memory_chk): Likewise.
14925         (fold_builtin_memory_chk): Likewise.
14926         * c-typeck.c (build_unary_op): Likewise.
14927         * cgraphunit.c (thunk_adjust): Likewise.
14928         * fold-const.c (build_range_check): Likewise.
14929         (fold_binary_loc): Likewise.
14930         * omp-low.c (extract_omp_for_data): Likewise.
14931         (expand_omp_for_generic): Likewise.
14932         (expand_omp_for_static_nochunk): Likewise.
14933         (expand_omp_for_static_chunk): Likewise.
14934         * tree-affine.c (add_elt_to_tree): Likewise.
14935         * tree-data-ref.c (split_constant_offset_1): Likewise.
14936         * tree-loop-distribution.c (generate_memset_zero): Likewise.
14937         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
14938         * tree-predcom.c (ref_at_iteration): Likewise.
14939         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
14940         (add_to_parts): Likewise.
14941         (create_mem_ref): Likewise.
14942         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
14943         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
14944         (number_of_iterations_le): Likewise.
14945         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
14946         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
14947         (vect_create_addr_base_for_vector_ref): Likewise.
14948         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
14949         (vect_create_cond_for_alias_checks): Likewise.
14950         * tree-vrp.c (extract_range_from_assert): Likewise.
14951         * config/alpha/alpha.c (alpha_va_start): Likewise.
14952         (alpha_gimplify_va_arg_1): Likewise.
14953         * config/i386/i386.c (ix86_va_start): Likewise.
14954         (ix86_gimplify_va_arg): Likewise.
14955         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
14956         * config/mep/mep.c (mep_expand_va_start): Likewise.
14957         (mep_gimplify_va_arg_expr): Likewise.
14958         * config/mips/mips.c (mips_va_start): Likewise.
14959         (mips_gimplify_va_arg_expr): Likewise.
14960         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
14961         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
14962         (rs6000_gimplify_va_arg): Likewise.
14963         * config/s390/s390.c (s390_va_start): Likewise.
14964         (s390_gimplify_va_arg): Likewise.
14965         * config/sh/sh.c (sh_va_start): Likewise.
14966         (sh_gimplify_va_arg_expr): Likewise.
14967         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
14968         * config/spu/spu.c (spu_va_start): Likewise.
14969         (spu_gimplify_va_arg_expr): Likewise.
14970         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
14971         Likewise.
14972         (xstormy16_gimplify_va_arg_expr): Likewise.
14973         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
14974         (xtensa_gimplify_va_arg_expr): Likewise.
14975
14976 2011-07-19  Richard Guenther  <rguenther@suse.de>
14977
14978         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
14979         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
14980         handling.
14981
14982         PR middle-end/18908
14983         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
14984         result of BIT_*_EXPR to bitfield precision.
14985
14986 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
14987
14988         PR tree-optimization/49742
14989         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
14990         as a potential write.
14991
14992 2011-07-19  Richard Guenther  <rguenther@suse.de>
14993
14994         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
14995         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
14996         (forward_propagate_comparison): Simplify, remove obsolete code.
14997
14998 2011-07-19  Richard Guenther  <rguenther@suse.de>
14999
15000         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
15001         BIT_XOR_EXPR, same as the RTL expander does.
15002         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
15003         (verify_gimple_assign_unary): Likewise.
15004         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
15005         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
15006         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
15007
15008 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
15009
15010         PR tree-optimization/49768
15011         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
15012         if offset is smaller than bitoffset, but offset+size is bigger
15013         than bitoffset.
15014
15015 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
15016
15017         PR tree-optimization/49771
15018         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
15019         zero step, set segment length to the size of the data-ref's type.
15020
15021 2011-07-18  Martin Jambor  <mjambor@suse.cz>
15022
15023         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
15024         comments.
15025         (ipcp_values_pool): Declare.
15026         (ipcp_sources_pool): Likewise.
15027         (ipcp_lattice): Changed to forward declaration.
15028         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
15029         cannot_devirtualize.
15030         (ipa_node_params): New fields descriptors, lattices, known_vals,
15031         clone_for_all_contexts and node dead, removed fields params and
15032         count_scale.
15033         (ipa_set_param_count): Removed.
15034         (ipa_get_param_count): Made to work with descriptors vector.
15035         (ipa_get_param): Updated.
15036         (ipa_param_cannot_devirtualize_p): Removed.
15037         (ipa_param_types_vec_empty): Likewise.
15038         (ipa_set_param_used): New function.
15039         (ipa_get_param_used): Updated to use descriptors vector.
15040         (ipa_func_list): Removed.
15041         (ipa_init_func_list): Removed declaration.
15042         (ipa_push_func_to_list_1): Likewise.
15043         (ipa_pop_func_from_list): Likewise.
15044         (ipa_push_func_to_list): Removed.
15045         (ipa_lattice_from_jfunc): Remove declaration.
15046         (ipa_get_jf_pass_through_result): Declare.
15047         (ipa_get_jf_ancestor_result): Likewise.
15048         (ipa_value_from_jfunc): Likewise.
15049         (ipa_get_lattice): Update.
15050         (ipa_lat_is_single_const): New function.
15051         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
15052         (ipa_init_func_list): Likewise.
15053         (ipa_pop_func_from_list): Likewise.
15054         (ipa_get_param_decl_index): Fix coding style.
15055         (count_formal_params): Removed.
15056         (count_formal_params_1): Renamed to count_formal_params.
15057         (ipa_populate_param_decls): Update to use descriptors vector.
15058         (ipa_initialize_node_params): Likewise.
15059         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
15060         (ipa_analyze_params_uses): Likewise.
15061         (ipa_free_node_params_substructures): Likewise and free also lattices
15062         and known values.
15063         (duplicate_array): Removed.
15064         (ipa_edge_duplication_hook): Add the new edge to the list of edge
15065         clones.
15066         (ipa_node_duplication_hook): Update to use new lattices.
15067         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
15068         (ipa_free_all_structures_after_iinln): Likewise.
15069         (ipa_write_node_info): Update to use new lattices.
15070         (ipa_read_node_info): Likewise.
15071         (ipa_get_jf_pass_through_result): New function.
15072         (ipa_get_jf_ancestor_result): Likewise.
15073         (ipa_value_from_jfunc): Likewise.
15074         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
15075         * ipa-cp.c: Reimplemented.
15076         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
15077         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
15078         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
15079         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
15080         * doc/invoke.texi (devirt-type-list-size): Removed description.
15081         (ipa-cp-value-list-size): Added description.
15082
15083 2011-07-18  Richard Henderson  <rth@redhat.com>
15084
15085         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
15086         before calling create_basic_block.
15087
15088 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
15089
15090         PR middle-end/49675
15091         * tree.c (build_common_builtin_nodes): Register
15092         __builtin_return_address, __cyg_profile_func_enter
15093         and __cyg_profile_func_exit.
15094
15095 2011-07-18  Richard Henderson  <rth@redhat.com>
15096
15097         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
15098         (add_labels_and_missing_jumps): ... here.
15099         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
15100
15101 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
15102
15103         PR target/47744
15104         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
15105         of DImode hard registers in PLUS address chains.
15106
15107 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15108
15109         PR bootstrap/49769
15110         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
15111         (alpha*-*-freebsd*): Likewise.
15112         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
15113         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
15114         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
15115         crtprec80.o, crtfastmath.o to extra_parts for all targets.
15116         (ia64*-*-elf*): Remove extra_parts.
15117         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
15118         (sparc64-*-linux*): Likewise.
15119         (sparc64-*-freebsd*): Likewise.
15120
15121         Revert:
15122         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
15123         (ia64*-*-linux*): Likewise.
15124         (mips64*-*-linux*): Likewise.
15125         (mips*-*-linux*): Likewise.
15126
15127 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
15128
15129         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
15130
15131 2011-07-18  Richard Guenther  <rguenther@suse.de>
15132
15133         * gimplify.c (gimplify_expr): Use input_location, not saved_location
15134         when building new trees.
15135
15136 2011-07-18  Richard Guenther  <rguenther@suse.de>
15137
15138         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
15139         expansion result to bitfield precision if required.
15140
15141 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15142
15143         * config.gcc (i[3456x]86-*-netware*): Remove.
15144
15145         * gthr-nks.h: Remove.
15146         * configure.ac (enable_threads): Remove nks.
15147         * configure: Regenerate.
15148
15149         * config/i386/i386.c (ix86_encode_section_info): Remove netware
15150         reference.
15151         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
15152         <netware.h> reference.
15153
15154         * config/i386/netware-libgcc.c,
15155         gcc/config/i386/netware-libgcc.def,
15156         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
15157         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
15158         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
15159         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
15160
15161         * doc/extend.texi (Function Attributes,
15162         callee_pop_aggregate_return): Remove i?86-netware reference.
15163         * doc/install.texi (Configuration, --enable-threads): Remove nks.
15164
15165 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15166
15167         PR target/49746
15168         Revert:
15169         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15170
15171         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
15172         patterns.
15173
15174 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
15175
15176         PR middle-end/49732
15177         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
15178
15179 2011-07-16  Matthias Klose  <doko@ubuntu.com>
15180
15181         * doc/install.texi: Document --enable-static-libjava.
15182
15183 2011-07-15  Richard Henderson  <rth@redhat.com>
15184
15185         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
15186         Replace all three arguments by returning a VEC of edges.
15187         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
15188         pointers and counts.
15189         (fix_edges_for_rarely_executed_code): Merge ...
15190         (rest_of_handle_partition_blocks): ... into...
15191         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
15192         any work was performed.
15193         (pass_partition_blocks): Clear todo_flags_finish.
15194
15195 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
15196             Jakub Jelinek  <jakub@redhat.com>
15197             Jonathan Wakely  <jwakely.gcc@gmail.com>
15198
15199         PR libstdc++/49745
15200         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
15201         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
15202
15203 2011-07-15  Jason Merrill  <jason@redhat.com>
15204
15205         PR testsuite/49741
15206         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
15207         rather than --tool_opts.
15208
15209 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
15210
15211         * doc/plugins.texi (Building GCC plugins): gengtype needs its
15212         corresponding gtype.state.
15213
15214 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15215
15216         PR target/49723
15217         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
15218
15219 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
15220
15221         PR target/48220
15222         * doc/md.texi (Standard Names): Document window_save.
15223         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
15224         expand_debug_expr and expand_debug_source_expr.  If the target has
15225         a window_save instruction, adjust the ENTRY_VALUE_EXP.
15226         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
15227         SSA_NAME_VAR is a parameter.
15228         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
15229         * var-tracking.c (parm_reg_t): New type and associated vector type.
15230         (windowed_parm_regs): New variable.
15231         (adjust_insn): If the target has a window_save instruction and this
15232         is the instruction, make its effect on parameter registers explicit.
15233         (next_non_note_insn_var_location): New function.
15234         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
15235         (vt_add_function_parameter): If the target has a window_save insn,
15236         adjust the incoming RTL and record that in windowed_parm_regs.
15237         (vt_finalize): Free windowed_parm_regs.
15238
15239 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
15240
15241         * doc/invoke.texi (C6X Options): New section.
15242         * doc/md.texi (TI C6X family): New section.
15243         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
15244         tic6x-*-uclinux.
15245         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
15246         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
15247         Provide C6X definitions.
15248         * config/c6x/c6x.md: New file.
15249         * config/c6x/constraints.md: New file.
15250         * config/c6x/predicates.md: New file.
15251         * config/c6x/c6x-sched.md.in: New file.
15252         * config/c6x/c6x-sched.md: New file.
15253         * config/c6x/gensched.sh: New file.
15254         * config/c6x/c6x-mult.md.in: New file.
15255         * config/c6x/genmult.sh: New file.
15256         * config/c6x/c6x-mult.md: New file.
15257         * config/c6x/sync.md: New file.
15258         * config/c6x/c6x-protos.h: New file.
15259         * config/c6x/sfp-machine.h: New file.
15260         * config/c6x/c6x.c: New file.
15261         * config/c6x/c6x.h: New file.
15262         * config/c6x/crti.s: New file.
15263         * config/c6x/crtn.s: New file.
15264         * config/c6x/lib1funcs.asm: New file.
15265         * config/c6x/c6x-modes.def: New file.
15266         * config/c6x/genopt.sh: New file.
15267         * config/c6x/c6x.opt: New file.
15268         * config/c6x/c6x-tables.opt: New file.
15269         * config/c6x/c6x-opts.h: New file.
15270         * config/c6x/c6x-isas.def: New file.
15271         * config/c6x/elf.h: New file.
15272         * config/c6x/elf-common.h: New file.
15273         * config/c6x/uclinux-elf.h: New file.
15274         * config/c6x/t-c6x: New file.
15275         * config/c6x/t-c6x-elf: New file.
15276         * config/c6x/t-c6x-uclinux: New file.
15277         * config/c6x/t-c6x-softfp: New file.
15278         * config/c6x/gtd.c: New file.
15279         * config/c6x/gtf.c: New file.
15280         * config/c6x/ltd.c: New file.
15281         * config/c6x/ltf.c: New file.
15282         * config/c6x/ged.c: New file.
15283         * config/c6x/gef.c: New file.
15284         * config/c6x/led.c: New file.
15285         * config/c6x/lef.c: New file.
15286         * config/c6x/eqd.c: New file.
15287         * config/c6x/eqf.c: New file.
15288         * config/c6x/libgcc-c6xeabi.ver: New file.
15289
15290         Revert
15291         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
15292         PR rtl-optimization/11320
15293         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
15294         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
15295         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
15296         current_sched_info->compute_jump_reg_dependencies. Record which
15297         registers are used and which registers are set by the jump.
15298         Clear deps->reg_conditional_sets after a barrier.
15299         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
15300         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
15301         (init_deps): Initialize reg_conditional_sets.
15302         (free_deps): Clear reg_conditional_sets.
15303         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
15304         Mark registers live on entry of the fallthrough block and conditionally
15305         set as set by the jump. Mark registers live on entry of non-fallthrough
15306         blocks as used by the jump.
15307         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
15308         Mark new parameters as unused.
15309
15310 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
15311
15312         PR tree-opt/49309
15313         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
15314         Use fold_build2_loc instead of build2.
15315         Use the correct type for the new tree.
15316
15317 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
15318
15319         PR rtl-optimization/11320
15320         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
15321         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
15322
15323 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
15324
15325         PR target/49487
15326         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
15327         of REG.
15328         (*rotw<mode>): Use const_int_operand for operand2.
15329         Use match_scatch for operand3.
15330         (*rotb<mode>): Ditto
15331         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
15332
15333 2011-07-14  Richard Guenther  <rguenther@suse.de>
15334
15335         PR tree-optimization/49651
15336         * tree-ssa-structalias.c (get_constraint_for_1): Properly
15337         handle dereferences with subvariables.
15338
15339 2011-07-14  Richard Guenther  <rguenther@suse.de>
15340
15341         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
15342         (fold_stmt_1): Do it here directly on gimple and as a first thing.
15343
15344 2011-07-14  Richard Guenther  <rguenther@suse.de>
15345
15346         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
15347         not bool_var when folding bool_var != 1 or bool_var == 0.
15348
15349 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
15350
15351         * haifa-sched.c (schedule_insns): Remove outdated comment.
15352         (schedule_block): When computing a known value for TODO_SPEC,
15353         just set it rather than using logical operations.
15354         (try_ready): Likewise.  Use a local variable rather than a
15355         pointer to TODO_SPEC.  Reorder an if statement to move the
15356         easy case to the then block.
15357         * sched-deps.c (dep_spec_p): New static function.
15358         (update_dep): Use it to decide whether to call
15359         change_spec_dep_to_hard.
15360         (get_back_and_forw_lists): Use it.
15361         (sd_resolve_dep): Likewise.
15362         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
15363         (haifa_note_mem_dep): Likewise.
15364         (check_dep): Likewise.
15365         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
15366         (sched_free_deps): Free in two passes.
15367
15368 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
15369
15370         PR middle-end/49736
15371         * expr.c (all_zeros_p): Undo bogus part of last change.
15372
15373 2011-07-14  Matthias Klose <doko@ubuntu.com>
15374
15375         * doc/extend.texi (optimize attribute): Fix typo.
15376
15377 2011-07-14  Richard Guenther  <rguenther@suse.de>
15378
15379         * gimplify.c (gimplify_expr): Only do required conversions.
15380
15381 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
15382
15383         PR target/43746
15384         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
15385         i.e. use default_elf_select_section.
15386         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
15387         (READONLY_DATA_SECTION_ASM_OP): Remove.
15388         (TARGET_ASM_NAMED_SECTION): Move from here...
15389         * config/avr/avr.c: ...to here.
15390         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
15391         (avr_asm_named_section): Make static.
15392
15393 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15394
15395         PR bootstrap/49739
15396         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
15397         and crtfastmath.o for Linux/x86.
15398
15399 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
15400
15401         * haifa-sched.c: Include "hashtab.h"
15402         (sched_no_dce): New global variable.
15403         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
15404         SHADOW_P): New macros.
15405         (last_clock_var, cycle_issued_insns): Move declarations.
15406         (must_backtrack): New static variable.
15407         (struct delay_pair): New structure.
15408         (delay_htab, delay_htab_i2): New static variables.
15409         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
15410         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
15411         functions.
15412         (dep_cost_1): If delay pairs exist, try to look up the insns and
15413         use the correct pair delay if we find them.
15414         (rank-for_schedule): Tweak priority for insns that must be scheduled
15415         soon to avoid backtracking.
15416         (queue_insn): Detect conditions which force backtracking.
15417         (ready_add): Likewise.
15418         (struct sched_block_state): Add member shadows_only_p.
15419         (struct haifa_save_data): New structure.
15420         (backtrack_queue): New static variable.
15421         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
15422         unschedule_insns_until, restore_last_backtrack_point,
15423         free_topmost_backtrack_point, free_backtrack_queue,
15424         estimate_insn_tick, estimate_shadow_tick): New functions.
15425         (prune_ready_list): New arg shadows_only_p.  All callers changed.
15426         If true, remove everything that isn't SHADOW_P.  Look up delay
15427         pairs and estimate ticks to avoid scheduling the first insn too early.
15428         (verify_shadows): New function.
15429         (schedule_block): Add machinery to enable backtracking.
15430         (sched_init): Take sched_no_dce into account when setting
15431         DF_LR_RUN_DCE.
15432         (free_delay_pairs): New function.
15433         (init_h_i_d): Initialize INSN_EXACT_TICK.
15434         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
15435         * sched-deps.c (sd_unresolve_dep): New function.
15436         * sched-int. (struct haifa_sched_info): New fields save_state
15437         and restore_state.
15438         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
15439         feeds_backtrack_insn and shadow_p.
15440         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
15441         (sched_no_dce): Declare variable.
15442         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
15443         sd_unresolve_dep): Declare functions.
15444         * modulo-sched.c (sms_sched_info): Clear the two new fields.
15445         * sched-rgn.c (rgn_const_sched_info): Likewise.
15446         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
15447         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
15448         (ebb_sched_info): Add them for the two new fields.
15449         (add_deps_for_risky_insns): Call add_delay_dependencies.
15450
15451 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
15452
15453         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
15454         Rename -mr11.
15455         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
15456         (rs6000_call_indirect_aix): Ditto.
15457         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
15458         (call_indirect_aix<ptrsize>_internal): Ditto.
15459         (call_indirect_aix<ptrsize>_nor11): Ditto.
15460         (call_indirect_aix<ptrsize>_internal2): Ditto.
15461         (call_value_indirect_aix<ptrsize>): Ditto.
15462         (call_value_indirect_aix<ptrsize>_internal): Ditto.
15463         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
15464         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
15465         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
15466
15467 2011-07-13  Jason Merrill  <jason@redhat.com>
15468
15469         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
15470
15471 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15472
15473         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
15474         * config/spu/spu.md ("clrsb<mode>2"): New expander.
15475
15476 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
15477
15478         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
15479         * configure: Regenerate.
15480
15481 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15482
15483         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
15484         (asm_file_start): Remove.
15485         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
15486         free_bb_for_insn around code that modifies insns before
15487         restarting df analysis.
15488
15489 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15490
15491         PR target/49541
15492         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
15493         (LINK_SPEC): ... here.
15494
15495 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
15496
15497         * haifa-sched.c (struct sched_block_state): New.
15498         (schedule_block): Move some local variables into such a structure.
15499
15500 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15501
15502         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
15503         * config/i386/t-crtpc: Remove.
15504         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
15505         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
15506         tmake_file.
15507         (x86_64-*-darwin*): Likewise.
15508         (i[34567]86-*-linux*): Likewise.
15509         (x86_64-*-linux*): Likewise.
15510
15511         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
15512         Handle -mpc32, -mpc64, -mpc80.
15513
15514 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15515
15516         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
15517         * config/alpha/t-crtfm: Remove.
15518         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
15519         * config/i386/t-crtfm: Remove.
15520         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
15521         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
15522         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
15523         * config/sparc/t-crtfm: Remove.
15524
15525         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
15526         (alpha*-*-freebsd*): Likewise.
15527         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
15528         (x86_64-*-darwin*): Likewise.
15529         (i[34567]86-*-linux*): Likewise.
15530         (x86_64-*-linux*): Likewise.
15531         (x86_64-*-mingw*): Likewise.
15532         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
15533         (ia64*-*-freebsd*): Likewise.
15534         (ia64*-*-linux*): Likewise.
15535         (mips64*-*-linux*): Likewise.
15536         (mips*-*-linux*): Likewise.
15537         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
15538         (sparc64-*-linux*): Likewise.
15539         (sparc64-*-freebsd*): Likewise.
15540
15541 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15542
15543         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
15544         * config/darwin-crt3.c: Move to ../libgcc/config.
15545         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
15546         ($(T)crt3$(objext)): Remove.
15547         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
15548         ($(T)crt2$(objext)): Remove.
15549         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
15550         (powerpc64-*-darwin*): Likewise.
15551
15552 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
15553
15554         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
15555
15556         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
15557         (addsi_1_zext): This.
15558
15559 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
15560
15561         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
15562         * doc/tm.texi: Regenerate.
15563         * target.def (mergeable_rodata_prefix): New defhookpod.
15564         * varasm.c (mergeable_string_section, mergeable_constant_section):
15565         Use it. Allocate name with alloca.
15566
15567 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
15568
15569         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
15570
15571 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
15572
15573         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
15574         overlap check.
15575
15576 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
15577
15578         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
15579         (count_type_elements): Delete.
15580         (complete_ctor_at_level_p): Declare.
15581         * expr.c (flexible_array_member_p): New function, split out from...
15582         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
15583         parameter with for_ctor_p.  When for_ctor_p is true, return the
15584         number of elements that should appear in the top-level constructor,
15585         otherwise return an estimate of the number of scalars.
15586         (categorize_ctor_elements): Replace p_must_clear with p_complete.
15587         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
15588         (complete_ctor_at_level_p): New function, borrowing union logic
15589         from old categorize_ctor_elements_1.
15590         (mostly_zeros_p): Return true if the constructor is not complete.
15591         (all_zeros_p): Update call to categorize_ctor_elements.
15592         * gimplify.c (gimplify_init_constructor): Update call to
15593         categorize_ctor_elements.  Don't call count_type_elements.
15594         Unconditionally prevent clearing for variable-sized types,
15595         otherwise rely on categorize_ctor_elements to detect
15596         incomplete initializers.
15597
15598 2011-07-13  Richard Guenther  <rguenther@suse.de>
15599
15600         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
15601         the final type is integral.
15602
15603 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
15604
15605         * sched-int.h (struct _dep): Add member cost.
15606         (DEP_COST, UNKNOWN_DEP_COST): New macros.
15607         * sched-deps.c (init_dep_1): Initialize DEP_COST.
15608         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
15609         (sched_change_pattern): Reset it for dependent insns.
15610
15611 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15612
15613         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
15614         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
15615         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
15616         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
15617         (CRT0_S, MCRT0_S): Remove.
15618         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
15619         Remove.
15620         (s-crt0): Remove.
15621         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
15622
15623 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
15624
15625         * cse.c (insert_with_costs): Put semi-colon after empty loop body
15626         on the next line.
15627         * emit-rtl.c (push_to_sequence): Likewise.
15628         * haifa-sched.c (max_issue): Likewise.
15629         * matrix-reorg.c (add_allocation_site): Likewise.
15630         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
15631         * reload.c (alternative_allows_const_pool_ref): Likewise.
15632         * sched-rgn.c (rgn_add_block): Likewise.
15633         (rgn_fix_recovery_cfg): Likewise.
15634         * tree.c (attribute_list_contained): Likewise.
15635
15636 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
15637
15638         * config/i386/i386.c: Tidy processor feature bitmasks.
15639         (m_P4_NOCONA): New.
15640
15641 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
15642
15643         PR rtl-opt/49474
15644         * cprop.c (find_implicit_sets): Correct the condition.
15645
15646 2011-07-12  Richard Henderson  <rth@redhat.com>
15647
15648         PR target/49713
15649         * dwarf2out.h (dwarf_frame_regnum): Remove.
15650         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
15651         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
15652         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
15653         (execute_dwarf2_frame): Initialize them.
15654         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
15655         users of the macros with the variables.
15656         (expand_builtin_dwarf_sp_column): Revert last change.
15657         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
15658         result of DWARF_FRAME_REGNUM into a local variable.
15659
15660 2011-07-12  Richard Henderson  <rth@redhat.com>
15661
15662         PR target/49714
15663         * config/i386/i386.c (x86_output_mi_thunk): Use
15664         machopic_indirect_call_target instead of machopic_indirection_name
15665         directly.
15666
15667 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
15668             Eric Botcazou  <ebotcazou@adacore.com>
15669
15670         * prefix.h: Wrap up in extern "C" block.
15671
15672 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
15673
15674         AMD bdver2 Enablement
15675         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
15676         (case ${target}): Add bdver2.
15677         * config/i386/driver-i386.c (host_detect_local_cpu): Let
15678         -march=native recognize bdver2 processors.
15679         * config/i386/i386-c.c (ix86_target_macros_internal): Add
15680         bdver2 def_and_undef
15681         * config/i386/i386.c (struct processor_costs bdver2_cost): New
15682         bdver2 cost table.
15683         (m_BDVER2): New definition.
15684         (m_AMD_MULTIPLE): Includes m_BDVER2.
15685         (initial_ix86_tune_features): Add bdver2 tuning.
15686         (processor_target_table): Add bdver2 entry.
15687         (static const char *const cpu_names): Add bdver2 entry.
15688         (ix86_option_override_internal): Add bdver2 instruction sets.
15689         (ix86_issue_rate): Add bdver2.
15690         (ix86_adjust_cost): Add bdver2.
15691         (has_dispatch): Add bdver2.
15692         * config/i386/i386.h (TARGET_BDVER2): New definition.
15693         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
15694         (enum processor_type): Add PROCESSOR_BDVER2.
15695         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
15696         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
15697         description.
15698
15699 2011-07-12  Richard Henderson  <rth@redhat.com>
15700
15701         PR target/49714
15702         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
15703         destination address in memory on some paths.
15704
15705 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
15706
15707         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
15708         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
15709         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
15710         * function.c (locate_and_pad_parm): Take it into account.
15711         * target.def (function_arg_round_boundary): New hook.
15712         * targhooks.c (default_function_arg_round_boundary): New function.
15713         * targhooks.h (default_function_arg_round_boundary): Declare.
15714         * doc/tm.texi: Regenerate.
15715
15716 2011-07-12  Richard Guenther  <rguenther@suse.de>
15717
15718         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
15719         Do not perform no-op changes.
15720
15721 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
15722
15723         * config/arm/predicates.md (neon_struct_operand): Make a normal
15724         predicate.
15725         (neon_struct_or_register_operand): New predicate.
15726         * config/arm/neon.md (movmisalign<mode>): Replace predicates
15727         with neon_struct_or_register_operand.
15728         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
15729         neon_struct_operand instead of memory_operand.
15730
15731 2011-07-12  Martin Jambor  <mjambor@suse.cz>
15732
15733         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
15734         * cgraph.c (cgraph_get_node_or_alias): Removed.
15735         (change_decl_assembler_name): Changed all calls to
15736         cgraph_get_node_or_alias to a call to cgraph_get_node.
15737         (cgraph_make_decl_local): Likewise.
15738         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
15739         * varasm.c (default_binds_local_p_1): Likewise.
15740         (decl_binds_to_current_def_p): Likewise.
15741
15742 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
15743
15744         PR tree-optimization/49712
15745         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
15746
15747 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
15748
15749         * genautomata.c (add_arc): Return void.  All callers changed.
15750         (make_automaton): Remove dead code.
15751
15752 2011-07-11  Richard Henderson  <rth@redhat.com>
15753
15754         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
15755         (DW_FRAME_POINTER_REGNUM): New.
15756         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
15757         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
15758         (dwf_regno): New.
15759         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
15760         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
15761         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
15762         Use it.
15763         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
15764         * dwarf2out.h (dwarf_frame_regnum): New.
15765         (struct cfa_loc): Document the domain of the reg member.
15766
15767 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
15768
15769         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
15770         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
15771
15772 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
15773
15774         PR debug/49676
15775         * dwarf2out.c (int_shift_loc_descriptor): New function.
15776         (int_loc_descriptor): If shorter, emit i as
15777         (i >> shift), shift, DW_OP_shl for suitable shift value.
15778         Similarly, try to optimize large negative values using
15779         DW_OP_neg of a positive value if shorter.
15780         (size_of_int_shift_loc_descriptor): New function.
15781         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
15782         changes.
15783         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
15784         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
15785         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
15786         is shorter.
15787         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
15788         addend as added DW_OP_plus if it is shorter.
15789
15790 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15791
15792         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
15793         (DTORS_SECTION_ASM_OP): Define.
15794
15795 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15796
15797         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
15798         * config/t-dfprules: Move to ../libgcc/config.
15799         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
15800         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
15801         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
15802         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
15803         Likewise.
15804         (i[34567]86-*-cygwin*): Likewise.
15805         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
15806         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
15807         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
15808         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
15809         D64PBIT_FUNCS, D128PBIT_FUNCS.
15810
15811 2011-07-11  Richard Guenther  <rguenther@suse.de>
15812
15813         * tree-vrp.c (simplify_conversion_using_ranges): Manually
15814         translate the source value-range through the conversion chain.
15815
15816 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
15817
15818         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
15819
15820 2011-07-11  Arthur Loiret  <aloiret@debian.org>
15821
15822         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
15823         a bi-arch compiler defaulting to 31-bit. In this case:
15824         (tmake_file): Add s390/t-linux64.
15825         * doc/install.texi: Add s390-linux to the list of targets supporting
15826         --enable-targets=all.
15827
15828 2011-07-11  Arthur Loiret  <aloiret@debian.org>
15829             Matthias Klose <doko@debian.org>
15830
15831         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
15832         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
15833         (tm_file): Add mips/linux64.h.
15834         (tmake_file): Add mips/t-linux64.
15835         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
15836         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
15837         instead of hardcoded mabi=n32.
15838         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
15839         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
15840         convention.
15841
15842 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15843
15844         * passes.c (init_optimization_passes): Add invariant motion pass
15845         after induction variable optimization.
15846
15847 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
15848
15849         PR target/39633
15850         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
15851         offsets 1..5 set cc0 in a usable way.
15852
15853 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
15854
15855         * tree.h (call_expr_arg): Remove.
15856         (call_expr_argp): Likewise.
15857
15858 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
15859
15860         * config/sparc/sparc.md (save_register_window_1): Rename to...
15861         (window_save): ...this.
15862         * config/sparc/sparc.c (emit_save_register_window): Rename to...
15863         (emit_window_save): ...this.
15864         (sparc_expand_prologue): Adjust to above renaming.
15865
15866 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
15867
15868         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
15869         of movabs for x32.
15870
15871 2011-07-10  Richard Henderson  <rth@redhat.com>
15872
15873         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
15874         run final, instead of emitting text directly.
15875
15876 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
15877
15878         * config/i386/i386.c (ix86_option_override_internal): Turn on
15879         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
15880         small PIC models for TARGET_X32.
15881
15882 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
15883
15884         PR target/49684
15885         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
15886         $(LIBGCC2_CFLAGS).
15887
15888         PR bootstrap/49680
15889         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
15890         stray notes and debug insns by using prev_nonnote_nondebug_insn
15891         instead of PREV_INSN.
15892
15893 2011-07-09  Richard Henderson  <rth@redhat.com>
15894
15895         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
15896         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
15897         * dwarf2out.c: ... here.
15898         (output_all_cfis): Remove.
15899         (dwarf2out_switch_text_section): Use output_cfis directly.
15900         (size_of_locs): Export.
15901         (output_loc_sequence, output_loc_sequence_raw): Export.
15902         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
15903         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
15904         output_cfa_loc_raw): Move to ...
15905         * dwarfcfi.c: ... here.
15906         * dwarf2out.h: Update decls.
15907
15908 2011-07-09  Richard Henderson  <rth@redhat.com>
15909
15910         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
15911         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
15912         * dwarf2cfi.c: ... here.
15913         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
15914         (DWARF_ROUND, DWARF_CIE_ID): Remove.
15915         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
15916         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
15917         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
15918
15919 2011-07-09  Richard Henderson  <rth@redhat.com>
15920
15921         * dwarf2cfi.c (cie_return_save): New.
15922         (queue_reg_save): Use compare_reg_or_pc.
15923         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
15924         (dwarf2out_frame_debug_expr): Likewise.
15925         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
15926         (initial_return_save): Likewise.
15927         (execute_dwarf2_frame): Save and restore initial return save from
15928         the cie to the fde.
15929         * config/mips/mips.c (mips_frame_set): Remove special case for
15930         DWARF_FRAME_RETURN_COLUMN.
15931
15932 2011-07-09  Richard Henderson  <rth@redhat.com>
15933
15934         * dwarf2cfi.c (lookup_cfa): Remove.
15935         (execute_dwarf2_frame): Assert queues are empty on entry.
15936         Setup initial cfa directly, not via lookup_cfa.
15937         Don't clear args_size state here.
15938
15939 2011-07-09  Richard Henderson  <rth@redhat.com>
15940
15941         * dwarf2cfi.c (add_cfi_vec): New.
15942         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
15943         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
15944         (execute_dwarf2_frame): Set add_cfi_vec.
15945
15946 2011-07-09  Richard Henderson  <rth@redhat.com>
15947
15948         * defaults.h (ASM_COMMENT_START): Move here...
15949         * dwarf2asm.c: ... from here.
15950         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
15951         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
15952         * varasm.c: Likewise.
15953
15954 2011-07-09  Richard Henderson  <rth@redhat.com>
15955
15956         PR debug/49686
15957         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
15958         (create_cfi_notes): ... do it here instead.
15959
15960 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
15961
15962         PR debug/49676
15963         * dwarf2out.c (size_of_int_loc_descriptor): New function.
15964         (address_of_int_loc_descriptor): Use it.
15965         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
15966
15967 2011-07-09  Richard Henderson  <rth@redhat.com>
15968
15969         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
15970         (prologue, epilogue): New.
15971         (return, *rts): New.
15972         (blockage, setd, seti): New.
15973         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
15974         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
15975         (pdp11_saved_regno): New.
15976         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
15977         generate rtl instead of text.
15978         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
15979         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
15980         * config/pdp11/pdp11-protos.h: Update.
15981
15982 2011-07-09  Richard Henderson  <rth@redhat.com>
15983
15984         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
15985         try to insert an rtl prologue here.
15986         (rs6000_output_function_epilogue): Similarly.
15987         * config/rs6000/rs6000.md (prologue): Emit a barrier to
15988         satisfy !TARGET_SCHED_PROLOG.
15989         (epilogue, sibcall_epilogue): Likewise.
15990
15991 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
15992
15993         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
15994         (FP_REG_P): Delete.
15995         (IN_OR_GLOBAL_P): Likewise.
15996
15997 2011-07-08  Jason Merrill  <jason@redhat.com>
15998
15999         PR c++/45437
16000         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
16001         compound assignment.
16002
16003         * cgraph.c (cgraph_add_to_same_comdat_group): New.
16004         * cgraph.h: Declare it.
16005         * ipa.c (function_and_variable_visibility): Make sure thunks
16006         have the right visibility.
16007
16008 2011-07-08  Richard Henderson  <rth@redhat.com>
16009
16010         PR bootstrap/49680
16011         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
16012         any tablejump vector.
16013
16014         PR bootstrap/49680
16015         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
16016         end of the prologue.
16017
16018 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
16019
16020         PR target/49621
16021         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
16022         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
16023         * config/rs6000/vector.md (vector_select_<mode>,
16024         vector_select_<mode>_uns): Change second operand of NE to
16025         CONST0_RTX (<MODE>mode) instead of const0_rtx.
16026         * config/rs6000/altivec.md (*altivec_vsel<mode>,
16027         *altivec_vsel<mode>_uns): Expect second operand of NE to be
16028         zero_constant of the corresponding vector mode.
16029         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
16030         Likewise.
16031
16032 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
16033
16034         * graphite-dependences.c (build_alias_set_powerset): Remove
16035         continue from loop, add one more assert.
16036
16037 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
16038
16039         PR target/46779
16040         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
16041         In particular, allow 8-bit values in r28 and r29.
16042         (avr_hard_regno_scratch_ok): Disallow any register that might be
16043         part of the frame pointer.
16044         (avr_hard_regno_rename_ok): Same.
16045         (avr_legitimate_address_p): Don't allow SUBREGs.
16046
16047 2011-07-08  Julian Brown  <julian@codesourcery.com>
16048
16049         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
16050         big-endian mode.
16051         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
16052         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
16053         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
16054         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
16055         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
16056         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
16057         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
16058         registers in big-endian mode.
16059
16060 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
16061
16062         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
16063         in terms of another.
16064         (write_attr_value): Write a cast if necessary.
16065
16066         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
16067         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
16068         (REG_WORDS_BIG_ENDIAN): Document.
16069         * doc/tm.texi: Regenerate.
16070         * reload.c (operands_match_p): Take it into account.
16071         (reload_adjust_reg_for_mode): Likewise.
16072         * rtlanal.c (subreg_get_info): Likewise.
16073
16074 2011-07-08  Richard Guenther  <rguenther@suse.de>
16075
16076         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
16077         folding.
16078
16079 2011-07-08  Kai Tietz  <ktietz@redhat.com>
16080
16081         * fold-const.c (fold_truth_andor): Factored out truth_andor
16082         label from fold_binary as function.
16083         (fold_binary_loc): Replace truth_andor lable
16084         by function fold_truth_andor.
16085
16086 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
16087
16088         PR middle-end/49519
16089         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
16090         check if address is stored in register. If so - give up.
16091         (check_sibcall_argument_overlap_1): Do not perform check of
16092         overlapping when it is call to address.
16093
16094 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
16095
16096         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
16097         of magic '31'.
16098
16099 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
16100
16101         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
16102         GET_MODE_BITSIZE where appropriate.
16103         (widen_leading, expand_parity, expand_ctz, expand_ffs,
16104         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
16105         expand_float, expand_fix): Likewise.
16106         * expr.c (convert_move, convert_modes, expand_expr_real_2,
16107         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
16108         * stor-layout.c (get_mode_bounds): Likewise.
16109         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
16110         Likewise.
16111         * convert.c (convert_to_integer): Likewise.
16112         * expmed.c (expand_shift_1): Likewise.
16113
16114         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
16115         a bitsize.
16116
16117         * optabs.c (expand_binop): Tighten conditions for doubleword
16118         expansions.
16119         (widen_bswap): Assert that mode bitsize and precision are the same.
16120         * stor-layout.c (get_best_mode): Skip modes that have lower
16121         precision than bitsize.
16122         * recog.c (simplify_while_replacing): Assert that bitsize and
16123         precision are the same.
16124
16125 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16126
16127         * Makefile.in (LIBGCOV): Remove.
16128         (libgcc.mvars): Remove LIBGCOV.
16129         * libgov.c: Move to ../libgcc.
16130
16131 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16132
16133         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
16134
16135 2011-07-08  Martin Jambor  <mjambor@suse.cz>
16136
16137         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
16138         is too big for total scalarization.
16139
16140 2011-07-07  Richard Henderson  <rth@redhat.com>
16141
16142         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
16143         (DBX_DEBUGGING_INFO): Undef.
16144
16145 2011-07-07  Richard Henderson  <rth@redhat.com>
16146
16147         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
16148         Handle some opcodes specially for debugging.
16149         * print-rtl.c: Include dwarf2out.h
16150         (print_rtx): Handle NOTE_INSN_CFI.
16151         * Makefile.in (print-rtl.o): Update.
16152
16153 2011-07-07  Richard Henderson  <rth@redhat.com>
16154
16155         * tree-pass.h (pass_dwarf2_frame): Declare.
16156         * passes.c (init_optimization_passes): Add it.
16157         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
16158         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
16159         make static, do not call add_cfis_to_fde.
16160         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
16161         dwarf2out_frame_init): Merge into...
16162         (execute_dwarf2_frame): ... here.  New function.
16163         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
16164         saved_do_cfi_asm to a tri-state variable.
16165         (gate_dwarf2_frame, pass_dwarf2_frame): New.
16166         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
16167         if it has yet to be done.  Don't call dwarf2cfi_function_init.
16168         * dwarf2out.h, debug.h: Update decls.
16169         * final.c (final_start_function): Don't call
16170         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
16171         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
16172         * toplev.c (lang_dependent_init): Likewise.
16173
16174 2011-07-07  Richard Henderson  <rth@redhat.com>
16175
16176         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
16177         FDE_TABLE_INCREMENT): Replace with...
16178         (fde_vec): ... this, a new vector.
16179         (current_fde): Remove.  Replace all users with cfun->fde.
16180         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
16181         (size_of_aranges, dwarf2out_finish): Likewise.
16182         (dwarf2out_alloc_current_fde): Break out from ...
16183         (dwarf2out_begin_prologue): ... here.
16184         (dwarf2out_frame_init): Remove.
16185         * dwarf2cfi.c: Update all users of current_fde.
16186         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
16187         * dwarf2out.h: Update decls.
16188         (dw_fde_node): Add fde_index member.
16189         * function.h (struct function): Add fde member.
16190
16191 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
16192             Richard Henderson  <rth@redhat.com>
16193
16194         * dwarf2cfi.c (add_cfi): Remove.
16195         (dwarf2out_cfi_label): Remove force argument.  Only generate the
16196         label name.
16197         (add_fde_cfi): Simplify the different code paths.
16198         (add_cie_cfi): New.
16199         (old_cfa, old_cfa_remember): New.
16200         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
16201         (last_reg_save_label): Remove.
16202         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
16203         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
16204         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
16205         dwarf2out_frame_debug_cfa_expression,
16206         dwarf2out_frame_debug_cfa_restore,
16207         dwarf2out_frame_debug_cfa_window_save,
16208         dwarf2out_frame_debug_expr): Remove label parameter.
16209         (cfi_label_required_p, add_cfis_to_fde): New.
16210         (dwarf2out_frame_debug_after_prologue): New.
16211         (dwarf2cfi_frame_init): Initialize old_cfa.
16212         (dwarf2out_frame_debug_restore_state): Likewise.
16213         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
16214         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
16215         * final.c (final_start_function): Call
16216         dwarf2out_frame_debug_after_prologue.
16217
16218 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
16219             Richard Henderson  <rth@redhat.com>
16220
16221         * dwarf2cfi.c (cfi_insn): New.
16222         (dwarf2out_cfi_label): Don't emit cfi label here.
16223         (add_fde_cfi): Create a NOTE_INSN_CFI.
16224         (dwarf2out_frame_debug): Setup cfi_insn.
16225         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
16226         (dwarf2out_cfi_begin_epilogue): Make static.
16227         (dwarf2out_frame_debug_restore_state): Make static.
16228         * dwarf2out.c (output_cfi_directive): Make static.
16229         (dwarf2out_emit_cfi): New.
16230         * dwarf2out.h: Update.
16231         * final.c (final): Remove CFI notes.
16232         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
16233         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
16234         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
16235         * insn-notes.def (NOTE_INSN_CFI): New.
16236         (NOTE_INSN_CFI_LABEL): New.
16237         * rtl.h (union rtunion_def): Add rt_cfi member.
16238         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
16239
16240 2011-07-07  Richard Henderson  <rth@redhat.com>
16241
16242         * dwarf2cfi.c: New file.
16243         * Makefile.in (OBJS): Add it.
16244         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
16245         * gengtype.c (open_base_files): Include dwarf2out.h.
16246         * coretypes.h (enum var_init_status): Move from ...
16247         * rtl.h: ... here.
16248         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
16249         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
16250         expand_builtin_dwarf_sp_column, init_return_column_size,
16251         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
16252         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
16253         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
16254         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
16255         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
16256         compute_barrier_args_size, dwarf2out_args_size,
16257         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
16258         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
16259         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
16260         queue_reg_save, dwarf2out_flush_queued_reg_saves,
16261         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
16262         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
16263         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
16264         dwarf2out_frame_debug_cfa_expression,
16265         dwarf2out_frame_debug_cfa_restore,
16266         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
16267         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
16268         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
16269         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
16270         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
16271         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
16272         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
16273         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
16274         dw_loc_descr_node): Move to dwarf2out.h.
16275         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
16276         mem_loc_descriptor): Export.
16277         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
16278         (dwarf2out_frame_init): Extract CIE generation code to
16279         dwarf2cfi_frame_init.
16280
16281 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
16282
16283         PR target/49660
16284         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
16285         MASK_V8PLUS, remove commented out flag and reorder.
16286
16287 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
16288
16289         PR c/49644
16290         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
16291         one non-complex and one complex argument, call c_save_expr on both
16292         operands.
16293
16294 2011-07-07  Martin Jambor  <mjambor@suse.cz>
16295
16296         PR middle-end/49495
16297         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
16298         (verify_cgraph_node): Some functinality moved to
16299         verify_edge_corresponds_to_fndecl, call it.
16300
16301 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
16302
16303         * config.gcc (*local*): Remove.
16304         * doc/install-old.texi: Don't mention local configurations.
16305
16306 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
16307
16308         PR debug/49522
16309         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
16310         referencing debug insns that have been reset.
16311         (dead_debug_insert_before): Don't assert reg is non-NULL,
16312         instead return immediately if it is NULL.
16313
16314 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
16315
16316         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
16317
16318 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
16319
16320         * hw-doloop.c: New file.
16321         * hw-doloop.h: New file.
16322         * Makefile.in (OBJS): Add hw-doloop.o.
16323         (hw-doloop.o): New rule.
16324         ($(obj_out_file)): Add hw-doloop.h dependency.
16325         * config/bfin/bfin.c: Include "hw-doloop.h".
16326         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
16327         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
16328         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
16329         type changed to hwloop_info.  Return bool, true if the loop was
16330         successfully optimized.  Remove code that was moved to
16331         hw-doloop.c, and adjust other parts.
16332         (hwloop_fail): New static function, containing parts that used
16333         to be in bfin_optimize_loop.
16334         (bfin_discover_loop, bfin_discover_loops, free_loops,
16335         bfin_reorder_loops): Remove.
16336         (hwloop_pattern_reg): New static function.
16337         (bfin_doloop_hooks): New variable.
16338         (bfin_reorg_loops): Remove most code, call reorg_loops.
16339         * config/bfin/bfin.md (doloop_end splitter): Also enable if
16340         loop counter is a memory_operand.
16341
16342 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
16343
16344         * config.gcc: Support --with-multilib-list for x86 Linux targets.
16345
16346         * configure.ac: Mention x86-64 for --with-multilib-list.
16347         * configure: Regenerated.
16348
16349         * config/i386/gnu-user64.h (SPEC_64): Support x32.
16350         (SPEC_32): Likewise.
16351         (ASM_SPEC): Likewise.
16352         (LINK_SPEC): Likewise.
16353         (TARGET_THREAD_SSP_OFFSET): Likewise.
16354         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
16355         (SPEC_X32): New.
16356
16357         * config/i386/i386.h (TARGET_X32): New.
16358         (TARGET_LP64): New.
16359         (LONG_TYPE_SIZE): Likewise.
16360         (POINTER_SIZE): Likewise.
16361         (POINTERS_EXTEND_UNSIGNED): Likewise.
16362         (OPT_ARCH64): Support x32.
16363         (OPT_ARCH32): Likewise.
16364
16365         * config/i386/i386.opt (mx32): New.
16366
16367         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
16368         (GLIBC_DYNAMIC_LINKERX32): Likewise.
16369         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
16370         (GLIBC_DYNAMIC_LINKERX32): Likewise.
16371
16372         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
16373         (BIONIC_DYNAMIC_LINKERX32): Likewise.
16374         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
16375
16376         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
16377
16378         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
16379
16380         * doc/invoke.texi: Document -mx32.
16381
16382 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
16383
16384         * doc/invoke.texi (mwords-little-endian): Deprecate.
16385         * config/arm/arm.opt (mwords-little-endian): Likewise.
16386         * config/arm/arm.c (arm_option_override): Warn about the deprecation
16387         of -mwords-little-endian.
16388
16389 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
16390
16391         * reload1.c (choose_reload_regs): Use mode sizes to check whether
16392         an old reload register completely defines the required value.
16393
16394 2011-07-07  Richard Guenther  <rguenther@suse.de>
16395
16396         * fold-const.c (fold_unary_loc): Do not strip sign-changes
16397         for NEGATE_EXPR.
16398
16399 2011-07-07  Richard Guenther  <rguenther@suse.de>
16400
16401         * tree-vrp.c (simplify_conversion_using_ranges): New function.
16402         (simplify_stmt_using_ranges): Call it.
16403
16404 2011-07-07  Kai Tietz  <ktietz@redhat.com>
16405
16406         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
16407         (lookup_logical_inverted_value): Likewise.
16408         (simplify_bitwise_binary_1): Likewise.
16409         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
16410
16411 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
16412
16413         * gcc.c (%[Spec]): Don't document.
16414         (struct spec_list): Update comment.
16415         (do_spec_1): Don't handle %[Spec].
16416         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
16417
16418 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
16419
16420         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
16421         default based on TARGET_ASM_NAMED_SECTION.
16422         * common/common-target.def (have_named_sections): Default to true.
16423         * common/config/default-common.c: Don't include tm.h.
16424         * common/config/picochip/picochip-common.c
16425         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
16426         * common/config/m32c/m32c-common.c: Remove.
16427         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
16428         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
16429         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
16430         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
16431         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
16432         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
16433         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
16434
16435 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
16436
16437         PR middle-end/49640
16438         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
16439         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
16440
16441 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16442
16443         PR libmudflap/49550
16444         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
16445
16446 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16447
16448         PR target/39150
16449         * configure.ac (gcc_cv_as_hidden): Also accept
16450         x86_64-*-solaris2.1[0-9]*.
16451         (gcc_cv_as_cfi_directive): Likewise.
16452         (gcc_cv_as_comdat_group_group): Likewise.
16453         (set_have_as_tls): Likewise.
16454         * configure: Regenerate.
16455         * config.gcc (i[34567]86-*-solaris2*): Also handle
16456         x86_64-*-solaris2.1[0-9]*.
16457         * config.host (i[34567]86-*-solaris2*): Likewise.
16458         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
16459         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
16460         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
16461         (TARGET_LD_EMULATION): Use it.
16462         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
16463         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
16464         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
16465         (ASM_CPU64_DEFAULT_SPEC): Define.
16466         (ASM_CPU_SPEC): Use %(asm_cpu_default).
16467         (ASM_SPEC): Redefine.
16468         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
16469         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
16470         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
16471         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
16472         configuration.
16473         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
16474
16475 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16476
16477         * config/sol2.h (ASM_SPEC): Split into ...
16478         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
16479         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
16480         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
16481         (ASM_SPEC): Use ASM_SPEC_BASE.
16482         * config/sparc/sol2.h (ASM_SPEC): Redefine.
16483
16484 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
16485
16486         * config/avr/avr.md (*reload_insi): Change predicate #1 to
16487         const_int_operand.  Ditto for peep2 producing this insn.
16488         Add argument to output_reload_insisf call.
16489         (*movsi,*movsf): Add argument to output_movsisf call.
16490         (*reload_insf): New insn and new peep2 to produce it.
16491         * config/avr/avr-protos.h (output_movsisf): Change prototype.
16492         (output_reload_insisf): Change prototype.
16493         * config/avr/avr.c (avr_asm_len): New function.
16494         (output_reload_insisf): Rewrite.
16495         (output_movsisf): Change prototype.  output_reload_insisf for
16496         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
16497         (adjust_insn_length): Add argument to output_movsisf and
16498         output_reload_insisf call.
16499
16500 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
16501
16502         * emit-rtl.c (paradoxical_subreg_p): New function.
16503         * rtl.h (paradoxical_subreg_p): Declare.
16504         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
16505         apply_distributive_law, simplify_comparison, simplify_set): Use it.
16506         * cse.c (record_jump_cond, cse_insn): Likewise.
16507         * expr.c (force_operand): Likewise.
16508         * rtlanal.c (num_sign_bit_copies1): Likewise.
16509         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
16510         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
16511         (push_reload): Use precision to check for paradoxical subregs.
16512         * expmed.c (extract_bit_field_1): Likewise.
16513
16514         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
16515         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
16516         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
16517         simplify_set, simplify_logical, expand_compound_operation,
16518         make_extraction, force_to_mode, if_then_else_cond, extended_count,
16519         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
16520         record_value_for_reg): Likewise.
16521         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
16522         * simplify-rtx. c (simplify_unary_operation_1,
16523         simplify_binary_operation_1, simplify_const_relational_operation):
16524         Likewise.
16525
16526         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
16527         instead of GET_MODE_BITSIZE where appropriate.
16528         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
16529         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
16530         init_num_sign_bit_copies_in_rep): Likewise.
16531         * cse.c (fold_rtx, cse_insn): Likewise.
16532         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
16533         * simplify-rtx.c (simplify_unary_operation_1,
16534         simplify_const_unary_operation, simplify_binary_operation_1,
16535         simplify_const_binary_operation, simplify_ternary_operation,
16536         simplify_const_relational_operation, simplify_subreg): Likewise.
16537         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
16538         simplify_if_then_else, simplify_set, expand_compound_operation,
16539         expand_field_assignment, make_extraction, if_then_else_cond,
16540         make_compound_operation, force_to_mode, make_field_assignment,
16541         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
16542         extended_count, try_widen_shift_mode, simplify_shift_const_1,
16543         simplify_comparison, record_promoted_value, simplify_compare_const,
16544         record_dead_and_set_regs_1): Likewise.
16545
16546         Revert:
16547         * simplify-rtx.c (simplify_const_binary_operation): Use the
16548         shift_truncation_mask hook instead of performing modulo by width.
16549         Compare against mode precision, not bitsize.
16550         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
16551         Use shift_truncation_mask instead of constructing the value manually.
16552
16553 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
16554
16555         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
16556         declaration.
16557         (rs6000_save_toc_in_prologue_p): Ditto.
16558
16559         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
16560         up the static chain (r11) during indirect function calls.
16561         (-msave-toc-indirect): New undocumented debug switch.
16562
16563         * config/rs6000/rs6000.c (struct machine_function): Add
16564         save_toc_in_prologue field to note whether the prologue needs to
16565         save the TOC value in the reserved stack location.
16566         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
16567         to save the TOC in the prologue, do so.
16568         (rs6000_trampoline_init): Don't allow creating AIX style
16569         trampolines if -mno-r11 is in effect.
16570         (rs6000_call_indirect_aix): New function to create AIX style
16571         indirect calls, adding support for -mno-r11 to suppress loading
16572         the static chain, and saving the TOC in the prologue instead of
16573         the call body.
16574         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
16575         TOC in the prologue.
16576
16577         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
16578         register numbers.
16579         (TOC_REGNUM): Ditto.
16580         (STATIC_CHAIN_REGNUM): Ditto.
16581         (ARG_POINTER_REGNUM): Ditto.
16582         (SFP_REGNO): Delete, unused.
16583         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
16584         function descriptor offsets.
16585         (TOC_SAVE_OFFSET_64BIT): Ditto.
16586         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
16587         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
16588         (AIX_FUNC_DESC_SC_32BIT): Ditto.
16589         (AIX_FUNC_DESC_SC_64BIT): Ditto.
16590         (ptrload): New mode attribute for the appropriate load of a pointer.
16591         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
16592         (call_indirect_aix64): Ditto.
16593         (call_value_indirect_aix32): Ditto.
16594         (call_value_indirect_aix64): Ditto.
16595         (call_indirect_nonlocal_aix32_internal): Ditto.
16596         (call_indirect_nonlocal_aix32): Ditto.
16597         (call_indirect_nonlocal_aix64_internal): Ditto.
16598         (call_indirect_nonlocal_aix64): Ditto.
16599         (call): Rewrite AIX indirect function calls.  Add support for
16600         eliminating the static chain, and for moving the save of the TOC
16601         to the function prologue.
16602         (call_value): Ditto.
16603         (call_indirect_aix<ptrsize>): Ditto.
16604         (call_indirect_aix<ptrsize>_internal): Ditto.
16605         (call_indirect_aix<ptrsize>_internal2): Ditto.
16606         (call_indirect_aix<ptrsize>_nor11): Ditto.
16607         (call_value_indirect_aix<ptrsize>): Ditto.
16608         (call_value_indirect_aix<ptrsize>_internal): Ditto.
16609         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
16610         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
16611         (call_nonlocal_aix32): Relocate in the rs6000.md file.
16612         (call_nonlocal_aix64): Ditto.
16613
16614         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
16615         -mno-r11 documentation.
16616
16617 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
16618
16619         PR other/49658
16620         * doc/extend.texi (Compound Literals): Fix typo.
16621
16622 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
16623
16624         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
16625
16626 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
16627
16628         * configure.ac (plugin-version.h): Generate
16629         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
16630         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
16631         macros.
16632
16633         * configure: Regenerate.
16634
16635         * doc/plugins.texi (Building GCC plugins): Mention
16636         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
16637
16638 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
16639
16640         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
16641         * combine.c (make_extraction, gen_lowpart_or_truncate,
16642         apply_distributive_law, simplify_comparison,
16643         reg_truncated_to_mode, record_truncated_value): Use it.
16644         * cse.c (notreg_cost): Likewise.
16645         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
16646         * expr.c (convert_move, convert_modes): Likewise.
16647         * optabs.c (expand_binop, expand_unop): Likewise.
16648         * postreload.c (move2add_last_label): Likewise.
16649         * regmove.c (optimize_reg_copy_3): Likewise.
16650         * rtlhooks.c (gen_lowpart_general): Likewise.
16651         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
16652
16653 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
16654
16655         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
16656
16657 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
16658
16659         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
16660         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
16661         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
16662         (simplify_const_unary_operation, simplify_binary_operation_1,
16663         simplify_const_binary_operation, simplify_const_relational_operation):
16664         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
16665         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
16666         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
16667         simplify_shift_const_1, simplify_comparison): Likewise.
16668         * expr.c (convert_modes): Likewise.
16669         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
16670         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
16671         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
16672
16673         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
16674
16675 2011-07-06  Richard Guenther  <rguenther@suse.de>
16676
16677         PR tree-optimization/49645
16678         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
16679         register variables.
16680         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
16681         in type qualification here ...
16682         (copy_reference_ops_from_ref): ... not here.
16683         (vn_reference_lookup_3): ... or here.
16684         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
16685         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
16686
16687 2011-07-06  Ian Lance Taylor  <iant@google.com>
16688
16689         * doc/install.texi (Configuration): It's
16690         --enable-gnu-indirect-function, not --enable-indirect-function.
16691
16692 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
16693
16694         * simplify-rtx.c (simplify_const_binary_operation): Use the
16695         shift_truncation_mask hook instead of performing modulo by width.
16696         Compare against mode precision, not bitsize.
16697         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
16698         Use shift_truncation_mask instead of constructing the value manually.
16699
16700 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
16701
16702         PR middle-end/47383
16703         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
16704         address computation and convert to address_mode if needed.
16705
16706 2011-07-06  Richard Guenther  <rguenther@suse.de>
16707
16708         * tree.c (build_common_tree_nodes_2): Merge with
16709         build_common_tree_nodes.
16710         * tree.h (build_common_tree_nodes): Adjust prototype.
16711         (build_common_tree_nodes_2): Remove.
16712         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
16713         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
16714
16715 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
16716
16717         PR tree-optimization/49618
16718         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
16719         t recurse on the decl.
16720         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
16721         return true if expr isn't known to be defined in current
16722         TU or some other LTO partition.
16723
16724 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
16725
16726         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
16727         override CASE_VALUES_THRESHOLD.
16728
16729         * stmt.c (toplevel): Include params.h.
16730         (case_values_threshold): Use the --param case-values-threshold
16731         value if non-zero, otherwise use machine dependent value.
16732         (expand_case): Use case_values_threshold.
16733
16734         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
16735
16736         * doc/invoke.texi (--param case-values-threshold): Document.
16737
16738 2011-07-05  Richard Henderson  <rth@redhat.com>
16739
16740         * dwarf2out.c (dwarf2out_cfi_label): Make static.
16741         (dwarf2out_flush_queued_reg_saves): Make static.
16742         (dwarf2out_reg_save): Remove.
16743         (dwarf2out_return_save): Remove.
16744         (dwarf2out_return_reg): Remove.
16745         (dwarf2out_reg_save_reg): Remove.
16746         (dwarf2out_def_cfa): Merge into ...
16747         (dwarf2out_frame_init): ... here.
16748         * dwarf2out.h, tree.h: Remove declarations as necessary.
16749
16750 2011-07-05  Richard Henderson  <rth@redhat.com>
16751
16752         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
16753         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
16754         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
16755         the alloc insn.
16756
16757         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
16758         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
16759         (process_epilogue): Don't call dwarf2out_def_cfa.
16760
16761         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
16762         indicate the return address save.
16763         (process_cfa_register): Likewise.
16764
16765         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
16766         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
16767
16768         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
16769         for ar.pfs save at alloc insn.
16770
16771 2011-07-05  Richard Henderson  <rth@redhat.com>
16772
16773         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
16774         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
16775         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
16776         stack pointer save.
16777         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
16778         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
16779         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
16780         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
16781
16782 2011-07-05  Richard Henderson  <rth@redhat.com>
16783
16784         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
16785         VUNSPEC_* constants here instead of via define_constants.
16786         (VUNSPEC_PEM): New constant.
16787         (procedure_entry_mask): New insn.
16788         (prologue): New expander.
16789         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
16790         (vax_expand_prologue): Rename from vax_output_function_prologue;
16791         emit rtl instead of text.
16792         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
16793         (print_operand): Add 'x' prefix.
16794
16795 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
16796
16797         PR middle-end/47715
16798         * calls.c (precompute_register_parameters): Promote the function
16799         argument before checking non-legitimate constant.
16800
16801 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
16802
16803         PR tree-optimization/47654
16804         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
16805         (lst_do_strip_mine_loop): Return an int.
16806         (lst_do_strip_mine): Same.
16807         (scop_do_strip_mine): Same.
16808         (scop_do_block): Loop blocking should strip-mine at least two loops.
16809         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
16810         (scop_do_interchange): Same.
16811         * graphite-poly.h (scop_do_interchange): Update declaration.
16812         (scop_do_strip_mine): Same.
16813
16814 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
16815
16816         * graphite-clast-to-gimple.c (precision_for_value): Removed.
16817         (precision_for_interval): Removed.
16818         (gcc_type_for_interval): Use mpz_sizeinbase.
16819
16820 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
16821
16822         * graphite-ppl.h (value_max): Correct computation of max.
16823
16824 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
16825
16826         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
16827
16828 2011-07-05  Richard Guenther  <rguenther@suse.de>
16829
16830         * c-decl.c (c_init_decl_processing): Defer building common
16831         tree nodes to c_common_nodes_and_builtins.
16832
16833 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
16834
16835         PR tree-optimization/49580
16836         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
16837         the loop's number of iterations.
16838         * tree-parloops.c (transform_to_exit_first_loop): Add the
16839         handling of the loop's number of iterations before the call
16840         to gimple_duplicate_sese_tail.
16841         Insert the stmt caclculating the new rhs of the loop's
16842         condition stmt to the preheader instead of iters_bb.
16843
16844 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
16845
16846         PR rtl-optimization/47449
16847         * fwprop.c (forward_propagate_subreg): Don't propagate hard
16848         register nor zero/sign extended hard register.
16849
16850 2011-07-05  Richard Guenther  <rguenther@suse.de>
16851
16852         PR tree-optimization/49518
16853         PR tree-optimization/49628
16854         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
16855         irrelevant and invariant data-references.
16856         (vect_analyze_data_ref_access): For invariant loads clear the
16857         group association.
16858
16859 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
16860
16861         PR rtl-optimization/49619
16862         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
16863         pass VOIDmode as op0_mode to recursive call, and return temp even
16864         when different from tor, just if it is not IOR of the original
16865         PLUS arguments.
16866
16867         PR rtl-optimization/49472
16868         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
16869         negating MULT, negate the second operand instead of first.
16870         (simplify_binary_operation_1) <case MULT>: If one operand is
16871         a NEG and the other is MULT, don't attempt to optimize by negation
16872         of the MULT operand if it only moves the NEG operation around.
16873
16874         PR debug/49602
16875         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
16876         get_current_def return value if it can't be trusted to be
16877         the current value of the variable in the current bb.
16878
16879 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
16880
16881         PR target/49600
16882         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
16883         general register to memory for !TARGET_INTER_UNIT_MOVES.
16884
16885 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
16886
16887         PR target/44643
16888         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
16889         instead of TREE_READONLY.
16890
16891 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
16892
16893         * doc/extend.texi (AVR Built-in Functions): Update documentation
16894         of __builtin_avr_fmul*.
16895         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
16896         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
16897         * config/avr/avr.md (fmul): Rename to fmul_insn.
16898         (fmuls): Rename to fmuls_insn.
16899         (fmulsu): Rename to fmulsu_insn.
16900         (fmul,fmuls,fmulsu): New expander.
16901         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
16902         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
16903         * config/avr/libgcc.S (__fmul): New function.
16904         (__fmuls): New function.
16905         (__fmulsu,__fmulsu_exit): New function.
16906
16907 2011-07-04  Richard Guenther  <rguenther@suse.de>
16908
16909         PR tree-optimization/49615
16910         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
16911         basic-block index check.
16912
16913 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
16914
16915         * longlong.h (count_leading_zeros, count_trailing_zeros,
16916         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
16917         resp. 64.
16918
16919 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
16920
16921         PR tree-optimization/49610
16922         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
16923         a basic block.
16924
16925 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
16926             Olivier Hainque  <hainque@adacore.com>
16927             Nicolas Setton  <setton@adacore.com>
16928
16929         * tree.h (TYPE_ARTIFICIAL): New flag.
16930         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
16931         the DIE of the type if it is artificial.
16932         (gen_array_type_die): Likewise.
16933         (gen_enumeration_type_die): Likewise.
16934         (gen_struct_or_union_type_die): Likewise.
16935         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
16936         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
16937
16938 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
16939
16940         * tree-object-size.c (pass_through_call): Handle
16941         BUILT_IN_ASSUME_ALIGNED.
16942
16943 2011-07-01  Martin Jambor  <mjambor@suse.cz>
16944
16945         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
16946
16947 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
16948
16949         PR middle-end/48016
16950         * explow.c (update_nonlocal_goto_save_area): Use proper mode
16951         for stack save area.
16952         * function.c (expand_function_start): Likewise.
16953
16954 2011-07-01  Richard Guenther  <rguenther@suse.de>
16955
16956         PR middle-end/49596
16957         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
16958         may have unknown refs.
16959
16960 2011-07-01  Kai Tietz  <ktietz@redhat.com>
16961
16962         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
16963
16964 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16965
16966         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
16967         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
16968         (Specific, mips-sgi-irix6): Likewise.
16969
16970 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16971
16972         PR libmudflap/49549
16973         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
16974
16975 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
16976
16977         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
16978         [idx]= and [idx1 ... idx2]= before initializers if needed for
16979         array initializers.
16980
16981 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
16982
16983         * config.gcc (score-*-elf): Remove score7.o.
16984         * config/score/t-score-elf: Likewise.
16985         * config/score/score.c: Merge score7 to score.c and
16986         remove forwarding functions.
16987         * config/score/score7.c: Deleted.
16988         * config/score/score7.h: Deleted.
16989
16990 2011-07-01  Richard Guenther  <rguenther@suse.de>
16991
16992         PR tree-optimization/49603
16993         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
16994
16995 2011-06-30  Martin Jambor  <mjambor@suse.cz>
16996
16997         * tree-sra.c (struct access): Rename total_scalarization to
16998         grp_total_scalarization
16999         (completely_scalarize_var): New function.
17000         (sort_and_splice_var_accesses): Set total_scalarization in the
17001         representative access.
17002         (analyze_access_subtree): Propagate total scalarization accross the
17003         tree, no holes in totally scalarized trees, simplify coverage
17004         computation.
17005         (analyze_all_variable_accesses): Call completely_scalarize_var instead
17006         of completely_scalarize_record.
17007
17008 2011-06-30  Richard Henderson  <rth@redhat.com>
17009
17010         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
17011         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
17012         * config/i386/i386.c: Don't include dwarf2out.h.
17013         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
17014         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
17015         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
17016         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
17017         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
17018
17019 2011-06-30  Richard Henderson  <rth@redhat.com>
17020
17021         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
17022         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
17023         * final.c (final_scan_insn): Look for it, and invoke
17024         dwarf2out_frame_debug before the insn if found.
17025
17026 2011-06-30  Richard Henderson  <rth@redhat.com>
17027
17028         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
17029         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
17030
17031 2011-06-30  Richard Henderson  <rth@redhat.com>
17032
17033         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
17034         Define a vector of this type.
17035         (regs_saved_in_regs): Use a VEC.
17036         (num_regs_saved_in_regs): Remove.
17037         (compare_reg_or_pc): New.
17038         (record_reg_saved_in_reg): Split out from...
17039         (dwarf2out_flush_queued_reg_saves): ... here.
17040         (clobbers_queued_reg_save): Update for VEC.
17041         (reg_saved_in): Likewise.
17042         (dwarf2out_frame_debug_init): Likewise.
17043         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
17044         (dwarf2out_frame_debug_cfa_register): Likewise.
17045
17046 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
17047
17048         PR tree-optimization/49572
17049         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
17050         type of the RHS instead of that of the LHS for the expression type.
17051
17052 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
17053
17054         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
17055         unconditionally.
17056
17057 2011-06-30  Richard Guenther  <rguenther@suse.de>
17058
17059         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
17060         * tree-ssa-structalias.c (create_variable_info_for): Do not
17061         add initial constraints for non-var-decls.  Properly handle
17062         globals in other ltrans partitions.
17063         (intra_create_variable_infos): Manually create constraints for
17064         the fake no-alias parameter.
17065         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
17066         and assert there are no clones.
17067
17068 2011-06-30  Richard Guenther  <rguenther@suse.de>
17069
17070         PR tree-optimization/46787
17071         * tree-data-ref.c (dr_address_invariant_p): Remove.
17072         (find_data_references_in_stmt): Invariant accesses are ok now.
17073         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
17074         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
17075         invariant loads.
17076
17077 2011-06-30  Martin Jambor  <mjambor@suse.cz>
17078
17079         PR tree-optimization/49094
17080         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
17081         (build_accesses_from_assign): Use it.
17082
17083 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
17084
17085         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
17086         handling of BUILT_IN_ASSUME_ALIGNED.
17087
17088         PR debug/49364
17089         * dwarf2out.c (output_abbrev_section): Don't return early
17090         if abbrev_die_table_in_use is 1.
17091         (dwarf2out_finish): Instead don't call output_abbrev_section
17092         nor emit abbrev_section_label in that case.
17093
17094 2011-06-30  Nick Clifton  <nickc@redhat.com>
17095
17096         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
17097         for the V850E.
17098
17099 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
17100
17101         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
17102         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
17103
17104 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
17105
17106         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
17107         both pattern and original statements if necessary.
17108         (vect_transform_loop): Likewise.
17109         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
17110         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
17111         Mark the pattern statement only if the original statement doesn't
17112         have its own uses.
17113         (process_use): Call vect_mark_relevant with additional parameter.
17114         (vect_mark_stmts_to_be_vectorized): Likewise.
17115         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
17116         (vect_analyze_stmt): Handle both pattern and original statements
17117         if necessary.
17118         (vect_transform_stmt): Don't store vectorized pattern statement
17119         in the original statement.
17120         (vect_is_simple_use_1): Use related pattern statement only if the
17121         original statement is irrelevant.
17122         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
17123
17124 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
17125
17126         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
17127         option.
17128         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
17129         entry.
17130         (TARGET_AVX128_OPTIMAL): New definition.
17131         * config/i386/i386.c (initial_ix86_tune_features): Initialize
17132         X86_TUNE_AVX128_OPTIMAL entry.
17133         (ix86_option_override_internal): Enable the generation
17134         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
17135         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
17136         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
17137
17138 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
17139
17140         PR tree-optimization/49539
17141         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
17142         names by means of stmt_references_abnormal_ssa_name.
17143         (associate_plusminus): Call can_propagate_from before propagating
17144         from definition statements.
17145         (ssa_forward_propagate_and_combine): Remove superfluous newline.
17146
17147 2011-06-29  Richard Guenther  <rguenther@suse.de>
17148
17149         * doc/invoke.texi: Document -scev dump modifier.
17150         * tree-pass.h (TDF_SCEV): New dump flag.
17151         * tree-dump.c (dump_option_value_in): Add scev.
17152         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
17153         * tree-scalar-evolution.c: Likewise.
17154
17155 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
17156
17157         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
17158         (cxa_type_match): Correct declaration.
17159         (__gnu_unwind_pr_common): Reconstruct additional indirection
17160         when __cxa_type_match returns succeeded_with_ptr_to_base.
17161
17162 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17163
17164         PR rtl-optimization/49114
17165         * reload.c (struct replacement): Remove SUBREG_LOC member.
17166         (push_reload): Do not set it.
17167         (push_replacement): Likewise.
17168         (subst_reload): Remove dead code.
17169         (copy_replacements): Remove assertion.
17170         (copy_replacements_1): Do not handle SUBREG_LOC.
17171         (move_replacements): Likewise.
17172         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
17173         Detect subregs via recursive descent instead of via SUBREG_LOC.
17174
17175 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
17176
17177         * config/avr/avr.c (avr_encode_section_info): Dispatch to
17178         default_encode_section_info.
17179
17180 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
17181
17182         PR tree-optimization/49545
17183         * builtins.c (get_object_alignment_1): Update function comment.
17184         Do not use DECL_ALIGN for functions, but test
17185         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
17186         * fold-const.c (get_pointer_modulus_and_residue): Don't check
17187         for functions here.
17188         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
17189
17190 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
17191
17192         PR debug/49567
17193         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
17194         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
17195
17196 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
17197
17198         PR target/34734
17199         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
17200         about uninitialized data attributed 'progmem' from here...
17201         (avr_encode_section_info): ...to this new function.
17202         (TARGET_ENCODE_SECTION_INFO): New define.
17203         (avr_section_type_flags): For data in ".progmem.data", remove
17204         section flag SECTION_WRITE.
17205
17206 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
17207
17208         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
17209         _xmulhisi3_exit.
17210         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
17211         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
17212         (__umulhisi3): Ditto.
17213         * config/avr/avr.md (mulhisi3): New insn expender.
17214         (umulhisi3): New insn expender.
17215         (*mulhisi3_call): New insn.
17216         (*umulhisi3_call): New insn.
17217
17218 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
17219
17220         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
17221
17222 2011-06-28  Richard Henderson  <rth@redhat.com>
17223
17224         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
17225         all code and arguments that handled pushes.  Update all callers.
17226
17227 2011-06-28  Richard Henderson  <rth@redhat.com>
17228
17229         * config/arm/arm.c (arm_output_function_prologue): Don't call
17230         thumb1_output_function_prologue.
17231         (arm_expand_prologue): Avoid dead store.
17232         (number_of_first_bit_set): Use ctz_hwi.
17233         (thumb1_emit_multi_reg_push): New.
17234         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
17235         to emit the entire prologue as rtl.
17236         (thumb1_output_interwork): Split out from
17237         thumb1_output_function_prologue.
17238         (thumb1_output_function_prologue): Remove.
17239         (arm_attr_length_push_multi): Handle thumb1.
17240         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
17241         (prologue_thumb1_interwork): New.
17242         (*push_multi): Allow thumb1; use push_mult_memory_operand.
17243         * config/arm/predicates.md (push_mult_memory_operand): New.
17244
17245 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
17246
17247         * config/sparc/sync.md (*stbar): Delete.
17248         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
17249
17250 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
17251
17252         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
17253
17254 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17255
17256         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
17257         (TARGET_64BIT_DEFAULT): Define.
17258         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
17259         of tm_file.
17260         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
17261
17262 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
17263
17264         * common.opt (in_lto_p): New Variable entry.
17265         * flags.h (in_lto_p): Move to common.opt.
17266         * gcc.c: Include params.h.
17267         (set_option_handlers): Also use common_handle_option and
17268         target_handle_option.
17269         (main): Call global_init_params, finish_params and init_options_struct.
17270         * opts.c (debug_type_names): Move from toplev.c.
17271         (print_filtered_help): Access quiet_flag through opts pointer.
17272         (common_handle_option): Return early in the driver for some options.
17273         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
17274         opts pointer.
17275         * toplev.c (in_lto_p): Move to common.opt.
17276         (debug_type_names): Move to opts.c.
17277         * Makefile.in (OBJS): Remove opts.o.
17278         (OBJS-libcommon-target): Add opts.o.
17279         (gcc.o): Update dependencies.
17280
17281 2011-06-28  Kai Tietz  <ktietz@redhat.com>
17282
17283         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
17284
17285 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
17286
17287         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
17288         with '=' constraint modifier.
17289         (*divdf3_vfp): Likewise.
17290         ("*mulsf3_vfp"): Likewise.
17291         ("*muldf3_vfp"): Likewise.
17292         ("*mulsf3negsf_vfp"): Likewise.
17293         ("*muldf3negdf_vfp"): Likewise.
17294
17295 2011-06-28  Nick Clifton  <nickc@redhat.com>
17296
17297         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
17298         relaxation when performing an incremental link.
17299
17300 2011-06-28  Kai Tietz  <ktietz@redhat.com>
17301
17302         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
17303         within BB from last to first.
17304
17305 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
17306
17307         * genattr-common.c: New.  Based on genattr.c.
17308         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
17309         (MOSTLYCLEANFILES): Add insn-attr-common.h.
17310         (opts.o): Update dependencies.
17311         (.PRECIOUS): Add insn-attr-common.h.
17312         (simple_rtl_generated_h): Add insn-attr-common.h.
17313         (build/genattr-common.o): New.
17314         (genprogrtl): Add attr-common.
17315         * genattr.c (main): Include insn-attr-common.h.  Don't generate
17316         definitions of DELAY_SLOTS or INSN_SCHEDULING.
17317         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
17318
17319 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
17320
17321         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
17322         avr-*-* and avr-*-rtems* targets.
17323
17324         * config/avr/elf.h: New file.
17325         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
17326         (TARGET_ASM_SELECT_SECTION): Define.
17327         (INIT_SECTION_ASM_OP): Undefine.
17328         (FINI_SECTION_ASM_OP): Undefine.
17329         (READONLY_DATA_SECTION_ASM_OP): Undefine.
17330         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
17331         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
17332         * config/avr/avr.h:
17333         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
17334         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
17335         (MAX_OFILE_ALIGNMENT): Move to elf.h.
17336         (STRING_LIMIT): Move to elf.h.
17337         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
17338         (ASM_DECLARE_OBJECT_NAME): Remove.
17339         (ESCAPES): Remove.
17340         (ASM_OUTPUT_SKIP): Remove.
17341         (DWARF2_DEBUGGING_INFO): Remove.
17342         (OBJECT_FORMAT_ELF): Remove.
17343         (USER_LABEL_PREFIX): Remove.
17344         (ASM_OUTPUT_EXTERNAL): Remove.
17345         (ASM_OUTPUT_ASCII): Remove.
17346         (TYPE_ASM_OP): Remove.
17347         (SIZE_ASM_OP): Remove.
17348         (WEAK_ASM_OP): Remove.
17349         (STRING_ASM_OP): Remove.
17350         (SET_ASM_OP): Remove.
17351         (ASM_WEAKEN_LABEL): Remove.
17352         (TYPE_OPERAND_FMT): Remove.
17353         (ASM_DECLARE_FUNCTION_SIZE): Remove.
17354         (ASM_FINISH_DECLARE_OBJECT): Remove.
17355         (NO_DOLLAR_IN_LABEL): Remove.
17356         (ASM_GENERATE_INTERNAL_LABEL): Remove.
17357         (ASM_OUTPUT_CASE_LABEL): Remove.
17358         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
17359         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
17360         (gas_output_ascii): Remove.
17361         (gas_output_limited_string): Remove.
17362         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
17363         * config/avr/avr-protos.h
17364         (gas_output_ascii): Remove prototye.
17365         (gas_output_limited_string): Remove prototype.
17366
17367 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
17368
17369         PR target/48637
17370         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
17371         asm operands.
17372
17373 2011-06-27  Jan Hubicka  <jh@suse.cz>
17374
17375         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
17376         node instead of references in node.
17377
17378 2011-06-27  Richard Henderson  <rth@redhat.com>
17379
17380         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
17381         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
17382         inside ifdef.
17383
17384 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
17385
17386         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
17387
17388         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
17389         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
17390         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
17391         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
17392         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
17393         (evaluate_stmt, execute_fold_all_builtins): Handle
17394         BUILT_IN_ASSUME_ALIGNED.
17395         * tree-ssa-dce.c (propagate_necessity): Likewise.
17396         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
17397         call_may_clobber_ref_p_1): Likewise.
17398         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
17399         (expand_builtin_assume_aligned): New function.
17400         * doc/extend.texi (__builtin_assume_aligned): Document.
17401
17402         PR debug/49544
17403         * cselib.c (promote_debug_loc): If cselib_preserve_constants
17404         and l has two DEBUG_INSN owned locs instead of just one, adjust
17405         the second location's setting_insn too.
17406
17407 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17408
17409         PR libmudflap/38738
17410         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
17411
17412 2011-06-27  Nick Clifton  <nickc@redhat.com>
17413
17414         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
17415         bit position of highest bit set into a count of the high zero bits.
17416
17417 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
17418
17419         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
17420
17421 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
17422
17423         PR lto/48492
17424         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
17425         to a NULL parent.
17426
17427 2011-06-27  Richard Guenther  <rguenther@suse.de>
17428
17429         PR tree-optimization/49394
17430         * passes.c (execute_one_pass): Restore current_pass after
17431         applying IPA transforms.
17432
17433 2011-06-27  Kai Tietz  <ktietz@redhat.com>
17434
17435         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
17436         out of type precision after operation.
17437         (find_bswap): Take for limit value the integer auto-promotion
17438         into account.
17439
17440 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
17441
17442         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
17443         forward scan as well.
17444
17445 2011-06-27  Tristan Gingold  <gingold@adacore.com>
17446
17447         PR target/44241
17448         * config/vms/vms-protos.h: New file.
17449         * config/vms/vms-crtlmap.map: New file.
17450         * config/vms/vms.c: New file.
17451         * config/vms/make-crtlmap.awk: New file.
17452         * config/vms/vms-crtl.h: File removed.
17453         * config/vms/vms-crtl-64.h: File removed.
17454         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
17455         * config/alpha/vms64.h: Do not include vms-crtl-64.h
17456         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
17457         clear some builtins on VMS.  Calls vms_patch_builtins.
17458         (avms_asm_output_external): Remove.
17459         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
17460         (struct crtl_name_spec): Remove
17461         (DO_CTRL_NAMES): Remove.
17462         * config/ia64/vms.h (struct crtl_name_spec): Remove
17463         (DO_CTRL_NAMES): Remove.
17464         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
17465         clear some builtins on VMS.  Calls vms_patch_builtins.
17466         (ia64_asm_output_external): Remove DO_CRTL_NAME.
17467         * config/ia64/vms64.h: Do not include vms-crtl-64.h
17468         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
17469
17470 2011-06-27  Tristan Gingold  <gingold@adacore.com>
17471
17472         * config/alpha/alpha.c (alpha_end_function): Always generate .end
17473         directive on VMS.
17474
17475 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
17476
17477         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
17478         the function receives nonlocal gotos.
17479
17480 2011-06-27  Richard Guenther  <rguenther@suse.de>
17481
17482         PR tree-optimization/49536
17483         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
17484         For non-scalar inner types use a scalar type according to
17485         the scalar inner mode.
17486
17487 2011-06-27  Richard Guenther  <rguenther@suse.de>
17488
17489         PR tree-optimization/49365
17490         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
17491
17492 2011-06-27  Richard Guenther  <rguenther@suse.de>
17493
17494         PR tree-optimization/49169
17495         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
17496         the alignment of function decls.
17497
17498 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
17499
17500         PR target/47997
17501         * config/darwin.c (darwin_mergeable_string_section): Place string
17502         constants in '.cstring' rather than '.const' when CF/NSStrings are
17503         active.
17504
17505 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
17506
17507         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
17508         (emit_save_register_window): Likewise.
17509         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
17510         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
17511         Swap back %o7/%i7 in register naming.
17512
17513 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
17514
17515         PR driver/49371
17516         * config/darwin.c (darwin_override_options): Improve warning when
17517         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
17518         is given with fpie/fPIE.
17519         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
17520         * config/darwin9.h (PIE_SPEC): New.
17521
17522 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
17523
17524         * timevar.c (timevar_print): Increase width for display of timevar
17525         name.
17526
17527 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
17528
17529         PR c++/46400
17530         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
17531         instead of TYPE_CHAIN for chain_next for types.
17532
17533 2011-06-24  Richard Henderson  <rth@redhat.com>
17534
17535         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
17536         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
17537         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
17538         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
17539         (sparc_flat_expand_prologue): Emit individual instructions
17540         instead of one of the above.
17541
17542 2011-06-24  Easwaran Raman  <eraman@google.com>
17543
17544         PR rtl-optimization/49429
17545         PR target/49454
17546         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
17547         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
17548         used to copy y into x.
17549         * calls.c (initialize_argument_information): Mark
17550         an argument addressable if it is passed by invisible reference.
17551         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
17552         if it is passed by reference.
17553
17554 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
17555
17556         PR rtl-optimization/49504
17557         * rtlanal.c (nonzero_bits1): Properly handle addition or
17558         subtraction of a pointer in Pmode if pointers extend unsigned.
17559         (num_sign_bit_copies1): Likewise.
17560
17561 2011-06-24  Martin Jambor  <mjambor@suse.cz>
17562
17563         PR tree-optimizations/49516
17564         * tree-sra.c (sra_modify_assign): Choose the safe path for
17565         aggregate copies if we also did scalar replacements.
17566
17567 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
17568
17569         PR target/49335
17570         * config/arm/predicates.md (add_operator): New.
17571         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
17572
17573 2011-06-24  Andi Kleen  <ak@linux.intel.com>
17574
17575         * tree-sra.c (type_internals_preclude_sra_p): Add msg
17576         parameter. Split up ifs and report reason in *msg.
17577         (reject): Add.
17578         (find_var_candiate): Add msg variable.
17579         Split up ifs and report reason to reject.
17580         (find_param_candidates): Add msg variable.
17581         Pass msg to type_internals_preclude_sra_p.
17582
17583 2011-06-23  Jeff Law  <law@redhat.com>
17584
17585         PR middle-end/48770
17586         * reload.h (reload): Change to return a bool.
17587         * ira.c (ira): If requested by reload, run a fast DCE pass after
17588         reload has completed.  Fix comment typo.
17589         * reload1.c (need_dce): New file scoped static.
17590         (reload): Set reload_completed here.  Return whether or not a DCE
17591         pass after reload is needed.
17592         (delete_dead_insn): Set need_dce as needed.
17593
17594         PR middle-end/49465
17595         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
17596         to detect threading through joiner block.  If there was already
17597         an edge to the new target, then do not change the PHI nodes.
17598
17599 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
17600
17601         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
17602         get_pointer_alignment to see if base isn't sufficiently aligned.
17603
17604 2011-06-23  Jan Hubicka  <jh@suse.cz>
17605
17606         PR tree-optimize/49373
17607         * tree-pass.h (all_late_ipa_passes): Declare.
17608         * cgraphunit.c (init_lowered_empty_function): Fix properties.
17609         (cgraph_optimize): Execute late passes; remove unreachable funcions
17610         after materialization.
17611         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
17612         LTOing.
17613         * passes.c (all_late_ipa_passes): Declare.
17614         (dump_passes, register_pass): Handle late ipa passes.
17615         (init_optimization_passes): Move ipa_pta to late passes; schedule
17616         fixup_cfg at beggining of all_passes.
17617         (apply_ipa_transforms): New function.
17618         (execute_one_pass): When doing simple ipa pass, apply all transforms.
17619
17620 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
17621
17622         * params.c: Include common/common-target.h.  Don't include tm.h.
17623         (lang_independent_params): Move from toplev.c.
17624         (global_init_params): New.
17625         * params.h (global_init_params): Declare.
17626         * target.def (default_params): Move to common-target.def.
17627         * toplev.c (lang_independent_options): Remove.
17628         (lang_independent_params): Move to params.c.
17629         (general_init): Use global_init_params.
17630         * common/common-target.def (option_default_params): Move from
17631         target.def.
17632         * common/config/ia64/ia64-common.c: Include params.h.
17633         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
17634         from ia64.c.
17635         * common/config/rs6000/rs6000-common.c: Include params.h.
17636         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
17637         from rs6000.c.
17638         * common/config/sh/sh-common.c: Include params.h.
17639         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
17640         from sh.c.
17641         * common/config/spu/spu-common.c: Include params.h.
17642         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
17643         from spu.c.
17644         * config/ia64/ia64.c (ia64_option_default_params,
17645         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
17646         * config/rs6000/rs6000.c (rs6000_option_default_params,
17647         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
17648         * config/sh/sh.c (sh_option_default_params,
17649         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
17650         * config/spu/spu.c (spu_option_default_params,
17651         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
17652         * Makefile.in (OBJS): Remove params.o.
17653         (OBJS-libcommon-target): Add params.o.
17654         (params.o, $(common_out_object_file)): Update dependencies.
17655         * doc/tm.texi: Regenerate.
17656
17657 2011-06-23  Alan Modra  <amodra@gmail.com>
17658
17659         PR bootstrap/49383
17660         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
17661         invocation for 2011-06-09 changes.
17662
17663 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
17664
17665         PR libgomp/49490
17666         * omp-low.c (expand_omp_for_static_nochunk): Only
17667         use n ceil/ nthreads size for the first n % nthreads threads in the
17668         team instead of all threads except for the last few ones which
17669         get less work or none at all.
17670
17671         PR debug/49496
17672         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
17673         uses.
17674
17675 2011-06-22  Richard Guenther  <rguenther@suse.de>
17676
17677         PR tree-optimization/49493
17678         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
17679         Refer to the alias target of variables.
17680         (associate_varinfo_to_alias_1): Remove.
17681         (ipa_pta_execute): Do not associate aliases with anything.
17682         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
17683         (cgraph_function_node): Likewise.
17684         (cgraph_function_or_thunk_node): Likewise.
17685         (varpool_variable_node): Likewise.
17686
17687 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
17688
17689         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
17690         * config.gcc (arm*-*-linux*): Default to gnu tls.
17691         (arm*-*-*): Add --with-tls option.
17692         (all_defaults): Add 'tls'.
17693
17694 2011-06-22  Richard Henderson  <rth@redhat.com>
17695
17696         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
17697         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
17698         (dwarf2out_frame_debug_cfa_window_save): Rename from
17699         dwarf2out_window_save; make static.
17700         * tree.h (dwarf2out_window_save): Don't declare.
17701
17702         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
17703         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
17704         (emit_save_register_window): Rename from gen_save_register_window;
17705         emit the insn and add REG_CFA_* notes.
17706         (sparc_expand_prologue): Update to match.
17707         * config/sparc/sparc.md (save_register_window_1): Simplify from
17708         save_register_window<P:mode>.
17709
17710 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17711
17712         PR target/49497
17713         * config/i386/i386.md (*lea_general_2): Always allow SImode.
17714         (*lea_general_2_zext): Likewise.
17715         (imul to lea peepholes): Use const359_operand and check
17716         TARGET_PARTIAL_REG_STALL.
17717
17718         * config/i386/predicates.md (const359_operand): New.
17719
17720 2011-06-22  Michael Matz  <matz@suse.de>
17721
17722         * cgraphunit.c (assemble_thunk): Use correct return type.
17723
17724 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
17725             Dmitry Melnik  <dm@ispras.ru>
17726
17727         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
17728         (neon_output_shift_immediate): Ditto.
17729         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
17730         prototype.
17731         (neon_output_shift_immediate): Ditto.
17732         * config/arm/neon.md (vashl<mode>3): Modified constraint.
17733         (vashr<mode>3_imm): New insn pattern.
17734         (vlshr<mode>3_imm): Ditto.
17735         (vashr<mode>3): Modified constraint.
17736         (vlshr<mode>3): Ditto.
17737         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
17738         predicate.
17739         (imm_for_neon_rshift_operand): Ditto.
17740         (imm_lshift_or_reg_neon): Ditto.
17741         (imm_rshift_or_reg_neon): Ditto.
17742
17743         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
17744
17745 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
17746
17747         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
17748         builtin calls even if likelyvalue is not CONSTANT.
17749         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
17750         Return get_value_for_expr of first operand
17751         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
17752         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
17753         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
17754         their non-checking counterparts.
17755         (call_may_clobber_ref_p_1): Likewise.
17756         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
17757         like their non-checking counterparts.
17758         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
17759         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
17760         like their non-checking counterparts.
17761         (find_func_clobbers): Likewise.
17762         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
17763         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
17764
17765         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
17766         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
17767         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
17768         of base type reference as argument.
17769         (resolve_addr_in_expr): Likewise.  Fix keep computation.
17770         (convert_descriptor_to_signed): Renamed to...
17771         (convert_descriptor_to_mode): ... this.  For wider types convert to
17772         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
17773         (typed_binop): New function.
17774         (scompare_loc_descriptor, ucompare_loc_descriptor,
17775         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
17776         default to unsigned type instead of signed.
17777
17778         PR debug/47858
17779         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
17780         (gimple_build_debug_source_bind_stat): New prototype.
17781         (gimple_build_debug_source_bind): Define.
17782         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
17783         gimple_debug_source_bind_get_value,
17784         gimple_debug_source_bind_get_value_ptr,
17785         gimple_debug_source_bind_set_var,
17786         gimple_debug_source_bind_set_value): New inlines.
17787         * gimple.c (gimple_build_debug_source_bind_stat): New function.
17788         * gimple-pretty-print.c (dump_gimple_debug): Handle
17789         GIMPLE_DEBUG_SOURCE_BIND.
17790         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
17791         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
17792         * tree-parloops.c (eliminate_local_variables,
17793         separate_decls_in_region): Likewise.
17794         (separate_decls_in_region_debug): Renamed from
17795         separate_decls_in_region_debug_bind.  Handle
17796         gimple_debug_source_bind_p.
17797         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
17798         prototypes.
17799         (DECL_HAS_DEBUG_ARGS_P): Define.
17800         (struct tree_function_decl): Add has_debug_args_flag field.
17801         * tree.c (debug_args_for_decl): New variable.
17802         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
17803         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
17804         (rewrite_debug_stmt_uses): New function.
17805         (rewrite_stmt): Use it to rewrite debug stmt uses.
17806         * rtl.def (DEBUG_PARAMETER_REF): New.
17807         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
17808         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
17809         DEBUG_PARAMETER_REF.
17810         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
17811         * print-rtl.c (print_rtx): Likewise.
17812         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
17813         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
17814         debug stmts in the first bb.
17815         * tree-inline.c (remap_ssa_name): If remapping default def
17816         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
17817         a source bind debug stmt.
17818         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
17819         (maybe_move_debug_stmts_to_successors): Likewise.
17820         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
17821         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
17822         debug args vector from old_decl to new_decl.
17823         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
17824         or modified parameters, add debug bind stmts before call
17825         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
17826         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
17827         on DECL_DEBUG_EXPRs from debug args vector.
17828         (expand_debug_source_expr): New function.
17829         (expand_debug_locations): Use it for source bind insns.
17830         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
17831         * var-tracking.c (prepare_call_arguments): Add debug args
17832         to call_arguments if any.
17833         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
17834         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
17835         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
17836         (get_ref_die_offset, parameter_ref_descriptor): New functions.
17837         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
17838         (gen_subprogram_die): Handle parameters identified by
17839         DEBUG_PARAMETER_REF.
17840
17841 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
17842
17843         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
17844         * doc/install.texi (Configuration): Document --with-tls.
17845         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
17846         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
17847         (arm_tls_descseq_addr): New.
17848         (legitimize_tls_address): Add tlsdesc support.
17849         (arm_cannot_copy_insn_p): Check for tlscall.
17850         (arm_emit_tls_decoration): Likewise.
17851         * config/arm/arm.h (TARGET_GNU2_TLS): New.
17852         (OPTION_DEFAULT_SPECS): Add with-tls support.
17853         * config/arm/arm.md (R1_REGNUM): Define.
17854         (tlscall): New.
17855         * config/arm/arm.opt (tls_type): New enumeration type and values.
17856         (mtls-dialect): New switch.
17857         * config/arm/arm-opts.h (enum tls_type): New.
17858
17859 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
17860
17861         * attribs.c (register_attribute): Added assert to check that all
17862         attribute specs are registered with a name that is not empty and
17863         does not start with '_'.
17864         (decl_attributes): Avoid the lookup of the "naked" attribute spec
17865         if the function has no attributes.
17866         * tree.c (is_attribute_with_length_p): Removed.
17867         (is_attribute_p): Removed.
17868         (private_is_attribute_p): New.
17869         (private_lookup_attribute): New.
17870         (lookup_attribute): Removed.
17871         (lookup_ident_attribute): New.
17872         (remove_attribute): Require the first argument to be in the form
17873         'text', not '__text__'.  Updated asserts.
17874         (merge_attributes): Use lookup_ident_attributes instead of
17875         lookup_attribute.
17876         (merge_dllimport_decl_attributes): Use remove_attribute.
17877         (attribute_list_contained): Likewise.
17878         (attribute_list_equal): Immediately return 1 if the arguments are
17879         identical pointers.
17880         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
17881         'int'.  Require the first argument to be in the form 'text', not
17882         '__text__'.  Require the second argument to be an identifier.
17883         (lookup_attribute): Made inline.  Require the first argument to be
17884         in the form 'text', not '__text__'.
17885         (private_is_attribute_p, private_lookup_attribute): New.
17886         Updated comments.
17887
17888 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
17889
17890         * builtins.c: Add sync_ or SYNC__ to builtin names.
17891         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
17892         * omp-low.c: Add sync_ or SYNC__ to builtin names.
17893
17894 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
17895
17896         PR target/33049
17897         * config/avr/avr.md (extzv): New expander.
17898         (*extzv): New insn.
17899         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
17900         * config/avr/constraints.md (C04): New constraint.
17901         * doc/md.texi (Machine Constraints): Document it.
17902
17903 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
17904
17905         PR middle-end/49489
17906         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
17907         unsignedp argument instead of 1 for clrsb_optab.
17908         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
17909         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
17910         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
17911         * optabs.c (widen_leading): Call widen_operand and expand_unop
17912         with 0 as unsignedp argument instead of 1 for clrsb_optab.
17913         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
17914
17915 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
17916
17917         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
17918
17919 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
17920
17921         * gensupport.c (add_define_attr): New static function.
17922         (is_predicable): Allow multi-alternative lists for the "predicable"
17923         attribute.
17924         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
17925         (process_one_cond_exec): Call alter_attrs_for_insn.
17926         * doc/md.texi (Defining Attributes): Mention some standard names.
17927         (Conditional Execution): Update documentation for "predicable".
17928
17929         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
17930         __builtin_clrsbll): Document.
17931         * doc/rtl.texi (clrsb): New entry.
17932         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
17933         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
17934         (expand_unop): Handle clrsb_optab.
17935         (init_optabs): Initialize it.
17936         * optabs.h (enum optab_index): New entry OTI_clrsb.
17937         (clrsb_optab): Define.
17938         * genopinit.c (optabs): Add an entry for it.
17939         * builtins.c (expand_builtin): Handle clrsb builtin functions.
17940         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
17941         BUILT_IN_CLRSBLL): New.
17942         * rtl.def (CLRSB): New code.
17943         * dwarf2out.c (mem_loc_descriptor): Handle it.
17944         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
17945         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
17946         and popcount.
17947         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
17948         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
17949         (__ctzDI2): Move declaration.
17950         * config/bfin/bfin.md (clrsbsi2): New expander.
17951         (signbitssi2): Use the CLRSB rtx.
17952         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
17953         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
17954
17955 2011-06-21  Richard Guenther  <rguenther@suse.de>
17956
17957         * ipa-inline-transform.c (inline_transform): Fix previous change.
17958
17959 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
17960
17961         PR tree-optimization/49478
17962         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
17963         with constant operand.
17964
17965 2011-06-21  Richard Guenther  <rguenther@suse.de>
17966
17967         * ipa-inline-transform.c (inline_transform): Fix typo.
17968
17969 2011-06-21  Richard Guenther  <rguenther@suse.de>
17970
17971         PR tree-optimization/49483
17972         * tree-vect-stmts.c (vectorizable_assignment): Also handle
17973         VIEW_CONVERT_EXPR conversions.
17974
17975 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
17976
17977         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
17978         * config/avr/avr-tables.opt: New file (generated).
17979         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
17980         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
17981         avr-mcus.def.
17982         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
17983         (avr_option_override): Don't process -mmcu= argument here.  Set
17984         avr_current_device using avr_mcu_index.
17985         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
17986         * config/avr/avr.opt (mmcu=): Use Enum.
17987         * config/avr/t-avr (avr-devices.o): Update dependencies.
17988         ($(srcdir)/config/avr/avr-tables.opt): New.
17989         * target.def (help): Remove.
17990         * doc/tm.texi.in (TARGET_HELP): Remove.
17991         * doc/tm.texi: Regenerate.
17992         * opts.c: Don't include target.h.
17993         (common_handle_option): Don't call targetm.help.
17994         * system.h (TARGET_HELP): Poison.
17995         * Makefile.in (opts.o): Update dependencies.
17996
17997 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17998
17999         * config/usegld.h: New file.
18000         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
18001         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
18002         (LIB_SPEC): Likewise.  Search /lib.
18003         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
18004         (RDYNAMIC_SPEC): Handle GNU ld.
18005         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
18006         Define.
18007         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
18008         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
18009         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
18010         (STACK_CHECK_STATIC_BUILTIN): Define.
18011         * config/sol2.opt (compat-bsd): Remove.
18012         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
18013         * config/sol2-bi.h: New file.
18014         * config/sol2-gld.h: Remove.
18015         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
18016         (NO_DBX_BNSYM_ENSYM): Remove.
18017         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
18018         (STACK_CHECK_STATIC_BUILTIN): Remove.
18019         Test USE_GLD instead of TARGET_GNU_LD.
18020         * config/i386/sol2-10.h: Rename to ...
18021         * config/i386/sol2-bi.h .. this.
18022         (SUBTARGET_EXTRA_SPECS): Redefine.
18023         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
18024         (MULTILIB_DEFAULTS): Remove.
18025         (DEFAULT_ARCH32_P): Define.
18026         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
18027         (ARCH64_SUBDIR): Define.
18028         Test USE_GLD instead of TARGET_GNU_LD.
18029         (I386_EMULATION): Rename to ...
18030         (ARCH32_EMULATION): ... this.
18031         (X86_64_EMULATION): Rename to ...
18032         (ARCH64_EMULATION): ... this.
18033         (TARGET_LD_EMULATION): Remove.
18034         (LINK_ARCH_SPEC): Remove.
18035         * config/i386/sol2-gas.h: Remove.
18036         * config/i386/t-sol2-10: Rename to ...
18037         * config/i386/t-sol2-64: ... this.
18038         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
18039         (AS_SPARC64_FLAG): Define.
18040         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
18041         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
18042         depending on TARGET_CPU_DEFAULT.
18043         (CPP_CPU_SPEC): Redefine.
18044         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
18045         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
18046         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
18047         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
18048         ASM_ARCH_DEFAULT_SPEC): Redefine.
18049         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
18050         LINK_ARCH_DEFAULT_SPEC.
18051         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
18052         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
18053         (ARCH64_SUBDIR): Define.
18054         (LINK_ARCH64_SPEC): Redefine.
18055         (CC1_SPEC): Redefine.
18056         (OPTION_DEFAULT_SPECS): Redefine.
18057         (MULTILIB_DEFAULTS): Define.
18058         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
18059         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
18060         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
18061         (NO_DBX_BNSYM_ENSYM): Remove.
18062         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
18063         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
18064         (TARGET_ASM_NAMED_SECTION): Likewise.
18065         (STACK_CHECK_STATIC_BUILTIN): Remove.
18066         * config/sparc/sol2-bi.h: Remove.
18067         * config/sparc/sol2-gas-bi.h: Remove.
18068         * config/sparc/sol2-gas.h: Remove.
18069         * config/sparc/sol2-gld-bi.h: Remove.
18070         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
18071         common parts ...
18072         (*-*-solaris2*): ... here.
18073
18074 2011-06-21  Christian Bruel  <christian.bruel@st.com>
18075
18076         PR other/43564
18077         * ipa-inline.c (can_inline_edge_p): Check
18078         !DECL_DISREGARD_INLINE_LIMITS.
18079
18080 2011-06-21  Christian Bruel  <christian.bruel@st.com>
18081
18082         PR middle-end/49139
18083         * cgraphunit.c (process_function_and_variable_attributes): warn when
18084         always_inline functions that are not inline.
18085         * ipa-inline-transform.c (inline_transform): Always call
18086         optimize_inline.
18087         * tree-inline.c (tree_inlinable_function_p): Use error instead
18088         of sorry.
18089         (expand_call_inline): Likewise.
18090
18091 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
18092
18093         * Makefile.in (dg_target_exps): Set.
18094         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
18095         instead of 7, try to divide it more evenly.
18096
18097 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
18098
18099         PR target/49089
18100         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
18101         (avx256_split_unaligned_store): New definition.
18102         (ix86_option_override_internal): Enable avx256 unaligned load/store
18103         splitting only when avx256_split_unaligned_load/store is set.
18104
18105 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
18106
18107         * regrename.c (scan_rtx_reg): Handle the case where we write to an
18108         open chain in a smaller mode without failing the entire block.
18109
18110 2011-06-21  Alan Modra  <amodra@gmail.com>
18111
18112         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
18113         CONST high part large-toc address.
18114         (rs6000_tls_referenced_p): Make static.
18115         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
18116
18117 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
18118
18119         PR target/49385
18120         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
18121         one of the operands is a register.
18122
18123 2011-06-20  Kai Tietz  <ktietz@redhat.com>
18124
18125         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
18126         operations in combination with binary and.
18127
18128 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
18129
18130         * regrename.c (do_replace): Don't update notes.
18131
18132 2011-06-20  Alan Modra  <amodra@gmail.com>
18133
18134         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
18135         of toc-relative address in CONST.
18136         (rs6000_delegitimize_address): Recognize changed address.
18137         (rs6000_legitimize_reload_address): Likewise.
18138         (rs6000_emit_move): Don't force these constants to memory.
18139         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
18140         toc-relative address in CONST.
18141         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
18142         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
18143
18144 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
18145
18146         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
18147         (count_trailing_zeros): Likewise.
18148
18149 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
18150
18151         PR other/49325
18152         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
18153         .init_array can be used with .ctors on targets.
18154         * configure: Regenerated.
18155
18156 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
18157
18158         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
18159         if the element type is volatile.
18160
18161 2011-06-18  Jan Hubicka  <jh@suse.cz>
18162
18163         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
18164         extra name aliases.
18165         (lto_symtab_resolve_can_prevail_p): Likewise.
18166         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
18167         * cgraphbuild.c (record_reference): Remove extra body alias code.
18168         (mark_load): Likewise.
18169         (mark_store): Likewise.
18170         * cgraph.h (varpool_node): Remove extra_name filed;
18171         add alias_of and extraname_alias.
18172         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
18173         (varpool_alias_aliased_node): New inline function.
18174         (varpool_variable_node): New function.
18175         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
18176         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
18177         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
18178         (input_varpool_node): Likewise.
18179         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
18180         (varpool_externally_visible_p): Remove extra body alias code.
18181         (function_and_variable_visibility): Likewise.
18182         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
18183         (ipa_pta_execute): Use it.
18184         * varpool.c (varpool_remove_node): Remove extra name alias code.
18185         (varpool_mark_needed_node): Likewise.
18186         (varpool_analyze_pending_decls): Analyze aliases.
18187         (assemble_aliases): New functoin.
18188         (varpool_assemble_decl): Use it.
18189         (varpool_create_variable_alias): New function.
18190         (varpool_extra_name_alias): Rewrite.
18191         (varpool_for_node_and_aliases): New function.
18192
18193 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
18194
18195         PR target/49411
18196         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
18197         last_arg_constant and last argument doesn't match its predicate,
18198         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
18199         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
18200         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
18201         spelling of error message.
18202         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
18203         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
18204         const_0_to_255_operand instead of const_int_operand.
18205
18206         Revert:
18207         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
18208
18209         * config/i386/sse.md (blendbits): Remove mode attribute.
18210         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
18211         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
18212         Check integer value of operand 3 in insn constraint.
18213
18214 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
18215
18216         PR rtl-optimization/48542
18217         * reload.c (find_equiv_reg): Stop looking when finding a
18218         setjmp-type call.
18219         * reload1.c (reload_as_needed): Invalidate all reload
18220         registers when crossing a setjmp-type call.
18221
18222 2011-06-16  Jeff Law  <law@redhat.com>
18223
18224         * tree-ssa-threadupdate.c (struct redirection_data): New field
18225         intermediate_edge.
18226         (THREAD_TARGET2): Define.
18227         (redirection_data_eq): Also check that the intermediate edge is equal.
18228         (lookup_redirection_data): Drop useless argument.  Extract the
18229         outgoing_edge and intermediate edge from E.  Callers updated.
18230         (copy_phi_args, update_destination_phis): New functions.
18231         (fix_duplicate_block_edges): Likewise.
18232         (create_edge_and_update_destination_phis): Duplicate all the edges
18233         hung off e->aux.  Use copy_phi_args.
18234         (create_duplicates): Use fix_duplicate_block_edges.
18235         (fixup_template_block): Likewise.
18236         (redirect_edges): If necessary, redirect the joiner block's incoming
18237         edge to the duplicate of the joiner block.
18238         (thread_block): Don't muck up loops when threading through a joiner
18239         block.
18240         (thread_through_loop_header): Handle threading through a joiner block.
18241         (mark_threaded_blocks, register_jump_thread): Likewise.
18242         * tree-flow.h (register_jump_thread): Add new argument.  Callers
18243         updated.
18244         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
18245         (thread_across_edge): Handle threading through a joiner block.
18246
18247 2011-06-16  Martin Jambor  <mjambor@suse.cz>
18248
18249         PR tree-optimization/49343
18250         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
18251         calculate offset, provide 2nd operand for the new COMPONENT_REF.
18252
18253 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
18254
18255         * config/darwin-protos.h (machopic_select_rtx_section): Move to
18256         inside RTX_CODE ifdef.
18257
18258 2011-06-16  Tom de Vries  <tom@codesourcery.com>
18259
18260         PR target/45098
18261         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
18262         Disallow NULL pointer for pointer arithmetic.
18263
18264 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
18265
18266         PR target/49398
18267         Revert.
18268         2011-06-10  Wei Guozhi  <carrot@google.com>
18269
18270         PR target/45335
18271         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
18272         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
18273         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
18274         related peephole2.
18275         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
18276         related peephole2.
18277         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
18278         (arm_legitimate_ldrd_p): New prototype.
18279         (arm_output_ldrd): New prototype.
18280         * config/arm/arm.c (arm_check_ldrd_operands): New function.
18281         (arm_legitimate_ldrd_p): New function.
18282         (arm_output_ldrd): New function.
18283
18284 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
18285
18286         PR middle-end/46500
18287         * doc/tm.texi.in: Update Copyright date.
18288         * doc/tm.texi: Regenerate.
18289         * targhooks.c (default_setup_incoming_varargs): Replace
18290         CUMULATIVE_ARGS* argument type with cumulative_args_t.
18291         (default_pretend_outgoing_varargs_named): Likewise.
18292         (hook_pass_by_reference_must_pass_in_stack): Likewise.
18293         (hook_callee_copies_named): Likewise.
18294         (default_function_arg_advance): Likewise.
18295         (default_function_arg): Likewise.
18296         (default_function_incoming_arg): Likewise.
18297         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
18298         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
18299         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
18300         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
18301         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
18302         * targhooks.h (default_setup_incoming_varargs): Likewise.
18303         (default_pretend_outgoing_varargs_named): Likewise.
18304         (hook_pass_by_reference_must_pass_in_stack): Likewise.
18305         (hook_callee_copies_named): Likewise.
18306         (default_function_arg_advance): Likewise.
18307         (default_function_arg): Likewise.
18308         (default_function_incoming_arg): Likewise.
18309         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
18310         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
18311         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
18312         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
18313         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
18314         * target.def (pass_by_reference): Likewise.
18315         (setup_incoming_varargs, strict_argument_naming): Likewise.
18316         (pretend_outgoing_varargs_named, callee_copies): Likewise.
18317         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
18318         (function_incoming_arg): Likewise.
18319         * target.h: Don't include "tm.h" .
18320         (cumulative_args_t): New typedef.
18321         [GCC_TM_H] (get_cumulative_args): New static inline function.
18322         [GCC_TM_H] (pack_cumulative_args): Likewise.
18323         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
18324         argument type with cumulative_args_t.
18325         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
18326         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
18327         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
18328         (frv_arg_partial_bytes, frv_function_arg): Likewise.
18329         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
18330         (frv_function_arg_1): Likewise.
18331         * config/s390/s390.c (s390_pass_by_reference): Likewise.
18332         (s390_function_arg_advance, s390_function_arg): Likewise.
18333         * config/m32c/m32c.c (m32c_function_arg): Likewise.
18334         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
18335         (m32c_strict_argument_naming): Likewise.
18336         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
18337         (spu_function_arg_advance): Likewise.
18338         (spu_setup_incoming_varargs): Likewise.  Make static.
18339         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
18340         Remove prototype.
18341         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
18342         CUMULATIVE_ARGS* argument type with cumulative_args_t.
18343         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
18344         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
18345         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
18346         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
18347         (mep_pass_by_reference, mep_function_arg): Likewise.
18348         (mep_function_arg_advance): Likewise.
18349         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
18350         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
18351         (m32r_function_arg, m32r_function_arg_advance): Likewise.
18352         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
18353         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
18354         (ix86_function_arg, ix86_pass_by_reference): Likewise.
18355         (ix86_setup_incoming_varargs): Likewise.
18356         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
18357         (sh_strict_argument_naming): Likewise.
18358         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
18359         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
18360         (sh_function_arg_advance, sh_function_arg): Likewise.
18361         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
18362         (pdp11_function_arg_advance): Likewise.
18363         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
18364         Likewise.
18365         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
18366         * config/avr/avr.c (avr_function_arg): Likewise.
18367         (avr_function_arg_advance): Likewise.
18368         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
18369         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
18370         (xtensa_function_arg_1): Likewise.
18371         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
18372         Likewise.
18373         (xstormy16_function_arg): Likewise.
18374         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
18375         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
18376         (fr30_function_arg_advance): Likewise.
18377         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
18378         (lm32_function_arg, lm32_function_arg_advance): Likewise.
18379         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
18380         (moxie_function_arg, moxie_function_arg_advance): Likewise.
18381         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
18382         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
18383         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
18384         (cris_function_arg, cris_function_incoming_arg): Likewise.
18385         (cris_function_arg_advance, cris_function_arg_1): Likewise.
18386         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
18387         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
18388         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
18389         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
18390         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
18391         (mn10300_arg_partial_bytes): Likewise.
18392         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
18393         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
18394         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
18395         (ia64_function_arg_1): Likewise.
18396         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
18397         (m68k_function_arg): Likewise.
18398         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
18399         (rs6000_function_arg, setup_incoming_varargs): Likewise.
18400         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
18401         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
18402         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
18403         (picochip_arg_advance): Likewise.
18404         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
18405         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
18406         (mcore_function_arg_advance): Likewise.
18407         * config/score/score.c (score_pass_by_reference): Likewise.
18408         (score_function_arg_advance): Likewise.
18409         (score_arg_partial_bytes): Likewise.  Make static.
18410         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
18411         * config/arm/arm.c (arm_arg_partial_bytes): Replace
18412         CUMULATIVE_ARGS* argument type with cumulative_args_t.
18413         (arm_function_arg, arm_function_arg_advance): Likewise.
18414         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
18415         * config/pa/pa.c (pa_pass_by_reference): Likewise.
18416         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
18417         (pa_function_arg): Likewise.
18418         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
18419         (mips_function_arg, mips_function_arg_advance): Likewise.
18420         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
18421         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
18422         * config/vax/vax.c (vax_function_arg): Likewise.
18423         (vax_function_arg_advance): Likewise.
18424         * config/h8300/h8300.c (h8300_function_arg): Likewise.
18425         (h8300_function_arg_advance): Likewise.
18426         * config/v850/v850.c (v850_pass_by_reference): Likewise.
18427         (v850_strict_argument_naming, v850_function_arg): Likewise.
18428         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
18429         (v850_setup_incoming_varargs): Likewise.
18430         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
18431         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
18432         (mmix_function_arg, mmix_pass_by_reference): Likewise.
18433         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
18434         with const void *.
18435         * config/bfin/bfin.c (setup_incoming_varargs): Replace
18436         CUMULATIVE_ARGS* argument type with cumulative_args_t.
18437         (bfin_function_arg_advance, bfin_function_arg): Likewise.
18438         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
18439         * calls.c (emit_call_1): Change type of args_so_far to
18440         cumulative_args_t.  Changed all callers.
18441         (initialize_argument_information): Likewise.
18442         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
18443         * dse.c (get_call_args): Likewise.
18444         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
18445         * function.c (pass_by_reference, reference_callee_copied): Likewise.
18446         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
18447         New member args_so_far_v.  Changed all users.
18448         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
18449         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
18450         * config/mips/mips.c (mips_output_args_xfer): Likewise.
18451         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
18452         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
18453         * config/microblaze/microblaze.c (microblaze_expand_prologue):
18454         Likewise.
18455         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
18456         m32r_pass_by_reference.
18457
18458 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
18459
18460         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
18461         argument to be a VEC of statements.
18462         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
18463         assert that pattern statements have to have their vector type set.
18464         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
18465         Change the first argument to be a VEC of statements.  Update
18466         documentation.
18467         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
18468         (vect_handle_widen_mult_by_const): New function.
18469         (vect_recog_widen_mult_pattern):  Change the first argument to be a
18470         VEC of statements.  Update documentation.  Check that the constant is
18471         INTEGER_CST.  Support multiplication by a constant that fits an
18472         intermediate type - call vect_handle_widen_mult_by_const.
18473         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
18474         call.  Handle additional pattern statements if necessary.
18475
18476 2011-06-16  Nick Clifton  <nickc@redhat.com>
18477
18478         PR target/49427
18479         * config.gcc: Set cpu_type to v850 for any V850 architecture.
18480         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
18481         md_file, extra_modes, out_file and extra_options are these are all
18482         deduced from cpu_type.
18483
18484 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
18485
18486         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
18487         truncation mask to 63.
18488
18489 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
18490
18491         PR target/49313
18492         PR target/29524
18493         * longlong.h: Add AVR support:
18494         (count_leading_zeros): New macro.
18495         (count_trailing_zeros): New macro.
18496         (COUNT_LEADING_ZEROS_0): New macro.
18497         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
18498         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
18499         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
18500         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
18501         (LIB2FUNCS_EXCLUDE): Add _clz.
18502         * config/avr/libgcc.S (XCALL): Move up in file.
18503         (XJMP): New C Macro.
18504         (DEFUN): New asm macro.
18505         (ENDF): New asm macro.
18506         (__ffssi2): New function.
18507         (__ffshi2): New function.
18508         (__loop_ffsqi2): New function.
18509         (__ctzsi2): New function.
18510         (__ctzhi2): New function.
18511         (__clzdi2): New function.
18512         (__clzsi2): New function.
18513         (__clzhi2): New function.
18514         (__paritydi2): New function.
18515         (__paritysi2): New function.
18516         (__parityhi2): New function.
18517         (__parityqi2): New function.
18518         (__popcounthi2): New function.
18519         (__popcountsi2): New function.
18520         (__popcountdi2): New function.
18521         (__popcountqi2): New function.
18522         (__bswapsi2): New function.
18523         (__bswapdi2): New function.
18524         (__ashldi3): New function.
18525         (__ashrdi3): New function.
18526         (__lshrdi3): New function.
18527         Fix suspicous lines.
18528
18529 2011-06-16  Richard Guenther  <rguenther@suse.de>
18530
18531         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
18532         the same as x != 0.
18533         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
18534         to (bool) X & 1.
18535         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
18536         equality compares against zero for the lower bit.
18537
18538 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
18539
18540         PR tree-optimization/49419
18541         * tree-vrp.c (execute_vrp): Call init_range_assertions
18542         before estimate_numbers_of_iterations, call
18543         free_number_of_iterations_estimates before calling
18544         remove_range_assertions.
18545
18546 2011-06-16  Revital Eres  <revital.eres@linaro.org>
18547
18548         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
18549         (struct partial_schedule): Add rows_length field.
18550         (verify_partial_schedule): Check rows_length.
18551         (ps_insert_empty_row): Handle rows_length.
18552         (create_partial_schedule): Likewise.
18553         (free_partial_schedule): Likewise.
18554         (reset_partial_schedule): Likewise.
18555         (create_ps_insn): Remove rest_count argument.
18556         (remove_node_from_ps): Update rows_length.
18557         (add_node_to_ps): Update rows_length and call create_ps_insn
18558         without passing row_rest_count.
18559         (rotate_partial_schedule): Update rows_length.
18560
18561 2011-06-16  Revital Eres  <revital.eres@linaro.org>
18562
18563         * ddg.c (add_intra_loop_mem_dep): New function.
18564         (build_intra_loop_deps): Call it.
18565
18566 2011-06-13  Jeff Law  <law@redhat.com>
18567
18568         * df-problems.c (df_lr_local_compute): Manually CSE
18569         PIC_OFFSET_TABLE_REGNUM.
18570         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
18571         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
18572
18573 2011-06-13  Jan Hubicka  <jh@suse.cz>
18574
18575         * cgraphunit.c (handle_alias_pairs): New function.
18576         (cgraph_finalize_compilation_unit): Use it.
18577         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
18578         as externally visible.
18579
18580 2011-06-15  Richard Guenther  <rguenther@suse.de>
18581
18582         * expr.c (expand_expr_real_2): Reduce all integral types to
18583         bitfield precision.
18584         (expand_expr_real_1): Likewise.
18585
18586 2011-06-15  Martin Jambor  <mjambor@suse.cz>
18587
18588         PR tree-optimization/48613
18589         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
18590         ipa_node_params_vector is NULL.
18591
18592 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
18593
18594         PR debug/49382
18595         * dwarf2out.c (dw_loc_list_node): Add force field.
18596         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
18597         location in the list, even if it is modified before first real insn.
18598         (output_loc_list): Emit empty ranges with force flag set.
18599         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
18600
18601 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
18602
18603         PR target/49349
18604         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
18605         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
18606         above a fence.  Update comments.
18607         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
18608         placed just above it.  Do not allow NULL place_to_insert.
18609
18610 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
18611
18612         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
18613         (slpeel_tree_peel_loop_to_edge): Don't call
18614         remove_dead_stmts_from_loop.
18615         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
18616         remove irrelevant pattern statements.  For irrelevant statements
18617         check if it is the last statement of a detected pattern, use
18618         corresponding pattern statement instead.
18619         (destroy_loop_vec_info): No need to remove pattern statements,
18620         only free stmt_vec_info.
18621         (vect_transform_loop): For irrelevant statements check if it is
18622         the last statement of a detected pattern, use corresponding
18623         pattern statement instead.
18624         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
18625         pattern statements.  Set basic block for the new statement.
18626         (vect_pattern_recog): Update documentation.
18627         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
18628         operands of pattern statements.
18629         (vectorizable_call): Fix printing.  In case of a pattern statement
18630         use the lhs of the original statement when creating a dummy
18631         statement to replace the original call.
18632         (vect_analyze_stmt): For irrelevant statements check if it is
18633         the last statement of a detected pattern, use corresponding
18634         pattern statement instead.
18635         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
18636         statements use gsi of the original statement.
18637
18638 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
18639
18640         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
18641         common/common-target-def.h.
18642         * target.def (default_target_flags, handle_option,
18643         supports_split_stack, optimization_table, init_struct,
18644         except_unwind_info, unwind_tables_default, have_named_sections):
18645         Move to common/common-target.def.
18646         * target.h (enum opt_levels, struct default_options): Move to
18647         common/common-target.h.
18648         * targhooks.c (default_except_unwind_info,
18649         dwarf2_except_unwind_info, sjlj_except_unwind_info,
18650         default_target_handle_option, empty_optimization_table): Move to
18651         common/common-targhooks.c.
18652         * targhooks.h (default_except_unwind_info,
18653         dwarf2_except_unwind_info, sjlj_except_unwind_info,
18654         default_target_handle_option, empty_optimization_table): Move to
18655         common/common-targhooks.h.
18656         * common/common-target-def.h: Include common/common-targhooks.h.
18657         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
18658         defined.
18659         * common/common-target.def (handle_option, option_init_struct,
18660         option_optimization_table, default_target_flags,
18661         except_unwind_info, supports_split_stack, unwind_tables_default,
18662         have_named_sections): Move from target.def.
18663         (HOOK_PREFIX): Undefine at end of file.
18664         * common/common-target.h: Include input.h.
18665         (enum opt_levels, struct default_options): Move from target.h.
18666         * common/common-targhooks.c, common/common-targhooks.h: New.
18667         * config.gcc (target_has_targetm_common): Default to yes.
18668         (moxie*): Set target_has_targetm_common=no.
18669         (hppa*-*-*): Don't set target_has_targetm_common=yes.
18670         * doc/tm.texi: Regenerate.
18671         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
18672         (C_TARGET_DEF_H): Add common/common-targhooks.h.
18673         (GCC_OBJS): Remove vec.o.
18674         (OBJS): Remove hooks.o and vec.o.
18675         (OBJS-libcommon-target): Add vec.o, hooks.o and
18676         common/common-targhooks.o.
18677         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
18678         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
18679         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
18680         cfglayout.o, $(out_object_file), $(common_out_object_file)):
18681         Update dependencies.
18682         (common/common-targhooks.o): New.
18683         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
18684         * common/config/pa/pa-common.c: Include more headers.  Take
18685         copyright dates from pa.c.
18686         (pa_option_optimization_table, pa_handle_option,
18687         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
18688         TARGET_HANDLE_OPTION): Move from pa.c.
18689         * common/config/alpha/alpha-common.c,
18690         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
18691         common/config/bfin/bfin-common.c,
18692         common/config/cris/cris-common.c,
18693         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
18694         common/config/h8300/h8300-common.c,
18695         common/config/i386/i386-common.c,
18696         common/config/ia64/ia64-common.c,
18697         common/config/iq2000/iq2000-common.c,
18698         common/config/lm32/lm32-common.c,
18699         common/config/m32c/m32c-common.c,
18700         common/config/m32r/m32r-common.c,
18701         common/config/m68k/m68k-common.c,
18702         common/config/mcore/mcore-common.c,
18703         common/config/mep/mep-common.c,
18704         common/config/microblaze/microblaze-common.c,
18705         common/config/mips/mips-common.c,
18706         common/config/mmix/mmix-common.c,
18707         common/config/mn10300/mn10300-common.c,
18708         common/config/pdp11/pdp11-common.c,
18709         common/config/picochip/picochip-common.c,
18710         common/config/rs6000/rs6000-common.c,
18711         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
18712         common/config/score/score-common.c, common/config/sh/sh-common.c,
18713         common/config/sparc/sparc-common.c,
18714         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
18715         common/config/vax/vax-common.c,
18716         common/config/xstormy16/xstormy16-common.c,
18717         common/config/xtensa/xtensa-common.c: New.
18718         * config/alpha/alpha.c: Include common/common-target.h.
18719         (alpha_option_optimization_table, alpha_handle_option,
18720         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
18721         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
18722         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
18723         * config/arm/arm.c (arm_option_optimization_table,
18724         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
18725         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
18726         arm-common.c.
18727         * config/avr/avr.c (avr_option_optimization_table,
18728         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
18729         to avr-common.c.
18730         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
18731         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
18732         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
18733         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
18734         * config/cris/cris.c (cris_option_optimization_table,
18735         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
18736         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
18737         cris-common.c.
18738         * config/fr30/fr30.c (fr30_option_optimization_table,
18739         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
18740         to fr30-common.c.
18741         * config/frv/frv.c (frv_option_optimization_table,
18742         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
18743         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
18744         * config/h8300/h8300.c (h8300_option_optimization_table,
18745         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
18746         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
18747         * config/i386/i386-protos.h (ix86_handle_option): Declare.
18748         * config/i386/i386.c: Include common/common-target.h.
18749         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
18750         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
18751         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
18752         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
18753         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
18754         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
18755         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
18756         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
18757         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
18758         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
18759         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
18760         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
18761         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
18762         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
18763         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
18764         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
18765         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
18766         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
18767         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
18768         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
18769         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
18770         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
18771         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
18772         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
18773         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
18774         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
18775         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
18776         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
18777         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
18778         ix86_option_optimization_table, ix86_option_init_struct,
18779         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
18780         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
18781         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
18782         i386-common.c.
18783         * config/i386/t-i386 (i386.o): Update dependencies.
18784         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
18785         * config/ia64/ia64.c (ia64_option_optimization_table,
18786         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
18787         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
18788         ia64_handle_option): Move to ia64-common.c.
18789         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
18790         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
18791         * config/lm32/lm32.c (lm32_option_optimization_table,
18792         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
18793         to lm32-common.c.
18794         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
18795         m32c-common.c.
18796         * config/m32r/m32r.c (m32r_option_optimization_table,
18797         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
18798         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
18799         m32r_handle_option): Move to m32r-common.c.
18800         (m32r_memory_move_cost): Remove comment referring to
18801         TARGET_HANDLE_OPTION.
18802         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
18803         Move to m68k-common.c.
18804         * config/mcore/mcore.c (mcore_option_optimization_table,
18805         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
18806         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
18807         * config/mep/mep.c (mep_option_optimization_table,
18808         mep_handle_option, TARGET_HANDLE_OPTION,
18809         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
18810         Move to mep-common.c.
18811         * config/microblaze/microblaze.c
18812         (microblaze_option_optimization_table,
18813         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
18814         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
18815         * config/mips/mips.c (mips_handle_option,
18816         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
18817         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
18818         mips-common.c.
18819         * config/mmix/mmix.c (mmix_option_optimization_table,
18820         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
18821         Move to mmix-common.c.
18822         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
18823         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
18824         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
18825         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
18826         * config/pa/pa.c: Include common/common-target.h.
18827         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
18828         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
18829         pa_handle_option): Move to pa-common.c.
18830         (pa_option_override): Use targetm_common.except_unwind_info.
18831         (pa_asm_output_mi_thunk, pa_function_section): Use
18832         targetm_common.have_named_sections.
18833         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
18834         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
18835         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
18836         pdp11_handle_option, pdp11_option_init_struct): Move to
18837         pdp11-common.c.
18838         * config/picochip/picochip.c (picochip_option_optimization_table,
18839         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
18840         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
18841         * config/rs6000/rs6000.c: Include common/common-target.h.
18842         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
18843         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
18844         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
18845         rs6000_handle_option): Move to rs6000-common.c.
18846         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
18847         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
18848         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
18849         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
18850         * config/s390/s390.c (processor_flags_table,
18851         s390_option_optimization_table, s390_option_init_struct,
18852         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
18853         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
18854         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
18855         * config/s390/s390.h (processor_flags_table): Declare.
18856         * config/score/score.c (score_option_optimization_table,
18857         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
18858         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
18859         score_handle_option): Move to score-common.c.
18860         * config/sh/sh.c (sh_option_optimization_table,
18861         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
18862         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
18863         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
18864         * config/sparc/sparc.c: Include common/common-target.h.
18865         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
18866         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
18867         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
18868         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
18869         spu_option_init_struct): Move to spu-common.c.
18870         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
18871         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
18872         * config/v850/v850.c (small_memory_physical_max,
18873         v850_handle_memory_optionn v850_handle_option,
18874         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
18875         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
18876         v850-common.c.
18877         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
18878         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
18879         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
18880         Move to xtensa-common.c.
18881         * cfglayout.c: Include common/common-target.h.
18882         (fixup_reorder_chain): Use targetm_common.have_named_sections.
18883         * cfgrtl.c: Include common/common-target.h.
18884         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
18885         targetm_common.have_named_sections.
18886         * dbxout.c: Include common/common-target.h.
18887         (dbxout_function_end): Use targetm_common.have_named_sections.
18888         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
18889         targetm_common.except_unwind_info.
18890         * dwarf2out.c: Include common/common-target.h.
18891         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
18892         dwarf2out_begin_prologue, dwarf2out_frame_init,
18893         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
18894         targetm_common.except_unwind_info.
18895         * except.c: Include common/common-target.h.
18896         (init_eh, finish_eh_generation,
18897         output_one_function_exception_table): Use
18898         targetm_common.except_unwind_info.
18899         (switch_to_exception_section): Use targetm_common.have_named_sections.
18900         * explow.c: Include common/common-target.h.
18901         * expr.c: Include common/common-target.h.
18902         (build_personality_function): Use targetm_common.except_unwind_info.
18903         * function.c: Include common/common-target.h.
18904         (expand_function_end): Use targetm_common.except_unwind_info.
18905         * haifa-sched.c: Include common/common-target.h.
18906         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
18907         * lto-opts.c: Include common/common-target.h instead of target.h.
18908         (lto_reissue_options): Use targetm_common.handle_option.
18909         * opts.c: Include common/common-target.h.
18910         (target_handle_option): Use targetm_common.handle_option.
18911         (init_options_struct): Update comment referring to
18912         targetm.target_option.optimization.  Use
18913         targetm_common.default_target_flags,
18914         targetm_common.unwind_tables_default and
18915         targetm_common.option_init_struct.
18916         (default_options_optimization): Use
18917         targetm_common.option_optimization_table.
18918         (finish_options): Use targetm_common.except_unwind_info,
18919         targetm_common.unwind_tables_default,
18920         targetm_common.have_named_sections and
18921         targetm_common.supports_split_stack.
18922         * toplev.c: Include common/common-target.h.
18923         (process_options): Use targetm_common.have_named_sections.
18924         * tree-tailcall.c: Include common/common-target.h.
18925         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
18926         * tree.c: Include common/common-target.h.
18927         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
18928         * varasm.c: Include common/common-target.h.
18929         (resolve_unique_section, hot_function_section,
18930         default_function_section): Use targetm_common.have_named_sections.
18931
18932 2011-06-14  Easwaran Raman  <eraman@google.com>
18933
18934         PR rtl-optimization/44194
18935         * dse.c: Include tree-flow.h
18936         (insn_info): Add new field non_frame_wild_read.
18937         (group_info): Add new fields escaped_n and escaped_p.
18938         (kill_on_calls): New variable.
18939         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
18940         (dse_step0): Initialize kill_on_calls.
18941         (can_escape): New function.
18942         (set_usage_bits): Add additional parameter; record information
18943         about escaped locations.
18944         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
18945         (dse_step2_nospill): Set kill_on_calls based on
18946         group->escaped_n and group->escaped_n.
18947         (add_wild_read): Refactor into...
18948         (reset_active_stores): ... New function, and
18949         (free_read_records): ... New function.
18950         (add_non_frame_wild_read): New function.
18951         (scan_insn): Call add_non_frame_wild_read on non-const calls.
18952         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
18953         (dse_step5_nospill): Call scan_reads_nospill for instructions
18954         marked as non_frame_wild_read.
18955         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
18956
18957 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
18958
18959         * common/common-target-def.h, common/common-target.def,
18960         common/common-target.h, common/config/default-common.c,
18961         common/config/pa/pa-common.c: New files.
18962         * Makefile.in (common_out_file, common_out_object_file,
18963         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
18964         (OBJS-libcommon-target): Include $(common_out_object_file).
18965         (prefix.o): Update dependencies.
18966         ($(common_out_object_file), common/common-target-hooks-def.h,
18967         s-common-target-hooks-def-h): New.
18968         (s-tm-texi): Also check timestamp on common-target.def.
18969         (build/genhooks.o): Update dependencies.
18970         * config.gcc (common_out_file, target_has_targetm_common): Define.
18971         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
18972         TARGET_ALWAYS_STRIP_DOTDOT.
18973         * configure.ac (common_out_object_file): Define.
18974         (common_out_file, common_out_object_file): Substitute.
18975         (common): Create directory.
18976         * configure: Regenerate.
18977         * doc/tm.texi.in (targetm_common): Document.
18978         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
18979         * doc/tm.texi: Regenerate.
18980         * genhooks.c (hook_array): Also include common/common-target.def.
18981         * prefix.c (tm.h): Don't include.
18982         (common/common-target.h): Include.
18983         (ALWAYS_STRIP_DOTDOT): Don't define.
18984         (update_path): Use targetm_common.always_strip_dotdot instead of
18985         ALWAYS_STRIP_DOTDOT.
18986         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
18987
18988 2011-06-14  David Li  <davidxl@google.com>
18989
18990         * passes.c (execute_function_todo): Remove TODO_dump_func.
18991         (execute_one_pass): Remove TODO_dump_func.
18992         (execute_function_dump): New function.
18993         * tree-vrp.c: Remove TODO_dump_func.
18994         * regrename.c: Remove TODO_dump_func.
18995         * fwprop.c: Remove TODO_dump_func.
18996         * tree-into-ssa.c: Remove TODO_dump_func.
18997         * tree-complex.c: Remove TODO_dump_func.
18998         * tracer.c: Remove TODO_dump_func.
18999         * tree-loop-distribution.c: Remove TODO_dump_func.
19000         * postreload-gcse.c: Remove TODO_dump_func.
19001         * postreload.c: Remove TODO_dump_func.
19002         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
19003         * tree-tailcall.c: Remove TODO_dump_func.
19004         * ipa-cp.c: Remove TODO_dump_func.
19005         * final.c: Remove TODO_dump_func.
19006         * tree-emutls.c: Remove TODO_dump_func.
19007         * omp-low.c: Remove TODO_dump_func.
19008         * tree-ssa-dse.c: Remove TODO_dump_func.
19009         * tree-ssa-uncprop.c: Remove TODO_dump_func.
19010         * auto-inc-dec.c: Remove TODO_dump_func.
19011         * reorg.c: Remove TODO_dump_func.
19012         * tree-ssa-copyrename.c: Remove TODO_dump_func.
19013         * tree-ssa-ccp.c: Remove TODO_dump_func.
19014         * compare-elim.c: Remove TODO_dump_func.
19015         * mode-switching.c: Remove TODO_dump_func.
19016         * modulo-sched.c: Remove TODO_dump_func.
19017         * tree-call-cdce.c: Remove TODO_dump_func.
19018         * cse.c: Remove TODO_dump_func.
19019         * web.c: Remove TODO_dump_func.
19020         * tree-stdarg.c: Remove TODO_dump_func.
19021         * lto-streamer-out.c: Remove TODO_dump_func.
19022         * tree-ssa-math-opts.c: Remove TODO_dump_func.
19023         * tree-ssa-dom.c: Remove TODO_dump_func.
19024         * tree-nrv.c: Remove TODO_dump_func.
19025         * loop-init.c: Remove TODO_dump_func.
19026         * gimple-low.c: Remove TODO_dump_func.
19027         * ipa-inline.c: Remove TODO_dump_func.
19028         * tree-ssa-sink.c: Remove TODO_dump_func.
19029         * jump.c: Remove TODO_dump_func.
19030         * ifcvt.c: Remove TODO_dump_func.
19031         * tree-ssa-loop.c: Remove TODO_dump_func.
19032         * recog.c: Remove TODO_dump_func.
19033         * dse.c: Remove TODO_dump_func.
19034         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
19035         * matrix-reorg.c: Remove TODO_dump_func.
19036         * tree-eh.c: Remove TODO_dump_func.
19037         * regmove.c: Remove TODO_dump_func.
19038         * function.c: Remove TODO_dump_func.
19039         * tree-vectorizer.c: Remove TODO_dump_func.
19040         * ipa-split.c: Remove TODO_dump_func.
19041         * gcse.c: Remove TODO_dump_func.
19042         * tree-if-conv.c: Remove TODO_dump_func.
19043         * init-regs.c: Remove TODO_dump_func.
19044         * tree-ssa-phiopt.c: Remove TODO_dump_func.
19045         * implicit-zee.c: Remove TODO_dump_func.
19046         * lower-subreg.c: Remove TODO_dump_func.
19047         * bt-load.c: Remove TODO_dump_func.
19048         * tree-dfa.c: Remove TODO_dump_func.
19049         * except.c: Remove TODO_dump_func.
19050         * emit-rtl.c: Remove TODO_dump_func.
19051         * store-motion.c: Remove TODO_dump_func.
19052         * cfgexpand.c: Remove TODO_dump_func.
19053         * tree-cfgcleanup.c: Remove TODO_dump_func.
19054         * cfgcleanup.c: Remove TODO_dump_func.
19055         * tree-ssa-pre.c: Remove TODO_dump_func.
19056         * tree-sra.c: Remove TODO_dump_func.
19057         * tree-mudflap.c: Remove TODO_dump_func.
19058         * tree-ssa-copy.c: Remove TODO_dump_func.
19059         * cfglayout.c: Remove TODO_dump_func.
19060         * tree-ssa-forwprop.c: Remove TODO_dump_func.
19061         * tree-ssa-dce.c: Remove TODO_dump_func.
19062         * ira.c: Remove TODO_dump_func.
19063         * tree-ssa.c: Remove TODO_dump_func.
19064         * integrate.c: Remove TODO_dump_func.
19065         * tree-optimize.c: Remove TODO_dump_func.
19066         * tree-ssa-phiprop.c: Remove TODO_dump_func.
19067         * tree-object-size.c: Remove TODO_dump_func.
19068         * combine.c: Remove TODO_dump_func.
19069         * bb-reorder.c: Remove TODO_dump_func.
19070         * cprop.c: Remove TODO_dump_func.
19071         * var-tracking.c: Remove TODO_dump_func.
19072         * tree-profile.c: Remove TODO_dump_func.
19073         * tree-vect-generic.c: Remove TODO_dump_func.
19074         * reg-stack.c: Remove TODO_dump_func.
19075         * sched-rgn.c: Remove TODO_dump_func.
19076         * tree-ssa-structalias.c: Remove TODO_dump_func.
19077         * tree-switch-conversion.c: Remove TODO_dump_func.
19078         * tree-cfg.c: Remove TODO_dump_func.
19079         * tree-ssa-reassoc.c: Remove TODO_dump_func.
19080         * combine-stack-adj.c: Remove TODO_dump_func.
19081         * dce.c: Remove TODO_dump_func.
19082         * tree-ssanames.c: Remove TODO_dump_func.
19083         * regcprop.c: Remove TODO_dump_func.
19084
19085 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
19086
19087         PR middle-end/47364
19088         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
19089         and properly handle result not in Pmode.
19090
19091 2011-06-14  Robert Millan  <rmh@gnu.org>
19092
19093         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
19094         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
19095         `config/linux.h'.
19096
19097         * config/i386/kfreebsd-gnu64.h: New file.
19098         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
19099         with `i386/kfreebsd-gnu64.h'.
19100
19101         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
19102         (GNU_USER_LINK_EMULATION64): New macros.
19103         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
19104         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
19105         of hardcoding `elf_i386' and `elf_x86_64'.
19106
19107 2011-06-14  Nick Clifton  <nickc@redhat.com>
19108
19109         PR target/49403
19110         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
19111
19112         PR target/49402
19113         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
19114
19115 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
19116
19117         PR fortran/49103
19118         * tree.h (DECL_NONSHAREABLE): Define.
19119         (struct tree_decl_common): Change decl_common_unused to
19120         decl_nonshareable_flag.
19121         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
19122         Ignore vars with DECL_NONSHAREABLE bit set.
19123         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
19124         on stores to automatic aggregate vars.
19125
19126         PR rtl-optimization/49390
19127         Revert:
19128         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
19129
19130         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
19131         MEM_ALIAS_SET.
19132
19133 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
19134             Tom de Vries  <tom@codesourcery.com>
19135
19136         PR target/45098
19137         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
19138         Document changed semantics.
19139         (max_stmt_executions, max_stmt_executions_int): Declare.
19140         * tree-data-ref.c (estimated_loop_iterations)
19141         (estimated_loop_iterations_int): Move functions...
19142         * tree-ssa-loop-niter.c (estimated_loop_iterations)
19143         (estimated_loop_iterations_int): here.
19144         (record_estimate): Change nb_iterations_upper_bound and
19145         nb_iterations_estimate semantics.
19146         (max_stmt_executions, max_stmt_executions_int): New function.
19147         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
19148         (max_stmt_executions_tree): this.
19149         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
19150         estimated_loop_iterations_tree.
19151         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
19152         max_stmt_executions_int instead of estimated_loop_iterations_int.
19153         * predict.c (predict_loops): Idem.
19154         * tree-parloops.c (parallelize_loops): Idem.
19155         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
19156         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
19157         (init_omega_for_ddr_1): Idem.
19158         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
19159         (loop_prefetch_arrays): Idem
19160         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
19161         max_stmt_executions instead of estimated_loop_iterations.
19162         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
19163         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
19164         instead of nb_iterations_upper_bound.
19165
19166 2011-06-13  Jan Hubicka  <jh@suse.cz>
19167
19168         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
19169
19170 2011-06-14  Richard Henderson  <rth@redhat.com>
19171
19172         PR debug/48459
19173         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
19174         (based_loc_descr): Assert it's true.
19175         (compute_frame_pointer_to_fb_displacement): Set it, rather than
19176         aborting immediately.
19177
19178 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
19179             Mingfeng Wu  <mingfeng@faraday-tech.com>
19180
19181         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
19182
19183 2011-06-13  Jan Hubicka  <jh@suse.cz>
19184
19185         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
19186
19187 2011-06-13  Jan Hubicka  <jh@suse.cz>
19188
19189         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
19190         similarly to DECL_COMDAT.
19191         * cgraphunit.c (cgraph_analyze_function): Likewise.
19192         * ipa.c (function_and_variable_visibility): Likewise.
19193
19194 2011-06-13  Jan Hubicka  <jh@suse.cz>
19195
19196         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
19197         BINFO_VIRTUALS when streaming for ltrans unit.
19198
19199 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
19200
19201         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
19202         (movdi_internal64): Same.
19203
19204 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
19205
19206         PR target/44618
19207         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
19208         a set of similar patterns, where the MATCH_OPERAND for the function
19209         argument is replaced with individual references to hardware registers.
19210         (save_fpregs_<mode>): Ditto
19211         (restore_gpregs_<mode>): Ditto
19212         (return_and_restore_gpregs_<mode>): Ditto
19213         (return_and_restore_fpregs_<mode>): Ditto
19214         (return_and_restore_fpregs_aix_<mode>): Ditto
19215
19216 2011-06-13  Jan Hubicka  <jh@suse.cz>
19217
19218         * ipa-utils.c (postorder_stack): New structure.
19219         (ipa_reverse_postorder): Handle aliases.
19220
19221 2011-06-13  Jan Hubicka  <jh@suse.cz>
19222
19223         * ipa-inline.c (reset_edge_caches): Walk aliases.
19224         (update_caller_keys): Do not test inlinability of aliases.
19225         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
19226         (do_estimate_growth): Fix typo.
19227
19228 2011-06-13  Jan Hubicka  <jh@suse.cz>
19229
19230         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
19231         (can_remove_node_now_p): ... here; handle same comdat groups.
19232         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
19233         (inline_call): Update use of can_remove_node_now_p.
19234
19235 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
19236
19237         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
19238         condition to disallow non-identical memory locations.
19239         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
19240         preference to bit manipulation instructions.
19241
19242 2011-06-13  Jan Hubicka  <jh@suse.cz>
19243
19244         * cgraph.c (cgraph_for_node_thunks_and_aliases,
19245         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
19246         (nonremovable_p): New function.
19247         (cgraph_can_remove_if_no_direct_calls_p): New function.
19248         (used_from_object_file_p): New functoin.
19249         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
19250         references from aliases.
19251         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
19252         * ipa-inline.c (check_caller_edge): New function.
19253         (want_inline_function_called_once_p): Use it; accept aliases called
19254         once, too.
19255         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
19256
19257 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
19258
19259         PR target/48454
19260         * config/arm/neon.md (vec_pack_trunc): Set the lengths
19261         correctly for the case with Quad vectors.
19262
19263 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
19264            Ira Rosen  <ira.rosen@linaro.org>
19265
19266         PR tree-optimization/49352
19267         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
19268         all, make sure loop_use_stmt after the loop is a def stmt of a used
19269         SSA_NAME that is the only one defined inside of the loop.  Don't
19270         check for COND_EXPR and GIMPLE_BINARY_RHS.
19271         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
19272         check_reduction is true.
19273
19274 2011-06-11  Jan Hubicka  <jh@suse.cz>
19275
19276         PR middle-end/49373
19277         * ipa.c (cgraph_externally_visible_p): Check resolution info.
19278
19279 2011-06-11  Jan Hubicka  <jh@suse.cz>
19280
19281         PR middle-end/48836
19282         * ipa-inline-transform.c: Include tree-pass.h
19283         (inline_transform): Set TODO_update_ssa_only_virtuals.
19284         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
19285
19286 2011-06-11  Jan Hubicka  <jh@suse.cz>
19287
19288         PR middle-end/49378
19289         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
19290         aliases and thunks.
19291
19292 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
19293
19294         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
19295         Take number of iterations to peel into account for equally frequent
19296         misalignment values.
19297
19298 2011-06-11  Jan Hubicka  <jh@suse.cz>
19299
19300         * lto-streamer-out.c (produce_symtab): Stream out the newly
19301         represented aliases.
19302
19303 2011-06-11  Jan Hubicka  <jh@suse.cz>
19304
19305         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
19306         varying args.
19307         (ipa_update_after_lto_read): Likewise.
19308         (ipa_write_node_info): Do not sream call_with_var_arguments.
19309         (ipa_read_node_info): Likewise.
19310
19311 2011-06-11  Jan Hubicka  <jh@suse.cz>
19312
19313         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
19314
19315 2011-06-11  Jan Hubicka  <jh@suse.cz>
19316
19317         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
19318         (lto_symtab_resolve_can_prevail_p): Likewise.
19319         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
19320         * cgraph.c (same_body_aliases_done): New global var.
19321         (cgraph_same_body_alias_1): Rename to ...
19322         (cgraph_create_function_alias): ... this one; reorg to new
19323         representation.
19324         (cgraph_same_body_alias): Use cgraph_create_function_alias;
19325         record references when asked to.
19326         (cgraph_add_thunk): Fix formating.
19327         (cgraph_get_node): Kill same body alias code.
19328         (cgraph_node_for_asm): Likewise.
19329         (cgraph_remove_same_body_alias): Remove.
19330         (cgraph_remove_node): Kill same body alias code.
19331         (cgraph_mark_address_taken_node): Mark also the aliased function
19332         as having address taken.
19333         (dump_cgraph_node): Dump same body aliases.
19334         (cgraph_for_node_thunks_and_aliases): Update for new alias
19335         representation.
19336         (cgraph_for_node_and_aliases): Likewise.
19337         * cgraph.h (same_body): Kll pointer.
19338         (same_body_alias): Update comment.
19339         (same_body_aliases_done): Declare.
19340         (cgraph_remove_same_body_alias): Remove declaration.
19341         (cgraph_create_function_alias): Declare.
19342         (cgraph_process_same_body_aliases): Declare.
19343         (cgraph_function_with_gimple_body_p): Check for alias.
19344         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
19345         (cgraph_alias_aliased_node): New function.
19346         (cgraph_function_node): Update for new aliases.
19347         (cgraph_function_or_thunk_node): Likewise.
19348         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
19349         (inline_call): Remove dead aliases.
19350         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
19351         name hack for same body aliases.
19352         (clone_of_p): Look through aliases.
19353         (verify_cgraph_node): Verify aliases.
19354         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
19355         (cgraph_process_same_body_aliases): New function.
19356         (process_function_and_variable_attributes): Disable weakref warning on
19357         alias.
19358         (cgraph_analyze_functions): Handle aliases.
19359         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
19360         (assemble_thunks): Rename to ...
19361         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
19362         (cgraph_expand_function): Remove alias output code.
19363         (cgraph_output_in_order): Skip aliases.
19364         (cgraph_preserve_function_body_p): Aliases don't need preserving.
19365         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
19366         (ipa_record_reference): Do not assert on alias references.
19367         (ipa_ref_has_aliases_p): New function.
19368         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
19369         (ipa_ref_has_aliases_p): Declare.
19370         * lto-cgraph.c (lto_output_node): Handle aliases.
19371         (input_node): Likewise.
19372         * lto-streamer-out.c (lto_output): Skip aliases.
19373         (produce_symtab): Kill same_body_alias code.
19374         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
19375         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
19376         * ipa-inline.c (update_caller_keys): Walk aliases.
19377         (inline_small_functions): Fix thinko in previous patch.
19378         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
19379         (function_and_variable_visibility): Do not walk same body aliases.
19380         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
19381         (ipa_pta_execute): Use it.
19382
19383 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
19384
19385         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
19386         (*vec_dupv2df): Rename from vec_dupv2df.
19387         (vec_dupv2df): New expander.
19388
19389 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
19390
19391         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
19392
19393 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
19394
19395         * config/i386/i386.md: Use default value in "isa" attribute.
19396         * config/i386/sse.md: Ditto.
19397         * config/i386/mmx.md: Ditto.
19398
19399 2011-06-10  Wei Guozhi  <carrot@google.com>
19400
19401         PR target/45335
19402         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
19403         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
19404         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
19405         related peephole2.
19406         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
19407         related peephole2.
19408         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
19409         (arm_legitimate_ldrd_p): New prototype.
19410         (arm_output_ldrd): New prototype.
19411         * config/arm/arm.c (arm_check_ldrd_operands): New function.
19412         (arm_legitimate_ldrd_p): New function.
19413         (arm_output_ldrd): New function.
19414
19415 2011-06-10  David Li  <davidxl@google.com>
19416
19417         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
19418         * passes.c (passr_eq): New function.
19419         (create_pass_tab): New function.
19420         (pass_traverse): New function.
19421         (dump_one_pass): New function.
19422         (dump_pass_list): New function.
19423         (dump_passes): New function.
19424
19425 2011-06-10  Jan Hubicka  <jh@suse.cz>
19426
19427         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
19428         setting the nothrow flag.
19429         * ipa-reference.c (propagate): Skip aliases.
19430         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
19431         (propagate_nothrow): Skip aliases; do not update cgraph.
19432         (local_pure_const): Do not update cgraph.
19433         * tree-profile.c (tree_profiling): Do fixup_cfg.
19434
19435 2011-06-10  Jan Hubicka  <jh@suse.cz>
19436
19437         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
19438         (cgraph_local_node_p): ... here; handle aliases.
19439         (has_addr_references_p): Break out from ...;
19440         (cgraph_remove_unreachable_nodes) ... here.
19441
19442 2011-06-10  Jan Hubicka  <jh@suse.cz>
19443
19444         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
19445         * common.opt (flag_inline_functions_called_once): Do not
19446         initialize to 1.
19447
19448 2011-06-10  Jan Hubicka  <jh@suse.cz>
19449
19450         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
19451         (ipcp_initialize_node_lattices): Do not deal with aliases;
19452         Do not try to propagate through thunks.
19453         (ipcp_change_tops_to_bottom): Do not deal with aliases.
19454
19455 2011-06-10  Jan Hubicka  <jh@suse.cz>
19456
19457         * ipa-prop.c (ipa_write_node_info): Stream jump functions
19458         for indirect calls.
19459         (ipa_read_node_info): Likewise.
19460
19461 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19462
19463         PR lto/49302
19464         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
19465         (build_and_insert_call): Likewise.
19466         (build_and_insert_ref): New.
19467         (gimple_expand_builtin_pow): Minor cleanup.
19468         (gimple_expand_builtin_cabs): New.
19469         (execute_cse_sincos): Add case for BUILT_IN_CABS.
19470
19471 2011-06-10  Jan Hubicka  <jh@suse.cz>
19472
19473         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
19474         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
19475         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
19476         (ipcp_propagate_stage): Skip aliases when propagating.
19477         (ipcp_need_redirect_p): Skip aliases.
19478         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
19479         collect_callers_of_node.
19480         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
19481         for aliases.
19482         (ipa_compute_jump_functions): Look through aliases.
19483
19484 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19485
19486         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
19487
19488 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
19489
19490         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
19491         Adjust comments.
19492         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
19493
19494 2011-06-10  Jan Hubicka  <jh@suse.cz>
19495
19496         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
19497         Update call of gimple_get_virt_method_for_binfo.
19498         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
19499         refuse_thunks parameter.
19500         (gimple_fold_call): Update.
19501         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
19502
19503 2011-06-10  Jan Hubicka  <jh@suse.cz>
19504
19505         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
19506         (not_all_callers_have_enough_arguments_p): ... this one; turn into
19507         worker for cgraph_for_node_and_aliases.
19508         (convert_callers_for_node): Break out from ...
19509         (convert_callers): ... here.
19510         (modify_function): Use collect_callers_of_node.
19511         (ipa_early_sra): Use cgraph_for_node_and_aliases.
19512
19513 2011-06-10  Richard Guenther  <rguenther@suse.de>
19514
19515         PR tree-optimization/49361
19516         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
19517         when not already in gimple form.
19518
19519 2011-06-10  Richard Guenther  <rguenther@suse.de>
19520
19521         PR bootstrap/49344
19522         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
19523         FOR_EACH_PHI_OR_STMT_USE.
19524
19525 2011-06-10  Jan Hubicka  <jh@suse.cz>
19526
19527         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
19528         (clone_inlined_nodes): ... here.
19529         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
19530         to real destination prior inlining.
19531         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
19532         can_early_inline_edge_p, want_early_inline_function_p,
19533         want_early_inline_function_p, want_inline_small_function_p,
19534         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
19535         edge_badness, update_all_callee_keys, lookup_recursive_calls,
19536         add_new_edges_to_heap, inline_small_functions, flatten_function,
19537         inline_always_inline_functions, early_inline_small_functions): Use
19538         cgraph_function_or_thunk_node.
19539         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
19540         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
19541         (do_estimate_edge_growth_1): Break out from ...
19542         (do_estimate_growth) ... here; walk aliases.
19543         (inline_generate_summary): Skip aliases.
19544
19545 2011-06-10  Richard Guenther  <rguenther@suse.de>
19546
19547         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
19548         forward when combining, visit inserted stmts when a stmt was changed.
19549
19550 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
19551
19552         * tree.h (error_operand_p): Add.
19553         * dbxout.c (dbxout_type_fields): Use the latter.
19554         * c-decl.c (add_stmt): Likewise.
19555         * gimplify.c (omp_add_variable, omp_notice_variable,
19556         gimplify_scan_omp_clauses): Likewise.
19557
19558 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
19559
19560         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
19561         when a value is actually passed in regs.
19562
19563 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
19564             Laurent Rougé  <laurent.rouge@menta.fr>
19565
19566         * doc/invoke.texi (SPARC options): Add -mflat.
19567         * config/sparc/sparc.opt: Likewise.
19568         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
19569         (sparc_flat_expand_prologue): Declare.
19570         (sparc_flat_expand_epilogue): Likewise.
19571         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
19572         (CPP_ENDIAN_SPEC): Replace with...
19573         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
19574         (CPP_SPEC): Adjust to above change.
19575         (EXTRA_SPECS): Likewise.
19576         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
19577         (INCOMING_REGNO): Likewise.
19578         (OUTGOING_REGNO): Likewise.
19579         (LOCAL_REGNO): Likewise.
19580         (SETUP_FRAME_ADDRESSES): Likewise.
19581         (FIXED_REGISTERS): Set 0 for %fp.
19582         (CALL_USED_REGISTERS): Likewise.
19583         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
19584         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
19585         (RETURN_ADDR_REGNUM): Define.
19586         (RETURN_ADDR_RTX): Use it.
19587         (INCOMING_RETURN_ADDR_REGNUM): Define.
19588         (INCOMING_RETURN_ADDR_RTX): Use it.
19589         (DWARF_FRAME_RETURN_COLUMN): Likewise.
19590         (EH_RETURN_REGNUM): Define.
19591         (EH_RETURN_STACKADJ_RTX): Use it.
19592         (EH_RETURN_HANDLER_RTX): Delete.
19593         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
19594         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
19595         Delete.
19596         (struct machine_function): Add frame_size, apparent_frame_size,
19597         frame_base_reg, frame_base_offset, n_global_fp_regs and
19598         save_local_in_regs_p fields.
19599         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
19600         sparc_frame_base_offset, sparc_n_global_fp_regs,
19601         sparc_save_local_in_regs_p): New macros.
19602         (sparc_option_override): Error out if -fcall-saved-REG is specified
19603         for Out registers.
19604         (eligible_for_restore_insn): Fix formatting.
19605         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
19606         (eligible_for_sibcall_delay): Likewise.
19607         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
19608         (sparc_legitimate_address_p): Adjust to above change.
19609         (save_global_or_fp_reg_p): New predicate.
19610         (return_addr_reg_needed_p): Likewise.
19611         (save_local_or_in_reg_p): Likewise.
19612         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
19613         (SORR_SAVE, SORR_RESTORE): Delete.
19614         (sorr_pred_t): New typedef.
19615         (sorr_act_t): New enum.
19616         (save_or_restore_regs): Rename to...
19617         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
19618         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
19619         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
19620         mechanism.  Add CFI information for double-word saves in 32-bit mode.
19621         (emit_adjust_base_to_offset): New function extracted from...
19622         (emit_save_or_restore_regs): ...this.  Rename the rest to...
19623         (emit_save_or_restore_regs_global_fp_regs): ...this.
19624         (emit_save_or_restore_regs_local_in_regs): New function.
19625         (gen_create_flat_frame_[123]): New functions.
19626         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
19627         (sparc_flat_expand_prologue): New function.
19628         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
19629         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
19630         (sparc_flat_expand_epilogue): New function.
19631         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
19632         (output_return): Likewise.
19633         (output_sibcall): Likewise.
19634         (sparc_output_mi_thunk): Likewise.
19635         (sparc_frame_pointer_required): Likewise.
19636         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
19637         function optimization.
19638         * config/sparc/sparc.md (flat): New attribute.
19639         (prologue): Add TARGET_FLAT handling.
19640         (save_register_window): Disable if TARGET_FLAT.
19641         (create_flat_frame_[123]): New patterns.
19642         (epilogue): Add TARGET_FLAT handling.
19643         (sibcall_epilogue): Likewise.
19644         (eh_return): New expander.
19645         (eh_return_internal): New insn and splitter.
19646         (return_internal): Add TARGET_FLAT handling.
19647         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
19648         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
19649         (nonlocal_goto): Add TARGET_FLAT handling.
19650         * config/sparc/t-elf: Add -mflat multilib.
19651         * config/sparc/t-leon: Likewise.
19652
19653 2011-06-10  Jan Hubicka  <jh@suse.cz>
19654
19655         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
19656         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
19657         (self_recursive_p): Use cgraph_function_node.
19658         (propagate_pure_const): Likewise.
19659         (propagate_nothrow): Likewise.
19660         * ipa-reference.c (ipa_reference_get_not_read_global): Use
19661         cgraph_function_node.
19662         (propagate_bits): Likewise.
19663         (propagate): Likewise.
19664
19665 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
19666             Richard Earnshaw  <rearnsha@arm.com>
19667
19668         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
19669         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
19670         (*thumb2_movdi_vfp): Delete.
19671         (*arm_movdi_vfp_cortexa8): Delete.
19672         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
19673         (*movdi_vfp_cortexa8): Likewise.
19674
19675 2011-06-10  Richard Guenther  <rguenther@suse.de>
19676
19677         * stor-layout.c (initialize_sizetypes): Give names to all
19678         sizetype kinds.
19679
19680 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
19681
19682         PR tree-optimization/49318
19683         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
19684         irrelevant pattern statements.
19685
19686 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
19687
19688         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
19689
19690         PR bootstrap/49354
19691         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
19692         to last assignment.
19693
19694 2011-06-09  Jan Hubicka  <jh@suse.cz>
19695
19696         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
19697         do not recompute reachable flag.
19698         (cgraph_finalize_function, cgraph_analyze_functions): Set
19699         redefined_extern_inline here.
19700
19701 2011-06-09  Jan Hubicka  <jh@suse.cz>
19702
19703         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
19704         (cgraph_only_called_directly_p): ... this one; bring offline.
19705         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
19706         varpool_used_from_object_file_p): Drop names from the declaratoin.
19707         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
19708         collect_callers_of_node): New.
19709         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
19710         (cgraph_edge_recursive_p): Use cgraph_function_node.
19711         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
19712         (cgraph_node_cannot_be_local_p_1): Break out from ...
19713         (cgraph_node_can_be_local_p): ... here; walk aliases.
19714         (cgraph_for_node_thunks_and_aliases): New function.
19715         (cgraph_for_node_and_aliases): New function.
19716         (cgraph_make_node_local_1): Break out from ...
19717         (cgraph_make_node_local) ... here; use
19718         cgraph_for_node_thunks_and_aliases.
19719         (cgraph_set_nothrow_flag_1): Break out from ...
19720         (cgraph_set_nothrow_flag) ... here;
19721         use cgraph_for_node_thunks_and_aliases.
19722         (cgraph_set_const_flag_1): Break out from ...
19723         (cgraph_set_const_flag) ... here;
19724         use cgraph_for_node_thunks_and_aliases.
19725         (cgraph_set_pure_flag_1): Break out from ...
19726         (cgraph_set_pure_flag) ... here;
19727         use cgraph_for_node_thunks_and_aliases.
19728         (cgraph_propagate_frequency_1): Break out from ...
19729         (cgraph_propagate_frequency) ... here; use
19730         cgraph_for_node_thunks_and_aliases.
19731         (cgraph_used_from_object_file_p): Do not care about aliases.
19732         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
19733         New functions.
19734         (collect_callers_of_node_1, collect_callers_of_node): New functions.
19735
19736 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
19737
19738         PR rtl-optimization/49154
19739         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
19740         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
19741         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
19742         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
19743         * config/cris/cris.h (cris_register_move_cost): Remove
19744         !TARGET_V32 code.  Tweak comments.
19745
19746 2011-06-09  Jan Hubicka  <jh@suse.cz>
19747
19748         * cgraphbuild.c (record_eh_tables): Mark personality function as having
19749         address taken.
19750
19751 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
19752
19753         PR rtl-optimization/49154
19754         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
19755         is a matching slot in the hashtable, assign it to classes_ptr.
19756
19757         PR rtl-optimization/49154
19758         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
19759         register classes.
19760         * doc/tm.texi: Regenerate.
19761
19762 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
19763
19764         PR target/49307
19765         * config/sh/sh.md (UNSPEC_CHKADD): New.
19766         (chk_guard_add): New define_insn_and_split.
19767         (symGOT_load): Use chk_guard_add instead of blockage.
19768
19769 2011-06-09  Kai Tietz  <ktietz@redhat.com>
19770
19771         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
19772
19773 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
19774
19775         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
19776
19777 2011-06-09  Wei Guozhi  <carrot@google.com>
19778
19779         PR target/46975
19780         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
19781         (peephole2 for conditional move): Generate 16 bit instructions.
19782
19783 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
19784
19785         * config/i386/i386.md (*movdi_internal_rex64): Merge
19786         alternatives 6 and 8.
19787
19788 2011-06-09  David Li  <davidxl@google.com>
19789
19790         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
19791         * passes.c (passr_eq): New function.
19792         (create_pass_tab): New function.
19793         (pass_traverse): New function.
19794         (dump_one_pass): New function.
19795         (dump_pass_list): New function.
19796         (dump_passes): New function.
19797
19798 2011-06-09  David Li  <davidxl@google.com>
19799
19800         * tree-complex.c (tree_lower_complex): Gate cleanup.
19801         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
19802         (execute_optimize_stdarg): Ditto.
19803         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
19804         (execute_cleanup_eh_1): Ditto.
19805         (execute_cleanup_eh): Ditto.
19806         * gcse.c (gate_rtl_pre): Ditto.
19807         (execute_rtl_pre): Ditto.
19808         * except.c (finish_eh_generation): Ditto.
19809         (convert_to_eh_region_ranges): Ditto.
19810         * cprop.c (one_cprop_pass): Ditto.
19811
19812 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
19813
19814         PR target/48673
19815         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
19816         in all basic blocks.
19817
19818 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19819
19820         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
19821         (HAVE_ENABLE_EXECUTE_STACK): Define.
19822         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
19823         (HAVE_ENABLE_EXECUTE_STACK): Define.
19824         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
19825         (HAVE_ENABLE_EXECUTE_STACK): Define.
19826         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
19827         (ENABLE_EXECUTE_STACK): Remove.
19828         (HAVE_ENABLE_EXECUTE_STACK): Define.
19829         [IN_LIBGCC2]: Don't include <windows.h>.
19830         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
19831         (HAVE_ENABLE_EXECUTE_STACK): Define.
19832         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
19833         (HAVE_ENABLE_EXECUTE_STACK): Define.
19834         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
19835         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
19836         (HAVE_ENABLE_EXECUTE_STACK): Define.
19837         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
19838         (HAVE_ENABLE_EXECUTE_STACK): Define.
19839         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
19840         (HAVE_ENABLE_EXECUTE_STACK): Define.
19841         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
19842         (HAVE_ENABLE_EXECUTE_STACK): Define.
19843         * config/alpha/alpha.c (alpha_trampoline_init): Test
19844         HAVE_ENABLE_EXECUTE_STACK.
19845         * config/i386/i386.c (ix86_trampoline_init): Likewise.
19846         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
19847         (sparc64_initialize_trampoline): Likewise.
19848         * libgcc2.c [L_enable_execute_stack]: Remove.
19849         * system.h (ENABLE_EXECUTE_STACK): Poison.
19850         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
19851         * doc/tm.texi: Regenerate.
19852         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
19853
19854 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
19855
19856         PR middle-end/49308
19857         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
19858         variable.  After resetting and rescanning insn continue with previous
19859         statement.
19860
19861 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19862
19863         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
19864         (gcc_cv_ld_hidden): Likewise.
19865         * configure: Regenerate.
19866         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
19867         (ix86_stack_protect_fail): Mark unused.
19868         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
19869         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
19870         [TARGET_MACHO]: Don't define.
19871         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
19872         (TARGET_STACK_PROTECT_FAIL): Likewise.
19873         (rs6000_stack_protect_fail): Mark unused.
19874         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
19875         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
19876
19877 2011-06-08  Andi Kleen  <ak@linux.intel.com>
19878
19879         * varasm.c (get_section): Print location of other conflict
19880         for section conflicts.
19881
19882 2011-06-08  Andi Kleen  <ak@linux.intel.com>
19883
19884         * config/i386/driver-i386.c (host_detect_local_cpu):
19885         Add model 0x2d Intel CPU.
19886
19887 2011-06-08  Andi Kleen  <ak@linux.intel.com>
19888
19889         * reginfo.c (global_regs_decl): Add.
19890         (globalize_reg): Add decl parameter. Compute location.  Pass location
19891         to warnings and add inform. Store decl in global_regs_decl.
19892         * rtl.h (globalize_reg): Update prototype.
19893         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
19894
19895 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
19896
19897         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
19898
19899 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
19900
19901         PR target/49305
19902         * config/sh/predicates.md (general_movsrc_operand): Check
19903         mode for memory with indexed address for QI and HImode.
19904         (general_movdst_operand): Likewise.
19905
19906 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
19907
19908         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
19909
19910 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
19911
19912         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
19913         (num_ssa_operands): Likewise.
19914         (op_iter_init_phiuse): Forward-declare.
19915         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
19916
19917 2011-06-08  Nick Clifton  <nickc@redhat.com>
19918
19919         * doc/invoke.texi (ARM Options): Update description of
19920         -mthumb-interwork.
19921
19922 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
19923
19924         * config/i386/driver-i386.c (host_detect_local_cpu): Support
19925         unknown Intel family 0x6 CPUs.
19926
19927 2011-06-08  Martin Jambor  <mjambor@suse.cz>
19928
19929         * tree-sra.c (mark_rw_status): Removed.
19930         (analyze_access_subtree): New parameter parent instead of
19931         mark_read and mark_write, propagate from that.
19932
19933 2011-06-08  Julian Brown  <julian@codesourcery.com>
19934
19935         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
19936         for double-precision helper functions in hard-float mode if only
19937         single-precision arithmetic is supported in hardware.
19938
19939 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
19940
19941         PR rtl-optimization/49303
19942         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
19943         code_motion_path_driver returned 0 or 1.
19944         (sel_region_finish): Clear h_d_i_d.
19945
19946 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
19947
19948         * config/sh/sh.c (prepare_move_operands): Set pic register
19949         appropriately for global and local dynamic tls models even
19950         if flag_pic is unset.
19951
19952 2011-06-07  Jason Merrill  <jason@redhat.com>
19953
19954         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
19955
19956 2011-06-07  Xinliang David Li  <davidxl@google.com>
19957         * passes.c (enable_disable_pass): Handle assembler name.
19958         (is_pass_explicitly_enabled_or_disabled): Ditto.
19959
19960 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19961
19962         PR tree-optimization/48497
19963         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
19964
19965 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19966
19967         PR tree-optimization/46728
19968         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
19969         to use gimple_val_nonnegative_real_p.
19970         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
19971         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
19972
19973 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
19974
19975         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
19976
19977 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
19978
19979         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
19980         constant vectors.
19981
19982 2011-06-07  Richard Guenther  <rguenther@suse.de>
19983
19984         * stor-layout.c (initialize_sizetypes): Initialize all
19985         sizetypes based on target definitions.
19986         (set_sizetype): Remove.
19987         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
19988         * tree.h (set_sizetype): Remove.
19989
19990 2011-06-07  Nick Clifton  <nickc@redhat.com>
19991
19992         * config.gcc: Unify V850 architecture options and add support for
19993         newer V850 architectures.
19994         * config/v850/t-v850e: Delete.
19995
19996 2011-06-07  Richard Guenther  <rguenther@suse.de>
19997
19998         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
19999         Call set_sizetype from here.
20000
20001 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
20002
20003         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
20004         (*maddhisi4tb, *maddhisi4tt): New define_insns.
20005
20006 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
20007             Andrew Stubbs  <ams@codesourcery.com>
20008
20009         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
20010         multiplies.
20011         * doc/md.texi (Canonicalization of Instructions): Document widening
20012         multiply canonicalization.
20013
20014 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
20015
20016         PR gcov-profile/49299
20017         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
20018
20019 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
20020
20021         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
20022         a pointer.
20023         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
20024         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
20025         vect_recog_pow_pattern): Likewise.
20026         (vect_pattern_recog_1): Remove declaration.
20027         (widened_name_p): Remove declaration.  Add new argument to specify
20028         whether to check that both types are either signed or unsigned.
20029         (vect_recog_widen_mult_pattern): Update documentation.  Handle
20030         unsigned patterns and multiplication by constants.
20031         (vect_pattern_recog_1): Update vect_recog_func references.  Use
20032         statement information from the statement returned from pattern
20033         detection functions.
20034         (vect_pattern_recog): Update vect_recog_func reference.
20035         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
20036         multiplication by a constant use the type of the other operand.
20037
20038 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
20039
20040         PR rtl-optimization/49145
20041         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
20042
20043 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
20044
20045         PR debug/49262
20046         * dwarf2out.c (native_encode_initializer): Decrement count in each
20047         iteration.
20048
20049         PR debug/49294
20050         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
20051         non-MODE_INT modes.
20052
20053         PR c++/49264
20054         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
20055         if stmt folded into nothing.
20056         * tree-inline.c (fold_marked_statements): If a builtin at the end of
20057         a bb folded into nothing, just update cgraph edges and move to next bb.
20058         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
20059         to be NULL.  Don't compute count and frequency if new_call is NULL.
20060
20061 2011-06-04  Diego Novillo  <dnovillo@google.com>
20062
20063         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
20064         (cgraph.o): Likewise.
20065         (cgraphunit.o): Likewise.
20066         * cgraphunit.c: Include lto-streamer.h
20067         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
20068         if LTO is enabled.
20069         * lto-streamer-in.c (unpack_value_fields): Call
20070         streamer_hooks.unpack_value_fields if set.
20071         (lto_materialize_tree): For unhandled nodes, first try to
20072         call lto_streamer_hooks.alloc_tree, if it exists.
20073         (lto_input_ts_decl_common_tree_pointers): Move reading of
20074         DECL_INITIAL to lto_streamer_read_tree.
20075         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
20076         (lto_streamer_read_tree): New.
20077         (lto_reader_init): Rename from lto_init_reader.
20078         Move initialization code to lto/lto.c.
20079         * lto-streamer-out.c (pack_value_fields): Call
20080         streamer_hooks.pack_value_fields if set.
20081         (lto_output_tree_ref): For tree nodes that are not normally indexable,
20082         call streamer_hooks.indexable_with_decls_p before giving up.
20083         (lto_output_ts_decl_common_tree_pointers): Move handling
20084         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
20085         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
20086         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
20087         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
20088         (lto_streamer_write_tree): New.
20089         (lto_output): Call lto_streamer_init directly.
20090         (lto_writer_init): Remove.
20091         * lto-streamer.c (streamer_hooks): New.
20092         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
20093         instead of lto_preload_common_nodes.
20094         (lto_is_streamable): Move from lto-streamer.h
20095         (lto_streamer_hooks_init): New.
20096         (streamer_hooks): New.
20097         (streamer_hooks_init): New.
20098         * lto-streamer.h (struct output_block): Forward declare.
20099         (struct lto_input_block): Likewise.
20100         (struct data_in): Likewise.
20101         (struct bitpack_d): Likewise.
20102         (struct streamer_hooks): Declare.
20103         (streamer_hooks): Declare.
20104         (lto_streamer_hooks_init): Declare.
20105         (lto_streamer_write_tree): Declare.
20106         (lto_streamer_read_tree): Declare.
20107         (streamer_hooks_init): Declare.
20108         (lto_is_streamable): Move to lto-streamer.c
20109
20110 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20111
20112         * longlong.h (smul_ppmm): The resulting register pair contains the
20113         higher order word first.
20114
20115 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20116
20117         PR tree-optimization/46728
20118         * builtins.c (powi_table): Remove.
20119         (powi_lookup_cost): Remove.
20120         (powi_cost): Remove.
20121         (expand_powi_1): Remove.
20122         (expand_powi): Remove.
20123         (expand_builtin_pow_root): Remove.
20124         (expand_builtin_pow): Remove.
20125         (expand_builtin_powi): Eliminate handling of constant exponent.
20126         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
20127
20128 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
20129
20130         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
20131
20132 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
20133
20134         * dce.c (reset_unmarked_insns_debug_uses): New.
20135         (delete_unmarked_insns): Skip debug insns.
20136         (prescan_insns_for_dce): Likewise.
20137         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
20138         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
20139         active reg can be found.
20140         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
20141         (convert_regs_1): Use it.
20142
20143 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
20144
20145         * tree-pretty-print.c (dump_function_header): Add flags.
20146         Don't dump decl_uid with nouid.
20147         * tree-pretty-print.h (dump_function_header): Adjust.
20148         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
20149         * passes.c (pass_init_dump_file): Pass dump_flags on.
20150         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
20151
20152 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
20153
20154         PR bootstrap/49270
20155         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
20156
20157 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
20158
20159         PR tree-optimization/49243
20160         * calls.c (setjmp_call_p): Also check if fndecl has the
20161         returns_twice attribute.
20162
20163 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20164
20165         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
20166         -ffast-math etc.
20167
20168 2011-06-06  Richard Henderson  <rth@redhat.com>
20169             Georg-Johann Lay  <avr@gjlay.de>
20170
20171         PR target/42210
20172         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
20173         New predicates.
20174         * config/avr/avr.md ("insv"): New insn expander.
20175         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
20176         "*insv.not.io", "*insv.reg"): New insns.
20177
20178 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
20179
20180         PR target/49285
20181         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
20182         to nonimmediate_operand from memory_operand for the operand that is to
20183         be forced to memory by the expander.  Lose the constraints.
20184
20185 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
20186
20187         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
20188         EH return when delayed branches are disabled.
20189
20190 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
20191
20192         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
20193         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
20194         calculation.
20195         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
20196         Simplify MODE_V1DF and MODE_V2SF handling.
20197         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
20198         Simplify MODE_SF handling.
20199
20200 2011-06-04  Jan Hubicka  <jh@suse.cz>
20201
20202         PR tree-optimization/48893
20203         PR tree-optimization/49091
20204         PR tree-optimization/49179
20205         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
20206         Bounds check.
20207
20208 2011-06-04  Jan Hubicka  <jh@suse.cz>
20209
20210         PR lto/48954
20211         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
20212         bitmaps.
20213
20214 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
20215
20216         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
20217
20218 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
20219
20220         PR target/49281
20221         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
20222         to be strictly smaller than 1 << shiftcount.
20223
20224 2011-06-04  Jan Hubicka  <jh@suse.cz>
20225
20226         PR tree-optimize/48929
20227         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
20228         of empty predicate.
20229
20230 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
20231
20232         PR debug/48333
20233         * calls.c (emit_call_1): Prefer the __builtin declaration of
20234         builtin functions.
20235
20236 2011-06-03   Diego Novillo  <dnovillo@google.com>
20237
20238         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
20239         (lto_input_tree_pointers): Likewise.
20240         * lto-streamer-out.c (pack_value_fields): Likewise.
20241         (lto_output_tree_pointers): Likewise.
20242         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
20243         and OPTIMIZATION_NODE.
20244
20245 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20246
20247         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
20248         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
20249         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
20250         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
20251         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
20252         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
20253         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
20254         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
20255         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
20256         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
20257         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
20258         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
20259         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
20260         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
20261         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
20262         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
20263         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
20264         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
20265         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
20266         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
20267         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
20268         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
20269         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
20270         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
20271         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
20272         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
20273         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
20274         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
20275         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
20276         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
20277         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
20278         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
20279         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
20280         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
20281         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
20282         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
20283         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
20284         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
20285         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
20286         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
20287         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
20288         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
20289         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
20290         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
20291         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
20292         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
20293         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
20294         * system.h (MD_UNWIND_SUPPORT): Poison.
20295         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
20296         * doc/tm.texi: Regenerate.
20297         * unwind-dw2.c: Include md-unwind-support.h instead of
20298         MD_UNWIND_SUPPORT.
20299         * config/ia64/unwind-ia64.c: Likewise.
20300         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
20301
20302 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
20303
20304         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
20305
20306 2011-06-03  Richard Henderson  <rth@redhat.com>
20307             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20308
20309         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
20310         (sigill_hdlr): Correct insn, insn size.
20311         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
20312
20313 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20314
20315         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
20316         t-slibgcc-dummy.
20317         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
20318         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
20319         * config/mips/t-iris: Remove.
20320         * config/mips/t-irix6: New file.
20321         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
20322
20323 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20324
20325         * Makefile.in (LIB2ADDEHDEP): Remove.
20326         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
20327         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
20328         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
20329         * config/t-darwin (LIB2ADDEHDEP): Remove.
20330         * config/t-freebsd (LIB2ADDEHDEP): Remove.
20331         * config/t-linux (LIB2ADDEHDEP): Remove.
20332
20333 2011-06-03  Diego Novillo  <dnovillo@google.com>
20334
20335         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
20336         (lto_register_var_decl_in_symtab): Likewise.
20337         (lto_register_function_decl_in_symtab): Likewise.
20338         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
20339         logic to uniquify_nodes.
20340
20341 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20342
20343         * config/alpha/t-osf5: Remove.
20344         * config/alpha/t-osf-pthread: Remove.
20345         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
20346         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
20347
20348 2011-06-03  Julian Brown  <julian@codesourcery.com>
20349
20350         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
20351         (strongarm1110): Use strongarm tuning.
20352         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
20353         * config/arm/arm.c (arm_strongarm_tune): New.
20354         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
20355         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
20356         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
20357         setting, using previous defaults or 1 for Cortex-A5.
20358         (arm_option_override): Set max_insns_skipped from current tuning.
20359
20360 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
20361
20362         * doc/install.texi (Options specification): Document --with-specs.
20363
20364 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
20365
20366         * config/arm/neon.md (orndi3_neon): Actually split it.
20367
20368 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
20369
20370         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
20371         * var-tracking.c (reverse_op): Limite recurse depth to 5.
20372
20373 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
20374
20375         PR debug/47590
20376         * target.def (delay_sched2, delay_vartrack): New.
20377         * doc/tm.texi.in: Update.
20378         * doc/tm.texi: Rebuild.
20379         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
20380         * var-tracking.c (gate_handle_var_tracking): Likewise.
20381         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
20382         (bfin_flag_var_tracking): Drop.
20383         (output_file_start): Don't save and override flag_var_tracking.
20384         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
20385         (bfin_reorg): Test original variables.
20386         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
20387         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
20388         (ia64_flag_var_tracking): Drop.
20389         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
20390         (ia64_file_start): Don't save and override flag_var_tracking.
20391         (ia64_override_options_after_change): Ditto
20392         flag_schedule_insns_after_reload.
20393         (ia64_reorg): Test original variables.
20394         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
20395         (picochip_flag_var_tracking): Drop.
20396         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
20397         (picochip_option_override): Don't save and override
20398         flag_schedule_insns_after_reload.
20399         (picochip_asm_file_start): Ditto flag_var_tracking.
20400         (picochip_reorg): Test original variables.
20401         * config/spu/spu.c (spu_flag_var_tracking): Drop.
20402         (TARGET_DELAY_VARTRACK): Define.
20403         (spu_var_tracking): New.
20404         (spu_machine_dependent_reorg): Call it.
20405         (asm_file_start): Don't save and override flag_var_tracking.
20406
20407 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
20408
20409         PR target/49163
20410         * config/sh/predicates.md (general_movsrc_operand): Return 0
20411         for memory and memory subreg of which address is an invalid
20412         indexed address for QI and HImode.
20413         (general_movdst_operand): Likewise.
20414
20415 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
20416
20417         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
20418         edges only, when there is a non-local label in the function.
20419         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
20420
20421 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
20422
20423         * config/i386/constraints.md (Y3): New register constraint.
20424         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
20425         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
20426         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
20427         *sse2_interleave_lowv2df.
20428
20429 2011-06-02  Julian Brown  <julian@codesourcery.com>
20430
20431         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
20432         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
20433         (arm_cortex_a5_tune): New.
20434
20435 2011-06-02  Julian Brown  <julian@codesourcery.com>
20436
20437         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
20438         * config/arm/arm.c (arm_default_branch_cost): New.
20439         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
20440         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
20441         (arm_fa726_tune): Set branch_cost field using
20442         arm_default_branch_cost.
20443         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
20444         current_tune structure.
20445         * dojump.c (tm_p.h): Include file.
20446
20447 2011-06-02  Julian Brown  <julian@codesourcery.com>
20448
20449         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
20450         tuning.
20451         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
20452         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
20453         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
20454         field.
20455         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
20456         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
20457         (arm_fa726te_tune): Add prefer_constant_pool setting.
20458         (arm_v6t2_tune, arm_cortex_tune): New.
20459         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
20460         prefer_constant_pool setting.
20461
20462 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
20463
20464         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
20465         switch statement.
20466         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
20467         (*movdf_internal) <case 6,7,8>: Ditto.
20468
20469         * config/i386/constraints.md (Y4): New register constraint.
20470         * config/i386/sse.md (vec_set<mode>_0): Merge with
20471         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
20472         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
20473         *vec_extractv2di_1_sse.
20474         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
20475         and *vec_concatv2di_rex64_sse.
20476
20477 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
20478
20479         PR target/48807
20480         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
20481         of cgraph_local_info for null before attempting to use it.
20482
20483 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
20484
20485         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
20486         (current_function_dynamic_alloc_count): Delete.
20487         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
20488         (expand_builtin_nonlocal_goto): Remove obsolete comment.
20489         (expand_builtin_update_setjmp_buf): Remove dead code.
20490         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
20491         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
20492         support.
20493         * function.c (instantiate_virtual_regs): Likewise.
20494         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
20495         for a block with a single abnormal incoming edge.
20496         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
20497         (SETJMP_VIA_SAVE_AREA): Delete.
20498         * config/sparc/sparc-protos.h (load_got_register): Declare.
20499         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
20500         (load_got_register): Make global.
20501         (sparc_frame_pointer_required): Add 'static'.
20502         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
20503         (sparc_builtin_setjmp_frame_value): New function.
20504         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
20505         (save_stack_nonlocal): New expander.
20506         (restore_stack_nonlocal): Likewise.
20507         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
20508         (nonlocal_goto_internal): New insn.
20509         (goto_handler_and_restore): Delete.
20510         (builtin_setjmp_setup): Likewise.
20511         (do_builtin_setjmp_setup): Likewise.
20512         (setjmp): Likewise.
20513         (builtin_setjmp_receiver): New expander.
20514
20515 2011-06-01  David Li  <davidxl@google.com>
20516
20517         PR middle-end/49261
20518         * tree-pretty-print.c (dump_function_header): Format cleanup.
20519
20520 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
20521
20522         PR target/49238
20523         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
20524         needed when original operands are used for msw_skip comparison.
20525
20526 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
20527
20528         PR debug/49250
20529         * var-tracking.c (add_uses, add_stores): Don't call
20530         cselib_subst_to_values on ENTRY_VALUE.
20531
20532 2011-06-01  Diego Novillo  <dnovillo@google.com>
20533
20534         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
20535         output_record_start with LTO_null instead of output_zero.
20536         (lto_output_ts_binfo_tree_pointers): Likewise.
20537         (lto_output_tree): Likewise.
20538         (output_eh_try_list): Likewise.
20539         (output_eh_region): Likewise.
20540         (output_eh_lp): Likewise.
20541         (output_eh_regions): Likewise.
20542         (output_bb): Likewise.
20543         (output_function): Likewise.
20544         (output_unreferenced_globals): Likewise.
20545         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
20546         instead of NUM_TREE_CODES.
20547         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
20548         (lto_output_int_in_range): Change << to >> when shifting VAL.
20549
20550 2011-06-01  Diego Novillo  <dnovillo@google.com>
20551
20552         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
20553         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
20554
20555 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
20556
20557         PR target/45074
20558         * optabs.h (valid_multiword_target_p): Declare.
20559         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
20560         doing multi-word operations.
20561         * optabs.c (expand_binop): Likewise.
20562         (expand_doubleword_bswap): Likewise.
20563         (expand_absneg_bit): Likewise.
20564         (expand_unop): Likewise.
20565         (expand_copysign_bit): Likewise.
20566         (multiword_target_p): New function.
20567
20568 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
20569
20570         PR rtl-optimization/48830
20571         PR rtl-optimization/48808
20572         PR rtl-optimization/48792
20573         * reload.c (push_reload): Check contains_reg_of_mode.
20574         * reload1.c (strip_paradoxical_subreg): New function.
20575         (gen_reload_chain_without_interm_reg_p): Use it to handle
20576         paradoxical subregs.
20577         (emit_output_reload_insns, gen_reload): Likewise.
20578
20579 2011-06-01  David Li  <davidxl@google.com>
20580
20581         * predict.c : Change pass name
20582         * ipa.c: Ditto.
20583         * dce.c: Ditto.
20584         * tree-profile.c: Ditto.
20585         * except.c: Ditto.
20586
20587 2011-06-01  David Li  <davidxl@google.com>
20588
20589         * tree-pretty-print.c (dump_function_header): New function.
20590         * final.c (rest_of_clean_state): Use header dumper.
20591         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
20592         * passes.c (pass_init_dump_file): Use header dumper.
20593
20594 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
20595
20596         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
20597         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
20598         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
20599         New functions.
20600         (mem_loc_descriptor): Use them.
20601
20602         * var-tracking.c (create_entry_value): New function.
20603         (vt_add_function_parameter): Use it.
20604
20605 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20606
20607         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
20608         Include <signal.h>, <ucontext.h>.
20609         (sigill_caught): Define.
20610         (sigill_hdlr): New function.
20611         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
20612         insns can be executed.
20613         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
20614         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
20615
20616 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20617
20618         * config/t-slibgcc-darwin: Move to ...
20619         * config/t-slibgcc-dummy: ... this.  Clarify comments.
20620         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
20621         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
20622         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
20623         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
20624         Remove i386/t-crtstuff from tmake_file.
20625         (i[34567]86-*-solaris2*): Remove t-svr4,
20626         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
20627         t-slibgcc-dummy.
20628         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
20629         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
20630         sparc/t-crtfm from tmake_file.
20631         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
20632         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
20633         Remove extra_parts.
20634         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
20635         * config/i386/t-nwld (SHLIB_LINK): Remove.
20636         * config/i386/t-rtems-i386: Rename to ...
20637         * config/i386/t-rtems: ... this.
20638         ($(T)crti.o, $(T)crtn.o): Remove.
20639         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
20640         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
20641         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
20642         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
20643         EXTRA_MULTILIB_PARTS): Remove.
20644         * config/sparc/t-sol2-64: Likewise.
20645         * config/sparc/t-sol2: Remove.
20646         * config/sparc/t-crtin: Remove.
20647         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
20648         * config/i386/gmon-sol2.c: Remove.
20649         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
20650         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
20651         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
20652         * config/i386/sol2-gc1.asm: Remove.
20653         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
20654         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
20655         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
20656         * config/t-slibgcc-sld: Remove.
20657
20658 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
20659
20660         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
20661         base_type_for_mode with op_mode instead of mode.
20662
20663 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
20664
20665         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
20666         Cortex-A15.
20667         * config/arm/arm-tune.md: Regenerate.
20668         * config/arm/arm-tables.opt: Regenerate.
20669         * config/arm/arm.c (FL_DIV): Rename...
20670         (FL_THUMB_DIV): ... to this.
20671         (FL_ARM_DIV): Define.
20672         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
20673         (arm_arch_hwdiv): Remove.
20674         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
20675         (arm_issue_rate): Add cortexr5.
20676         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
20677         __ARM_ARCH_EXT_IDIV__.
20678         (TARGET_IDIV): Define.
20679         (arm_arch_hwdiv): Remove.
20680         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
20681         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
20682         (divsi3, udivsi3): New patterns.
20683         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
20684         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
20685
20686 2011-06-01  Martin Jambor  <mjambor@suse.cz>
20687
20688         * ipa-utils.c (ipa_dfs_info): New field scc_no.
20689         * ipa-utils.c (searchc): Set scc_no.
20690
20691 2011-06-01  Martin Jambor  <mjambor@suse.cz>
20692
20693         * ipa-utils.c (searchc_env): New field allow_overwritable.
20694         (searchc): do not ignore edges to overwritable nodes if indicated
20695         by env->allow_overwritable.
20696         (ipa_reduced_postorder): Set env.allow_overwritable.
20697
20698 2011-06-01  Richard Guenther  <rguenther@suse.de>
20699
20700         * tree.c (free_lang_data): Do not reset boolean_type_node nor
20701         char_type_node.
20702         * lto-streamer.c (lto_record_common_node): Take node pointer,
20703         do not register types.
20704         (lto_preload_common_nodes): Explicitly skip preloading nodes
20705         that differ between frontends.
20706
20707 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
20708
20709         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
20710         NON_FLOAT_REGS.
20711
20712 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
20713
20714         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
20715         parameter value for dump. Dump cost on outermost call only.
20716         (rs6000_memory_move_cost): Dump cost on outermost call only.
20717
20718 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
20719
20720         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
20721         DW_OP_GNU_convert ops.
20722
20723         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
20724         cselib_preserve_constants.
20725         (cselib_lookup_1): If cselib_preserve_constants,
20726         a new VALUE is being created for REG and there is a VALUE for the
20727         same register in wider mode, add another loc with lowpart SUBREG of
20728         the wider VALUE.
20729         (cselib_subst_to_values): Handle ENTRY_VALUE.
20730         * var-tracking.c  (replace_expr_with_values): Return NULL for
20731         ENTRY_VALUE too.
20732         * dwarf2out.c (convert_descriptor_to_signed): New function.
20733         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
20734         instead of two shifts.
20735         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
20736         the right mode if needed.
20737         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
20738         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
20739         convert_descriptor_to_signed.
20740         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
20741         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
20742
20743         PR target/48688
20744         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
20745
20746 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
20747
20748         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
20749         of X87MODEI12 and SWI48x instead of SSEMODEI24.
20750         (SWI248x): New mode iterator, rename from X87MODEI.
20751         (X87MODEI): Remove mode iterator.
20752         (X87MODEI12): Ditto.
20753         (SSEMODEI24): Ditto.
20754
20755 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
20756
20757         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
20758         * doc/invoke.texi: Document max-vartrack-expr-depth.
20759         * var-tracking.c (EXPR_DEPTH): New.
20760         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
20761
20762 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
20763
20764         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
20765         * config/i386/sse.md: Add n to negated FMA pattern names.
20766
20767 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
20768
20769         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
20770
20771 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
20772
20773         * gengtype-state.c (read_state_params_structs): Initialize previous.
20774
20775 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
20776
20777         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
20778         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
20779
20780 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
20781
20782         * config/i386/i386.md (*movtf_internal): Avoid allocating general
20783         registers.  Penalize F*r->o alternative to prevent partial memory
20784         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
20785         CONST_DOUBLE immediates when optimizing function for size.  Do not move
20786         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
20787         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
20788         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
20789         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
20790         alternatives.
20791         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
20792
20793         (fp_register_operand splitters): Use fp_register_operand
20794         constraint.  Do not use FP_REG_P in insn condition.
20795         (any_fp_register_operand splitters): Use any_fp_register_operand
20796         constraint.  Do not use ANY_FP_REG_P in insn condition.
20797
20798 2011-05-31  Jan Hubicka  <jh@suse.cz>
20799
20800         * cgraph.h (cgraph_inline_failed_t): Give enum a name
20801         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
20802         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
20803         (lto_output_edge): Use output_enum and var_len_unsigned.
20804         (lto_output_varpool_node): Likewise.
20805         (input_overwrite_node): Do not take resolution parameter;
20806         extract it from a bitpack.
20807         (input_node): Do not read resolution; use input_enum and
20808         var_len_unsigned.
20809         (input_varpool_node): Likewise.
20810         (input_edge): Likewise.
20811         (input_cgraph_1): Likewise.
20812
20813 2011-05-31  Richard Guenther  <rguenther@suse.de>
20814
20815         * gimple.c (gimple_register_canonical_type): Do not register
20816         any types via gimple_register_type.
20817
20818 2011-05-31  Jan Hubicka  <jh@suse.cz>
20819
20820         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
20821         of thunks.
20822
20823 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
20824
20825         PR rtl-optimization/49235
20826         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
20827         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
20828
20829 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
20830
20831         PR tree-optimization/49093
20832         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
20833         data references.
20834
20835 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
20836
20837         PR debug/49047
20838         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
20839         for concrete functions containing the code of cloned functions.
20840
20841 2011-05-31  Richard Guenther  <rguenther@suse.de>
20842
20843         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
20844         to ...
20845         (forward_propagate_into_comparison_1): ... this.
20846         (forward_propagate_comparison): Rename to ...
20847         (forward_propagate_into_comparison): ... this.  Split out
20848         real forward propagation code to ...
20849         (forward_propagate_comparison): ... this.
20850         (forward_propagate_into_gimple_cond): Remove looping.
20851         (forward_propagate_into_cond): Likewise.
20852         (simplify_not_neg_expr): Return whether we have done something.
20853         (simplify_gimple_switch): Likewise.
20854         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
20855         (ssa_forward_propagate_and_combine): ... this.  Re-structure
20856         to do a forward forward-propagation walk on BBs and a backward
20857         stmt combining walk on BBs.  Consistently re-scan changed statements.
20858         (pass_forwprop): Adjust.
20859
20860 2011-05-30  Ian Lance Taylor  <iant@google.com>
20861
20862         * godump.c (go_format_type): Correct length of name added to
20863         obstack for anonymous field.
20864
20865 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
20866
20867         PR target/49186
20868         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
20869         part of the second operand is 0.
20870
20871 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
20872
20873         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
20874         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
20875         to memory for !TARGET_MEMORY_MISMATCH_STALL.
20876         (*movdf_internal_rex64): Do not penalize F->r alternative.
20877         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
20878         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
20879         when optimizing function for size.  Do not move CONST_DOUBLEs
20880         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
20881         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
20882         SUBREGs.  Do not check for MEM_P operands in the insn condition,
20883         check for ANY_FP_REGNO_P instead.
20884         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
20885         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
20886         function for speed.
20887         * config/i386/i386.c (ix86_option_override_internal): Do not
20888         set TARGET_INTEGER_DFMODE_MOVES here.
20889
20890 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
20891
20892         PR target/49168
20893         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
20894
20895 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
20896
20897         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
20898         DW_TAG_rvalue_reference_type even for
20899         -gdwarf-4 -fno-debug-types-section.
20900
20901 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20902
20903         PR tree-optimization/46728
20904         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
20905         (build_and_insert_binop): New.
20906         (gimple_expand_builtin_pow): Reorder args for
20907         build_and_insert_call; use build_and_insert_binop; add more
20908         optimizations for fractional exponents.
20909
20910 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
20911
20912         PR bootstrap/49190
20913
20914         Revert:
20915         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
20916
20917         * tree.h (struct tree_identifier): Inherit from tree_typed, not
20918         tree_common.
20919         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
20920         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
20921         TS_BASE instead of TS_COMMON.
20922         * varasm.c (assemble_name): Remove assert.
20923
20924 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
20925
20926         * config.gcc: Keep obselete list sorted.
20927
20928 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
20929             Eric Botcazou  <ebotcazou@adacore.com>
20930
20931         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
20932         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
20933         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
20934         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
20935         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
20936
20937 2011-05-30  Richard Guenther  <rguenther@suse.de>
20938
20939         * gimple.c (gimple_types_compatible_p_1): Compare record
20940         and union type members properly.
20941
20942 2011-05-30  Richard Guenther  <rguenther@suse.de>
20943
20944         PR tree-optimization/49210
20945         * ipa-split.c (split_function): Care for the case where the call
20946         result is not trivially convertible to the result holding variable.
20947
20948 2011-05-30  Richard Guenther  <rguenther@suse.de>
20949
20950         PR tree-optimization/49218
20951         * tree-vrp.c (adjust_range_with_scev): Properly check whether
20952         overflow occured.
20953
20954 2011-05-30  Richard Guenther  <rguenther@suse.de>
20955
20956         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
20957         New function split out from ...
20958         (forward_propagate_into_gimple_cond): ... here.  Adjust.
20959         (forward_propagate_into_cond): Likewise.
20960         (forward_propagate_comparison): Also propagate into
20961         comparisons on assignment RHS.  Change return value to
20962         behave similar to forward_propagate_into_cond.
20963         (tree_ssa_forward_propagate_single_use_vars): Handle
20964         strict-overflow warnings properly for forward_propagate_comparison.
20965
20966 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20967
20968         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
20969         from plugin linker.
20970         * configure: Regenerate.
20971
20972 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
20973
20974         PR tree-optimization/49199
20975         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
20976         non-reduction operands are either defined in the loop or by induction.
20977
20978 2011-05-29  Xinliang David Li  <davidxl@google.com>
20979
20980         * opts-global.c (handle_common_deferred_options): Handle new options.
20981         * passes.c (register_one_dump_file): Call register_pass_name.
20982         (execute_one_pass): Check explicit enable/disable flag.
20983         (passr_hash): New function.
20984         (passr_eq): Ditto.
20985         (register_pass_name): Ditto.
20986         (get_pass_by_name): Ditto.
20987         (pass_hash): Ditto.
20988         (pass_eq): Ditto.
20989         (enable_pass): Ditto.
20990         (disable_pass): Ditto.
20991         (is_pass_explicitly_enabled_or_disabled): Ditto.
20992
20993 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
20994
20995         * config/i386/i386.md (*movoi_internal_avx): Use
20996         standard_sse_constant_opcode for alternative 0.
20997         (*movti_internal_sse): Ditto.
20998         (*movti_internal_rex64): Use standard_sse_constant_opcode for
20999         alternative 2.
21000         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
21001         sselog1 type moves.
21002         (*movsi_internal): Ditto.
21003         (*movdi_internal): Ditto.  Add ssecvt type moves.
21004
21005 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
21006
21007         PR target/48830
21008         * rtlanal.c (simplify_subreg_regno): Adjust comment.
21009
21010 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
21011
21012         PR rtl-optimization/49095
21013         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
21014         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
21015
21016 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
21017
21018         PR target/43995
21019         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
21020         recurse_p argument.  Only follow register copies if it is set,
21021         and prevent mips_find_pic_call_symbol from recursing.
21022         (mips_find_pic_call_symbol): Add a recurse_p argument.
21023         Pass it to mips_pic_call_symbol_from_set.
21024         (mips_annotate_pic_calls): Update accordingly.
21025
21026 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
21027
21028         * emit-rtl.c (try_split): Use a loop to search for
21029         NOTE_INSN_CALL_ARG_LOCATIONs.
21030
21031 2011-05-29  Richard Guenther  <rguenther@suse.de>
21032
21033         PR tree-optimization/49217
21034         * ipa-pure-const.c (propagate_pure_const): Fix typos.
21035
21036 2011-05-28  Jan Hubicka  <jh@suse.cz>
21037
21038         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
21039         length.
21040         (string_slot_free): Remove
21041         (create_output_block): Initialize obstack.
21042         (destroy_output_block): Free obstack.
21043         (lto_string_index): Add PERSISTENT parameter; do not duplicate
21044         the string unless it needs to be added into the hash.
21045         (lto_output_string_with_length): Add persistent attribute;
21046         handle NULL strings.
21047         (lto_output_string): Add PERSISTENT parameter.
21048         (output_string_cst, output_identifier): Simplify.
21049         (lto_output_location_bitpack): Update.
21050         (lto_output_builtin_tree): Update.
21051         * lto-streamer.h (struct output_block): Add obstack.
21052         (lto_output_string, lto_output_string_with_length): Remove
21053         declarations; functions are static now.
21054
21055 2011-05-28  Jan Hubicka  <jh@suse.cz>
21056
21057         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
21058         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
21059         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
21060         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
21061         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
21062         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
21063         unpack_ts_decl_with_vis_value_fields,
21064         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
21065         lto_get_builtin_tree): Use enum and variable length i/o.
21066         * basic-block.h (profile_status_d): Add PROFILE_LAST.
21067         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
21068         New functions.
21069         (bp_pack_enum, bp_unpack_enum): New macros.
21070
21071 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
21072
21073         * genrecog.c: Remove redundant forward declarations.
21074
21075 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
21076
21077         * config.gcc: Deprecate mips*-*-openbsd*.
21078
21079 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
21080
21081         PR bootstrap/49195
21082         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
21083         for match_op_dup.
21084
21085 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
21086
21087         PR middle-end/48981
21088         * gengtype.c (vec_prefix_type): New function.
21089         (note_def_vec): Use vec_prefix_type and change the length
21090         attribute to be based on the prefix.
21091         * vec.c: Include coretypes.h before vec.h.
21092         (struct vec_prefix): Remove.
21093         (vec_gc_p_reserve): Change the offsetof to sizeof.
21094         (vec_gc_p_reserve_exact): Likewise.
21095         (vec_heap_p_reserve): Likewise.
21096         (vec_heap_p_reserve_exact): Likewise.
21097         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
21098         (vec_stack_p_reserve): Change the offsetof to sizeof.
21099         (vec_stack_p_reserve_exact): Likewise.
21100         * vec.h (struct vec_prefix): New struct definition.
21101         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
21102         (VEC_T_GTY(T,B)): Likewise.
21103         (DEF_VEC_FUNC_P(T)): Use prefix field.
21104         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
21105         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
21106
21107 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21108
21109         PR tree-optimization/46728
21110         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
21111         (powi_as_mults): Add gimple_set_location.
21112         (build_and_insert_call): New.
21113         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
21114         0.5, 0.25, 0.75, 1./3., or 1./6.
21115
21116 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
21117
21118         * doc/contrib.texi: Update copyright years.
21119         (Contributors): Add Zdenek Sojka.
21120
21121 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
21122
21123         * c-decl.c (c_push_function_context): Copy the current statement
21124         list stack.
21125         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
21126         (finish_struct): Call building_stmt_list_p instead of checking
21127         cur_stmt_list.
21128         * c-parser.c (c_parser_postfix_expression): Likewise.
21129         * c-typeck.c (c_end_compound_stmt): Likewise.
21130         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
21131         * tree-iterator.c (stmt_list_cache): Change to a VEC.
21132         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
21133         (free_stmt_list): Likewise.
21134         * tree.h (struct tree_statement_list): Include typed_tree instead
21135         of tree_common.
21136         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
21137         as TS_TYPED instead of TS_COMMON.
21138
21139 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21140             Uros Bizjak  <ubizjak@gmail.com>
21141
21142         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
21143         (HAVE_AS_IX86_TLSGDPTL): Define.
21144         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
21145         (HAVE_AS_IX86_TLSLDMPLT): Define.
21146         * configure: Regenerate.
21147         * config.in: Regenerate.
21148         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
21149         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
21150         TARGET_SUN_TLS, use @tlsgdplt or @plt.
21151         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
21152         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
21153         @tlsldmplt or @plt.
21154         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
21155
21156 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
21157
21158         * sched-int.h (struct _haifa_deps_insn_data): New members cond
21159         and reverse_cond.
21160         (INSN_COND, INSN_REVERSE_COND): New macros.
21161         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
21162         once.
21163         (sched_get_condition_with_rev): Cache the results, and look them up
21164         if possible.
21165         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
21166         are clobbered by the current insn.
21167         * target.def (exposed_pipline): New sched data hook.
21168         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
21169         * doc/tm.texi: Regenerate.
21170
21171 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21172
21173         PR tree-optimization/49170
21174         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
21175         sincos or cexp.
21176
21177 2011-05-27  Richard Guenther  <rguenther@suse.de>
21178
21179         PR middle-end/49189
21180         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
21181         of comparisons.
21182
21183 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
21184
21185         * haifa-sched.c (sched_scan_info): Remove.
21186         (schedule_block): Call sched_extend_luids rather than sched_init_luids
21187         with NULL args.
21188         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
21189         Remove functions.
21190         (sched_scan): Remove.
21191         (sched_extend_luids): Renamed from luids_extend_insn and no longer
21192         static.  All callers changed.
21193         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
21194         static.  All callers changed.
21195         (sched_init_luids): Remove all arguments except the first.  All
21196         callers changed.  Don't use sched_scan.
21197         (haifa_init_h_i_d): Likewise.
21198         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
21199         manually rather than using sched_init_luids.  Likewise with
21200         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
21201         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
21202         rather than sched_init_luids with NULL args.
21203         * sel-sched-ir.c (new_insns): Remove variable.
21204         (sched_scan): New static function, previously in haifa-sched.c.  Remove
21205         all arguments but the first two; all callers changed.
21206         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
21207         rather than sched_init_luids.
21208         (sel_init_bbs): Remove second argument.  All callers changed.
21209         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
21210         with NULL arguments.
21211         (create_insn_rtx_from_pattern): Likewise.
21212         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
21213         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
21214         (sched_init_insn_luid, sched_extend_luids): Declare.
21215         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
21216         declarations.
21217
21218 2011-05-27  Richard Guenther  <rguenther@suse.de>
21219
21220         PR middle-end/49177
21221         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
21222         A CMP B ? (T) true : (T) false for non-integral types T again.
21223
21224 2011-05-27  Jan Hubicka  <jh@suse.cz>
21225
21226         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
21227         so 0 means NULL string.
21228         (lto_output_string_with_length): ... here.
21229         (lto_output_string, output_string_cst, output_identifier): Update
21230         handling of NULL strings.
21231         (lto_output_location_bitpack): New function.
21232         (lto_output_location): Use it.
21233         (lto_output_tree_ref): Use output_record_start.
21234         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
21235         len values.
21236         * lto-streamer-in.c (string_for_index): Break out from ...; offset
21237         values by 1.
21238         (input_string_internal): ... here;
21239         (input_string_cst, input_identifier, lto_input_string): Update handling
21240         of NULL strings.
21241         (lto_input_location_bitpack): New function
21242         (lto_input_location): Use it.
21243         (unpack_ts_type_common_value_fields): Pack align & alias in var len
21244         values.
21245         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
21246         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
21247         (bp_pack_value): Sanity check the value range.
21248         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
21249         New functions.
21250         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
21251         New functions.
21252
21253 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
21254
21255         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
21256         call_arg_location instructions down the floor.
21257
21258 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
21259
21260         PR rtl-optimization/49154
21261         * ira.c (setup_pressure_classes): Process class without sublcasses
21262         as a candidate for pressure classes.
21263
21264 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
21265
21266         PR rtl-optimization/48575
21267         * genrecog.c (position_type): New enum.
21268         (position): New structure.
21269         (decision): Use position structure instead of a string.
21270         (root_pos, peep2_insn_pos_list): New variables.
21271         (next_position, compare_positions): New functions.
21272         (new_decision): Use position structures instead of strings.
21273         (maybe_both_true): Likewise.
21274         (change_state): Likewise.
21275         (write_tree): Likewise.
21276         (make_insn_sequence): Likewise.
21277
21278 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
21279
21280         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
21281         TS_BASE instead of TS_COMMON.
21282         (find_decls_types_r): Check for TS_TYPED structure before looking at
21283         TREE_TYPE.
21284         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
21285         Add chain field.
21286         (BLOCK_CHAIN): Use new chain field.
21287
21288 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
21289
21290         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
21291         moves expensive on Power7 also.
21292
21293 2011-05-26  Richard Guenther  <rguenther@suse.de>
21294
21295         * fold-const.c (fold_unary_loc): Remove bogus code.
21296
21297 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
21298
21299         * tree.h (struct tree_identifier): Inherit from tree_typed, not
21300         tree_common.
21301         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
21302         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
21303         TS_BASE instead of TS_COMMON.
21304         * varasm.c (assemble_name): Remove assert.
21305
21306 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
21307
21308         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
21309         substituted first.
21310         * libgcc-std.ver: Delete file.
21311
21312 2011-05-26  Richard Guenther  <rguenther@suse.de>
21313
21314         PR tree-optimization/48702
21315         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
21316         only when we know the base address is within bounds.
21317         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
21318         assume the base address of TARGET_MEM_REFs is in bounds.
21319
21320 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21321
21322         PR target/49099
21323         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
21324         declaration in TARGET_SOLARIS.
21325
21326 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
21327
21328         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
21329         The instruction is then expanded explicitly.
21330         (supported_compare): Callable instruction.
21331         (compare): Likewise.
21332
21333 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
21334
21335         PR c++/49165
21336         * gimplify.c (shortcut_cond_r): Don't special case
21337         COND_EXPRs if they have void type on one of their arms.
21338
21339 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
21340
21341         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
21342         to reduce duplication, and to achieve a slightly more logical order
21343         of operations.
21344
21345 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
21346
21347         PR tree-optimization/49161
21348         * tree-vrp.c (struct case_info): New type.
21349         (compare_case_labels): Sort case_info structs instead of
21350         trees, and not primarily by CASE_LABEL uids but by
21351         label_for_block indexes.
21352         (find_switch_asserts): Put case labels into struct case_info
21353         array instead of TREE_VEC, adjust sorting, compare label_for_block
21354         values instead of CASE_LABELs.
21355
21356 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
21357
21358         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
21359         ("orndi3_neon"): Likewise.
21360         ("bic<mode>3_neon"): Likewise.
21361
21362 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
21363
21364         PR tree-optimization/49038
21365         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
21366         Ensure at least one epilogue iteration if required by data
21367         accesses with gaps.
21368         * tree-vectorizer.h (struct _loop_vec_info): Add new field
21369         to mark loops that require peeling for gaps.
21370         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
21371         (vect_get_known_peeling_cost): Take peeling for gaps into
21372         account.
21373         (vect_transform_loop): Generate epilogue if required by data
21374         access with gaps.
21375         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
21376         loop as requiring an epilogue if there are gaps in the end of
21377         the strided group.
21378
21379 2011-05-25  Ian Lance Taylor  <iant@google.com>
21380
21381         * godump.c (go_format_type): Output the first field with a usable
21382         Go type, if any.
21383
21384 2011-05-25  Ian Lance Taylor  <iant@google.com>
21385
21386         * godump.c (go_format_type): Check for invalid type names, pointer
21387         target types, and struct field types.
21388
21389 2011-05-25  Jason Merrill  <jason@redhat.com>
21390
21391         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
21392
21393 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
21394
21395         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
21396
21397 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
21398
21399         * config/i386/i386.md (*movqi_extv_1)): Put back
21400         "register_operand" check in "type" calculation.
21401         (*movqi_extzv_2): Likewise.
21402
21403 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
21404
21405         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
21406
21407 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
21408
21409         PR bootstrap/49160
21410         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
21411         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
21412         __divxc3, __divtc3): Wrap definitions in #ifndef.
21413
21414 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
21415
21416         PR target/49142
21417         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
21418         "register_operand" check and replace q_regs_operand with
21419         QIreg_operand in "type" calculation.
21420         (*movqi_extv_1): Likewise.
21421         (*movqi_extzv_2_rex64): Likewise.
21422         (*movqi_extzv_2): Likewise.
21423
21424         * config/i386/predicates.md (QIreg_operand): New.
21425
21426 2011-05-25  Richard Guenther  <rguenther@suse.de>
21427
21428         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
21429         type-based offset disambiguation, streamline MEM_REF and
21430         TARGET_MEM_REF handling.
21431
21432 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
21433
21434         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
21435         (bdesc_special_args): Add pause intrinsic.
21436
21437         * config/i386/i386.md (UNSPEC_PAUSE): New.
21438         (pause): Likewise.
21439         (*pause): Likewise.
21440         * config/i386/ia32intrin.h (__pause): Likewise.
21441
21442         * doc/extend.texi (X86 Built-in Functions): Add documentation for
21443         pause intrinsic.
21444
21445 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21446
21447         PR tree-optimization/46728
21448         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
21449         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
21450
21451 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
21452
21453         * tree.h (struct tree_exp): Inherit from struct tree_typed.
21454         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
21455         instead of TS_COMMON.
21456
21457 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
21458
21459         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
21460         LIBGCC2_GNU_PREFIX is defined.
21461         (__N): New macro.
21462         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
21463         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
21464         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
21465         __clz_tab): Define using __N.
21466         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
21467         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
21468         * target.def (libfunc_gnu_prefix): New hook.
21469         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
21470         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
21471         * doc/tm.texi: Regenerate.
21472         * system.h (LIBGCC2_GNU_PREFIX): Poison.
21473         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
21474         account.
21475         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
21476         (init_optabs): Likewise for the bswap libfuncs.
21477         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
21478         and divide.
21479         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
21480         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
21481         * libgcc-std.ver: Remove.
21482         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
21483         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
21484         libgcc-std.ver.
21485         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
21486         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
21487         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
21488         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
21489         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
21490         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
21491         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
21492         * config/fixed-bit.h (FIXED_OP): Define differently depending on
21493         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
21494         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
21495
21496 2011-05-25  Jan Hubicka  <jh@suse.cz>
21497
21498         * lto-streamer-out.c (output_record_start): Use lto_output_enum
21499         (lto_output_tree): Use output_record_start.
21500         * lto-streamer-in.c (input_record_start): Use lto_input_enum
21501         (lto_get_pickled_tree): Use input_record_start.
21502         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
21503         (lto_value_range_error): New function.
21504         * lto-streamer.h (lto_value_range_error): Declare.
21505         (lto_output_int_in_range, lto_input_int_in_range): New functions.
21506         (lto_output_enum, lto_input_enum): New macros.
21507
21508 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
21509
21510         * common.opt (flag_stack_usage_info): New variable.
21511         (-Wstack-usage): New option.
21512         * doc/invoke.texi (Warning options): Document -Wstack-usage.
21513         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
21514         <OPT_fstack_usage>: Likewise.
21515         * toplev.c (output_stack_usage): Handle -Wstack-usage.
21516         * calls.c (expand_call): Test flag_stack_usage_info variable instead
21517         of flag_stack_usage.
21518         (emit_library_call_value_1): Likewise.
21519         * explow.c (allocate_dynamic_stack_space): Likewise.
21520         * function.c (instantiate_virtual_regs ): Likewise.
21521         (prepare_function_start): Likewise.
21522         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
21523         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
21524         * config/arm/arm.c (arm_expand_prologue): Likewise.
21525         (thumb1_expand_prologue): Likewise.
21526         * config/avr/avr.c (expand_prologue): Likewise.
21527         * config/i386/i386.c (ix86_expand_prologue): Likewise.
21528         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
21529         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
21530         * config/mips/mips.c (mips_expand_prologue): Likewise.
21531         * config/pa/pa.c (hppa_expand_prologue): Likewise.
21532         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
21533         * config/s390/s390.c (s390_emit_prologue): Likewise.
21534         * config/sh/sh.c (sh_expand_prologue): Likewise.
21535         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
21536         * config/spu/spu.c (spu_expand_prologue): Likewise.
21537
21538 2011-05-25  Richard Guenther  <rguenther@suse.de>
21539
21540         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
21541         (gimple_canonical_types_compatible_p): Likewise.
21542
21543 2011-05-25  Jan Hubicka  <jh@suse.cz>
21544
21545         PR middle-end/49062
21546         * ipa.c (function_and_variable_visibility): Only add to same
21547         comdat group list if DECL_ONE_ONLY.
21548
21549 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
21550
21551         PR rtl-optimization/49014
21552         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
21553
21554 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
21555
21556         PR target/49128
21557         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
21558
21559 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
21560
21561         PR rtl-optimization/48757
21562         * ira-build.c (loop_with_eh_edge_p): Rename to
21563         loop_with_complex_edge_p, check edges on complexity, make function
21564         conditional.
21565         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
21566         conditional.
21567
21568 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
21569
21570         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
21571         force flag_ira_share_save_slots to 0.
21572
21573 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
21574
21575         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
21576         (vt_initialize): Set PROLOGUE_BB unconditionally.
21577         Add block comment about CFA_BASE_RTX machinery.
21578         Reset FP_CFA_OFFSET to -1 on all invalid paths.
21579         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
21580
21581 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
21582
21583         PR objc/48187
21584         * c-parser.c (c_parser_objc_class_instance_variables): More robust
21585         parsing of syntax error in ObjC instance variable lists.  In
21586         particular, avoid an infinite loop if there is a stray ']'.
21587         Updated error message.
21588
21589 2011-05-24  Ian Lance Taylor  <iant@google.com>
21590
21591         * godump.c (go_define): Don't accept a string immediately after
21592         another operand.
21593
21594 2011-05-24  Ian Lance Taylor  <iant@google.com>
21595
21596         * godump.c (struct godump_container): Add invalid_hash field.
21597         (go_format_type): Return false if type is found in invalid_hash.
21598         (go_output_typedef): Add invalid type to invalid_hash.
21599         (go_finish): Create and delete invalid_hash.
21600
21601 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21602
21603         PR tree-optimization/46728
21604         * tree-ssa-math-opts.c (powi_table): New.
21605         (powi_lookup_cost): New.
21606         (powi_cost): New.
21607         (powi_as_mults_1): New.
21608         (powi_as_mults): New.
21609         (gimple_expand_builtin_powi): New.
21610         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
21611         (gate_cse_sincos): Remove sincos/cexp restriction.
21612
21613 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21614
21615         PR target/3746
21616         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
21617         mips-tdump native.
21618         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
21619         * mips-tdump.c: Likewise.
21620
21621 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
21622
21623         PR target/49128
21624         * config/i386/driver-i386.c (host_detect_local_cpu): Always
21625         add -mno-XXX.  Handle FMA.
21626
21627 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
21628
21629         PR rtl-optimization/48633
21630         * ira-build.c (loop_with_eh_edge_p): New function.
21631         (mark_loops_for_removal): Use it.
21632
21633 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
21634
21635         PR rtl-optimization/48971
21636         * ira.c (setup_pressure_classes): Don't check register move cost
21637         for classes with one registers.  Don't add pressure class if there
21638         is a pressure class with the same available hard registers.
21639         Check contains_reg_of_mode.  Fix a typo in collecting
21640         temp_hard_regset.  Ignore hard registers not belonging to a class.
21641
21642 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
21643
21644         PR target/49133
21645         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
21646
21647 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
21648             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21649
21650         PR gcov-profile/48845
21651         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
21652
21653 2011-05-24  Richard Guenther  <rguenther@suse.de>
21654
21655         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
21656         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
21657         (gimple_types_compatible_p_1): Adjust.
21658         (iterative_hash_canonical_type): Do not bother about complete vs.
21659         incomplete types.
21660         (gimple_canonical_types_compatible_p): Likewise.
21661
21662 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21663
21664         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
21665
21666 2011-05-24  Richard Guenther  <rguenther@suse.de>
21667
21668         PR bootstrap/49078
21669         * gimple.c (gimple_register_canonical_type): Revert
21670         previous change.
21671         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
21672         does not for a tree for the case where it matters.  Cache
21673         pointer-type alias-sets.
21674
21675 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
21676
21677         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
21678         (OBJS): Remove options.o, opts-common.o and prefix.o.
21679         (OBJS-libcommon-target): New.
21680         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
21681         (BACKEND): Include libcommon-target.a.
21682         (MOSTLYCLEANFILES): Include libcommon-target.a.
21683         (libcommon-target.a): New.
21684         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
21685         prefix.o.
21686
21687 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
21688
21689         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
21690         parts of output shared with the driver.
21691         * optc-gen.awk: Don't generate parts of output not shared with the
21692         driver.
21693         * opth-gen.awk: Remove GCC_DRIVER conditionals.
21694         * doc/options.texi (SourcerInclude): Mention options-save.c.
21695         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
21696         (OBJS): Add options-save.o.
21697         (options-save.c, options-save.o): New.
21698         (options.o): Update dependencies.
21699         (gcc-options.o): Remove.
21700         (mostlyclean): Remove options-save.c.
21701
21702 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
21703
21704         PR debug/49032
21705         * dbxout.c: Include cgraph.h.
21706         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
21707         and without value expr, return NULL if no varpool node exists for
21708         it or if it is not needed.
21709         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
21710
21711         PR c/49120
21712         * c-decl.c (start_decl): Convert expr to void_type_node.
21713
21714 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
21715
21716         PR rtl-optimization/48826
21717         * emit-rtl.c (try_split): When splitting a call that is followed
21718         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
21719
21720 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
21721
21722         * cfgexpand.c (expand_debug_expr): For unused non-addressable
21723         parameters passed in memory prefer using DECL_INCOMING_RTL over
21724         the pseudos it will be copied into.
21725
21726 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
21727
21728         PR target/47315
21729         * config/i386/i386.c (ix86_option_override_internal): Save the
21730         initial options after checking vzeroupper.
21731
21732 2011-05-23  David Li  <davidxl@google.com>
21733
21734         PR tree-optimization/48988
21735         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
21736         Initialize has_valid_pred for each pred chain.
21737
21738 2011-05-23  Richard Guenther  <rguenther@suse.de>
21739
21740         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
21741         (iterative_hash_gimple_type): Always hash type names.
21742
21743 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
21744
21745         * c-typeck.c (build_function_call_vec): Tweak call to
21746         check_function_arguments.
21747
21748 2011-05-23  Richard Guenther  <rguenther@suse.de>
21749
21750         PR tree-optimization/49115
21751         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
21752         is not necessarily carried out, do not claim it kills the ref.
21753         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
21754
21755 2011-05-23  Richard Guenther  <rguenther@suse.de>
21756
21757         PR middle-end/15419
21758         * builtins.c (fold_builtin_memory_op): Be less restrictive about
21759         what pointer types we accept for folding.
21760
21761 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21762
21763         * gthr-gnat.c: Remove.
21764         * gthr-gnat.h: Remove.
21765         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
21766         * config/t-freebsd (LIB2ADDEH): Likewise.
21767         * config/t-linux (LIB2ADDEH): Likewise.
21768         * config/t-sol2 (LIB2ADDEH): Likewise.
21769         * config/ia64/t-vms (LIB2ADDEH): Likewise.
21770         * configure.ac (target_thread_file): Remove gnat handling.
21771         * configure: Regenerate.
21772         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
21773
21774 2011-05-23  Tristan Gingold  <gingold@adacore.com>
21775             Eric Botcazou  <ebotcazou@adacore.com>
21776
21777         * gcov.c (create_file_names): If no object directory is specified,
21778         keep the directory of the file.
21779
21780 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21781
21782         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
21783         * configure: Regenerate.
21784
21785 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
21786
21787         PR middle-end/48973
21788         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
21789         failed and the comparison has a single bit signed type, use
21790         constm1_rtx instead of const1_rtx for true value.
21791         (do_store_flag): If ops->type is single bit signed type, disable
21792         signel bit test optimization and pass -1 instead of 1 as last
21793         parameter to emit_store_flag_force.
21794
21795 2011-05-23  Tom de Vries  <tom@codesourcery.com>
21796
21797         PR target/45098
21798         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
21799         function.
21800         (infer_loop_bounds_from_undefined): Use new function.
21801
21802 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
21803
21804         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
21805         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
21806         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
21807         and -O0 otherwise.
21808         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
21809
21810 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
21811
21812         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
21813         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
21814         returns true.
21815
21816 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
21817
21818         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
21819
21820 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
21821
21822         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
21823         UNSPEC_MOVE_PIC pattern.
21824
21825 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
21826
21827         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
21828         (sparc-*-rtems*): Likewise.
21829         (sparc64-*-elf*): Likewise.
21830         (sparc64-*-rtems*): Likewise.
21831         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
21832         * config/sparc/t-crtin: New file.
21833         * config/sparc/t-sol2 (crti.o): Delete rule.
21834         (crtn.o): Likewise.
21835         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
21836         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
21837         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
21838         (ENDFILE_SPEC): Add crtn.o.
21839
21840 2011-05-22  Tom de Vries  <tom@codesourcery.com>
21841
21842         PR middle-end/48689
21843         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
21844         CODE_CONTAINS_STRUCT (TS_COMMON).
21845
21846 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
21847
21848         PR middle-end/49029
21849         * expmed.c (extract_fixed_bit_field): Test whether target can be used
21850         only after deciding which mode to use.
21851
21852 2011-05-22  Tom de Vries  <tom@codesourcery.com>
21853
21854         PR target/45098
21855         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
21856         for call to get_shiftadd_cost.
21857
21858 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
21859
21860         PR target/49104
21861         * config/i386/cpuid.h (bit_MMXEXT): New define.
21862
21863 2011-05-22  Nick Clifton  <nickc@redhat.com>
21864
21865         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
21866         initialisation of non-existant args[2] element.  Use args[] array
21867         not arg[] array to pass arguments to build_function_type_list.
21868
21869 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
21870
21871         PR tree-optimization/49087
21872         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
21873
21874 2011-05-21  Jason Merrill  <jason@redhat.com>
21875
21876         PR c++/49092
21877         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
21878         static storage duration.
21879
21880 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
21881
21882         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
21883         frame pointer.
21884
21885 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
21886
21887         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
21888         false if there are call-saved registers here...
21889         (sparc_can_use_return_insn_p): ...but here instead.
21890         (save_or_restore_regs): Fix thinko.
21891         (sparc_expand_prologue): Use current_function_is_leaf.
21892         (sparc_frame_pointer_required): Likewise.
21893
21894 2011-05-21  Nick Clifton  <nickc@redhat.com>
21895
21896         PR target/49098
21897         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
21898
21899 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
21900
21901         * gengtype.c (walk_type): Implemented "atomic" GTY option.
21902         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
21903
21904 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
21905
21906         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
21907         * optc-gen.awk: Move common code to opt-read.awk.
21908         * opth-gen.awk: Likewise.
21909         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
21910
21911 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
21912
21913         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
21914
21915 2011-05-20  Tom de Vries  <tom@codesourcery.com>
21916
21917         PR target/45098
21918         * tree-ssa-loop-ivopts.c: Include expmed.h.
21919         (get_shiftadd_cost): New function.
21920         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
21921
21922 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
21923
21924         PR bootstrap/49086
21925         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
21926         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
21927
21928 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
21929
21930         * Makefile.in: Update comment referring to $(OBJS-common).
21931
21932 2011-05-20  Ian Lance Taylor  <iant@google.com>
21933
21934         * godump.c (go_output_typedef): Put enum constants in the macro
21935         hash table to avoid duplicate Go const definitions.
21936
21937 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
21938
21939         * Makefile.in (LIBDEPS): Add libcommon.a.
21940         (LIBS): Likewise.
21941         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
21942         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
21943         pretty-print.o and version.o.
21944         (OBJS-libcommon): New.
21945         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
21946         (BACKEND): Add libcommon.a.
21947         (MOSTLYCLEANFILES): Likewise.
21948         (libcommon.a): New.
21949         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
21950         (cpp$(exeext)): Likewise.
21951         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
21952         pretty-print.o and input.o.
21953         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
21954         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
21955         (errors.o): Remove.
21956         (mips-tfile): Don't explicitly use version.o.
21957         (mips-tdump): Likewise.
21958         (gcov.o): Depend on $(DIAGNOSTIC_H).
21959         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
21960         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
21961         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
21962         * gcov-dump.c: Include intl.h and diagnostic.h.
21963         (main): Initialize diagnostics.
21964         * gcov.c: Include diagnostic.h.
21965         (fnotice): Remove.
21966         (main): Initialize diagnostics.
21967         * lto-wrapper.c: Include diagnostic.h.
21968         (main): Initialize diagnostics.
21969
21970 2011-05-20  Michael Matz  <matz@suse.de>
21971
21972         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
21973
21974 2011-05-20  Michael Matz  <matz@suse.de>
21975             Richard Guenther  <rguenther@suse.de>
21976
21977         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
21978         use lto_streamer_cache_append directly instead of returning a VEC.
21979         (preload_common_node): Remove.
21980         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
21981         track seen nodes.
21982         (lto_streamer_cache_create): Call lto_preload_common_nodes.
21983
21984 2011-05-20  Richard Guenther  <rguenther@suse.de>
21985
21986         PR tree-optimization/49079
21987         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
21988         MEM_REFs correctly for the trailing array access detection.
21989         Special case constants the same way as decls for overall size
21990         constraining.
21991
21992 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
21993
21994         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
21995         argument expansion.
21996
21997 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
21998
21999         PR tree-optimization/49073
22000         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
22001         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
22002         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
22003
22004 2011-05-20  Richard Guenther  <rguenther@suse.de>
22005
22006         PR middle-end/48849
22007         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
22008         of pointer types the same way the middle-end does.
22009
22010 2011-05-20  Richard Guenther  <rguenther@suse.de>
22011
22012         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
22013         or pointer-to chains.  Delay all fixup to uniquify_nodes.
22014
22015 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
22016
22017         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
22018         (fma4_fmaddsub): Likewise
22019
22020 2011-05-19  Jan Hubicka  <jh@suse.cz>
22021
22022         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
22023         (GIMPLE_TYPE_PAIR_SIZE): New macro.
22024         (type_pair_cache): New static var.
22025         (lookup_type_pair): Use fixed sized custom hash; make inline.
22026         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
22027         calls of lookup_type_pair.
22028         (print_gimple_types_stats): Remove cache stats.
22029         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
22030         and gtc_ob.
22031
22032 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
22033
22034         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
22035         when TARGET_RDRND is active.
22036         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
22037         Generate dummy SImode target register when target is NULL.
22038
22039 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
22040
22041         * config/arm/arm-fpus.def: New.
22042         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
22043         arm-fpus.def.
22044         * config/arm/arm-tables.opt: Regenerate.
22045         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
22046         (arm_option_override): Don't decode FPU name to string here.
22047         * config/arm/arm.opt (mfpu=): Use Enum.
22048         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
22049         Update dependencies.
22050
22051 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
22052
22053         * collect2.c: Include diagnostic.h.
22054         (fatal_perror, fatal, error, fancy_abort): Remove.
22055         (main): Set progname.  Call xmalloc_set_program_name and
22056         diagnostic_initialize.
22057         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
22058         scan_libraries, resolve_lib_name): Call fatal_error instead of
22059         fatal and fatal_perror.
22060         * collect2.h (error, fatal, fatal_perror): Don't declare.
22061         * tlink.c: Include diagnostic-core.h.
22062         (recompile_files): Call fatal_error instead of fatal_perror.
22063         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
22064         pretty-print.o and input.o.
22065         (collect2.o, tlink.o): Update dependencies.
22066
22067 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22068
22069         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
22070
22071 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22072
22073         PR target/40483
22074         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
22075         COMDAT group syntax, both SPARC and x86 variants.
22076         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
22077         * configure: Regenerate.
22078         * config/sol2.h (TARGET_SOLARIS): Define.
22079         (PUSHSECTION_FORMAT): Remove.
22080         (SECTION_NAME_FORMAT): Define.
22081         * config/sol2.c: Include hashtab.h.
22082         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
22083         expansion, using SECTION_NAME_FORMAT.
22084         (solaris_comdat_htab): New variable.
22085         (struct comdat_entry): Define.
22086         (comdat_hash): New function.
22087         (comdat_eq): New function.
22088         (solaris_elf_asm_comdat_section): New function.
22089         (solaris_define_comdat_signature): New function.
22090         (solaris_code_end): New function.
22091         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
22092         (solaris_code_end): Declare.
22093         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
22094         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
22095         solaris_code_end.
22096         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
22097         Remove ATTRIBUTE_UNUSED.
22098         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
22099         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
22100         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
22101         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
22102         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
22103         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
22104         (PUSHSECTION_FORMAT): Remove.
22105         (SECTION_NAME_FORMAT): Redefine.
22106
22107 2011-05-19  Kai Tietz  <ktietz@redhat.com>
22108
22109         * tree-cfg.c (verify_gimple_assign_binary): Barf on
22110         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
22111         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
22112
22113 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
22114             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22115
22116         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
22117
22118 2011-05-19  Richard Guenther  <rguenther@suse.de>
22119
22120         PR middle-end/48985
22121         * tree-object-size.c (addr_object_size): If the pointed-to
22122         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
22123
22124 2011-05-19  Richard Guenther  <rguenther@suse.de>
22125
22126         * gimple.c (gimple_types_compatible_p_1): Compare names of
22127         the types themselves.
22128         (iterative_hash_gimple_type): And hash them that way.
22129         (gimple_register_type_1): If we register a main variant properly
22130         initialize the leader to ourselves.
22131
22132 2011-05-19  Tom de Vries  <tom@codesourcery.com>
22133
22134         PR target/45098
22135         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
22136         get_loop_invariant_expr_id.
22137         (get_loop_invariant_expr_id): Use get_expr_id.
22138         (parm_decl_cost): New function.
22139         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
22140         Improve bound cost estimation.  Use different inv_expr_id for elim and
22141         express cases.
22142
22143 2011-05-19  Tom de Vries  <tom@codesourcery.com>
22144
22145         PR target/45098
22146         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
22147         cost_base.cost == 0.
22148
22149 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
22150
22151         PR target/49002
22152         * config/i386/sse.md
22153         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
22154         load cast.
22155
22156 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
22157
22158         PR tree-optimization/49039
22159         * tree-vrp.c (extract_range_from_binary_expr): For
22160         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
22161         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
22162
22163 2011-05-18  Tom de Vries  <tom@codesourcery.com>
22164
22165         PR target/45098
22166         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
22167
22168 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
22169
22170         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
22171         (*tls_global_dynamic_64): Ditto.
22172         (*tls_local_dynamic_base_32_gnu): Ditto.
22173         (*tls_local_dynamic_base_64): Ditto.
22174         (tls_initial_exec_64_sun): Ditto.
22175
22176 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
22177
22178         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
22179         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
22180         bf592-none.
22181         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
22182         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
22183         * config/bfin/bfin.c (bfin_cpus): Add bf592.
22184         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
22185         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
22186         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
22187         * config/bfin/elf.h (LIB_SPEC): Add bf592.
22188
22189 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
22190
22191         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
22192         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
22193         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
22194         target_thread_pointer, arm_structure_size_boundary, struct
22195         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
22196         struct abi_name, arm_all_abis): Remove.
22197         (arm_option_override) Don't process most enumerated option values here.
22198         Don't process target_fpe_name here.  Work with integer not string for
22199         structure size boundary; use separate diagnostics for each case.
22200         * config/arm/arm.h (enum float_abi_type, enum
22201         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
22202         to arm-opts.h.
22203         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
22204         arm_structure_size_boundary): Remove.
22205         * config/arm/arm.opt (mabi=): Use Enum and Init.
22206         (arm_abi_type): New Enum and EnumValue entries.
22207         (mfloat-abi=): Use Enum and Init.
22208         (float_abi_type): New Enum and EnumValue entries.
22209         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
22210         (mfp16-format=): Use Enum and Init.
22211         (arm_fp16_format_type): New Enum and EnumValue entries.
22212         (mstructure-size-boundary=): Use UInteger and Init.
22213         (mtp=): Use Enum and Init.
22214         (arm_tp_type): New Enum and EnumValue entries.
22215
22216 2011-05-18  Richard Guenther  <rguenther@suse.de>
22217
22218         PR tree-optimization/49018
22219         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
22220         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
22221         gimple_has_side_effects.
22222
22223 2011-05-18  Richard Guenther  <rguenther@suse.de>
22224
22225         * gimple.c (gimple_register_type_1): New function, split out from ...
22226         (gimple_register_type): ... here.  Avoid infinite recursion.
22227
22228 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
22229
22230         PR tree-optimization/41881
22231         * tree-vectorizer.h (struct _loop_vec_info): Add new field
22232         reduction_chains along with a macro for its access.
22233         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
22234         (destroy_loop_vec_info): Free reduction chains.
22235         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
22236         (vect_is_slp_reduction): New function.
22237         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
22238         (vect_create_epilog_for_reduction): Support SLP reduction chains.
22239         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
22240         definition types for reduction chains.
22241         (vect_supported_load_permutation_p): Don't allow permutations for
22242         reduction chains.
22243         (vect_analyze_slp_instance): Support reduction chains.
22244         (vect_analyze_slp): Try to build SLP instance from reduction chains.
22245         (vect_get_constant_vectors):  Handle reduction chains.
22246         (vect_schedule_slp_instance): Mark the first statement of the
22247         reduction chain as reduction.
22248
22249 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
22250
22251         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
22252         names for group elements access.
22253         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
22254         reduction chains as well.  Remove data reference and interleaving
22255         related words from the fields names.
22256         * tree-vect-loop.c (vect_transform_loop): Use new names for group
22257         elements access.
22258         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
22259         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
22260         vect_update_interleaving_chain, vect_same_range_drs,
22261         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
22262         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
22263         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
22264         vect_analyze_group_access, vect_analyze_data_ref_access,
22265         vect_create_data_ref_ptr, vect_transform_strided_load,
22266         vect_record_strided_load_vectors): Likewise.
22267         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
22268         vect_model_load_cost, vectorizable_store, vectorizable_load,
22269         vect_remove_stores, new_stmt_vec_info): Likewise.
22270         * tree-vect-slp.c (vect_build_slp_tree,
22271         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
22272
22273 2011-05-18  Richard Guenther  <rguenther@suse.de>
22274
22275         PR middle-end/48989
22276         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
22277         operand verification.
22278         (verify_gimple_assign_binary): Likewise.
22279         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
22280         to non-1-precision BOOLEAN_TYPEs.
22281
22282 2011-05-18  Tom de Vries  <tom@codesourcery.com>
22283
22284         PR target/45098
22285         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
22286
22287 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
22288
22289         PR tree-optimization/49000
22290         * tree-ssa.c (execute_update_addresses_taken): Call
22291         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
22292         be rewritten and decl has been marked for renaming, reset
22293         the debug stmt.
22294
22295 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
22296
22297         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
22298         enum_opts_set when testing if attributes have set -mfpmath=.
22299
22300 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
22301
22302         * config/mips/mips.c (mips_handle_option): Remove unused variable.
22303
22304 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
22305
22306         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
22307         info->entry with 0
22308         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
22309         id.transform_lang_insert_block with NULL.
22310
22311 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
22312
22313         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
22314         (output_fp_compare): Change args 3 and 4 to bool.
22315         (ix86_expand_call): Change arg 6 to bool.
22316         (ix86_attr_length_immediate_default): Change arg 2 to bool.
22317         (ix86_attr_length_vex_default): Change arg 3 to bool.
22318         * config/i386/i386.md: Update all uses.
22319         * config/i386/i386.c: Ditto.
22320         (ix86_flags_dependent): Change return type to bool.
22321
22322 2011-05-17  Richard Guenther  <rguenther@suse.de>
22323
22324         * gimple.c (type_hash_pair_compare): Fix comparison.
22325
22326 2011-05-17  Richard Guenther  <rguenther@suse.de>
22327
22328         * gimple.c (iterative_hash_gimple_type): Simplify singleton
22329         case some more, fix final hash value of the non-singleton case.
22330
22331 2011-05-17  Richard Guenther  <rguenther@suse.de>
22332
22333         PR bootstrap/49013
22334         Revert
22335         2011-05-16  Richard Guenther  <rguenther@suse.de>
22336
22337         * gimple.c (gimple_types_compatible_p_1): Use names of the
22338         type itself, not its main variant.
22339         (iterative_hash_gimple_type): Likewise.
22340
22341 2011-05-17  Richard Guenther  <rguenther@suse.de>
22342
22343         * gimple.c (gimple_register_canonical_type): Use the main-variant
22344         leader for computing the canonical type.
22345
22346 2011-05-17  Nick Clifton  <nickc@redhat.com>
22347
22348         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
22349         moves.
22350
22351         * config/rx/rx.md: Add peephole to remove redundant extensions
22352         after loads.
22353         (bitset_in_memory): Use rx_restricted_mem_operand.
22354         (bitinvert_in_memory): Likewise.
22355         (bitclr_in_memory): Likewise.
22356
22357 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
22358             Nick Clifton  <nickc@redhat.com>
22359
22360         * config/rx/rx.md: Add peepholes to match a register move followed
22361         by a comparison of the moved register.  Replace these with an
22362         addition of zero that does both actions in one instruction.
22363
22364 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
22365
22366         PR target/48986
22367         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
22368         predicate to allow CONST_INT.
22369         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
22370
22371 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
22372
22373         * opts-common.c (opt_enum_arg_to_value): New.
22374         * opts.h (opt_enum_arg_to_value): Declare.
22375         * config/i386/i386.opt (fpmath): Remove.
22376         (mfpmath=): Use Enum, Init and Save.
22377         (fpmath_unit): New Enum and EnumValue entries.
22378         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
22379         name for function fpmath state.
22380         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
22381         * config/i386/i386.c: Include diagnostic.h.
22382         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
22383         (ix86_target_string): Take enum fpmath_unit value instead of string.
22384         (ix86_debug_options): Update call to ix86_target_string.
22385         (ix86_option_override_internal): Don't process fpmath strings here.
22386         (x86_function_specific_save, ix86_function_specific_restore):
22387         Don't handle fpmath state specially.
22388         (ix86_function_specific_print): Pass fpmath state to
22389         ix86_target_string instead of printing in this function.
22390         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
22391         Handle enum attributes.
22392         (IX86_ATTR_ENUM, ix86_opt_enum): New.
22393         (ix86_valid_target_attribute_tree): Update option_strings
22394         handling.  Handle fpmath as enum option.
22395         (ix86_can_inline_p): Update field names for function fpmath state.
22396         (ix86_expand_builtin): Update call to ix86_target_string.
22397         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
22398         (ix86_fpmath): Remove.
22399         * config/i386/t-i386 (i386.o): Update dependencies.
22400
22401 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
22402
22403         PR preprocessor/48677
22404         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
22405         from decoded_options[0], not from itself.
22406
22407 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
22408
22409         * config/i386/constraints.md (z): New constraint.
22410         * config/i386/i386.c (c): New mode attribute.
22411         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
22412         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
22413         constraint for operand 0.
22414         (*call_vzeroupper): Ditto.
22415         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
22416         (*call_rex64_ms_sysv_vzeroupper): Ditto.
22417         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
22418         Use "lzm" constraint for operand 0.
22419         (*call_pop_vzeroupper): Ditto.
22420         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
22421         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
22422         constraint for operand 0.
22423         (*sibcall_vzeroupper): Ditto.
22424         (*sibcall_rex64_ms_sysv): Ditto.
22425         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
22426         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
22427         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
22428         (*sibcall_pop_vzeroupper): Ditto.
22429         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
22430         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
22431         mode iterator.  Use "<c>zm" constraint for operand 1.
22432         (*call_value_vzeroupper): Ditto.
22433         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
22434         for operand 1.
22435         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
22436         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
22437         *call_value_pop_1.  Use "lzm" constraint for operand 1.
22438         (*call_value_pop_vzeroupper): Ditto.
22439         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
22440         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
22441         mode iterator.  Use "Uz" constraint for operand 1.
22442         (*sibcall_value_vzeroupper): Ditto.
22443         (*sibcall_value_rex64_ms_sysv): Ditto.
22444         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
22445         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
22446         constraint for operand 1.
22447         (*sibcall_value_pop_vzeroupper): Ditto.
22448         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
22449         and "z" constraint for operand 2.
22450         (*tls_global_dynamic_32_gnu): Ditto.
22451         (*tls_local_dynamic_base_32_gnu): Ditto.
22452         (*tls_local_dynamic_base_64): Ditto.
22453         (*tls_local_dynamic_32_once): Ditto.
22454         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
22455         Update all callers.
22456         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
22457
22458 2011-05-16  Richard Guenther  <rguenther@suse.de>
22459
22460         * gimple.c (gimple_types_compatible_p_1): Use names of the
22461         type itself, not its main variant.
22462         (iterative_hash_gimple_type): Likewise.
22463
22464 2011-05-16  Richard Guenther  <rguenther@suse.de>
22465
22466         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
22467         always visit pointer target and function result and argument types.
22468
22469 2011-05-16  Jason Merrill  <jason@redhat.com>
22470
22471         PR c++/48999
22472         * tree-inline.c (copy_statement_list): Put back recursion.
22473
22474 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
22475
22476         PR target/27663
22477         PR target/41076
22478         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
22479         * config/avr/avr.md ("*ior<mode>qi.byte0",
22480         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
22481
22482 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
22483
22484         PR target/45099
22485         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
22486         register is needed for a function argument.
22487
22488 2011-05-16  Richard Guenther  <rguenther@suse.de>
22489
22490         * gimple.c (struct type_hash_pair): New type.
22491         (type_hash_pair_compare): New function.
22492         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
22493
22494 2011-05-16  Revital Eres  <revital.eres@linaro.org>
22495
22496         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
22497
22498 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
22499
22500         * config/i386/i386.md (floating point move splitters): Fix
22501         usage of standard_80387_constant_p.
22502         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
22503
22504 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
22505
22506         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
22507
22508 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
22509
22510         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
22511         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
22512         (tree_ssa_lim_finalize): Likewise.
22513
22514 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
22515
22516         * config/i386/constraint.md (Yd, Yx): New register constraints.
22517         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
22518         Yd conditional register constraint.
22519         (*movtf_internal): Use standard_sse_constant_opcode.
22520         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
22521         Yx conditional register constraint.
22522         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
22523         Yd conditional register constraint.  Use standard_sse_constant_p to
22524         check for valid SSE constants and call standard_sse_constant_opcode to
22525         output SSE insn.
22526         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
22527         constants and call standard_sse_constant_opcode to output SSE insn.
22528         * config/i386/i386.c (ix86_option_ovverride_internal): Set
22529         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
22530         optimize_size is set.
22531         (standard_sse_constant_opcode): Output conditional AVX insn templates.
22532
22533 2011-05-14  Tobias Burnus  <burnus@net-b.de>
22534
22535         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
22536
22537 2011-05-13  Martin Jambor  <mjambor@suse.cz>
22538
22539         * ipa-prop.c (ipa_cst_from_jfunc): New function.
22540         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
22541         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
22542         (evaluate_conditions_for_ipcp_clone): Removed.
22543         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
22544         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
22545         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
22546
22547 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
22548
22549         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
22550         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
22551         lieu of MAY_HAVE_DEBUG_STMTS.
22552         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
22553         debug statements if !MAY_HAVE_DEBUG_STMTS.
22554
22555 2011-05-13  Martin Thuresson  <martint@google.com>
22556
22557         PR gcov-profile/47793
22558         * libgcov.c (gcov_exit): Support relative profile paths.
22559         * doc/invoke.texi (-fprofile-dir): Update for above change.
22560
22561 2011-05-13  Richard Guenther  <rguenther@suse.de>
22562
22563         * gimple.c (gimple_canonical_types_compatible_p): Do not use
22564         type-pair caching, do not compare hashes.
22565
22566 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
22567
22568         PR middle-end/48965
22569         * tree-cfg.c (edge_to_cases_cleanup): Return true.
22570         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
22571
22572 2011-05-13  Kai Tietz  <ktietz@redhat.com>
22573
22574         * gimplify.c (gimplify_expr): Make sure operand is boolified.
22575         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
22576         compatible type for TRUTH_NOT_EXPR.
22577
22578 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
22579
22580         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
22581         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
22582         can_create_pseudo_p ().
22583
22584 2011-05-13  Richard Guenther  <rguenther@suse.de>
22585
22586         PR lto/48978
22587         * gimple.c (iterative_hash_gimple_type): Revert change in
22588         pointer target and function result and argument hashing.
22589
22590 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
22591
22592         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
22593         (*movxf_internal_nointeger): Ditto.
22594         (*movdf_internal_rex64): Ditto.
22595         (*movdf_internal): Ditto.
22596         (*movdf_internal_nointeger): Ditto.
22597         (*movsf_internal): Ditto.
22598         (sincos splitters): Use can_create_pseudo ().
22599
22600 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
22601
22602         * config/i386/i386-opts.h: New.
22603         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
22604         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
22605         ix86_section_threshold): Remove.
22606         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
22607         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
22608         OPT_mbranch_cost_.
22609         (ix86_option_override_internal): Don't decode strings for options
22610         other than -march=, -mtune= and -mfpmath=.  Don't allow for
22611         __attribute__ uses in remaining diagnostics for options with
22612         string arguments.  Don't check for integer arguments being negative.
22613         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
22614         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
22615         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
22616         ix86_branch_cost, ix86_section_threshold): Remove.
22617         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
22618         HeaderInclude.
22619         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
22620         but not Var.
22621         (masm=): Use Enum and Init.
22622         (asm_dialect): New Enum and EnumValue entries.
22623         (mbranch-cost=): Use UInteger.
22624         (mlarge-data-threshold=): Use UInteger and Init.
22625         (mcmodel=): Use Enum and Init.
22626         (cmodel): New Enum and EnumValue entries.
22627         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
22628         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
22629         mregparm=): Use UInteger.
22630         (mstringop-strategy=): Use Enum and Init.
22631         (stringop_alg): New Enum and EnumValue entries.
22632         (mtls-dialect=): Use Enum and Init.
22633         (tls_dialect): New Enum and EnumValue entries.
22634         (mabi=): Use Enum and Init.
22635         (calling_abi): New Enum and EnumValue entries.
22636         (mveclibabi=): Use Enum and Init.
22637         (ix86_veclibabi): New Enum and EnumValue entries.
22638
22639 2011-05-13  Nick Clifton  <nickc@redhat.com>
22640
22641         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
22642         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
22643
22644 2011-05-13  Kai Tietz  <ktietz@redhat.com>
22645
22646         PR middle-end/48984
22647         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
22648         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
22649         (gimple_boolify): Check for cast for boolean_type_node instead for
22650         BOOLEAN_TYPE.
22651
22652 2011-05-13  Richard Guenther  <rguenther@suse.de>
22653
22654         PR tree-optimization/48172
22655         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
22656         multiplying by number of iterations for equal step.
22657         (vect_create_cond_for_alias_checks): Likewise.
22658
22659 2011-05-13  Andreas Schwab  <schwab@redhat.com>
22660
22661         * configure.ac: Use AS_HELP_STRING throughout.
22662         * configure: Regenerate.
22663
22664 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
22665
22666         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
22667         (ix86_emit_restore_regs_using_mov): Likewise.
22668         (ix86_emit_restore_sse_regs_using_mov): Likewise.
22669
22670 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
22671
22672         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
22673         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
22674         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
22675         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
22676         RTX_OK_FOR_OLO10_P): ...here.
22677         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
22678         SYMBOLIC_CONST.
22679
22680 2011-05-12  Kai Tietz  <ktietz@redhat.com>
22681
22682         * gimplify.c (gimple_boolify): Re-boolify expression
22683         arguments even if expression type is of kind BOOLEAN_TYPE.
22684         (gimplify_boolean_expr): Removed.
22685         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
22686         and XOR. Additional take care that we keep expression's type.
22687         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
22688         of TRUTH_AND|OR|XOR_EXPR.
22689
22690 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
22691
22692         PR tree-optimization/48975
22693         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
22694         on all bbs here and free and clear ifc_bbs at the end.
22695
22696 2011-05-12  Richard Guenther  <rguenther@suse.de>
22697
22698         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
22699         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
22700         until after simple checks.
22701         (gimple_types_compatible_p): Likewise.
22702         (iterative_hash_gimple_type): Always hash pointer targets
22703         and function return and argument types.
22704         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
22705         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
22706         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
22707         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
22708         completely in the simple compare section.
22709         (gimple_register_canonical_type): Query the cache again after
22710         registering.
22711
22712 2011-05-12  Richard Guenther  <rguenther@suse.de>
22713
22714         PR tree-optimization/48172
22715         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
22716         the number of iterations from the segment size calculation.
22717         (vect_create_cond_for_alias_checks): Adjust.
22718
22719 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
22720
22721         PR debug/48967
22722         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
22723         if validate_subreg fails.
22724
22725 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
22726
22727         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
22728         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
22729         early.
22730
22731 2011-05-12  DJ Delorie  <dj@redhat.com>
22732
22733         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
22734         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
22735         created builtin into rx_builtins array.
22736         (rx_builtin_decl): New function.
22737         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
22738
22739 2011-05-12  DJ Delorie  <dj@redhat.com>
22740             Nick Clifton  <nickc@redhat.com>
22741
22742         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
22743         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
22744         (rx_is_legitimate_address): Add pre-decrement and post-increment
22745         addressing in HImode and QImode.  Fix test for out of range
22746         REG+INT addressing.
22747         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
22748         (rx_align_for_label): Test label before extracting its usage count.
22749         (rx_adjust_insn_lengths): Fix selection of insn codes.
22750         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
22751
22752 2011-05-11  Jason Merrill  <jason@redhat.com>
22753
22754         * tree.c (type_hash_canon): Use struct tree_type_non_common.
22755
22756 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
22757
22758         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
22759         reindent the subsequent block.
22760
22761 2011-05-11  Satoru Takabayashi  <satorux@google.com>
22762             Paul Pluzhnikov  <ppluzhnikov@google.com>
22763
22764         * doc/install.texi (Configuration): Document --with-linker-hash-style.
22765         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
22766         * config.in: Add LINKER_HASH_STYLE.
22767         * configure.ac: Add --with-linker-hash-style.
22768         * configure: Regenerate.
22769
22770 2011-05-11  Richard Guenther  <rguenther@suse.de>
22771
22772         PR middle-end/48964
22773         * gimple.c (iterative_hash_canonical_type): Fix typo.
22774
22775 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
22776
22777         * config/i386/i386.c (legitimize_tls_address)
22778         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
22779         expanders directly for TARGET_GNU2_TLS.  Determine pic and
22780         __tls_get_addr symbol reference here.  Update call to
22781         gen_tls_global_dynamic_{32,64} for added arguments.
22782         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
22783         expanders directly for TARGET_GNU2_TLS.  Determine
22784         __tls_get_addr symbol reference here.  Update call to
22785         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
22786         unique UNSPEC REG_EQUIV to libcall block.
22787         (ix86_tls_get_addr): Declare static.
22788         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
22789         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
22790         Do not determine pic and __tls_get_addr symbol reference here. Do not
22791         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
22792         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
22793         (tls_global_dynamic_64): Add operand 2.  Do not determine
22794         __tls_get_addr symbol reference here.  Do not call
22795         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
22796         (tls_local_dynamic_base64): Ditto for operand 1.
22797
22798 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
22799
22800         * function.c (expand_function_start): Initialize stack_check_probe_note
22801         only if the generic stack checking mechanism is used.
22802
22803 2011-05-11  Richard Guenther  <rguenther@suse.de>
22804
22805         PR tree-optimization/15256
22806         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
22807         (A & B) | C, combine (A op CST1) op CST2.
22808         (tree_ssa_forward_propagate_single_use_vars): Only bother to
22809         visit assigns that have uses.
22810
22811 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
22812
22813         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
22814         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
22815         (unpack_ts_type_common_value_fields): ...this.  Update comment.
22816         (unpack_value_fields): Adjust for renaming.
22817         (lto_input_ts_type_tree_pointers): Split into...
22818         (lto_input_ts_type_common_tree_pointer): ...this and...
22819         (lto_input_ts_type_non_common_tree_pointers): ...this.
22820         (lto_input_tree_pointers): Adjust for above split.
22821         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
22822         (pack_ts_type_common_value_fields): ...this.  Update comment.
22823         (lto_output_ts_type_tree_pointers): Split into...
22824         (lto_output_ts_type_common_tree_pointers): ...this and...
22825         (lto_output_ts_type_non_common_tree_pointers): ...this.
22826         (lto_output_tree_pointers): Adjust for above split.
22827         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
22828         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
22829         * stor-layout.c (vector_type_mode): Adjust location of mode field.
22830         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
22831         Define.
22832         (struct tree_type): Split into...
22833         (struct tree_type_common: ...this and...
22834         (struct tree_type_with_lang_specific): ...this and...
22835         (struct tree_type_non_common): ...this.  Adjust accessor macros
22836         accordingly.
22837         (TYPE_VALUES_RAW): Define.
22838         (union tree_node): Update for above changes.
22839         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
22840         TS_TYPE_NON_COMMON.
22841         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
22842         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
22843         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
22844         * treestructu.def (TS_TYPE): Remove.
22845         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
22846         Define.
22847
22848 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
22849
22850         PR debug/48159
22851         * tree-ssa.c (reset_debug_uses): New function.
22852         * tree-flow.h (reset_debug_uses): New prototype.
22853         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
22854         * tree-loop-distribution.c (generate_loops_for_partition): Call
22855         reset_debug_uses on the stmts that will be removed.  Keep around
22856         all debug stmts, don't count them as bits in partition bitmap.
22857         (generate_builtin): Don't count debug stmts or labels as bits in
22858         partition bitmap.
22859
22860 2011-05-11  Richard Guenther  <rguenther@suse.de>
22861
22862         * gimple.c (gimple_type_hash_1): Merge with ...
22863         (gimple_type_hash): ... this.
22864         (gtc_visit): Remove mode parameter and simplify accordingly.
22865         (gimple_types_compatible_p_1): Likewise.
22866         (gimple_types_compatible_p): Likewise.
22867         (iterative_hash_gimple_type): Likewise.
22868         (visit): Likewise.
22869         (gimple_type_eq): Adjust.
22870
22871 2011-05-11  Revital Eres  <revital.eres@linaro.org>
22872
22873         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
22874         enters the branch create an anti edge in the opposite direction
22875         to prevent the creation of reg-moves.
22876         * modulo-sched.c: Adjust comment to reflect the fact we are
22877         scheduling closing branch.
22878         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
22879         (stage_count): New field in struct partial_schedule.
22880         (calculate_stage_count): New function.
22881         (normalize_sched_times): Rename to reset_sched_times and handle
22882         incrementing the sched time of the nodes by a constant value
22883         passed as parameter.
22884         (duplicate_insns_of_cycles): Skip closing branch.
22885         (sms_schedule_by_order): Schedule closing branch.
22886         (ps_insn_find_column): Handle closing branch.
22887         (sms_schedule): Call reset_sched_times and adjust the code to
22888         support scheduling of the closing branch.
22889         (ps_insert_empty_row): Update calls to normalize_sched_times
22890         and rotate_partial_schedule functions.
22891
22892 2011-05-11  Richard Guenther  <rguenther@suse.de>
22893
22894         PR middle-end/48953
22895         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
22896
22897 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
22898
22899         * opts.c (finish_options): Move warning settings from process_options.
22900         * toplev.c (process_options): Move warning settings to finish_options.
22901
22902 2011-05-11  Richard Guenther  <rguenther@suse.de>
22903
22904         PR tree-optimization/18041
22905         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
22906         (simplify_bitwise_binary): ... this.  Handle operand conversions
22907         by applying them to the result instead.
22908         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
22909
22910 2011-05-11  Richard Guenther  <rguenther@suse.de>
22911
22912         * gimple.c (gimple_canonical_types_compatible_p): Split out
22913         from gimple_types_compatible_p and friends.  Do not recurse
22914         to pointed-to types.
22915         (gimple_canonical_type_eq): Use it.
22916         (iterative_hash_canonical_type): Split out from
22917         iterative_hash_gimple_type and friends.  Do not recurse
22918         to pointed-to types.
22919         (gimple_canonical_type_hash): Use it, allocate the hash here.
22920
22921 2011-05-11  Revital Eres  <revital.eres@linaro.org>
22922
22923         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
22924         recognizing doloop.
22925
22926 2011-05-11  Revital Eres  <revital.eres@linaro.org>
22927
22928         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
22929         instead of PREV_INSN.
22930
22931 2011-05-11  Revital Eres  <revital.eres@linaro.org>
22932
22933         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
22934         * loop-doloop.c (doloop_condition_get): Likewise.
22935         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
22936         (doloop_end): New.
22937         * config/arm/arm.md (*addsi3_compare0): Remove "*".
22938
22939 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
22940
22941         * tree.def (CASE_LABEL_EXPR): Add an operand.
22942         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
22943
22944 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
22945
22946         * c-decl.c (c_override_global_bindings_to_false): Remove.
22947         (global_bindings_p): Don't check
22948         c_override_global_bindings_to_false.
22949         * c-tree.h (c_override_global_bindings_to_false): Remove.
22950         * c-typeck.c (composite_type): Don't set
22951         c_override_global_bindings_to_false.
22952
22953 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
22954
22955         PR target/48857, 48495
22956         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
22957         (VSX_MODE): Ditto.
22958         (VSX_MOVE_MODE): Ditto.
22959         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
22960         VSX vector types.  Add V2DImode.
22961         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
22962         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
22963         (MODES_TIEABLE_P): Ditto.
22964
22965         * config/rs6000/rs6000.c (rs6000_emit_move): Use
22966         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
22967         VSX_VECTOR_MODE.
22968         (init_cumulative_args): Ditto.
22969         (rs6000_function_arg_boundary): Ditto.
22970         (rs6000_function_arg_advance_1): Ditto.
22971         (rs6000_function_arg): Ditto.
22972         (rs6000_function_ok_for_sibcall): Ditto.
22973         (emit_frame_save): Ditto.
22974         (rs6000_function_value): Ditto.
22975         (rs6000_libcall_value): Ditto.
22976
22977 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
22978
22979         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
22980         i386/darwin-lib.h to $libgcc_tm_file.
22981         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
22982
22983 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
22984
22985         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
22986
22987 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
22988
22989         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
22990         * config/rs6000/rs6000-tables.opt: New file (generated).
22991         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
22992         rs6000/rs6000-tables.opt to extra_options.
22993         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
22994         * config/rs6000/rs6000.c (rs6000_select): Remove.
22995         (processor_target_table): Move contents to rs6000-cpus.def.
22996         (darwin_rs6000_override_options): Check
22997         global_options_set.x_rs6000_cpu_index instead of
22998         rs6000_select[1].string.
22999         (rs6000_option_override_internal): Likewise.
23000         (rs6000_handle_option): Don't assert that global structures are in
23001         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
23002         (rs6000_default_cpu): New variable.
23003         (rs6000_file_start): Set it instead of local default_cpu.  Check
23004         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
23005         global_options_set.x_rs6000_tune_index instead of rs6000_select.
23006         (rs6000_darwin_file_start): Check rs6000_default_cpu and
23007         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
23008         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
23009         rs6000_select): Remove.
23010         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
23011         Remove.
23012         (mcpu=, mtune=): Use Var, Init, Enum and Save.
23013         * config/rs6000/t-rs6000
23014         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
23015         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
23016         global_options_set.x_rs6000_cpu_index instead of
23017         rs6000_select[1].string.
23018         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
23019         global_options_set.x_rs6000_cpu_index instead of
23020         rs6000_select[1].string.
23021
23022 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
23023
23024         * config.gcc (libgcc_tm_file): Define instead of including files
23025         from ../../libgcc/config/ in tm_file.
23026         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
23027         * configure: Regenerate.
23028         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
23029         libgcc_tm.h, cs-libgcc_tm.h): New.
23030         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
23031         (clean): Remove libgcc_tm.h.
23032         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
23033         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
23034         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
23035
23036 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
23037
23038         PR target/48896
23039         * config/avr/avr.c (avr_ret_register): Return unsigned int
23040         instead of int.
23041         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
23042         it to avr_libcall_value.
23043         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
23044         expand_expr.
23045         (avr_expand_binop_builtin): Ditto.
23046         (avr_expand_unop_builtin): Ditto.
23047
23048 2011-05-10  DJ Delorie  <dj@redhat.com>
23049
23050         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
23051         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
23052         * config/rx/rx.c (rx_align_for_label): Add label and
23053         uses_threshold parameters.  Do not align when the label is not
23054         used enough.
23055         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
23056
23057 2011-05-10  Richard Guenther  <rguenther@suse.de>
23058
23059         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
23060         a series of conversions and apply foldings similar to what
23061         fold-const does.
23062         (tree_ssa_forward_propagate_single_use_vars): Call it.
23063
23064 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
23065
23066         PR tree-optimization/48611
23067         PR tree-optimization/48794
23068         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
23069         referenced from RESX or EH_DISPATCH arguments.
23070
23071         PR debug/48928
23072         * dfp.c (decimal_to_decnumber): Handle conversion from
23073         dconst{1,2,m1,half}.
23074
23075 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
23076
23077         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
23078         for !flag_prefer_avx128.
23079         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
23080
23081 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
23082
23083         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
23084         (fold_ternary_loc): Use expr_location_or.
23085
23086 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
23087
23088         PR debug/48853
23089         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
23090         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
23091         Pmode and mem_mode is not VOIDmode.
23092
23093 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
23094
23095         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
23096         TYPE_QUAL_RESTRICT): Convert to enum.
23097
23098 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
23099
23100         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
23101         (const_pow2_1_to_8_operand): Ditto.
23102         (const_pow2_1_to_128_operand): Ditto.
23103         (const_pow2_1_to_32768_operand): Ditto.
23104         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
23105         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
23106         in insn constraint to check integer value of operand 3.
23107         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
23108
23109         (PINSR_MODE): New mode iterator.
23110         (sse2p4_1): New mode attribute.
23111         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
23112         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
23113         iterator.  Use const_int_operand instead of
23114         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
23115         exact_log2 in insn constraint to check integer value of operand 3.
23116
23117 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
23118
23119         * config/i386/sse.md (blendbits): Remove mode attribute.
23120         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
23121         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
23122         Check integer value of operand 3 in insn constraint.
23123
23124 2011-05-09  Richard Guenther  <rguenther@suse.de>
23125
23126         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
23127         for diagnostics.
23128         (lto_symtab_merge): Likewise.  Do not register types here.
23129         (lto_symtab_merge_decls_2): Likewise.
23130         (lto_symtab_merge_decls_1): Likewise.
23131         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
23132         * gimple.c (enum gtc_mode): Declare.
23133         (gimple_types_compatible_p): Make static.
23134
23135 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23136
23137         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
23138         temporary register to match Pmode.
23139
23140 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
23141
23142         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
23143         and *vec_concatv4si_1_avx.
23144
23145 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
23146
23147         PR rtl-optimization/48927
23148         * ira-conflicts.c (commutative_constraint_p): Use
23149         recog_data.alternative_enabled_p to disable alternatives where
23150         "enabled" attribute is false.
23151         (get_dup_num): Ditto.
23152         * ira-lives.c (single_reg_class): Ditto.
23153         (ira_implicitly_set_insn_hard_regs): Ditto.
23154
23155 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
23156
23157         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
23158         (dataflow_set_preserve_mem_locs): Likewise.
23159
23160 2011-05-09  Philipp Thomas  <pth@suse.de>
23161
23162         * config/mep/mep.c (mep_validate_vliw): Syntax description
23163         should not be translated.
23164
23165 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
23166
23167         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
23168         * config/mips/mips-tables.opt: New file (generated).
23169         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
23170         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
23171         MIPS_ARCH_OPTION_NATIVE): Define.
23172         * config/mips/mips.c (mips_cpu_info_table): Move contents to
23173         mips-cpus.def.
23174         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
23175         mips_parse_cpu): Remove.
23176         (mips_cpu_info_from_opt, mips_default_arch): New.
23177         (mips_handle_option): Don't assert that global structures are in
23178         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
23179         (mips_option_override): Use new variables and functions to set
23180         state of these options.  Use strcmp to check for individual CPU names.
23181         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
23182         definition.
23183         * config/mips/mips.opt (march=): Use ToLower and Enum.
23184         (mips): Use ToLower, Enum and Var.
23185         (mtune=): Use ToLower and Enum.
23186         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
23187
23188 2011-05-08  Jan Hubicka  <jh@suse.cz>
23189
23190         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
23191         Arrange type pairs to be UID ordered.
23192         (gimple_lookup_type_leader): Make inline.
23193
23194 2011-05-09  Nick Clifton  <nickc@redhat.com>
23195
23196         PR target/48899
23197         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
23198         PROCESSOR_DEFAULT.
23199
23200         PR target/48897
23201         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
23202         variable 's'.
23203
23204 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
23205
23206         * combine.c (simplify_comparison): Abstract out parts into...
23207         (simplify_compare_const): ... new function.
23208         (try_combine): Generalize parallel arithmetic/compare combining
23209         to call simplify_compare_const() and CANONICALIZE_COMPARE().
23210
23211 2011-05-08  Jan Hubicka  <jh@suse.cz>
23212
23213         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
23214         (cgraph_create_virtual_clone): Call hooks once virtual clone
23215         is finished.
23216         * cgraph.h (cgraph_clone_node): Update prototype.
23217         * ipa-cp.c (ipcp_estimate_growth): Use
23218         estimate_ipcp_clone_size_and_time.
23219         * ipa-inline-transform.c (clone_inlined_nodes): Update.
23220         * lto-cgraph.c (input_node): Update.
23221         * ipa-inline.c (recursive_inlining): Update.
23222         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
23223         (evaluate_conditions_for_known_args): Break out from ...
23224         (evaluate_conditions_for_edge): ... here.
23225         (evaluate_conditions_for_ipcp_clone): New function.
23226         (inline_node_duplication_hook): Update clone summary based
23227         on parameter map.
23228         (estimate_callee_size_and_time): Rename to ...
23229         (estimate_node_size_and_time): take NODE instead of EDGE;
23230         take POSSIBLE_TRUTHS as argument.
23231         (estimate_callee_size_and_time): Update.
23232         (estimate_ipcp_clone_size_and_time): New function.
23233         (do_estimate_edge_time): Update.
23234
23235 2011-05-08  Richard Guenther  <rguenther@suse.de>
23236
23237         PR middle-end/48908
23238         PR middle-end/48905
23239         * expmed.c (expand_shift_1): Compute adjusted constant shift
23240         amount manually.
23241
23242 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
23243
23244         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
23245
23246 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
23247
23248         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
23249
23250 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
23251
23252         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
23253
23254 2011-05-07  Jan Hubicka  <jh@suse.cz>
23255
23256         * ipa-inline-transform.c (inline_call): Account when program size
23257         decreases.
23258         * ipa-inline.c (relative_time_benefit): New function.
23259         (edge_badness): Reorganize to be power 2 based; fix thinko when
23260         computing badness for negative growth; update comments to match
23261         reality; better dumps.
23262
23263 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
23264
23265         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
23266         type to bool and adjust comment.
23267         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
23268         (fold_mathfn_compare): Remove calls to global_bindings_p.
23269         (fold_inf_compare): Likewise.
23270         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
23271         * c-tree.h (global_bindings_p): Adjust prototype.
23272         * c-decl.c (global_bindings_p): Return bool and simplify.
23273
23274 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
23275
23276         PR tree-optimization/48837
23277         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
23278         when accumulator transformation is performed.
23279
23280 2011-05-06  Jan Hubicka  <jh@suse.cz>
23281
23282         * i386.h (ix86_tune_indices): Add
23283         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
23284         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
23285         * i386.c (initial_ix86_tune_features): Add
23286         X86_SOFTARE_PREFETCHING_BENEFICIAL.
23287         (software_prefetching_beneficial_p): Remove predicate.
23288         (ix86_option_override_internal): Use new macro.
23289
23290 2011-05-06  Jan Hubicka  <jh@suse.cz>
23291
23292         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
23293
23294 2011-05-06  Jan Hubicka  <jh@suse.cz>
23295
23296         * cgraph.c (cgraph_add_thunk): Create real function node instead
23297         of alias node; finalize it and mark needed/reachale; arrange visibility
23298         to be right and add it into the corresponding same comdat group list.
23299         (dump_cgraph_node): Dump thunks.
23300         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
23301         cgraph_function_with_gimple_body_p,
23302         cgraph_first_function_with_gimple_body,
23303         cgraph_next_function_with_gimple_body): New functions.
23304         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
23305         New macros.
23306         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
23307         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
23308         * cgraphunit.c (cgraph_finalize_function): Only look into possible
23309         devirtualization when optimizing.
23310         (verify_cgraph_node): Verify thunks.
23311         (cgraph_analyze_function): Analyze thunks.
23312         (cgraph_mark_functions_to_output): Output thunks only in combination
23313         with function they are assigned to.
23314         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
23315         alias into normal node.
23316         (assemble_thunks): New functoin.
23317         (cgraph_expand_function): Use it.
23318         * lto-cgraph.c (lto_output_node): Stream thunks.
23319         (input_overwrite_node): Stream in thunks.
23320         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
23321         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
23322         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
23323         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
23324         (inline_analyze_function): Do not care about thunk jump functions.
23325         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
23326         * ipa-prop.c (ipa_prop_write_jump_functions): Use
23327         cgraph_function_with_gimple_body_p.
23328         * passes.c (do_per_function_toporder): Use
23329         cgraph_function_with_gimple_body_p.
23330         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
23331         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
23332         (function_called_by_processed_nodes_p): Likewise.
23333
23334 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
23335
23336         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
23337         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
23338         entries.
23339         (mabi=): Replace with separate entries for mabi=altivec,
23340         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
23341         mabi=ieeelongdouble and mabi=ibmlongdouble.
23342         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
23343         check for -mabi=spe without SPE ABI support here.
23344         (rs6000_handle_option): Replace OPT_mabi_ handling with
23345         OPT_mabi_altivec and OPT_mabi_spe handling.
23346
23347 2011-05-06  Cary Coutant  <ccoutant@google.com>
23348
23349         * dwarf2out.c (contains_subprogram_definition): New function.
23350         (should_move_die_to_comdat): Call it.
23351
23352 2011-05-06  Jeff Law  <law@redhat.com>
23353
23354         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
23355         remove_ctrl_stmt_and_useless_edges.
23356         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
23357         (fixup_template_block, thread_single_edge): Likewise.
23358         (mark_threaded_blocks): Use THREAD_TARGET.
23359
23360 2011-05-06  Alan Modra  <amodra@gmail.com>
23361
23362         PR target/48900
23363         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
23364         const0_rtx as the arg to the dummy __tls_get_addr libcall.
23365
23366 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
23367
23368         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
23369         constraint modifier to "r".
23370
23371 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
23372
23373         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
23374         fall through for OPT_mcmodel_.
23375
23376 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23377
23378         * config/s390/s390.c (s390_asm_trampoline_template): Comment
23379         instruction sizes.
23380         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
23381
23382 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
23383
23384         PR target/47930
23385         * config/arm/arm.opt (marm): Document it.
23386         (mthumb): Reject negative variant.
23387
23388 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
23389
23390         PR target/48898
23391         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
23392         Fix typo in "ccvt" variable name.
23393
23394 2011-05-06  Tristan Gingold  <gingold@adacore.com>
23395
23396         PR target/48895
23397         * config/vms/vms-ar.c (main): Remove cwd variable.
23398
23399 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
23400
23401         PR debug/48902
23402         * var-tracking.c (prepare_call_arguments): Move else before #endif.
23403
23404 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
23405
23406         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
23407         * gimplify.c (gimplify_switch_expr): Likewise.
23408         * omp-low.c (expand_omp_sections): Likewise.
23409         * tree-eh.c (lower_try_finally_switch): Likewise.
23410         (lower_eh_dispatch): Likewise.
23411         * tree.h (build_case_label): Declare.
23412         * tree.c (build_case_label): Define.
23413
23414 2011-05-05  Jason Merrill  <jason@redhat.com>
23415
23416         PR c++/40975
23417         * tree-inline.c (copy_tree_r): Use copy_statement_list.
23418         (copy_statement_list): Don't recurse.
23419         * stor-layout.c (copy_self_referential_tree_r): Don't allow
23420         STATEMENT_LIST.
23421
23422 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
23423
23424         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
23425         through from -mfpu= handling.
23426         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
23427
23428 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
23429
23430         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
23431         POST_MODIFY.
23432
23433 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
23434
23435         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
23436         for 11.31.
23437         (hppa[12]*-*-hpux11*): Ditto.
23438         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
23439         * config/ia64/hpux-unix2003.h: New.
23440         * config/pa/pa-hpux1131.opt: New.
23441         * config/pa/pa-hpux1131.h: New.
23442         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
23443         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
23444         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
23445
23446 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
23447
23448         PR debug/48853
23449         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
23450         instead of mode as 3rd argument to recursive call.
23451         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
23452         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
23453         VOIDmode.
23454         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
23455         don't give up if mode is Pmode and mem_mode is not VOIDmode.
23456         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
23457         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
23458
23459 2011-05-05  Julian Brown  <julian@codesourcery.com>
23460
23461         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
23462         parenthesis in D-register case.
23463
23464 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
23465
23466         * opt-functions.awk (var_type_struct): Handle Enum options.
23467         * optc-gen.awk: Don't check range of variables of character type.
23468         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
23469         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
23470         rs6000_sdata_name, rs6000_explicit_options): Remove.
23471         (rs6000_option_override_internal): Check for -malign-power here.
23472         Use global_options_set instead of rs6000_explicit_options.
23473         (rs6000_parse_fpu_option): Remove.
23474         (rs6000_handle_option): Access variables via opts and opts_set
23475         pointers.  Use error_at and warning_at.  Add fall-through
23476         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
23477         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
23478         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
23479         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
23480         here.  Don't use rs6000_parse_fpu_option.
23481         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
23482         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
23483         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
23484         (mrecip=): Use Var.
23485         (mspe): Use Var and Save.
23486         (mtraceback=): Use Enum and Var.
23487         (rs6000_traceback_type): New Enum and EnumValue entries.
23488         (mfloat-gprs=): Use Enum, Var and Save.
23489         (rs6000_float_gprs): New Enum and EnumValue entries.
23490         (mlong-double-): use Var and Save.
23491         (msched-costly-dep=, minsert-sched-nops=): Use Var.
23492         (malign-): Use Enum and Var.
23493         (rs6000_alignment_flags): New Enum and EnumValue entries.
23494         (mfpu=): Use Enum.
23495         (fpu_type_t): New Enum and EnumValue entries.
23496         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
23497         global_options_set instead of rs6000_explicit_options.
23498         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
23499         global_options_set instead of rs6000_explicit_options.
23500         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
23501         global_options_set instead of rs6000_explicit_options.
23502         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
23503         global_options_set instead of rs6000_explicit_options.
23504         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
23505         global_options_set instead of rs6000_explicit_options.
23506         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
23507         global_options_set instead of rs6000_explicit_options.
23508         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
23509         definition.
23510         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
23511         global_options_set instead of rs6000_explicit_options.
23512         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
23513         (rs6000_cmodel): New Enum and EnumValue entries.
23514         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
23515         global_options_set instead of rs6000_explicit_options.
23516         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
23517         (mtls-size=): Use Enum and Var.
23518         (rs6000_tls_size): New Enum and EnumValue entries.
23519
23520 2011-05-05  Michael Matz  <matz@suse.de>
23521
23522         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
23523         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
23524         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
23525         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
23526         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
23527         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
23528         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
23529         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
23530         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
23531         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
23532         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
23533         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
23534         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
23535         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
23536         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
23537         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
23538
23539 2011-05-05  Richard Guenther  <rguenther@suse.de>
23540
23541         * expmed.c (expand_variable_shift): Rename to ...
23542         (expand_shift_1): ... this.  Take an expanded shift amount.
23543         For rotates recurse directly not building trees for the shift amount.
23544         (expand_variable_shift): Wrap around expand_shift_1.
23545         (expand_shift): Adjust.
23546
23547 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
23548
23549         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
23550
23551 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
23552
23553         * tree.h (get_pending_sizes): Remove prototype.
23554         (put_pending_size): Likewise.
23555         (put_pending_sizes): Likewise.
23556         * stor-layout.c (pending_sizes): Delete.
23557         (get_pending_sizes): Likewise.
23558         (put_pending_size): Likewise.
23559         (put_pending_sizes): Likewise.
23560         (variable_size): Do not call put_pending_size and tidy up.
23561         * function.h (struct function): Remove dont_save_pending_sizes_p.
23562         * lto-streamer-in.c (input_function): Do not stream it.
23563         * lto-streamer-out.c (output_function): Likewise.
23564         * tree-inline.c (initialize_cfun): Do not copy it.
23565         * c-decl.c (store_parm_decls): Do not set it.
23566         * omp-low.c (create_task_copyfn): Likewise.
23567         * tree-optimize.c (tree_rest_of_compilation): Likewise.
23568
23569 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
23570
23571         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
23572         conditions.
23573         (*movdf_internal): Ditto.
23574         (*movdf_internal_nointeger): Ditto.
23575         (*movsf_internal): Ditto.
23576
23577 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
23578
23579         * c-decl.c (finish_decl): Don't call get_pending_sizes.
23580         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
23581         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
23582         (c_variable_size): Remove.
23583         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
23584         call put_pending_sizes.
23585         (get_parm_info): Add parameter expr.  Use it to set
23586         arg_info->pending_sizes.
23587         (store_parm_decls): Use arg_info->pending_sizes instead or calling
23588         get_pending_sizes.
23589         * c-parser.c (c_parser_parms_declarator): Update call to
23590         c_parser_parms_list_declarator.
23591         (c_parser_parms_list_declarator): Take parameter expr.  Update
23592         call to push_parm_decl.  Update recursive call.  Don't call
23593         get_pending_sizes.  Update calls to get_parm_info.
23594         (c_parser_objc_method_definition): Update calls to
23595         c_parser_objc_method_decl and objc_start_method_definition.
23596         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
23597         (c_parser_objc_method_decl): Add parameter expr.  Update call to
23598         grokparm.
23599         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
23600         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
23601         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
23602
23603 2011-05-05  Michael Hope  <michael.hope@linaro.org>
23604
23605         PR pch/45979
23606         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
23607         __ARM_EABI__ hosts.
23608
23609 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23610
23611         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
23612         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
23613         (spu_output_mi_thunk): New function.
23614
23615 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23616
23617         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
23618         targetm.asm_out.print_operand.
23619         * config/sol2.c: Include target.h.
23620
23621 2011-05-04  Jan Hubicka  <jh@suse.cz>
23622
23623         * ipa-inline.c (reset_edge_caches): New function.
23624         (update_caller_keys): Add check_inlinablity_for; do not
23625         reset edge caches; remove now unnecesary loop.
23626         (update_callee_keys): Add comments; reset node_growth_cache of callee.
23627         (update_all_callee_keys): Likewise.
23628         (inline_small_functions): Sanity check cache; update code
23629         recomputing it.
23630
23631 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
23632
23633         PR rtl-optimization/47612
23634         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
23635         as the last insn of the sequence to be moved.
23636
23637 2011-05-04  Tobias Burnus  <burnus@net-b.de>
23638
23639         PR fortran/48864
23640         * doc/invoke.texi (Ofast): Document that it
23641         enables Fortran's -fno-protect-parens.
23642
23643 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
23644
23645         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
23646
23647 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
23648
23649         * stor-layout.c (variable_size): Do not issue errors.
23650
23651 2011-05-04  Richard Guenther  <rguenther@suse.de>
23652
23653         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
23654         for array-ref indices.
23655         (tree_coverage_counter_addr): Likewise.
23656         (build_fn_info_type): Use size_int for index types.
23657         (build_gcov_info): Likewise.
23658
23659 2011-05-04  Richard Guenther  <rguenther@suse.de>
23660
23661         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
23662         to build_int_cst.
23663         * c-typeck.c (really_start_incremental_init): Use bitsize_int
23664         for constructor indices.
23665         (push_init_level): Likewise.
23666
23667 2011-05-04  Richard Guenther  <rguenther@suse.de>
23668
23669         * explow.c (promote_mode): Move variable declarations before code.
23670
23671 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
23672
23673         * tree.h (build_function_type_array): Declare.
23674         (build_varargs_function_type_array): Declare.
23675         (build_function_type_vec, build_varargs_function_type_vec): Define.
23676         * tree.c (build_function_type_array_1): New function.
23677         (build_function_type_array): New function.
23678         (build_varargs_function_type_array): New function.
23679
23680 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
23681
23682         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
23683         before setting STMT_VINFO_TYPE.
23684
23685 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23686
23687         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
23688         instead of spu_pass_by_reference.
23689
23690 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23691
23692         * calls.c (emit_library_call_value_1): Invoke
23693         promote_function_mode hook on libcall arguments.
23694         * explow.c (promote_function_mode, promote_mode): Handle TYPE
23695         argument being NULL.
23696         * targhooks.c (default_promote_function_mode): Lisewise.
23697         * config/s390/s390.c (s390_promote_function_mode): Likewise.
23698         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
23699
23700         * doc/tm.texi: Document that TYPE argument might be NULL.
23701
23702 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
23703
23704         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
23705
23706 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
23707
23708         From Bernd Schmidt
23709         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
23710
23711 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23712
23713         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
23714         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
23715         Move ...
23716         * mips-tfile.c: ... here.
23717         Don't include coretypes.h, tm.h, filenames.h.
23718         (saber_stop): Remove definition and all calls.
23719         [__SABER__]: Remove.
23720         (__LINE__): Remove default.
23721         (Size_t, Ptrdiff_t): Remove definitions.
23722         Replace by size_t, ptrdiff_t.
23723         [!MIPS_DEBUGGING_INFO]: Remove.
23724         (SHASH_SIZE, THASH_SIZE): Remove defaults.
23725         (progname): Add const.
23726         (STATIC): Remove.
23727         Replace all uses by static.
23728         (ALIGN_SYMTABLE_OFFSET): Remove default.
23729         * mips-tdump.c: Don't include coretypes.h, tm.h.
23730         Remove !MIPS_IS_STAB guard.
23731         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
23732         $(TM_H), filenames.h dependencies.
23733         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
23734
23735 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
23736
23737         From Jie Zhang
23738         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
23739         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
23740
23741 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
23742
23743         From Bernd Schmidt
23744         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
23745         account and save/restore RETS.
23746         (PROFILE_BEFORE_PROLOGUE): Define.
23747         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
23748         the push insn to use predecrement.
23749
23750 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
23751
23752         From Jie Zhang
23753         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
23754
23755 2011-05-04  Nick Clifton  <nickc@redhat.com>
23756
23757         * config/mn10300/mn10300.c: Include cfgloop.h.
23758         (DUMP): New macro.
23759         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
23760         Lcc or a FLcc insn into the instruction stream.
23761         (mn10300_block_contains_call): New function.  Returns true if the
23762         given basic block contains a CALL insn.
23763         (mn10300_loop_contains_call_insn): New function.  Returns true if
23764         the given loop contains a CALL insn.
23765         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
23766         to use the SETLB and Lcc or FLcc insns.
23767         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
23768         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
23769         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
23770         disable the SETLB optimization.
23771         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
23772         __SETLB__ or __NO_SETLB__.
23773         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
23774         (movsf_internal): Handle MDR register.
23775         (cmpsi): Make visible.
23776         (setlb): New pattern.
23777         (Lcc): New pattern.
23778         (FLcc): New pattern.
23779
23780 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
23781
23782         PR target/48860
23783         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
23784         for reg<->xmm moves.
23785         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
23786         (vec_concatv2di_rex64_sse): Ditto.
23787         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
23788         (*vec_extractv2di_1_rex64): Ditto.
23789
23790         Revert:
23791         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
23792
23793         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
23794         reg<->xmm moves.
23795         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
23796
23797 2011-05-04  Richard Guenther  <rguenther@suse.de>
23798
23799         * tree.h (int_const_binop): Remove notrunc argument.
23800         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
23801         create integer constants that are properly truncated.
23802         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
23803         (const_binop): Remove zero notrunc argument to int_const_binop.
23804         (size_binop_loc): Likewise.
23805         (fold_div_compare): Likewise.
23806         (maybe_canonicalize_comparison_1): Likewise.
23807         (fold_comparison): Likewise.
23808         (fold_binary_loc): Likewise.
23809         (multiple_of_p): Likewise.
23810         * expr.c (store_constructor): Likewise.
23811         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
23812         (maybe_fold_stmt_addition): Likewise.
23813         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
23814         * stor-layout.c (layout_type): Likewise.
23815         * tree-data-ref.c (tree_fold_divides_p): Likewise.
23816         * tree-sra.c (build_ref_for_offset): Likewise.
23817         (build_user_friendly_ref_for_offset): Likewise.
23818         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
23819         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
23820         * tree-ssa-loop-niter.c (inverse): Likewise.
23821         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
23822         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
23823         * tree-switch-conversion.c (check_range): Likewise.
23824         (build_constructors): Likewise.
23825         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
23826         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
23827         (extract_range_from_assert): Likewise.
23828         (vrp_int_const_binop): Likewise.
23829         (extract_range_from_binary_expr): Likewise.
23830         (extract_range_from_unary_expr): Likewise.
23831         (check_array_ref): Likewise.
23832         (find_case_label_range): Likewise.
23833         (simplify_div_or_mod_using_ranges): Likewise.
23834         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
23835         comparing case labels for merging.
23836
23837 2011-05-03  Mark Wielaard  <mjw@redhat.com>
23838
23839         * dwarf2out.c (debug_str_hash_forced): Removed.
23840         (gen_label_for_indirect_string): Removed.
23841         (get_debug_string_label): Removed.
23842         (AT_string_form): Generate label directly.
23843         (output_indirect_string): Test indirect_string_node for
23844         DW_FORM_strp instead of checking label and refcount.
23845         (prune_indirect_string): Removed.
23846         (prune_unused_types): Don't check debug_str_hash_forced or
23847         call prune_indirect_string.
23848
23849 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
23850
23851         PR other/48093
23852         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
23853
23854 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
23855
23856         PR debug/47994
23857         PR debug/47919
23858         * combine.c (try_combine): Skip debug insns at m_split tests.
23859
23860 2011-04-26  Mark Wielaard  <mjw@redhat.com>
23861
23862         PR42288
23863         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
23864         when info_section_emitted.
23865
23866 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
23867
23868         * config/mips/mips-opts.h: New.
23869         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
23870         to mips-opts.h.
23871         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
23872         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
23873         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
23874         via opts pointer.
23875         * config/mips/mips.h (enum mips_code_readable_setting): Move to
23876         mips-opts.h.
23877         (mips_abi, mips_code_readable): Don't declare.
23878         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
23879         (mabi=): Use Enum and Var.
23880         (mips_abi): New Enum and EnumValue entries.
23881         (mcode-readable=): Use Enum and Var.
23882         (mips_code_readable_setting): New Enum and EnumValue entries.
23883         (mr10k-cache-barrier=): Use Enum and Var.
23884         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
23885
23886 2011-05-03  Jan Hubicka  <jh@suse.cz>
23887
23888         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
23889         replace hash by pointer map.
23890         (cgraph_node_set_element_def, cgraph_node_set_element,
23891         const_cgraph_node_set_element, varpool_node_set_element_def,
23892         varpool_node_set_element, const_varpool_node_set_element): Remove.
23893         (free_cgraph_node_set, free_varpool_node_set): New function.
23894         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
23895         * tree-emutls.c: Free varpool node set.
23896         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
23897         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
23898         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
23899         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
23900         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
23901         Move here from ipa.c; implement using pointer_map
23902         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
23903         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
23904         debug_cgraph_node_set, varpool_node_set_new,
23905         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
23906         dump_varpool_node_set, debug_varpool_node_set):
23907         Move to ipa-uitls.c.
23908         * passes.c (ipa_write_summaries): Update.
23909
23910 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
23911
23912         From Mike Frysinger:
23913         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
23914         bf542/bf544/bf547/bf548/bf549.
23915
23916 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
23917
23918         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
23919
23920 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
23921
23922         From Bernd Schmidt:
23923         * config/bfin/bfin.md (MOVCC): New mode_macro.
23924         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
23925         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
23926         comments from generated assembly.
23927
23928 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
23929
23930         From Bernd Schmidt
23931         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
23932         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
23933         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
23934         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
23935         * config/bfin/lib1funcs.asm (___muldi3): New function.
23936
23937 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
23938
23939         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
23940         build_function_type_list instead of build_function_type.
23941         Rearrange initialization of `args' to do so.
23942
23943 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
23944
23945         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
23946         instead of build_function_type.
23947
23948 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
23949
23950         * config/rs6000/rs6000.c (spe_init_builtins): Call
23951         build_function_type_list instead of build_function_type.
23952         (paired_init_builtins, altivec_init_builtins): Likewise.
23953         (builtin_function_type): Likewise.
23954
23955 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
23956
23957         * config/sh/sh.c (sh_media_init_builtins): Call
23958         build_function_type_list instead of build_function_type.
23959
23960 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
23961
23962         * config/sparc/sparc.c (sparc_file_end): Call
23963         build_function_type_list instead of build_function_type.
23964
23965 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
23966
23967         * config/alpha/alpha.c (alpha_init_builtins): Call
23968         build_function_type_list instead of build_function_type.
23969
23970 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
23971
23972         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
23973         build_function_type_list instead of build_function_type.
23974
23975 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
23976
23977         * config/iq2000/i2000.c (iq2000_init_builtins): Call
23978         build_function_type_list instead of build_function_type.
23979         Delete `endlink' variable.
23980
23981 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
23982
23983         * config/avr/avr.c (avr_init_builtins): Call
23984         build_function_type_list instead of build_function_type.
23985
23986 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
23987
23988         * config/picochip/picochip.c (picochip_init_builtins): Call
23989         build_function_type_list instead of build_function_type.
23990         Delete `endlink' variable.
23991
23992 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
23993
23994         * config/bfin/bfin.c (bfin_init_builtins): Call
23995         build_function_type_list instead of build_function_type.
23996
23997 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
23998
23999         From Bernd Schmidt
24000         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
24001         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
24002
24003 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
24004
24005         From Jie Zhang:
24006         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
24007         libbffastfp overrides libgcc when -mfast-fp.
24008
24009 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
24010
24011         Originally from Bernd Schmidt
24012         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
24013         * config/bfin/bfin.c (override_options): Test it and error if
24014         TARGET_FDPIC.
24015
24016 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
24017
24018         Originally From Bernd Schmidt
24019         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
24020         FD-PIC.
24021
24022 2011-05-03  Jeff Law  <law@redhat.com>
24023
24024         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
24025         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
24026         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
24027         than accessing AUX field directly.  Free the AUX field before
24028         clearing it.
24029         (thread_block, thread_through_loop_header): Likewise.
24030         (thread_single_edge, mark_threaded_blocks): Likewise.
24031         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
24032         (register_jump_thread): Do not attempt to thread to a NULL edge.
24033
24034 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
24035
24036         * function.c (init_function_start): Call decide_function_section.
24037         * varasm.c (decide_function_section): New function.
24038         (assemble_start_function): When not using
24039         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
24040         or first_function_block_is_cold.
24041         * rtl.h (decide_function_section): Declare.
24042
24043 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
24044             Jakub Jelinek  <jakub@redhat.com>
24045
24046         PR target/48774
24047         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
24048         only succeed if req_mode is the same as set_mode.
24049
24050 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
24051
24052         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
24053         * genemit.c (gen_exp): Handle RETURN.
24054         * emit-rtl.c (verify_rtx_sharing): Likewise.
24055         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
24056         * rtl.c (copy_rtx): RETURN is shared.
24057         * rtl.h (enum global_rtl_index): Add GR_RETURN.
24058         (ret_rtx): New.
24059         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
24060         * config/s390/s390.c (s390_emit_epilogue): Likewise.
24061         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
24062         * config/cris/cris.c (cris_expand_return): Likewise.
24063         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
24064         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
24065         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
24066         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
24067         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
24068         Likewise.
24069         * config/v850/v850.c (expand_epilogue): Likewise.
24070         * config/bfin/bfin.c (bfin_expand_call): Likewise.
24071         * config/arm/arm.md (epilogue): Likewise.
24072         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
24073         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
24074         variable to ret_reg.
24075
24076 2011-05-03  Richard Guenther  <rguenther@suse.de>
24077
24078         PR lto/48846
24079         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
24080         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
24081         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
24082
24083 2011-05-03  Richard Guenther  <rguenther@suse.de>
24084
24085         * c-decl.c (grokdeclarator): Instead of looking at
24086         TREE_OVERFLOW check if the constant fits in the index type.
24087
24088 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
24089
24090         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
24091         (vec_store_lanes<mode><mode>): Likewise.
24092
24093 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
24094
24095         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
24096         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
24097         convert_optab_index values.
24098         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
24099         * genopinit.c (optabs): Initialize the new optabs.
24100         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
24101         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
24102         (expand_STORE_LANES): New functions.
24103         * tree.h (build_array_type_nelts): Declare.
24104         * tree.c (build_array_type_nelts): New function.
24105         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
24106         (vect_model_load_cost): Likewise.
24107         (vect_store_lanes_supported, vect_load_lanes_supported)
24108         (vect_record_strided_load_vectors): Declare.
24109         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
24110         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
24111         (vect_transform_strided_load): Split out statement recording into...
24112         (vect_record_strided_load_vectors): ...this new function.
24113         * tree-vect-stmts.c (create_vector_array, read_vector_array)
24114         (write_vector_array, create_array_ref): New functions.
24115         (vect_model_store_cost): Add store_lanes_p argument.
24116         (vect_model_load_cost): Add load_lanes_p argument.
24117         (vectorizable_store): Try to use store-lanes functions for
24118         interleaved stores.
24119         (vectorizable_load): Likewise load-lanes and loads.
24120         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
24121         to vect_model_store_cost.
24122         (vect_build_slp_tree): Likewise vect_model_load_cost.
24123
24124 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
24125
24126         * hooks.h (hook_bool_mode_uhwi_false): Declare.
24127         * hooks.c (hook_bool_mode_uhwi_false): New function.
24128         * target.def (array_mode_supported_p): New hook.
24129         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
24130         * doc/tm.texi: Regenerate.
24131         * stor-layout.c (mode_for_array): New function.
24132         (layout_type): Use it.
24133         * config/arm/arm.c (arm_array_mode_supported_p): New function.
24134         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
24135
24136 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
24137
24138         PR target/48723
24139         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
24140         for -fstack-check if the size to allocate is negative.
24141
24142 2011-05-02  Lawrence Crowl  <crowl@google.com>
24143
24144         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
24145         (timevar_cond_start): New for starting a timer only when it is not
24146         already running.
24147         (timevar_cond_stop): New for stopping a timer when it was not already
24148         running.
24149
24150         * timevar.c (timevar_stop): Enable start/stop timers to start again.
24151         (timevar_cond_start): New as above.
24152         (timevar_cond_stop): New as above.
24153
24154         * timevar.def: Add start/stop timers for compiler phases,
24155         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
24156         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
24157         and TV_PHASE_FINALIZE.
24158         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
24159         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
24160         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
24161         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
24162         Make unused TV_OVERLOAD into a start/stop timer.
24163
24164         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
24165         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
24166         to indicate that they are start/stop timers.
24167
24168         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
24169         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
24170         Move initialization to do_compile.
24171         (do_compile): Add initialization from above.
24172         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
24173
24174         * c-decl.c (c_write_global_declarations): Add start/stop of
24175         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
24176
24177         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
24178         or TV_PARSE_INLINE, as appropriate.
24179         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
24180         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
24181
24182 2011-05-02  Jason Merrill  <jason@redhat.com>
24183
24184         PR c++/40975
24185         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
24186
24187 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
24188
24189         PR c/35445
24190         * c-decl.c (finish_decl): Only create a composite if the types are
24191         compatible.
24192
24193 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
24194
24195         * config/fr30/fr30-protos.h (Mmode): Don't define.
24196         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
24197         definition where used.
24198         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
24199         define.  Expand definitions where used.
24200         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
24201         Expand definitions where used.
24202         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
24203         rx_function_arg, rx_function_arg_advance,
24204         rx_function_arg_boundary): Expand definitions of those macros.
24205         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
24206         definition where used.
24207
24208 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
24209
24210         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
24211         reg<->xmm moves.
24212         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
24213         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
24214         with *movv2sf_internal_rex64_avx.
24215         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
24216         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
24217         Use %v prefix in insn mnemonic to handle TARGET_AVX.
24218         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
24219         "vex" in "prefix" attribute calculation.
24220         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
24221
24222 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
24223
24224         PR target/47951
24225         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
24226         inputs match the output.
24227
24228 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
24229
24230         PR target/47955
24231         * config/m68k/m68k.c (m68k_expand_prologue): Set
24232         current_function_static_stack_size.
24233
24234 2011-05-02   Jan Hubicka  <jh@suse.cz>
24235
24236         * lto-streamer.c (lto_streamer_cache_insert_1,
24237         lto_streamer_cache_lookup, lto_streamer_cache_create,
24238         lto_streamer_cache_delete): Use pointer map instead of hashtable.
24239         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
24240
24241 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
24242
24243         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
24244         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
24245         config/m68k/t-opts: New files.
24246         * config/m68k/m68k-tables.opt: New file (generated).
24247         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
24248         extra_options and m68k/t-opts to tmake_file.
24249         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
24250         (all_isas): Initialize using m68k-isas.def.
24251         (all_microarchs): Initialize using m68k-microarchs.def.
24252         (m68k_find_selection): Remove.
24253         (m68k_handle_option): Don't assert that global structures are in
24254         use.  Use error_at.  Access variables via opts pointer.  Don't
24255         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
24256         directly for -m68020-40 and -m68020-60.
24257         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
24258         m68k_tune_entry here.
24259         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
24260         to m68k-opts.h.
24261         (m68k_library_id_string): Remove declaration.
24262         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
24263         (m68k_library_id_string): New Variable.
24264         (march=, mcpu=, mtune=): Use Enum and Var.
24265
24266 2011-05-02  Richard Guenther  <rguenther@suse.de>
24267
24268         * varasm.c (output_constructor_regular_field): Compute zero-based
24269         index with double-ints.  Make sure to ICE instead of producing
24270         wrong code.
24271         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
24272         in asserts.  Properly use a signed type.
24273
24274 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
24275
24276         * config/i386/sse.md (V): New mode iterator.
24277         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
24278         TARGET_SSE2.
24279         (V_256): Rename from AVX256MODE.
24280         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
24281         condition to all users.
24282         (VF1): Ditto.
24283         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
24284         condition to all users.
24285         (VF_128): Make V4SF mode unconditional.
24286         (VF_256): Rename from AVX256MODEF2P.
24287         (VI4F_128): Rename from SSEMODE4S.
24288         (VI8F_128): Rename from SSEMODE2D.
24289         (VI4F_256): Rename from AVX256MODE8P.
24290         (VI8F_256): Rename from AVX256MODE4P.
24291         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
24292         (ssescalarmodesuffix): Remove SF and DF modes.
24293         (SSEMODE124): Remove.
24294         (SSEMODE1248): Ditto.
24295         (SSEMODEF2P): Ditto.
24296         (AVXMODEF2P): Ditto.
24297         (AVXMODEFDP): Ditto.
24298         (AVXMODEFSP): Ditto.
24299         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
24300         unconditional.
24301         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
24302         unconditional.
24303         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
24304         xop_pcmov_<mode>256.  Use V mode iterator.
24305
24306         Adjust RTX patterns globally for renamed mode attributes.
24307
24308 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24309
24310         * haifa-sched.c (sched_emit_insn): Emit insn before first
24311         non-scheduled insn.  Inform back-end about new insn.  Add
24312         new insn to scheduled_insns list.
24313
24314 2011-05-02  Richard Guenther  <rguenther@suse.de>
24315
24316         PR tree-optimization/48822
24317         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
24318         (process_scc): Indicate which iteration we start.
24319
24320 2011-05-02  Jan Hubicka  <jh@suse.cz>
24321
24322         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
24323         (lto_section_overrun): New.
24324         * lto-section-out.c (append_block): Rename to ...
24325         (lto_append_block): ... this one; export.
24326         (lto_output_1_stream): Move lto lto-streamer.h
24327         (lto_output_data_stream): Update.
24328         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
24329         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
24330         functions.
24331
24332 2011-05-02  Richard Guenther  <rguenther@suse.de>
24333
24334         * tree.c (tree_code_counts): New global array.
24335         (record_node_allocation_statistics): Count individual tree codes.
24336         (dump_tree_statistics): Dump individual code stats.
24337
24338 2011-05-01  Jan Hubicka  <jh@suse.cz>
24339
24340         * ipa-inline.c (caller_growth_limits): Fix thinko when
24341         looking for largest stack frame.
24342         * ipa-inline.h (dump_inline_summary): Declare.
24343         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
24344         on stack usage.
24345         (dump_inline_summary): Export.
24346         (debug_inline_summary): Declare as DEBUG_FUNCTION.
24347
24348 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
24349
24350         * reginfo.c (memory_move_cost): Change rclass argument type form
24351         'enum reg_class' to reg_class_t.
24352         * reload.h (memory_move_cost): Update prototype.
24353         * postreload.c reload_cse_simplify_set): Change type dclass var to
24354         reg_class_t.
24355         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
24356         Update prototype.
24357         (ira_allocate_and_set_costs): Change aclass argument type form
24358         'enum reg_class' to reg_class_t.
24359         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
24360         Change aclass argument type to reg_class_t.
24361         (update_conflict_hard_reg_costs): Change type aclass and pref vars
24362         to reg_class_t.
24363         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
24364         memory_move_cost call.
24365
24366         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
24367         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
24368         Change type tmp var to reg_class_t.
24369
24370 2011-04-30  Jan Hubicka  <jh@suse.cz>
24371
24372         * ipa-inline.c (can_inline_edge_p): Disregard limits when
24373         inlining into function with flatten attribute.
24374         (want_inline_small_function_p): Be more realistic about inlining
24375         cold calls where callee size grows.
24376
24377 2011-04-30  Jan Hubicka  <jh@suse.cz>
24378
24379         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
24380         flags.
24381
24382 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
24383
24384         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
24385         PRINT_OPERAND_PUNCT_VALID_P): Remove.
24386         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
24387         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
24388         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
24389         (print_operand): Rename to...
24390         (sparc_print_operand): ...this. Make static. Adjust
24391         sparc_print_operand function call.
24392         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
24393         functions.
24394
24395 2011-04-30  Jan Hubicka  <jh@suse.cz>
24396
24397         PR middle-end/48752
24398         * ipa-inline.c (early_inliner): Disable when doing late
24399         addition of function.
24400
24401 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
24402
24403         * dwarf2out.c (get_address_mode): New inline.
24404         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
24405         if not dwarf_strict emit
24406         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
24407         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
24408         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
24409         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
24410         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
24411         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
24412         mem_loc_descriptor callers.
24413         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
24414         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
24415         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
24416         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
24417         (base_types): New variable.
24418         (get_base_type_offset, calc_base_type_die_sizes,
24419         base_type_for_mode, mark_base_types, base_type_cmp,
24420         move_marked_base_types): New functions.
24421         (calc_die_sizes): Assert that die_offset is 0 or equal to
24422         next_die_offset.
24423         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
24424         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
24425         callers.  If not dwarf_strict, call mem_loc_descriptor even for
24426         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
24427         (gen_subprogram_die): Don't give up on call site parameters
24428         with non-integral or large integral modes.  Adjust
24429         mem_loc_descriptor callers.
24430         (prune_unused_types): Call prune_unused_types_mark on base_types
24431         vector entries.
24432         (resolve_addr): Call mark_base_types.
24433         (dwarf2out_finish): Call move_marked_base_types.
24434
24435         PR tree-optimization/48809
24436         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
24437         type.
24438         (gen_inbound_check): Don't compute index_expr - range_min in utype
24439         again, instead reuse SSA_NAME initialized in build_arrays.
24440         Remove two useless gsi_for_stmt calls.
24441
24442 2011-04-29  Jeff Law  <law@redhat.com>
24443
24444         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
24445
24446 2011-04-29  Martin Jambor  <mjambor@suse.cz>
24447
24448         * cgraph.h (cgraph_postorder): Remove declaration.
24449         * ipa-utils.h (ipa_free_postorder_info): Declare.
24450         (ipa_reverse_postorder): Likewise.
24451         * cgraphunit.c: Include ipa-utils.h.
24452         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
24453         * ipa-inline.c: Include ipa-utils.h.
24454         (ipa_inline): Update call to ipa_reverse_postorder.
24455         * ipa-pure-const.c (propagate_pure_const): Update call to
24456         ipa_reduced_postorder and ipa_print_order.  Call
24457         ipa_free_postorder_info to clean up.
24458         (propagate_nothrow): Likewise.
24459         * ipa-reference.c (propagate): Removed a useless call to
24460         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
24461         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
24462         * ipa.c: Include ipa-utils.h.
24463         (ipa_profile): Update call to ipa_reverse_postorder.
24464         (cgraph_postorder): Moved to...
24465         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
24466         (ipa_utils_print_order): Renamed to ipa_print_order.
24467         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
24468         comments.
24469         (ipa_free_postorder_info): New function.
24470         * passes.c: Include ipa-utils.h.
24471         (do_per_function_toporder): Update call to ipa_reverse_postorder.
24472         (ipa_write_summaries): Likewise.
24473         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
24474         (cgraphunit.o): Likewise.
24475         (ipa.o): Likewise.
24476         (ipa-inline.o): Likewise.
24477
24478 2011-04-29  Jan Hubicka  <jh@suse.cz>
24479
24480         * ipa-inline.h (clause_t): Turn into unsigned int.
24481         * ipa-inline-analysis.c (add_clause): Do more simplification.
24482         (and_predicates): Shortcut more cases.
24483         (predicates_equal_p): Move forward; check that clauses are properly
24484         ordered.
24485         (or_predicates): Shortcut more cases.
24486         (edge_execution_predicate): Rewrite as...
24487         (set_cond_stmt_execution_predicate): ... this function; handle
24488         __builtin_constant_p.
24489         (set_switch_stmt_execution_predicate): New .
24490         (compute_bb_predicates): New.
24491         (will_be_nonconstant_predicate): Update TODO.
24492         (estimate_function_body_sizes): Use compute_bb_predicates
24493         and free them later, always try to estimate if stmt is constant.
24494         (estimate_time_after_inlining, estimate_size_after_inlining):
24495         Gracefully handle optimized out edges.
24496         (read_predicate): Fix off by one error.
24497
24498 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
24499
24500         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
24501
24502 2011-04-27  Xinliang David Li  <davidxl@google.com>
24503
24504         * tree-profile.c (init_ic_make_global_vars): Set
24505         tls attribute on ic vars.
24506         * coverage.c (coverage_end_function): Initialize
24507         function_list with zero.
24508
24509 2011-04-29  Richard Guenther  <rguenther@suse.de>
24510
24511         * builtins.c (fold_builtin_classify_type): Use integer_type_node
24512         for the type of the result.
24513         (fold_builtin_isascii): Likewise.
24514         (fold_builtin_toascii): Use integer_type_node where appropriate.
24515         (fold_builtin_logb): Likewise.
24516         (fold_builtin_frexp): Likewise.
24517         (fold_builtin_strstr): Likewise.
24518         (fold_builtin_strpbrk): Likewise.
24519         (fold_builtin_fputs): Likewise.
24520         (fold_builtin_sprintf): Likewise.
24521         (fold_builtin_snprintf): Likewise.
24522         (fold_builtin_printf): Likewise.
24523         (do_mpfr_remquo): Use a proper type for the assigned constant.
24524         (do_mpfr_lgamma_r): Likewise.
24525         * dwarf2out.c (resolve_one_addr): Use size_int.
24526         * except.c (init_eh): Likewise.
24527         (assign_filter_values): Use integer_type_node for filter values.
24528         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
24529         indices.
24530         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
24531         for EH region numbers.
24532         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
24533         for the shift amount.
24534
24535 2011-04-29  Richard Guenther  <rguenther@suse.de>
24536
24537         * expr.h (expand_shift): Rename to ...
24538         (expand_variable_shift): ... this.
24539         (expand_shift): Take a constant shift amount.
24540         * expmed.c (expand_shift): Rename to ...
24541         (expand_variable_shift): ... this.
24542         (expand_shift): New wrapper around expand_variable_shift.
24543         * expr.c (convert_move, emit_group_load_1, emit_group_store,
24544         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
24545         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
24546         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
24547         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
24548         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
24549         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
24550         emit_store_flag_1, emit_store_flag): Likewise.
24551         * builtins.c (expand_builtin_signbit): Likewise.
24552         * calls.c (load_register_parameters): Likewise.
24553         * function.c (assign_parm_setup_block): Likewise.
24554         * lower-subreg.c (resolve_shift_zext): Likewise.
24555         * optabs.c (widen_bswap, expand_abs_nojump,
24556         expand_one_cmpl_abs_nojump, expand_float): Likewise.
24557         * spu/spu.c (spu_expand_extv): Likewise.
24558         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
24559
24560 2011-04-29  Richard Guenther  <rguenther@suse.de>
24561
24562         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
24563         for the remapped region number.
24564         * predict.c (build_predict_expr): Use integer_type_node for the
24565         predict kind.
24566         * fold-const.c (fold_binary_loc): Use integer_type_node for
24567         the shift amount.  Use a proper type for the PLUS_EXPR operand.
24568
24569 2011-04-29  Michael Matz  <matz@suse.de>
24570
24571         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
24572         other trees that just builtins.
24573         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
24574
24575 2011-04-29  Richard Guenther  <rguenther@suse.de>
24576
24577         * tree-nested.c (get_trampoline_type): Use size_int.
24578         (get_nl_goto_field): Likewise.
24579         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
24580         for all indexes.
24581         (lower_eh_constructs_2): Likewise.
24582         (lower_resx): Likewise.
24583         (lower_eh_dispatch): Likewise.
24584         * tree-mudflap.c (mf_build_string): Use size_int.
24585         (mudflap_register_call): Use integer_type_node for the flag.
24586         (mudflap_enqueue_constant): Use size_int.
24587         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
24588         instead of rebuilding it.
24589
24590 2011-04-29  Richard Guenther  <rguenther@suse.de>
24591
24592         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
24593         Handle OBJ_TYPE_REF.
24594         (find_func_aliases_for_call): Use it more consistently.
24595
24596 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
24597
24598         * haifa-sched.c (last_nondebug_scheduled_insn): New.
24599         (rank_for_schedule): Use it.
24600         (schedule_block): Set it.
24601
24602 2011-04-28  David Li  <davidxl@google.com>
24603
24604         * tree.c (crc32_string): Use crc32_byte.
24605         (crc32_byte): New function.
24606         * tree.h (crc32_byte): New function.
24607         * gcov.c (read_graph_file): Handle new cfg_cksum.
24608         (read_count_file): Ditto.
24609         * profile.c (instrument_values): Ditto.
24610         (get_exec_counts): Ditto.
24611         (read_profile_edge_counts): Ditto.
24612         (compute_branch_probabilities): Ditto.
24613         (compute_value_histograms): Ditto.
24614         (branch_prob): Ditto.
24615         (end_branch_prob): Ditto.
24616         * coverage.c (read_counts_file): Ditto.
24617         (get_coverage_counts): Ditto.
24618         (tree_coverage_counter_addr): Ditto.
24619         (coverage_checksum_string): Ditto.
24620         (coverage_begin_output): Ditto.
24621         (coverage_end_function): Ditto.
24622         (build_fn_info_type): Ditto.
24623         (build_fn_info_value): Ditto.
24624         * libgcov.c (gcov_exit): Ditto.
24625         * gcov-dump.c (tag_function): Ditto.
24626         (compute_checksum): Remove.
24627
24628 2011-04-29  Alan Modra  <amodra@gmail.com>
24629
24630         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
24631         unspec plus offset.  Tidy macho code.
24632
24633 2011-04-29  Martin Jambor  <mjambor@suse.cz>
24634
24635         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
24636         node instead of a decl.  Update all callers.
24637         * cgraph.h: Update declaration.
24638
24639 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
24640
24641         PR tree-optimization/48765
24642         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
24643         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
24644         to indicate if loop aware SLP is being used.  Scan the statements
24645         and update the vectorization factor according to the type of
24646         vectorization before statement analysis.
24647         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
24648         pass it to vect_analyze_loop_operations.
24649         (vectorizable_reduction): Set number of copies to 1 in case of pure
24650         SLP statement.
24651         * tree-vect-stmts.c (vectorizable_conversion,
24652         vectorizable_assignment, vectorizable_shift,
24653         vectorizable_operation, vectorizable_type_demotion,
24654         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
24655         Likewise.
24656         (vectorizable_condition): Move the check that it is not SLP
24657         vectorization before the number of copies check.
24658         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
24659         to vectorize the loop using SLP.
24660
24661 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
24662
24663         PR middle-end/48597
24664         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
24665         inline asm.
24666
24667 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
24668
24669         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
24670         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
24671         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
24672         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
24673         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
24674         linux*.h headers.
24675         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
24676         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
24677         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
24678         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
24679         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
24680         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
24681         REG_NAME.
24682         * config/i386/linux.h (REG_NAME): Don't define.
24683         * config/i386/linux64.h (REG_NAME): Don't define.
24684         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
24685         Undefine before defining.
24686
24687 2011-04-28  Jan Hubicka  <jh@suse.cz>
24688
24689         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
24690         nonconstant_names array.
24691         (estimate_function_body_sizes): Build nonconstant_names array; handle
24692         BUILT_IN_CONSTANT_P.
24693
24694 2011-04-28  Richard Guenther  <rguenther@suse.de>
24695
24696         PR bootstrap/48804
24697         Revert
24698         2011-04-28  Richard Guenther  <rguenther@suse.de>
24699
24700         * tree-ssa-structalias.c (solve_constraints): Build succ graph
24701         as late as possible.
24702
24703 2011-04-28  Richard Guenther  <rguenther@suse.de>
24704
24705         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
24706         (debug_constraint): Do it here.
24707         (dump_constraints): And here.
24708         (rewrite_constraints): And here.
24709         (dump_constraint_edge): Remove.
24710         (dump_constraint_graph): Rewrite to produce DOT output.
24711         (solve_constraints): Build succ graph as late as possible.
24712         Dump constraint graphs before and after solving.
24713
24714 2011-04-28  Richard Guenther  <rguenther@suse.de>
24715
24716         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24717         New function split out from ...
24718         (find_func_aliases): ... here.  Call it.
24719         (find_func_aliases_for_call): Likewise.
24720
24721 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
24722
24723         * internal-fn.h (internal_fn_name_array): Declare.
24724         (internal_fn_flags_array): Likewise.
24725
24726 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
24727
24728         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
24729         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
24730         Move from sse.md.
24731         (ssemodefsuffix): Remove.
24732         (ssevecmodesuffix): New mode attribute.
24733         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
24734         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
24735         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
24736         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
24737         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
24738         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
24739         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
24740         ssemodesuffix mode attribute.
24741         (float splitters): Use ssevecmodesuffix mode attribute.
24742         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
24743         (sseinsmode): Rename from avxvecmode.
24744         (avxsizesuffix): Rename from avxmodesuffix.
24745         (sseintvecmode): Rename from avxpermvecmode.
24746         (ssedoublevecmode): Rename from ssedoublesizemode.
24747         (ssehalfvecmode): Rename from avxhalfvecmode.
24748         (ssescalarmode): Rename from avxscalarmode.
24749         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
24750         templates for ssemodesuffix mode attribute.
24751         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
24752         mode attribute.
24753
24754         Adjust RTX patterns globally for renamed mode attributes.
24755
24756 2011-04-27  Jan Hubcika  <jh@suse.cz>
24757
24758         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
24759         * ipa-inline-analysis.c: Include alloc-pool.h.
24760         (edge_predicate_pool): New.
24761         (trye_predicate_p): New function
24762         (false_predicate_p): New function.
24763         (add_clause): Sanity check that false clauses are "optimized";
24764         never add clauses to predicate that is already known to be false.
24765         (and_predicate): Use flase_predicate_p.
24766         (evaulate_predicate): Rename to ...
24767         (evaluate_predicate): ... this one; update all callers; assert
24768         that false is not listed among possible truths.
24769         (dump_predicate): Use true_predicate_p.
24770         (account_size_time): Use false_predicate_p.
24771         (evaulate_conditions_for_edge): Rename to ...
24772         (evaluate_conditions_for_edge) ... this one.
24773         (edge_set_predicate): New function.
24774         (inline_edge_duplication_hook): Duplicate edge predicates.
24775         (inline_edge_removal_hook): Free edge predicates.
24776         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
24777         (dump_inline_summary): Update.
24778         (estimate_function_body_sizes): Set edge predicates.
24779         (estimate_calls_size_and_time): Handle predicates.
24780         (estimate_callee_size_and_time): Update.
24781         (remap_predicate): Add toplev_predicate; update comment.
24782         (remap_edge_predicates): New function.
24783         (inline_merge_summary): Compute toplev predicate; update.
24784         (read_predicate): New function.
24785         (read_inline_edge_summary): Use it.
24786         (inline_read_section): Likewise.
24787         (write_predicate): New function.
24788         (write_inline_edge_summary): Use it.
24789         (inline_write_summary): Likewise.
24790         (inline_free_summary): Free alloc pool and edge summary vec.
24791
24792 2011-04-27  Richard Guenther  <rguenther@suse.de>
24793
24794         * tree-ssa-structalias.c (changed_count): Remove.
24795         (changed): Use a bitmap.
24796         (unify_nodes): Adjust.
24797         (do_sd_constraint): Likewise.
24798         (do_ds_constraint): Likewise.
24799         (do_complex_constraint): Likewise.
24800         (solve_graph): Likewise.
24801
24802 2011-04-27  Jan Hubicka  <jh@suse.cz>
24803
24804         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
24805
24806 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
24807
24808         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
24809         (avx_vperm2f128_*_operand): Ditto.
24810         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
24811         Use avx_vpermilp_parallel in insn condition.
24812         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
24813         Use avx_vperm2f128_parallel in insn condition.
24814
24815 2011-04-27  Richard Guenther  <rguenther@suse.de>
24816
24817         * Makefile.in (tree-ssa-structalias.o): Remove
24818         gt-tree-ssa-structalias.h dependency.
24819         (GTFILES): Remove tree-ssa-structalias.c.
24820         * tree.c (allocate_decl_uid): New function.
24821         (make_node_stat): Use it.
24822         (copy_node_stat): Likewise.
24823         * tree.h (allocate_decl_uid): Declare.
24824         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
24825         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
24826         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
24827         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
24828         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
24829         (struct heapvar_map): Likewise.
24830         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
24831         heapvar_insert): Likewise.
24832         (make_heapvar_for): Rename to ...
24833         (make_heapvar): ... this.  Simplify.
24834         (fake_var_decl_obstack): New global var.
24835         (build_fake_var_decl): New function.
24836         (make_constraint_from_heapvar): Adjust.
24837         (handle_lhs_call): Likewise.
24838         (create_function_info_for): Likewise.
24839         (intra_create_variable_infos): Likewise.
24840         (init_alias_vars): Allocate fake_var_decl_obstack.
24841         (init_alias_heapvars, delete_alias_heapvars): Remove.
24842         (compute_points_to_sets): Do not call init_alias_heapvars.
24843         (ipa_pta_execute): Likewise.
24844         (delete_points_to_sets): Free fake_var_decl_obstack.
24845
24846 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24847
24848         * config/spu/divmovti4.c (union qword_UTItype): New data type.
24849         (si_from_UTItype, si_to_UTItype): New functions.
24850         (__udivmodti4): Use them to implement type-punning.
24851         * config/spu/multi3.c (union qword_TItype): New data type.
24852         (si_from_TItype, si_to_TItype): New functions.
24853         (__multi3): Use them to implement type-punning.
24854
24855 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24856
24857         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
24858
24859 2011-04-27  Jan Hubicka  <jh@suse.cz>
24860
24861         * ipa-prop.c (function_insertion_hook_holder): New holder.
24862         (ipa_add_new_function): New function.
24863         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
24864         Register/deregister holder.
24865
24866 2011-04-27  Richard Guenther  <rguenther@suse.de>
24867
24868         PR tree-optimization/48772
24869         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
24870
24871 2011-04-27  Richard Guenther  <rguenther@suse.de>
24872
24873         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
24874         TARGET_MEM_REF handling.
24875
24876 2011-04-27  Nick Clifton  <nickc@redhat.com>
24877
24878         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
24879         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
24880         (REG_CLASS_NAMES): Likewise.
24881         (REG_CLASS_CONTENTS): Likewise.
24882         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
24883         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
24884         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
24885         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
24886         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
24887         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
24888         duplicate register classes.
24889         (frv_class_likely_spilled_p): Likewise.
24890         (frv_register_move_cost): Likewise.
24891
24892         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
24893         end of the regno_reg_class array.
24894
24895 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
24896
24897         PR c/48742
24898         * c-typeck.c (build_binary_op): Don't wrap arguments if
24899         int_operands is true.
24900
24901 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
24902
24903         PR target/48767
24904         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
24905         targetm.calls.must_pass_in_stack for void type.
24906
24907 2011-04-26  Jan Hubicka  <jh@suse.cz>
24908
24909         * cgraphbuild.c (build_cgraph_edges): Update call
24910         of cgraph_create_edge and cgraph_create_indirect_edge.
24911         * cgraph.c (cgraph_create_edge_including_clones,
24912         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
24913         cgraph_update_edges_for_call_stmt_node): Do not take nest
24914         argument; do not initialize call_stmt_size/time.
24915         (dump_cgraph_node): Do not dump nest.
24916         (cgraph_clone_edge): Do not take loop_nest argument;
24917         do not propagate it; do not clone call_stmt_size/time.
24918         (cgraph_clone_node): Likewise.
24919         (cgraph_create_virtual_clone): Update.
24920         * cgraph.h (struct cgraph_edge): Remove
24921         call_stmt_size/call_stmt_time/loop_nest.
24922         (cgraph_create_edge, cgraph_create_indirect_edge,
24923         cgraph_create_edge_including_clones, cgraph_clone_node): Update
24924         prototype.
24925         * tree-emutls.c (gen_emutls_addr): Update.
24926         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
24927         loop_nest; handle indirect calls, too.
24928         (clone_inlined_nodes): Do not care about updating inline summaries.
24929         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
24930         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
24931         stream call_stmt_size/call_stmt_time/loop_nest.
24932         * ipa-inline.c (edge_badness): Update.
24933         (ipa_inline): dump summaries after inlining.
24934         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
24935         New.
24936         (inline_edge_summary): New function.
24937         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
24938         (inline_edge_removal_hook): Handle edge summaries.
24939         (inline_edge_duplication_hook): New hook.
24940         (inline_summary_alloc): Alloc hooks.
24941         (initialize_growth_caches): Do not register removal hooks.
24942         (free_growth_caches); Do not free removal hook.
24943         (dump_inline_edge_summary): New function.
24944         (dump_inline_summary): Use it.
24945         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
24946         (inline_update_callee_summaries): New function.
24947         (inline_merge_summary): Use it.
24948         (do_estimate_edge_time, do_estimate_edge_growth): Update.
24949         (read_inline_edge_summary): New function.
24950         (inline_read_section): Use it.
24951         (write_inline_edge_summary): New function.
24952         (inline_write_summary): Use it.
24953         (inline_free_summary): Free edge new holders.
24954         * tree-inline.c (copy_bb): Update.
24955
24956 2011-04-26  Jason Merrill  <jason@redhat.com>
24957
24958         * tree-eh.c (lower_try_finally_switch): Create the label along with
24959         the CASE_LABEL_EXPR.
24960
24961 2011-04-26  David S. Miller  <davem@davemloft.net>
24962             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24963
24964         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
24965         * configure: Regenerate.
24966
24967 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
24968
24969         PR target/48258
24970         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
24971         reduction.
24972         (VEC_reduc): New code iterator and splitters for vector reduction.
24973         (VEC_reduc_name): Ditto.
24974         (VEC_reduc_rtx): Ditto.
24975         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
24976         (reduc_<VEC_reduc_name>_v4sf): Ditto.
24977
24978         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
24979         support for extracting SF on VSX.
24980
24981         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
24982         generating xscvspdp.
24983         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
24984         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
24985         double add, minimum, maximum vector reduction.
24986         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
24987         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
24988         optimize double vector reduction.
24989         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
24990
24991 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
24992
24993         * config/fr30/fr30.h (inhibit_libc): Don't define.
24994         * config/m32r/m32r-protos.h: Correct comment.
24995         * config/v850/v850.h (GHS_default_section_names,
24996         GHS_current_section_names): Use tree, not union tree_node *.
24997
24998 2011-04-26  Xinliang David Li  <davidxl@google.com>
24999
25000         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
25001         * c-family/c-opts.c (c_common_handle_option): Set
25002         warn_maybe_uninitialized.
25003         * opts.c (common_handle_option): Ditto.
25004         * common.opt:  New option.
25005         * tree-ssa.c (warn_uninit): Add one more parameter.
25006         (warn_uninitialized_var): Pass warning code.
25007         * tree-flow.h: Interface change.
25008
25009 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25010
25011         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
25012         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
25013         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
25014
25015 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25016
25017         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
25018         * config/mips/mips.opt (mmips-tfile): Remove.
25019
25020         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
25021         mips-tdump reference to ...
25022         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
25023         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
25024         reference by Tru64 UNIX.
25025
25026 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
25027
25028         PR debug/48768
25029         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
25030         is error_mark_node, set value to NULL.
25031
25032         PR tree-optimization/48734
25033         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
25034         if return value from maybe_fold_*_comparsions isn't something
25035         the code is prepared to handle.
25036
25037 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
25038
25039         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
25040         mode check.
25041         (ext_QIreg_nomode_operands): Remove.
25042         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
25043         (*andsi_1): Ditto.
25044         (*andhi_1): Ditto.
25045
25046 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
25047
25048         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
25049
25050 2011-04-26  Richard Guenther  <rguenther@suse.de>
25051
25052         * c-typeck.c (build_unary_op): Do not expand array-refs via
25053         pointer arithmetic.  Only adjust qualifiers for function types.
25054
25055 2011-04-26  Richard Guenther  <rguenther@suse.de>
25056
25057         PR middle-end/48694
25058         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
25059         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
25060         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
25061         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
25062
25063 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
25064
25065         * doc/extend.texi: Document __underlying_type.
25066
25067 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
25068
25069         * config/rs6000/titan.md (automata_option "progress"): Remove.
25070
25071 2011-04-25  Jeff Law  <law@redhat.com>
25072
25073         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
25074
25075 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
25076
25077         * system.h (ENUM_BITFIELD): Remove.
25078
25079 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
25080             Eric Botcazou  <ebotcazou@adacore.com>
25081
25082         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
25083         for STORE_FLAG_VALUE==-1 case.
25084
25085 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
25086
25087         PR target/43804
25088         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
25089         LEGITIMATE_PIC_OPERAND_P.
25090
25091 2011-04-24  Jan Hubicka  <jh@suse.cz>
25092
25093         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
25094         WPA hack.
25095         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
25096         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
25097         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
25098         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
25099         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
25100         Sanity check predicate length.
25101         (remap_predicate): Likewise; sanity check jump functions.
25102         (inline_read_section, inline_write_summary): Sanity check
25103         predicate length.
25104
25105 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
25106
25107         PR other/48748
25108         * doc/extend.texi (Type Traits): Document __is_standard_layout,
25109         __is_literal_type, and __is_trivial; update throughout about
25110         possibly cv-qualified void types.
25111
25112 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
25113
25114         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
25115         testsuite and make it version agnostic.
25116
25117 2011-04-22  Jan Hubicka  <jh@suse.cz>
25118
25119         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
25120
25121 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
25122
25123         PR c/48685
25124         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
25125         to VOID_TYPE even around MODIFY_EXPR.
25126
25127 2011-04-22  Mike Stump  <mikestump@comcast.net>
25128
25129         * gensupport.c (read_md_rtx): Fix typo in comment.
25130         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
25131         comment.
25132
25133 2011-04-22  Jan Hubicka  <jh@suse.cz>
25134
25135         * gengtype.c (open_base_files): Add ipa-inline.h include.
25136         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
25137         ipa-prop.c; update all uses.
25138         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
25139         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
25140         merge summary of inlined function into former caller.
25141         * ipa-inline.c (max_benefit): Remove.
25142         (edge_badness): Compensate for removal of benefits.
25143         (update_caller_keys): Use
25144         reset_node_growth_cache/reset_edge_growth_cache.
25145         (update_callee_keys): Likewise.
25146         (update_all_callee_keys): Likewise.
25147         (inline_small_functions): Do not collect max_benefit; do not reset
25148         estimated_growth; call free_growth_caches and initialize_growth_caches.
25149         * ipa-inline.h (struct condition, type clause_t, struct predicate,
25150         struct size_time_entry): New structures.
25151         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
25152         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
25153         and estimated_growth.
25154         (edge_growth_cache_entry): New structure.
25155         (node_growth_cache, edge_growth_cache): New global vars.
25156         (estimate_growth): Turn into inline.
25157         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
25158         initialize_growth_caches, free_growth_caches): Declare.
25159         (estimate_edge_growth): Rewrite.
25160         (estimate_edge_time): Implement as inline cache lookup.
25161         (reset_node_growth_cache, reset_edge_growth_cache): New inline
25162         functions.
25163         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
25164         (NUM_CONDITIONS): New constant.
25165         (predicate_conditions): New enum.
25166         (IS_NOT_CONSTANT): New constant.
25167         (edge_removal_hook_holder): New var.
25168         (node_growth_cache, edge_growth_cache): New global vars.
25169         (true_predicate, single_cond_predicate, false_predicate,
25170         not_inlined_predicate, add_condition, add_clause, and_predicates,
25171         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
25172         dump_clause, dump_predicate, account_size_time,
25173         evaulate_conditions_for_edge): New functions.
25174         (inline_summary_alloc): Move to heap.
25175         (inline_node_removal_hook): Clear condition and entry vectors.
25176         (inline_edge_removal_hook): New function.
25177         (initialize_growth_caches, free_growth_caches): New function.
25178         (dump_inline_summary): Update.
25179         (edge_execution_predicate): New function.
25180         (will_be_nonconstant_predicate): New function.
25181         (estimate_function_body_sizes): Compute BB and constantness predicates.
25182         (compute_inline_parameters): Do not clear estimated_growth.
25183         (estimate_edge_size_and_time): New function.
25184         (estimate_calls_size_and_time): New function.
25185         (estimate_callee_size_and_time): New function.
25186         (remap_predicate): New function.
25187         (inline_merge_summary): New function.
25188         (do_estimate_edge_time): New function based on...
25189         (estimate_edge_time): ... this one.
25190         (do_estimate_edge_growth): New function.
25191         (do_estimate_growth): New function based on....
25192         (estimate_growth): ... this one.
25193         (inline_analyze_function): Analyze after deciding on jump functions.
25194         (inline_read_section): New function.
25195         (inline_read_summary): Use it.
25196         (inline_write_summary): Write all the new data.
25197         * ipa-prop.c (ipa_get_param_decl_index): Export.
25198         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
25199         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
25200         Declare.
25201         (ipa_get_lattice): Move here from ipa-cp.c
25202         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
25203         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
25204         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
25205         cgraph_edge_inlinable_p): Remove.
25206         * cgraphunit.c: Include ipainline.h
25207         (cgraph_process_new_functions): Update call of
25208         compute_inline_parameters.
25209
25210 2011-04-22  Richard Guenther  <rguenther@suse.de>
25211
25212         * tree.c (build_int_cst): Properly create canonicalized integer
25213         constants.
25214         (build_int_cst_type): Remove scary comments.
25215
25216 2011-04-22  Xinliang David Li  <davidxl@google.com>
25217
25218         * toplev.c (process_options): Enable -Werror=coverage-mismatch
25219         by default when -Wno-error is not specified.
25220         * opts-global.c (decode_options): Remove call to
25221         control_warning_options.
25222
25223 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
25224
25225         PR tree-optimization/48717
25226         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
25227         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
25228
25229 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
25230
25231         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
25232         definition where used.
25233
25234 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
25235
25236         PR c/48716
25237         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
25238         TREE_STATIC variables declared inside of some OpenMP construct.
25239
25240 2011-04-22  Martin Jambor  <mjambor@suse.cz>
25241
25242         PR middle-end/48585
25243         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
25244
25245 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
25246
25247         PR c/36750
25248         * c-typeck.c (pop_init_level): Do not warn about initializing
25249         with ` = {0}'.
25250
25251 2011-04-22  Alan Modra  <amodra@gmail.com>
25252
25253         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
25254         when returning call_cookie.
25255         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
25256         pointers, to functions with no more vector args than the current
25257         function, and some non-local calls for ABI_V4.
25258         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
25259         sibcall_nonlocal_aix64): Combine to ..
25260         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
25261         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
25262         (sibcall_value_nonlocal_aix<mode>): ..likewise.
25263         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
25264         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
25265         operand.
25266         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
25267         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
25268         sibcall_value_symbolic_64): Delete.
25269
25270 2011-04-21  Xinliang David Li  <davidxl@google.com>
25271
25272         * cgraph.h: Remove pid.
25273         * cgraph.c: Remove pid.
25274         * value-prof.c (init_node_map): New function.
25275         (del_node_map): New function.
25276         (find_func_by_funcdef_no): New function.
25277         (gimple_ic_transform): Call new function.
25278         * cgraphunit.c (cgraph_finalize_function): Remove pid.
25279         * function.c (get_last_funcdef_no): New function.
25280         * function.h (get_last_funcdef_no): New function.
25281         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
25282         to libgcov function.
25283         (tree-profiling): Call node map init and delete function.
25284
25285 2011-04-21  Ian Lance Taylor  <iant@google.com>
25286
25287         * godump.c (go_format_type): Use exported Go name for anonymous
25288         field name.
25289
25290 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
25291
25292         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
25293         Call builtin_function_type_list instead of builtin_function_type.
25294         (UNARY, BINARY, TRINARY, QUAD): Likewise.
25295
25296 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
25297
25298         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
25299         build_function_type_list instead of build_function_type.
25300         Delete variable `endlink'.
25301
25302 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
25303
25304         * config/s390/s390.c (s390_init_builtins): Call
25305         build_function_type_list instead of build_function_type.
25306
25307 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
25308
25309         * config/ia64/ia64.c (ia64_init_builtins): Call
25310         build_function_type_list instead of builtin_function_type.
25311
25312 2011-04-21  Easwaran Raman  <eraman@google.com>
25313
25314         * cfgexpand.c (stack_var): Remove OFFSET...
25315         (add_stack_var): ...and its reference here...
25316         (expand_stack_vars): ...and here.
25317         (stack_var_cmp): Sort by descending order of size.
25318         (partition_stack_vars): Change heuristic.
25319         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
25320         (dump_stack_var_partition): Add newline after each partition.
25321
25322 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
25323             Jeff Law  <law@redhat.com>
25324
25325         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
25326         * gengtype.c (matching_file_name_substitute): Likewise.
25327
25328 2011-04-21  Richard Guenther  <rguenther@suse.de>
25329
25330         PR lto/48703
25331         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
25332
25333 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
25334
25335         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
25336
25337 2011-04-21  Richard Guenther  <rguenther@suse.de>
25338
25339         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
25340         file name.
25341
25342 2011-04-21  Richard Guenther  <rguenther@suse.de>
25343
25344         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
25345         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
25346         Use DECL_P, not SSA_VAR_P.
25347         (ptr_derefs_may_alias_p): Likewise.
25348         (ptr_deref_may_alias_ref_p_1): Likewise.
25349         (decl_refs_may_alias_p): Likewise.
25350         (refs_may_alias_p_1): Likewise.
25351         (ref_maybe_used_by_call_p_1): Likewise.
25352         (call_may_clobber_ref_p_1): Likewise.
25353         (indirect_ref_may_alias_decl_p): Assume indirect refrences
25354         are either MEM_REF or TARGET_MEM_REF.
25355         (indirect_refs_may_alias_p): Likewise.
25356         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
25357         for MEM_EXPR of indirect calls.
25358
25359 2011-04-21  Tristan Gingold  <gingold@adacore.com>
25360
25361         * vmsdbgout.c (write_srccorr): Compute file length from the string.
25362         (dst_file_info_struct): Remove flen field.
25363         (lookup_filename): Remove code that set flen field.
25364
25365 2011-04-21  Tristan Gingold  <gingold@adacore.com>
25366
25367         * config/ia64/ia64.c (ia64_start_function): Add a guard.
25368
25369 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
25370
25371         PR target/48708
25372         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
25373         vec_extract and vec_concat for non-SSE4_1 targets.
25374
25375 2011-04-21  Richard Guenther  <rguenther@suse.de>
25376
25377         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
25378         return statements.
25379
25380 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
25381
25382         * config/i386/cygming.h (union tree_node, TREE): Don't define or
25383         undefine.
25384         (FILE): Don't undefine.
25385
25386 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
25387
25388         * config/alpha/alpha.c (struct machine_function): Use rtx, not
25389         struct rtx_def *.
25390         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
25391         struct rtx_def *.
25392         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
25393         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
25394         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
25395         rtx_def *.
25396         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
25397         definitions where used.
25398         * config/microblaze/microblaze.h (struct microblaze_args): Use
25399         rtx, not struct rtx_def *.
25400         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
25401         rtx_def *.
25402         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
25403         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
25404         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
25405         not struct rtx_def *.
25406         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
25407         struct rtx_def *.
25408         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
25409         rtx_def *.
25410         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
25411
25412 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
25413
25414         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
25415         operand_equal_p to compare DR_BASE_ADDRESSes.
25416         (vect_check_interleaving): Likewise.
25417
25418 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
25419
25420         PR target/46329
25421         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
25422         for all Neon struct constants.
25423
25424 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
25425
25426         * target.def (legitimate_constant_p): New hook.
25427         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
25428         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
25429         * doc/tm.texi: Regenerate.
25430         * hooks.h (hook_bool_mode_rtx_true): Declare.
25431         * hooks.c (hook_bool_mode_rtx_true): Define.
25432         * system.h (LEGITIMATE_CONSTANT_P): Poison.
25433         * calls.c (precompute_register_parameters): Replace uses of
25434         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
25435         (emit_library_call_value_1): Likewise.
25436         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
25437         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
25438         * ira-costs.c (scan_one_insn): Likewise.
25439         * recog.c (general_operand, immediate_operand): Likewise.
25440         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
25441         * reload1.c (init_eliminable_invariants): Likewise.
25442
25443         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
25444         mode argument.
25445         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
25446         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
25447         argument.
25448         (TARGET_LEGITIMATE_CONSTANT_P): Define.
25449         * config/alpha/predicates.md (input_operand): Update call to
25450         alpha_legitimate_constant_p.
25451
25452         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
25453         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
25454         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
25455         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25456         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
25457         (arm_legitimate_constant_p): New functions.
25458         (arm_cannot_force_const_mem): Make static.
25459
25460         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
25461
25462         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
25463         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
25464         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
25465         instead of bfin_legitimate_constant_p.
25466         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
25467         (TARGET_LEGITIMATE_CONSTANT_P): Define.
25468
25469         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
25470
25471         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
25472
25473         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
25474         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
25475         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25476         (frv_legitimate_constant_p): Make static.  Add a mode argument.
25477
25478         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
25479         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
25480         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
25481
25482         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
25483         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
25484         * config/i386/i386.c (legitimate_constant_p): Rename to...
25485         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
25486         argument.
25487         (ix86_cannot_force_const_mem): Update accordingly.
25488         (ix86_legitimate_address_p): Likewise.
25489         (TARGET_LEGITIMATE_CONSTANT_P): Define.
25490         * config/i386/i386.md: Update commentary.
25491
25492         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
25493         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
25494         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25495         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
25496
25497         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
25498
25499         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
25500         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
25501         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25502         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
25503
25504         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
25505         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
25506         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
25507
25508         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
25509         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25510         (m32r_legitimate_constant_p): New function.
25511
25512         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
25513         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
25514         LEGITIMATE_CONSTANT_P.
25515         (LEGITIMATE_CONSTANT_P): Delete.
25516         * config/m68k/m68k.c (m68k_expand_prologue): Call
25517         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
25518         (m68k_legitimate_constant_p): New function.
25519         * config/m68k/m68k.md: Update comments.
25520
25521         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
25522         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25523         (mcore_legitimate_constant_p): New function.
25524
25525         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
25526         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
25527         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
25528         Add a mode argument.
25529         (mep_legitimate_address): Update accordingly.
25530         (TARGET_LEGITIMATE_CONSTANT_P): Define.
25531
25532         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
25533         Delete.
25534         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
25535         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
25536         static.  Check OP's mode for VOIDmode.
25537         (microblaze_legitimate_constant_p): New function.
25538         (TARGET_LEGITIMATE_CONSTANT_P): Define.
25539
25540         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
25541         * config/mips/mips.c (mips_legitimate_constant_p): New function.
25542         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
25543         (TARGET_LEGITIMATE_CONSTANT_P): Define.
25544         * config/mips/predicates.md: Update comments.
25545
25546         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
25547         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
25548         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25549         (mmix_legitimate_constant_p): Make static, return a bool, and take
25550         a mode argument.
25551         (mmix_print_operand_address): Update accordingly.
25552
25553         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
25554         Delete.
25555         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
25556         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
25557         static.  Add a mode argument.
25558         (TARGET_LEGITIMATE_CONSTANT_P): Define.
25559
25560         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
25561
25562         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
25563         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25564         (pa_legitimate_constant_p): New function.
25565
25566         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
25567
25568         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
25569         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25570         (pdp11_legitimate_constant_p): New function.
25571
25572         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
25573         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25574         (rs6000_legitimate_constant_p): New function.
25575
25576         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
25577         (rx_legitimate_constant_p): ...this.
25578         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
25579         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
25580         (rx_legitimate_constant_p): ...this.
25581         (TARGET_LEGITIMATE_CONSTANT_P): Define.
25582         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
25583
25584         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
25585         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
25586         * config/s390/s390.c (legitimate_constant_p): Rename to...
25587         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
25588         and add a mode argument.
25589         (TARGET_LEGITIMATE_CONSTANT_P): Define.
25590
25591         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
25592
25593         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
25594         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25595         (sh_legitimate_constant_p): New function.
25596
25597         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
25598         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
25599         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25600         (legitimate_constant_p): Rename to...
25601         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
25602         argument.
25603         (constant_address_p): Update accordingly.
25604
25605         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
25606         argument and return a bool.
25607         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
25608         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25609         (spu_legitimate_constant_p): Add a mode argument and return a bool.
25610         (spu_rtx_costs): Update accordingly.
25611         * config/spu/predicates.md (vec_imm_operand): Likewise.
25612
25613         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
25614
25615         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
25616         * config/v850/v850.c (v850_legitimate_constant_p): New function.
25617         (TARGET_LEGITIMATE_CONSTANT_P): Define.
25618
25619         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
25620         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
25621         * config/vax/vax.c (legitimate_constant_p): Likewise.
25622
25623         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
25624         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25625         (xtensa_legitimate_constant_p): New function.
25626
25627 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
25628
25629         * target.def (cannot_force_const_mem): Add a mode argument.
25630         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
25631         * doc/tm.texi: Regenerate.
25632         * hooks.h (hook_bool_mode_rtx_false): Declare.
25633         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
25634         (hook_bool_mode_const_rtx_true): Likewise.
25635         (hook_bool_mode_rtx_false): New function.
25636         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
25637         to be non-VOID.  Update call to cannot_force_const_mem.
25638         (find_reloads): Update accordingly.
25639         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
25640         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
25641         argument.
25642         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
25643         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
25644         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
25645         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
25646         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
25647         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
25648         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
25649         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
25650         (m68k_cannot_force_const_mem): ...this new function.
25651         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
25652         argument.
25653         (mips_const_insns, mips_legitimize_const_move): Update calls.
25654         (mips_secondary_reload_class): Likewise.
25655         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
25656         (pa_cannot_force_const_mem): ...this new function.
25657         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
25658         (rs6000_cannot_force_const_mem): ...this new function.
25659         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
25660         argument.
25661         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
25662         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
25663         to...
25664         (xtensa_cannot_force_const_mem): ...this new function.
25665
25666 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
25667
25668         * config/mips/mips.c (mips16_build_function_stub): Call
25669         build_function_type_list instead of build_function_type.
25670         (mips16_build_call_stub): Likewise.
25671
25672 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
25673
25674         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
25675         instead of build_function_type.
25676
25677 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
25678
25679         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
25680         instead of build_function_type.
25681
25682 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
25683
25684         PR target/48678
25685         * config/i386/i386.md (insv): Change operand 0 constraint to
25686         "register_operand".  Change operand 1 and 2 constraint to
25687         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
25688         * config/i386/sse.md (sse4_1_pinsrb): Export.
25689         (sse2_pinsrw): Ditto.
25690         (sse4_1_pinsrd): Ditto.
25691         (sse4_1_pinsrq): Ditto.
25692         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
25693         * config/i386/i386.c (ix86_expand_pinsr): New.
25694
25695 2011-04-20  Easwaran Raman  <eraman@google.com>
25696
25697         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
25698         containing union type only with -fstrict-aliasing.
25699
25700 2011-04-20  Jim Meyering  <meyering@redhat.com>
25701
25702         Remove useless if-before-free tests.
25703         * calls.c (expand_call, save_area): Likewise.
25704         * cfgcleanup.c (try_forward_edges): Likewise.
25705         * collect2.c (collect_execute): Likewise.
25706         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
25707         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
25708         * coverage.c (coverage_checksum_string): Likewise.
25709         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
25710         * cselib.c (cselib_init): Likewise.
25711         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
25712         (df_set_clean_cfg): Likewise.
25713         * function.c (free_after_compilation): Likewise.
25714         * gcc.c (do_spec_1, main): Likewise.
25715         * gcov.c (create_file_names): Likewise.
25716         * gensupport.c (identify_predicable_attribute): Likewise.
25717         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
25718         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
25719         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
25720         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
25721         * ipa-pure-const.c (local_pure_const): Likewise.
25722         * ipa-reference.c (propagate): Likewise.
25723         * ira-costs.c (free_ira_costs): Likewise.
25724         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
25725         * matrix-reorg.c (mat_free): Likewise.
25726         * prefix.c (get_key_value): Likewise.
25727         * profile.c (compute_value_histograms): Likewise.
25728         * reload1.c (free_reg_equiv): Likewise.
25729         * sched-deps.c (free_deps): Likewise.
25730         * sel-sched-ir.c (fence_clear): Likewise.
25731         * sese.c (set_rename, if_region_set_false_region): Likewise.
25732         * tree-data-ref.c (free_rdg): Likewise.
25733         * tree-eh.c (lower_try_finally): Likewise.
25734         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
25735         * tree-ssa-live.c (delete_var_map): Likewise.
25736         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
25737         * tree-ssa-pre.c (phi_trans_add): Likewise.
25738
25739 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
25740
25741         PR tree-optimization/48611
25742         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
25743         beyond ERT_MUST_NOT_THROW region.
25744
25745 2011-04-20  Catherine Moore  <clm@codesourcery.com>
25746
25747         * config/mips/mips.opt (mfix-24k): New.
25748         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
25749         * config/mips/mips.md (length): Increase by 4 for stores if
25750         fixing 24K errata.
25751         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
25752         all noreorder if fixing 24K errata.
25753         * doc/invoke.texi: Document mfix-24k.
25754
25755 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
25756
25757         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
25758         quad-word modes, reduce to 9-bit index range when above 1016 limit.
25759
25760 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
25761
25762         * config/arm/arm.c (arm_gen_constant): Move movw support ....
25763         (const_ok_for_op): ... to here.
25764
25765 2011-04-20  Kai Tietz  <ktietz@redhat.com>
25766
25767         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
25768         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
25769
25770 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
25771
25772         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
25773
25774 2011-04-20  Richard Guenther  <rguenther@suse.de>
25775
25776         PR tree-optimization/47892
25777         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
25778         are if-convertible.
25779
25780 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
25781
25782         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
25783
25784 2011-04-20  Tristan Gingold  <gingold@adacore.com>
25785
25786         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
25787
25788 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
25789
25790         PR target/18145
25791
25792         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
25793         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
25794         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
25795         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
25796         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
25797
25798         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
25799         New prototype.
25800
25801         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
25802         (avr_asm_named_section, avr_asm_output_aligned_common,
25803         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
25804         New functions to update...
25805         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
25806         (avr_asm_init_sections): Overwrite section callbacks for
25807         data_section, bss_section.
25808         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
25809         from here to...
25810         (avr_file_end): ...here.
25811
25812 2011-04-20  Richard Guenther  <rguenther@suse.de>
25813
25814         PR middle-end/48695
25815         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
25816         objects and types here.  Adjust for their offset before comparing.
25817
25818 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
25819
25820         * tree-vect-stmts.c (vectorizable_store): Only chain one related
25821         statement per copy.
25822
25823 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
25824
25825         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
25826         (GIMPLE_H): Include $(INTERNAL_FN_H).
25827         (OBJS-common): Add internal-fn.o.
25828         (internal-fn.o): New rule.
25829         * internal-fn.def: New file.
25830         * internal-fn.h: Likewise.
25831         * internal-fn.c: Likewise.
25832         * gimple.h: Include internal-fn.h.
25833         (GF_CALL_INTERNAL): New gf_mask.
25834         (gimple_statement_call): Put fntype into a union with a new
25835         internal_fn field.
25836         (gimple_build_call_internal): Declare.
25837         (gimple_build_call_internal_vec): Likewise.
25838         (gimple_call_same_target_p): Likewise.
25839         (gimple_call_internal_p): New function.
25840         (gimple_call_internal_fn): Likewise.
25841         (gimple_call_fntype): Return null for internal calls.
25842         (gimple_call_set_fntype): Assert that the function is not internal.
25843         (gimple_call_set_fn): Likewise.
25844         (gimple_call_set_fndecl): Likewise.
25845         (gimple_call_set_internal_fn): New function.
25846         (gimple_call_addr_fndecl): Handle null functions.
25847         (gimple_call_return_type): Likewise null types.
25848         * gimple.c (gimple_build_call_internal_1): New function.
25849         (gimple_build_call_internal): Likewise.
25850         (gimple_build_call_internal_vec): Likewise.
25851         (gimple_call_same_target_p): Likewise.
25852         (gimple_call_flags): Handle calls to internal functions.
25853         (gimple_call_fnspec): New function.
25854         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
25855         (gimple_has_side_effects): Handle null functions.
25856         (gimple_rhs_has_side_effects): Likewise.
25857         (gimple_call_copy_skip_args): Handle calls to internal functions.
25858         * cfgexpand.c (expand_call_stmt): Likewise.
25859         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
25860         * gimple-fold.c (gimple_fold_call): Handle null functions.
25861         (gimple_fold_stmt_to_constant_1): Don't fold
25862         calls to internal functions.
25863         * gimple-low.c (gimple_check_call_args): Handle calls to internal
25864         functions.
25865         * gimple-pretty-print.c (dump_gimple_call): Likewise.
25866         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
25867         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
25868         (do_warn_unused_result): Likewise.
25869         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
25870         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
25871         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
25872         the target of a call.
25873         (initialize_hash_element): Update accordingly.
25874         (hashable_expr_equal_p): Use gimple_call_same_target_p.
25875         (iterative_hash_hashable_expr): Handle calls to internal functions.
25876         (print_expr_hash_elt): Likewise.
25877         * tree-ssa-pre.c (can_value_number_call): Likewise.
25878         (eliminate): Handle null functions.
25879         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
25880         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
25881         (find_func_aliases): Likewise.
25882         * value-prof.c (gimple_ic_transform): Likewise.
25883         (gimple_indirect_call_to_profile): Likewise.
25884         * lto-streamer-in.c (input_gimple_stmt): Likewise.
25885         * lto-streamer-out.c (output_gimple_stmt): Likewise.
25886
25887 2011-04-19  Jan Hubicka  <jh@suse.cz>
25888
25889         * ipa-inline-transform.c (save_inline_function_body): Add comments.
25890         * ipa-inline.c (inline_small_functions): Compute summaries first,
25891         populate heap later.
25892
25893 2011-04-19  Jan Hubicka  <jh@suse.cz>
25894
25895         * cgraph.h (save_inline_function_body): Remove.
25896         * ipa-inline-transform.c: New file, broke out of...
25897         * ipa-inline.c: ... this one; Update toplevel comment.
25898         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
25899         make global.
25900         (update_noncloned_frequencies): Move to ipa-inline-transform.c
25901         (cgraph_mark_inline_edge): Rename to inline_call; move to
25902         ipa-inline-transform.c.
25903         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
25904         move to ipa-inline-transform.c
25905         (recursive_inlining, inline_small_functions, flatten_function,
25906         ipa_inline, inline_always_inline_functions,
25907         early_inline_small_functions): Update.
25908         (inline_transform): Move to ipa-inline-transform.c.
25909         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
25910         Declare.
25911         * Makefile.in (ipa-inline-transform.o): New file.
25912         * cgraphunit.c (save_inline_function_body): Move to
25913         ipa-inline-transform.c
25914
25915 2011-04-19  DJ Delorie  <dj@redhat.com>
25916
25917         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
25918         registers if we already know there aren't any.
25919         (m32c_emit_epilogue): Don't emit a barrier here.
25920         (m32c_emit_eh_epilogue): Likewise.
25921         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
25922         operands at expand time.
25923         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
25924         int" wchar type.
25925         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
25926         duplicates.  Provide aliases instead.
25927         * config/m32c/prologue.md (eh_return): Emit a barrier here.
25928         (eh_epilogue): Add a "(return)" here as a hint to other parts of
25929         the compiler.
25930
25931 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
25932
25933         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
25934         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
25935         (general_or_i64_p, sparc_register_move_cost): New function.
25936
25937 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25938
25939         * doc/install.texi (Configuration, --enable-threads): Remove mach.
25940         Add lynx, mipssde.  Sort table.
25941
25942 2011-04-19  Xinliang David Li  <davidxl@google.com>
25943
25944         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
25945         not negative.
25946
25947 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
25948
25949         PR target/48678
25950         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
25951         is a SUBREG with non-MODE_INT mode inside of it.
25952
25953 2011-04-19  Martin Jambor  <mjambor@suse.cz>
25954
25955         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
25956         also according to actual contants.
25957         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
25958         (gimple_fold_call): Use it.
25959         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
25960
25961 2011-04-19  Martin Jambor  <mjambor@suse.cz>
25962
25963         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
25964         non-pointer assignments.
25965
25966 2011-04-19  Martin Jambor  <mjambor@suse.cz>
25967
25968         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
25969         account anc_offset and otr_type from the indirect edge info.
25970         * ipa-prop.c (get_ancestor_addr_info): New function.
25971         (compute_complex_ancestor_jump_func): Assignment analysis moved to
25972         get_ancestor_addr_info, call it.
25973         (ipa_note_param_call): Do not initialize information about polymorphic
25974         calls, return the indirect call graph edge.  Remove the last
25975         parameter, adjust all callers.
25976         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
25977         parameters.  Initialize polymorphic information in the indirect edge.
25978
25979 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
25980
25981         PR lto/48148
25982         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
25983         the types if they have different enumeration identifiers.
25984
25985 2011-04-19  Jan Hubicka  <jh@suse.cz>
25986
25987         * cgraph.h (cgraph_optimize_for_size_p): Declare.
25988         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
25989         * predict.c (cgraph_optimize_for_size_p): Break out from ...
25990         (optimize_function_for_size_p) ... here.
25991
25992 2011-04-19  Richard Guenther  <rguenther@suse.de>
25993
25994         PR lto/48207
25995         * tree.c (free_lang_data): Do not reset the decl-assembler-name
25996         langhook.
25997
25998 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
25999
26000         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
26001         if DECL_NO_INLINE_WARNING_P is set on the function.
26002
26003 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
26004
26005         PR fortran/47976
26006         * reload1.c (inc_for_reload): Return void. All callers changed.
26007         (emit_input_reload_insns): Don't try to delete previous output
26008         reloads to a register, or record spill_reg_store for autoincs.
26009
26010 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
26011
26012         * gengtype.h: Updated copyright year.
26013         (struct input_file_st): Add inpisplugin field.
26014         (type_fileloc): New function.
26015         * gengtype.c
26016         (write_typed_struct_alloc_def): Add gcc_assert.
26017         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
26018         (write_typed_alloc_defns): Don't output for plugin files.
26019         (input_file_by_name): Clear inpisplugin field.
26020         (main): Set inpisplugin field for plugin files.
26021
26022 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
26023
26024         * gengtype-state.c (string_eq): New.
26025         (read_state): Use string_eq instead of strcmp when creating the
26026         state_ident_tab.
26027
26028 2011-04-19  Wei Guozhi  <carrot@google.com>
26029
26030         PR target/47855
26031         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
26032         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
26033         linkage.
26034         * config/arm/constraints.md (Uu): New constraint.
26035         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
26036
26037 2011-04-19  Tristan Gingold  <gingold@adacore.com>
26038
26039         * config.gcc (-*-*-*vms): Added.
26040         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
26041         definitions moved.
26042         * config/vms/vms-ld.c: New file.
26043         * config/vms/vms-ar.c: New file.
26044         * config/vms/t-vmsnative: New file.
26045
26046 2011-04-18  Xinliang David Li  <davidxl@google.com>
26047
26048         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
26049
26050 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
26051
26052         PR middle-end/48661
26053         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
26054         if TREE_TYPE (v) is non-NULL.
26055
26056         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
26057         gimple_get_virt_mehtod_for_binfo.
26058         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
26059         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
26060         callers.
26061         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
26062
26063 2011-04-18  Michael Matz  <matz@suse.de>
26064             Steve Ellcey  <sje@cup.hp.com>
26065
26066         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
26067         use its mode as source mode if it isn't VOIDmode.
26068
26069 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
26070
26071         * doc/passes.texi: Fill crossref nodes.
26072
26073 2011-04-18  Jim Meyering  <meyering@redhat.com>
26074
26075         Fix doubled-word typos in comments and strings
26076         * config/alpha/vms-unwind.h: s/for for/for/
26077         * config/arm/unwind-arm.h: Likewise.
26078         * config/microblaze/microblaze.c: Likewise.
26079         * config/sh/constraints.md: s/in in/in/
26080         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
26081
26082 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
26083
26084         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
26085         (AVX_FLOAT_MODE_P): Ditto.
26086         (AVX128_VEC_FLOAT_MODE_P): Ditto.
26087         (AVX256_VEC_FLOAT_MODE_P): Ditto.
26088         (AVX_VEC_FLOAT_MODE_P): Ditto.
26089         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
26090         (UNSPEC_MASKSTORE): Ditto.
26091         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
26092         Merge from <sse>_movmsk<ssemodesuffix> and
26093         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
26094         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
26095         iterator.
26096         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
26097         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
26098         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
26099
26100 2011-04-18  Jan Hubicka  <jh@suse.cz>
26101
26102         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
26103
26104         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
26105         (want_inline_function_called_once_p): Break out the logic from
26106         ipa_inline.
26107         (edge_badness): Ensure that profile is not misupdated.
26108         (lookup_recursive_calls): Prioritize by call frequencies.
26109         (inline_small_functions): Move program size estimates here;
26110         actually process whole queue even when unit growth has been
26111         met. (to properly compute inline_failed reasons and for the
26112         case unit size decrease.) Revisit comments on recursive inlining.
26113         (ipa_inline): Remove unit summary code; first inline hot calls
26114         of functions called once, cold calls next.
26115         (order, nnodes): Remove unused variables.
26116         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
26117         (GTFILES): Remove ipa-inline.c
26118         * sel-sched.c (fill_insns): Silence uninitialized var warning.
26119
26120 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
26121
26122         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
26123
26124 2011-04-18  Jie Zhang  <jie@codesourcery.com>
26125             Richard Earnshaw  <rearnsha@arm.com>
26126
26127         * arm.c (neon_builtin_type_bits): Remove.
26128         (typedef enum neon_builtin_mode): New.
26129         (T_MAX): Don't define.
26130         (typedef enum neon_builtin_datum): Remove bits, codes[],
26131         num_vars and base_fcode.  Add mode, code and fcode.
26132         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
26133         VAR10): Change accordingly.
26134         (neon_builtin_data[]): Change accordingly
26135         (arm_init_neon_builtins): Change accordingly.
26136         (neon_builtin_compare): Remove.
26137         (locate_neon_builtin_icode): Remove.
26138         (arm_expand_neon_builtin): Change accordingly.
26139
26140         * arm.h (enum arm_builtins): Move to ...
26141         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
26142
26143         * arm.c (arm_builtin_decl): Declare.
26144         (TARGET_BUILTIN_DECL): Define.
26145         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
26146         (arm_builtin_decls[]): New.
26147         (arm_init_neon_builtins): Store builtin declarations in
26148         arm_builtin_decls[].
26149         (arm_init_tls_builtins): Likewise.
26150         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
26151         (arm_builtin_decl): New.
26152
26153 2011-04-18  Richard Guenther  <rguenther@suse.de>
26154
26155         * tree.c (upper_bound_in_type): Build properly canonicalized
26156         INTEGER_CSTs.
26157         (lower_bound_in_type): Likewise.
26158
26159 2011-04-18  Richard Guenther  <rguenther@suse.de>
26160
26161         * gimple.h (gimple_call_addr_fndecl): New function.
26162         (gimple_call_fndecl): Use it.
26163         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
26164         for direct calls.
26165         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
26166         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
26167
26168 2011-04-18  Richard Guenther  <rguenther@suse.de>
26169
26170         PR middle-end/48650
26171         * tree.c (build_string): STRING_CST is now derived from tree_typed.
26172
26173 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
26174
26175         PR lto/48492
26176         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
26177         DECL_IN_CONSTANT_POOL without RTL.
26178
26179 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
26180             Ira Rosen  <ira.rosen@linaro.org>
26181
26182         PR target/48252
26183         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
26184         to match neon_vzip/vuzp/vtrn_internal.
26185         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
26186         outputs explicitly dependent on both inputs.
26187         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
26188
26189 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
26190
26191         PR tree-optimization/48616
26192         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
26193         whether the shift is by scalar or vector based on whether all SLP
26194         scalar stmts have the same rhs.
26195
26196 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
26197
26198         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
26199         memory operands.
26200
26201 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
26202
26203         PR target/43700
26204         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
26205         registers.
26206
26207 2011-04-17  Jan Hubicka  <jh@suse.cz>
26208
26209         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
26210         * cgrpahunit.c (cgraph_finalize_function): Do not set
26211         finalized_by_frontend.
26212         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
26213         finalized_by_frontend.
26214
26215 2011-04-17  Jan Hubicka  <jh@suse.cz>
26216
26217         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
26218         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
26219         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
26220         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
26221         method.
26222         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
26223         gimple-fold.c
26224         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
26225
26226 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
26227
26228         PR lto/48538
26229         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
26230         is non-null before accessing it.
26231         (input_cgraph): Remove trailing spaces.
26232
26233 2011-04-17  Revital Eres  <revital.eres@linaro.org>
26234
26235         * params.def (sms-min-sc): New param flag.
26236         * modulo-sched.c (sms_schedule): Use it.
26237         * doc/invoke.texi (sms-min-sc): Document it.
26238
26239 2011-04-17  Jan Hubicka  <jh@suse.cz>
26240
26241         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
26242         present, also set gimple_call_set_cannot_inline.
26243         * ipa-inline.c: Update toplevel comment.
26244         (MAX_TIME): Remove.
26245         (cgraph_clone_inlined_nodes): Fix linebreaks.
26246         (cgraph_check_inline_limits): Restructure to ...
26247         (caller_growth_limits): ... this one; be more tolerant
26248         on growth in nested inline chains; add explanatory comment;
26249         fix stack accounting thinko introduced by previous patch.
26250         (cgraph_default_inline_p): Remove.
26251         (report_inline_failed_reason): New function.
26252         (can_inline_edge_p): New function.
26253         (can_early_inline_edge_p): New function.
26254         (leaf_node_p): Move upwards in file.
26255         (want_early_inline_function_p): New function.
26256         (want_inline_small_function_p): New function.
26257         (want_inline_self_recursive_call_p): New function.
26258         (cgraph_edge_badness): Rename to ...
26259         (edge_badness) ... this one; fix linebreaks.
26260         (update_edge_key): Update call of edge_baddness; add
26261         detailed dump about queue updates.
26262         (update_caller_keys): Use can_inline_edge_p and
26263         want_inline_small_function_p.
26264         (cgraph_decide_recursive_inlining): Rename to...
26265         (recursive_inlining): Use can_inline_edge_p and
26266         want_inline_self_recursive_call_p; simplify and remove no longer
26267         valid FIXME.
26268         (cgraph_set_inline_failed): Remove.
26269         (add_new_edges_to_heap): Use can_inline_edge_p and
26270         want_inline_small_function_p.
26271         (cgraph_decide_inlining_of_small_functions): Rename to ...
26272         (inline_small_functions): ... this one; cleanup; use
26273         can/want predicates; cleanup debug ouput; work edges till fibheap
26274         is exhausted and do not stop once unit growth is reached; remove
26275         later loop processing remaining edges.
26276         (cgraph_flatten): Rename to ...
26277         (flatten_function): ... this one; use can_inline_edge_p
26278         and can_early_inline_edge_p predicates.
26279         (cgraph_decide_inlining): Rename to ...
26280         (ipa_inline): ... this one; remove unreachable nodes before
26281         inlining functions called once; simplify the pass.
26282         (cgraph_perform_always_inlining): Rename to ...
26283         (inline_always_inline_functions): ... this one; use
26284         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
26285         (cgraph_decide_inlining_incrementally): Rename to ...
26286         (early_inline_small_functions): ... this one; simplify
26287         using new predicates; cleanup; make dumps prettier.
26288         (cgraph_early_inlining): Rename to ...
26289         (early_inliner): newer inline regular functions into always-inlines;
26290         fix updating of call stmt summaries.
26291         (pass_early_inline): Update for new names.
26292         (inline_transform): Fix formating.
26293         (gate_cgraph_decide_inlining): Rename to ...
26294         (pass_ipa_inline): ... this one.
26295         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
26296         * ipa-inline-analysis.c (dump_inline_summary): Update.
26297         (compute_inline_parameters): Do not compute disregard_inline_limits;
26298         look for mismatching arguments.
26299         (estimate_growth): Fix handlig of non-trivial self recursion.
26300         (inline_read_summary): Do not read info->disregard_inline_limits.
26301         (inline_write_summary): Do not write info->disregard_inline_limits.
26302         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
26303         and move all checks into can_inline_edge_p predicate; re-enable code
26304         comparing optimization levels.
26305         (expand_call_inline): Do not test inline_forbidden_into_p.
26306         * Makefile.in (ipa-inline.o): Update arguments.
26307
26308 2011-04-17  Revital Eres  <revital.eres@linaro.org>
26309
26310         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
26311
26312 2011-04-17  Revital Eres  <revital.eres@linaro.org>
26313
26314         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
26315
26316 2011-04-17  Michael Matz  <matz@suse.de>
26317
26318         PR tree-optimization/48622
26319         PR lto/48645
26320         * ipa-inline-analysis.c (inline_read_summary): Read size/time
26321         in same order as they're written.
26322
26323 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26324
26325         * config/pa/predicates.md: Reorganize and simplify predicates.
26326         Eliminate duplicate code checks.
26327         (arith_operand): Rename to arith14_operand
26328         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
26329         * config/pa/pa.md: Use renamed operands.
26330         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
26331         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
26332         arith11_operand, adddi3_operand, indexed_memory_operand,
26333         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
26334         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
26335         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
26336         move_dest_operand, move_src_operand, prefetch_cc_operand,
26337         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
26338         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
26339         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
26340         div_operand, int5_operand, movb_comparison_operator,
26341         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
26342         arith_double_operand, ireg_operand, lhs_lshift_operand,
26343         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
26344         integer_store_memory_operand): Likewise.
26345         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
26346         (integer_store_memory_operand, read_only_operand,
26347         function_label_operand, borx_reg_operand,
26348         non_hard_reg_operand): Likewise.
26349         (eq_neq_comparison_operator): Delete unused operator.
26350         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
26351         function_label_operand.
26352         (emit_move_sequence): Likewise.
26353
26354 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
26355
26356         * config/i386/sse.md (sseunpackmode): New mode attribute.
26357         (ssepackmode): Ditto.
26358         (vec_pack_trunc_<mode>): Macroize expander from
26359         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
26360         (vec_unpacks_lo_<mode>): Macroize expander from
26361         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
26362         (vec_unpacks_hi_<mode>): Macroize expander from
26363         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
26364         (vec_unpacku_lo_<mode>): Macroize expander from
26365         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
26366         (vec_unpacku_hi_<mode>): Macroize expander from
26367         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
26368         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
26369         ix86_expand_sse4_unpack.
26370         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
26371
26372 2011-04-16  Jan Hubicka  <jh@suse.cz>
26373
26374         * cgraphbuild.c: Include ipa-inline.h.
26375         (reset_inline_failed): Use initialize_inline_failed.
26376         * cgraph.c: Include ipa-inline.h.
26377         (cgraph_create_node_1): Do not initialize estimated_growth.
26378         (initialize_inline_failed): More to ipa-inline-analysis.c
26379         (dump_cgraph_node): Do not dump inline flags.
26380         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
26381         and disregard_inline_limits flags.
26382         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
26383         time, size, estimated_growth.
26384         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
26385         Update.
26386         * cgraphunit.c (cgraph_decide_is_function_needed): Use
26387         DECL_DISREGARD_INLINE_LIMITS.
26388         (cgraph_analyze_function): Do not initialize
26389         node->local.disregard_inline_limits.
26390         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
26391         inlinable, versionable and disregard_inline_limits.
26392         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
26393         cgraph_check_inline_limits, cgraph_default_inline_p,
26394         cgraph_edge_badness, update_caller_keys, update_callee_keys,
26395         add_new_edges_to_heap): Update.
26396         (cgraph_decide_inlining_of_small_function): Update; set
26397         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
26398         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
26399         cgraph_decide_inlining_incrementally): Update.
26400         * ipa-inline.h (inline_summary): Add inlinable, versionable,
26401         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
26402         time, size and estimated_growth parameters.
26403         (estimate_edge_growth): Update.
26404         (initialize_inline_failed): Declare.
26405         * ipa-split.c: Include ipa-inline.h
26406         (execute_split_functions): Update.
26407         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
26408         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
26409         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
26410         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
26411         estimated_growth to INT_MIN.
26412         (inline_node_duplication_hook): Likewise.
26413         (dump_inline_summary): Dump new fields.
26414         (compute_inline_parameters): Update.
26415         (estimate_edge_time, estimate_time_after_inlining,
26416         estimate_size_after_inlining, estimate_growth, inline_read_summary,
26417         inline_write_summary):
26418         (initialize_inline_failed): Move here from cgraph.c.
26419         * tree-sra.c: Include ipa-inline.h.
26420         (ipa_sra_preliminary_function_checks): Update.
26421         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
26422         ipa-inline.h.
26423
26424 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
26425
26426         * config/i386/sse.md (V16): New mode iterator.
26427         (VI1, VI8): Ditto.
26428         (AVXMODEQI, AVXMODEDI): Remove.
26429         (sse2, sse3): New mode attribute.
26430         (mov<mode>): Use V16 mode iterator.
26431         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
26432         (push<mode>1): Use V16 mode iterator.
26433         (movmisalign<mode>): Ditto.
26434         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
26435         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
26436         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
26437         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
26438         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
26439         avx_movdqu<avxmodesuffix>.
26440         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
26441         *avx_movdqu<avxmodesuffix>.
26442         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
26443         avx_lddqu<avxmodesuffix>.
26444         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
26445         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
26446         avx_movnt<AVXMODEDI:mode>.
26447         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
26448         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
26449
26450 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
26451
26452         PR target/48629
26453         * haifa-sched.c (prune_ready_list, schedule_block): Use
26454         sched_pressure_p rather than flag_sched_pressure.
26455
26456 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
26457
26458         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
26459         cgraph_get_node instead of cgraph_get_create_node.
26460
26461 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
26462
26463         * cfgexpand.c (expand_debug_expr): Use
26464         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
26465
26466 2011-04-15  Michael Matz  <matz@suse.de>
26467
26468         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
26469         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
26470         * function.c (gimplify_parameters): Ditto.
26471         * gimplify.c (gimplify_vla_decl): Ditto.
26472
26473         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
26474         (gimple_call_set_alloca_for_var): New inline function.
26475         (gimple_call_alloca_for_var_p): Ditto.
26476         * gimple.c (gimple_build_call_from_tree): Remember
26477         CALL_ALLOCA_FOR_VAR_P state.
26478         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
26479
26480         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
26481         calls if they were for VLA objects.
26482
26483 2011-04-15  Martin Jambor  <mjambor@suse.cz>
26484
26485         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
26486         of ADR_EXPRs.
26487
26488 2011-04-15  Martin Jambor  <mjambor@suse.cz>
26489
26490         PR middle-end/48601
26491         * tree-emutls.c (lower_emutls_function_body): Call
26492         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
26493         result is non-NULL.
26494
26495 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
26496
26497         * c-decl.c (detect_field_duplicates): Call
26498         objc_detect_field_duplicates instead of objc_get_interface_ivars.
26499
26500 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
26501
26502         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
26503         * gimple.c (gimple_asm_clobbers_memory_p): Define.
26504         * ipa-pure-const.c (check_stmt): Call it.
26505         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
26506
26507 2011-04-15  Richard Guenther  <rguenther@suse.de>
26508
26509         PR tree-optimization/48290
26510         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
26511         Properly decide inhibiting propagation based on the valueized
26512         operand.  Do loop-closed SSA form preserving here ...
26513         (init_copy_prop): ... not here.
26514
26515 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
26516
26517         PR target/48612
26518         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
26519         (*ieee_smax<mode>3): Likewise.
26520
26521 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26522
26523         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
26524         Replace match_operand with match_dup for the third operand in
26525         these expanders.
26526
26527 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
26528
26529         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
26530         to track processing of conditionals.  Update all callers.
26531         (try_combine, simplify_if_then_else): Update.
26532
26533 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
26534
26535         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
26536         -fsched-pressure.
26537
26538 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
26539
26540         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
26541         instead of match_operand for operand 3.
26542
26543 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
26544
26545         * recog.h (insn_operand_data): Add an "allows_mem" field.
26546         * genoutput.c (output_operand_data): Initialize it.
26547         * optabs.c (maybe_legitimize_operand_same_code): New function.
26548         (maybe_legitimize_operand): Use it when matching the original
26549         op->value.
26550
26551 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
26552
26553         * gimplify.c: Fix issues in comments throughout.
26554         (voidify_wrapper_expr): Fix long line.
26555         (build_stack_save_restore): Likewise.
26556         (gimplify_loop_expr): Likewise.
26557         (gimplify_compound_lval): Likewise.
26558         (gimplify_init_ctor_eval): Likewise.
26559         (gimplify_modify_expr_rhs): Likewise.
26560         (omp_notice_threadprivate_variable): Likewise.
26561
26562 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
26563
26564         * cfgexpand.c (expand_call_stmt): Convert the function type to the
26565         original one if this is not a builtin function.
26566
26567 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
26568
26569         PR target/48605
26570         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
26571         offset it as needed based on top 2 bits in operands[3], change
26572         MEM mode to SFmode and mask those 2 bits away from operands[3].
26573
26574 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
26575
26576         * c-parser.c (c_parser_objc_protocol_definition): Updated for
26577         change from objc_declare_protocols() to objc_declare_protocol().
26578
26579 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
26580
26581         * config/i386/sse.md (sse4_1): New mode attribute.
26582         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
26583         avx_blend<ssemodesuffix><avxmodesuffix> and
26584         sse4_1_blend<ssemodesuffix> using VF mode iterator.
26585         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
26586         avx_blendv<ssemodesuffix><avxmodesuffix> and
26587         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
26588         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
26589         avx_dp<ssemodesuffix><avxmodesuffix> and
26590         sse4_1_dp<ssemodesuffix> using VF mode iterator.
26591         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
26592         (sse4_1_packusdw): Merge with *avx_packusdw.
26593         (sse4_1_pblendvb): Merge with *avx_pblendvb.
26594         (sse4_1_pblendw): Merge with *avx_pblendw.
26595         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
26596         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
26597         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
26598         VF mode iterator.
26599         (sse4_1_round<ssescalarmodesuffix>): Merge with
26600         *avx_round<ssescalarmodesuffix>.
26601         (aesenc): Merge with *avx_aesenc.
26602         (aesenclast): Merge with *avx_aesenclast.
26603         (aesdec): Merge with *avx_aesdec.
26604         (aesdeclast): Merge with *avx_aesdeclast.
26605         (pclmulqdq): Merge with *pclmulqdq.
26606         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
26607         New predicate.
26608         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
26609
26610 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
26611
26612         PR middle-end/48608
26613         * cfgexpand.c (get_decl_align_unit): Renamed to ...
26614         (align_local_variable): This.  Update DECL_ALIGN.
26615         (add_stack_var): Updated.
26616         (expand_one_stack_var): Likewise.
26617
26618 2011-04-14  Richard Guenther  <rguenther@suse.de>
26619
26620         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
26621         Remove.
26622         (dse_initialize_block_local_data, dse_leave_block,
26623         record_voperand_set, get_stmt_uid): Likewise.
26624         (dse_possible_dead_store_p): Allow any kind of killing stmt.
26625         (dse_optimize_stmt): Remove voperand set handling code.
26626         Simplify and improve to handle any kind of killing stmt.
26627         (dse_record_phi): Remove.
26628         (dse_enter_block): Simplify.
26629         (tree_ssa_dse): Likewise.
26630         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
26631
26632 2011-04-14  Jan Hubicka  <jh@suse.cz>
26633
26634         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
26635         * cgraph.h (struct inline_summary): Move to ipa-inline.h
26636         (cgraph_local_info): Remove inline_summary.
26637         * ipa-cp.c: Include ipa-inline.h.
26638         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
26639         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
26640         accesor.
26641         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
26642         (input_overwrite_node): Do not set inline summary.
26643         (input_node): Do not stream inline summary.
26644         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
26645         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
26646         growth; we do not have inline parameters computed for that anyway.
26647         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
26648         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
26649         (inline_summary_t): New type and VECtor.
26650         (debug_inline_summary, dump_inline_summaries): Declare.
26651         (inline_summary): Use VOCtor.
26652         (estimate_edge_growth): Kill hack computing call stmt size directly.
26653         * lto-section-in.c (lto_section_name): Add inline section.
26654         * ipa-inline-analysis.c: Include lto-streamer.h
26655         (node_removal_hook_holder, node_duplication_hook_holder): New holders
26656         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
26657         (inline_summary_vec): Define.
26658         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
26659         dump_inline_summaries): New functions.
26660         (estimate_function_body_sizes): Properly compute size/time of outgoing
26661         calls.
26662         (compute_inline_parameters): Alloc inline_summary; do not compute
26663         size/time of incomming calls.
26664         (estimate_edge_time): Avoid missing time summary hack.
26665         (inline_read_summary): Read inline summary info.
26666         (inline_write_summary): Write inline summary info.
26667         (inline_free_summary): Free all hooks and inline summary vector.
26668         * lto-streamer.h: Add LTO_section_inline_summary section.
26669         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
26670         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
26671
26672 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
26673
26674         * tree-vectorizer.h (vect_strided_store_supported): Add a
26675         HOST_WIDE_INT argument.
26676         (vect_strided_load_supported): Likewise.
26677         (vect_permute_store_chain): Return void.
26678         (vect_transform_strided_load): Likewise.
26679         (vect_permute_load_chain): Delete.
26680         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
26681         count argument.  Check that the count is a power of two.
26682         (vect_strided_load_supported): Likewise.
26683         (vect_permute_store_chain): Return void.  Update after above changes.
26684         Assert that the access is supported.
26685         (vect_permute_load_chain): Likewise.
26686         (vect_transform_strided_load): Return void.
26687         * tree-vect-stmts.c (vectorizable_store): Update calls after
26688         above interface changes.
26689         (vectorizable_load): Likewise.
26690         (vect_analyze_stmt): Don't check for strided powers of two here.
26691
26692 2011-04-14  Richard Guenther  <rguenther@suse.de>
26693
26694         PR tree-optimization/48590
26695         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
26696         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
26697         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
26698         BUILT_IN_STACK_SAVE.
26699         * tree-ssa-dce.c (propagate_necessity): Handle
26700         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
26701
26702 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
26703
26704         * c-parser.c (c_parser_objc_class_declaration): Updated call to
26705         objc_declare_class.
26706
26707 2011-04-14  Richard Guenther  <rguenther@suse.de>
26708
26709         * tree.h (get_object_alignment_1): Declare.
26710         * builtins.c (get_object_alignment_1): Split out worker from ...
26711         (get_object_alignment): ... here.
26712         * fold-const.c (get_pointer_modulus_and_residue): Use
26713         get_object_alignment_1.
26714
26715 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
26716
26717         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
26718         type parameter.
26719         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
26720         parameter.  Generalise code to handle arrays as well as vectors.
26721         (vect_setup_realignment): Update accordingly.
26722         * tree-vect-stmts.c (vectorizable_store): Likewise.
26723         (vectorizable_load): Likewise.
26724
26725 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
26726
26727         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
26728         within the per-copy loop.
26729
26730 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
26731
26732         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
26733         in the dump file.
26734
26735 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
26736
26737         * doc/options.texi (Negative): Explicitly mention that the
26738         Negative chain must be circular.
26739
26740 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
26741
26742         * function.h (block_chainon): Declare.
26743         * function.c (block_chainon): Define.
26744
26745 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
26746             Eric Weddington  <eric.weddington@atmel.com>
26747             Georg-Johann Lay  <avr@gjlay.de>
26748
26749         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
26750         New Includes
26751         (avr_init_builtins, avr_expand_builtin,
26752         avr_expand_delay_cycles, avr_expand_unop_builtin,
26753         avr_expand_binop_builtin ): New functions.
26754         (avr_builtin_id): New enum
26755         (struct avr_builtin_description): New struct
26756         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
26757         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
26758
26759         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
26760         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
26761         UNSPECV_DELAY_CYCLES): new enumeration values
26762         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
26763         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
26764         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
26765         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
26766         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
26767         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
26768         "fmulsu"): New insns
26769
26770         * config/avr/avr-c.c: fix line endings
26771         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
26772         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
26773         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
26774         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
26775         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
26776
26777         * doc/extend.texi (AVR Built-in Functions): New node
26778         (Target Builtins): Add documentation of AVR
26779         built-in functions.
26780
26781 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
26782
26783         PR target/44643
26784         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
26785         alone. Error if non-const data has attribute progmem.
26786
26787 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
26788
26789         * tree.h (struct tree_constructor): Include tree_typed instead of
26790         tree_common.
26791         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
26792         TS_TYPED instead of TS_COMMON.
26793
26794 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
26795
26796         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
26797         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
26798         (sse2_psadbw): Merge with *avx_psadbw.
26799         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
26800         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
26801         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
26802         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
26803         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
26804         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
26805         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
26806         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
26807         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
26808         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
26809         (ssse3_palignrti): Merge with *avx_palignrti.
26810
26811 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
26812
26813         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
26814         * tree-ssanames.c (fini_ssanames): VEC_free it.
26815         (make_ssa_name_fn): Update for VECness of free_ssanames.
26816         (release_ssa_name, release_dead_ssa_names): Likewise.
26817         * tree.h (struct tree_ssa_name): Include tree_typed instead of
26818         tree_common.
26819         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
26820         TS_TYPED instead of TS_COMMON.
26821
26822 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
26823
26824         * postreload-gcse.c (gcse_after_reload_main): Add calls to
26825         statistics_counter_event.
26826         * tree-ssa-copyrename.c (stats): Define.
26827         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
26828         statistics_counter_event.
26829         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
26830         (bswap_stats, widen_mul_stats): Define.
26831         (insert_reciprocals): Increment rdivs_inserted.
26832         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
26833         rfuncs_inserted.  Add calls to statistics_counter_event.
26834         (execute_cse_sincos_1): Increment inserted.
26835         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
26836         statistics_counter_event.
26837         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
26838         of bswap_stats.  Add calls to statistics_counter_event.
26839         (convert_mult_to_widen): Increment widen_mults_inserted.
26840         (convert_plusminus_to_widen): Increment maccs_inserted.
26841         (convert_mult_to_fma): Increment fmas_inserted.
26842         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
26843         calls to statistics_counter_event.
26844
26845 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
26846
26847         PR rtl-optimization/48455
26848         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
26849         `temp_costs->mem_cost'.
26850
26851 2011-04-13  Jan Hubicka  <jh@suse.cz>
26852
26853         * ipa-inline.h: New file.
26854         * ipa-inline-analysis.c: New file. Broken out of ...
26855         * ipa-inline.c: ... this file; update toplevel comment;
26856         include ipa-inline.h
26857         (inline_summary): Move to ipa-inline.h
26858         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
26859         ipa-inline-analysis.c.
26860         (cgraph_estimate_time_after_inlining): Rename to
26861         estiamte_time_after_inlining; move to ipa-inline-analysis.c
26862         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
26863         to estimate_edge_growth.
26864         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
26865         rename to estimate_size_after_inlining.
26866         (cgraph_mark_inline_edge): Update for new naming convention.
26867         (cgraph_check_inline_limits): Likewise.
26868         (cgraph_edge_badness): Likewise.
26869         (cgraph_decide_recursive_inlining): Likewise.
26870         (cgraph_decide_inlining_of_small_functions): Likewise.
26871         (cgraph_decide_inlining_incrementally): Likewise.
26872         (cgraph_estimate_growth): Rename to estimate_growth; move to
26873         ipa-inline-analysis.c.
26874         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
26875         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
26876         (compute_inline_parameters): Likewise.
26877         (compute_inline_parameters_for_current): Likewise.
26878         (pass_inline_parameters): Likewise.
26879         (inline_indirect_intraprocedural_analysis): Likewise.
26880         (analyze_function): Rename to inline_analyze_function; likewise.
26881         (add_new_function): Move to ipa-inline-analysis.c.
26882         (inline_generate_summary): Likewise.
26883         (inline_read_summary): Likewise.
26884         (inline_write_summary): Likewise.
26885         * Makefile.in (ipa-inline-analysis.c): New file.
26886
26887 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26888
26889         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
26890         * configure: Regenerate.
26891
26892 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
26893
26894         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
26895         instead of tree_common.
26896         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
26897         Likewise.
26898         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
26899         TS_TYPED rather than TS_COMMON.
26900         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
26901
26902 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
26903
26904         PR target/45263
26905         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
26906         r20 around calls of __tablejump_elpm__
26907
26908 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
26909
26910         PR middle-end/48591
26911         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
26912         NULL.
26913         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
26914
26915 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
26916
26917         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
26918         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
26919         (cfi_vec): New typedef.
26920         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
26921         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
26922         (cie_cfi_vec): New static variable.
26923         (cie_cfi_head): Delete.
26924         (add_cfi): Accept a cfi_vec * as first argument. All callers and
26925         declaration changed. Use vector rather than list operations.
26926         (new_cfi): Don't initialize the dw_cfi_next field.
26927         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
26928         rather than list operations.
26929         (lookup_cfa): Use vector rather than list operations.
26930         (output_cfis): New argument upto. Accept a cfi_vec rather than
26931         a dw_cfi_ref list head as argument. All callers changed.
26932         Iterate over the vector using upto as a maximum index.
26933         (output_all_cfis): New static function.
26934         (output_fde): Use vector rather than list operations. Use the
26935         new upto argument for output_cfis rather than manipulating a
26936         list.
26937         (dwarf2out_begin_prologue): Change initializations to match
26938         new struct members.
26939         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
26940         from the vector length rather than searching for the end of a list.
26941         Use output_all_cfis.
26942         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
26943
26944 2011-04-13  Nick Clifton  <nickc@redhat.com>
26945
26946         * config/rx/rx.md (movmemsi): Do not use this pattern when
26947         volatile pointers are involved.
26948
26949 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
26950
26951         * config/i386/sse.md (pinsrbits): Remove.
26952         (sse2_packsswb): Merge with *avx_packsswb.
26953         (sse2_packssdw): Merge with *avx_packssdw.
26954         (sse2_packuswb): Merge with *avx_packuswb.
26955         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
26956         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
26957         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
26958         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
26959         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
26960         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
26961         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
26962         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
26963         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
26964         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
26965         (sse2_loadld): Merge with *avx_loadld.
26966         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
26967         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
26968         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
26969         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
26970         (vec_concatv2di): Merge with *vec_concatv2di_avx.
26971
26972 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
26973
26974         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
26975         calling TREE_CHAIN.
26976         * print-tree.c (print_node): Likewise.
26977         * tree-inline.c (copy_tree_r): Likewise.
26978         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
26979         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
26980         instead of TS_COMMON.
26981         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
26982         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
26983         (copy_node_stat): Zero TREE_CHAIN only if necessary.
26984         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
26985         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
26986         ...and these...
26987         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
26988         * tree.h: ...here.
26989         (TREE_CHAIN): Check for a TS_COMMON structure.
26990         (TREE_TYPE): Check for a TS_TYPED structure.
26991
26992 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
26993
26994         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
26995         cgraph_get_create_node instead of cgraph_node.
26996
26997 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
26998
26999         * c-parser.c (c_parser_initelt): Updated call to
27000         objc_build_message_expr.
27001         (c_parser_postfix_expression): Likewise.
27002
27003 2011-04-12  Kai Tietz  <ktietz@redhat.com>
27004
27005         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
27006         MASK_MS_BITFIELD_LAYOUT bit.
27007
27008 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
27009
27010         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
27011         assert it is always true.
27012         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
27013         moves.
27014
27015 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
27016
27017         * c-parser.c (c_lex_one_token): Rewritten conditional used when
27018         compiling Objective-C to be more efficient.
27019
27020 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
27021
27022         * opts-common.c (decode_cmdline_options_to_array): Remove variable
27023         argv_copied.
27024
27025 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
27026
27027         * recog.h, genoutput.c, optabs.c: Revert last patch.
27028
27029 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
27030
27031         PR target/48090
27032         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
27033
27034 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
27035
27036         * recog.h (insn_operand_data): Add an "allows_mem" field.
27037         * genoutput.c (output_operand_data): Initialize it.
27038         * optabs.c (maybe_legitimize_operand_same_code): New function.
27039         (maybe_legitimize_operand): Use it when matching the original
27040         op->value.
27041
27042 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
27043
27044         * genpreds.c (process_define_predicate): Move most processing
27045         to gensupport.c.  Continue to validate the expression.
27046         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
27047         (process_define_predicate): Move processing to gensupport.c.
27048         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
27049         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
27050         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
27051         argument.
27052         (valid_predicate_name_p): New function, split out from old
27053         genpreds.c:process_define_predicate.
27054         (process_define_predicate): New function, combining code from
27055         old genpreds.c and genrecog.c functions.
27056         (process_rtx): Call it for DEFINE_PREDICATE and
27057         DEFINE_SPECIAL_PREDICATE.
27058
27059 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
27060
27061         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
27062         size of a '%A' memory reference.
27063         (T_DREG, T_QREG): New neon_builtin_type_bits.
27064         (arm_init_neon_builtins): Assert that the load and store operands
27065         are neon_struct_operands.
27066         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
27067         (NEON_ARG_MEMORY): New builtin_arg.
27068         (neon_dereference_pointer): New function.
27069         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
27070         Handle NEON_ARG_MEMORY.
27071         (arm_expand_neon_builtin): Update after above interface changes.
27072         Use NEON_ARG_MEMORY for loads and stores.
27073         * config/arm/predicates.md (neon_struct_operand): New predicate.
27074         * config/arm/iterators.md (V_two_elem): Tweak formatting.
27075         (V_three_elem): Use BLKmode for accesses that have no associated mode.
27076         (V_four_elem): Tweak formatting.
27077         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
27078         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
27079         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
27080         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
27081         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
27082         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
27083         (neon_vst4<mode>): Replace pointer operand with a memory operand.
27084         Use %A in the output template.
27085         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
27086         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
27087         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
27088         the width of the memory access.  Remove post-increment.
27089         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
27090
27091 2011-04-12  Nick Clifton  <nickc@redhat.com>
27092
27093         * config/v850/v850.c (expand_prologue): Do not use the CALLT
27094         instruction for interrupt handlers if the target is the basic V850
27095         architecture.
27096         (expand_epilogue): Likewise.
27097
27098 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
27099
27100         PR rtl-optimization/48549
27101         * combine.c (propagate_for_debug): Also stop after BB_END of
27102         this_basic_block.  Process LAST and just stop processing after it.
27103         (combine_instructions): If last_combined_insn has been deleted,
27104         set last_combined_insn to its PREV_INSN.
27105
27106 2011-04-12  Richard Guenther  <rguenther@suse.de>
27107
27108         PR tree-optimization/46076
27109         * gimple.h (struct gimple_statement_call): Add fntype field.
27110         (gimple_call_fntype): Adjust.
27111         (gimple_call_set_fntype): New function.
27112         * gimple.c (gimple_build_call_1): Set the call function type.
27113         * gimplify.c (gimplify_call_expr): Preserve the function
27114         type the frontend used for the call.
27115         (gimplify_modify_expr): Likewise.
27116         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
27117         function type.
27118         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
27119         function type.
27120         * tree-ssa.c (useless_type_conversion_p): Function pointer
27121         conversions are useless.
27122
27123 2011-04-12  Martin Jambor  <mjambor@suse.cz>
27124
27125         * cgraph.h (cgraph_node): Remove function declaration.
27126         (cgraph_create_node): Declare.
27127         (cgraph_get_create_node): Likewise.
27128         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
27129         Updated all callers.
27130         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
27131         the decl does not already exist.  Call cgraph_get_create_node instead
27132         of cgraph_node.
27133         (cgraph_get_create_node): New function.
27134         (cgraph_same_body_alias): Update comment.
27135         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
27136         assert it does not return NULL.
27137         (cgraph_update_edges_for_call_stmt): Likewise.
27138         (cgraph_clone_edge): Likewise.
27139         (cgraph_create_virtual_clone): Likewise.
27140         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
27141         instead of cgraph_node.
27142         (cgraph_add_new_function): Call cgraph_create_node or
27143         cgraph_get_create_node instead of cgraph_node.
27144         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
27145         instead of cgraph_node.
27146         (record_eh_tables): Likewise.
27147         (mark_address): Likewise.
27148         (mark_load): Likewise.
27149         (build_cgraph_edges): Call cgraph_get_create_node instead
27150         of cgraph_node.
27151         (rebuild_cgraph_edges): Likewise.
27152         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
27153         instead of cgraph_node.
27154         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
27155         cgraph_node.
27156         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
27157         cgraph_create_node instead of cgraph_node.
27158         * c-decl.c (finish_function): Call cgraph_get_create_node instead
27159         of cgraph_node.
27160         * lto-cgraph.c (input_node): Likewise.
27161         * lto-streamer-in.c (input_function): Likewise.
27162         * varasm.c (mark_decl_referenced): Likewise.
27163         (assemble_alias): Likewise.
27164
27165 2011-04-12  Martin Jambor  <mjambor@suse.cz>
27166
27167         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
27168         instead of cgraph_node and assert it does not return NULL.
27169         * lto-streamer-in.c (lto_read_body): Likewise.
27170         * omp-low.c (new_omp_context): Likewise.
27171         (create_task_copyfn): Likewise.
27172         * tree-emutls.c (lower_emutls_function_body): Likewise.
27173         * matrix-reorg.c (transform_allocation_sites): Likewise.
27174
27175 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
27176
27177         PR c/48552
27178         * c-typeck.c (build_asm_expr): Error out on attempts to use
27179         void type outputs or inputs for constraints that allow reg or
27180         don't allow memory.
27181
27182 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
27183             Richard Earnshaw  <rearnsha@arm.com>
27184
27185         PR target/48250
27186         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
27187         to use sign-magnitude offsets. Reject unsupported unaligned
27188         cases. Add detailed description in comments.
27189         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
27190         condition from TARGET_32BIT to TARGET_ARM.
27191
27192 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
27193
27194         * tree.h (struct typed_tree): New.
27195         (struct tree_common): Include it instead of tree_base.
27196         (TREE_TYPE): Update for new location of type field.
27197         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
27198         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
27199         (union tree_node): Add typed field.
27200         * treestruct.def (TS_TYPED): New.
27201         * lto-streamer.c (check_handled_ts_structures): Handle it.
27202         * tree.c (MARK_TS_TYPED): New macro.
27203         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
27204
27205 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
27206
27207         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
27208         (force_nonfallthru): Do not alter the loop nest if no basic block
27209         was created.
27210
27211 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
27212
27213         * config/i386/sse.md (VI): New mode iterator.
27214         (SSEMODEI): Remove.
27215         (AVX256MODEI): Ditto.
27216         (AVXMODEF4P): Ditto.
27217         (avxvecpsmode): Ditto.
27218         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
27219         (sse2_andnot<mode>3): New expander.
27220         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
27221         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
27222         (<any_logic:code><mode>3): Use VI mode iterator.
27223         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
27224         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
27225         (*andnottf3): Handle AVX three-operand constraints.
27226         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
27227
27228 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
27229             Robert Millan  <rmh@gnu.org>
27230
27231         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
27232         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
27233         GNU_USER_DYNAMIC_LINKER64): Define.
27234         (REG_NAME): Don't undefine.
27235         (MD_UNWIND_SUPPORT): Undefine.
27236         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
27237         (REG_NAME): Don't undefine.
27238         (MD_UNWIND_SUPPORT): Undefine.
27239         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
27240
27241 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
27242
27243         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
27244         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
27245
27246 2011-04-11  Xinliang David Li  <davidxl@google.com>
27247
27248         * value-profile.c (check_ic_target): New function.
27249         (gimple_ic_transform): Sanity check indirect call target.
27250         * gimple-low.c (gimple_check_call_args): Interface change.
27251         (gimple_check_call_matching_types): New function.
27252         * tree-inline.c (tree_can_inline_p): Call new function.
27253
27254 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
27255
27256         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
27257         tree-pretty-print.h & realmpfr.h.
27258
27259 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
27260
27261         PR middle-end/48464
27262         * ira.c (setup_pressure_classes): Fix typo in loop condition.
27263         (setup_allocno_and_important_classes): Ditto.
27264
27265 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
27266
27267         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
27268         GNU_USER_DYNAMIC_LINKER.
27269         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
27270         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27271         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
27272         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
27273         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
27274         GNU_USER_TARGET_OS_CPP_BUILTINS.
27275         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
27276         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27277         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
27278         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27279         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
27280         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
27281         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
27282         GNU_USER_TARGET_OS_CPP_BUILTINS.
27283         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
27284         GNU_USER_DYNAMIC_LINKER.
27285         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
27286         GNU_USER_TARGET_OS_CPP_BUILTINS.
27287         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
27288         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27289         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
27290         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27291         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
27292         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
27293         GNU_USER_DYNAMIC_LINKER64): Remove.
27294         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
27295         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27296         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
27297         GNU_USER_DYNAMIC_LINKER.
27298         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
27299         GNU_USER_TARGET_OS_CPP_BUILTINS.
27300         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
27301         GNU_USER_TARGET_OS_CPP_BUILTINS.
27302         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
27303         to GNU_USER_TARGET_OS_CPP_BUILTINS.
27304         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
27305         GNU_USER_TARGET_OS_CPP_BUILTINS.
27306         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
27307         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
27308         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
27309         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
27310         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27311         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
27312         GNU_USER_DYNAMIC_LINKER.
27313         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
27314         GNU_USER_TARGET_OS_CPP_BUILTINS.
27315         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
27316         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27317         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
27318         GNU_USER_DYNAMIC_LINKER.
27319         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
27320         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27321         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
27322         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27323         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
27324         GNU_USER_DYNAMIC_LINKER.
27325         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
27326         GNU_USER_DYNAMIC_LINKERN32.
27327         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
27328         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
27329         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
27330         GNU_USER_DYNAMIC_LINKER32.
27331         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
27332         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27333         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
27334         GNU_USER_DYNAMIC_LINKER.
27335         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
27336         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27337         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
27338         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27339         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
27340         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
27341         GNU_USER_DYNAMIC_LINKER32.
27342         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
27343         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
27344         GNU_USER_DYNAMIC_LINKER.
27345         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
27346         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27347         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
27348         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
27349         GNU_USER_DYNAMIC_LINKER64.
27350         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
27351         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27352         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
27353         GNU_USER_DYNAMIC_LINKER.
27354         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
27355         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27356         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
27357         GNU_USER_DYNAMIC_LINKER.
27358         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
27359         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27360         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
27361         GNU_USER_DYNAMIC_LINKER32.
27362         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
27363         GNU_USER_DYNAMIC_LINKER64.
27364         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
27365         GNU_USER_DYNAMIC_LINKER64.
27366         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
27367         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27368         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
27369         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27370         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
27371
27372 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
27373
27374         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
27375         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
27376         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
27377         GNU_USER_DYNAMIC_LINKER.
27378         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
27379         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
27380         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
27381         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
27382         GNU_USER_DYNAMIC_LINKER64.
27383         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
27384         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
27385         GNU_USER_LINK_EMULATION.
27386         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
27387         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
27388         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
27389         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
27390         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
27391         CPP_SPEC, CC1_SPEC): Remove.
27392         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
27393         (GNU_USER_DYNAMIC_LINKER): Define.
27394         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
27395         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
27396         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
27397         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
27398         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
27399         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
27400         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
27401         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
27402         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
27403         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
27404         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
27405         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
27406         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
27407         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
27408         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
27409         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
27410         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
27411         GNU_USER_DYNAMIC_LINKER.
27412         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
27413         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
27414         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
27415         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
27416         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
27417         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
27418         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
27419         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
27420         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
27421         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
27422
27423 2011-04-11  Kai Tietz  <ktietz@redhat.com>
27424
27425         PR target/9601
27426         PR target/11772
27427         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
27428         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
27429         comment.
27430         (ix86_is_msabi_thiscall): Removed.
27431         (ix86_is_type_thiscall): Likewise.
27432         (ix86_get_callcvt): New function.
27433         (ix86_comp_type_attributes): Simplify check.
27434         (ix86_function_regparm): Use ix86_get_callcvt for calling
27435         convention attribute checks.
27436         (ix86_return_pops_args): Likewise.
27437         (ix86_static_chain): Likewise.
27438         (x86_this_parameter): Likewise.
27439         (x86_output_mi_thunk): Likewise.
27440         (ix86_function_type_abi): Optimize check for types without attributes.
27441         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
27442         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
27443         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
27444         by flag-values.
27445         (IX86_BASE_CALLCVT): Helper macro.
27446         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
27447         Use ix86_get_callcvt for calling convention attribute checks and avoid
27448         symbol-decoration for stdcall in TARGET_RTD case.
27449         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
27450         Likewise.
27451         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
27452         for declaration.
27453
27454 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
27455
27456         * config/i386/sse.md (VI_128): New mode iterator.
27457         (VI12_128): Rename from SSEMODE12.
27458         (VI14_128): Rename from SSEMODE14.
27459         (VI124_128): New mode iterator.
27460         (VI24_128): Rename from SSEMODE248.
27461         (VI248_128): Rename from SSEMODE248.
27462         (SSEMODE124C8): Remove.
27463         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
27464         (*sse2_<plusminus_insn><mode>3): Merge with
27465         *avx_<plusminus_insn><mode>3.
27466         (*mulv8hi3): Merge with *avx_mulv8hi3.
27467         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
27468         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
27469         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
27470         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
27471         (ashr<mode>3): Merge with *avx_ashr<mode>3.
27472         (lshr<mode>3): Merge with *avx_lshr<mode>3.
27473         (ashl<mode>3): Merge with *avx_ashl<mode>3.
27474         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
27475         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
27476         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
27477         (*<smaxmin:code>v8hi3): Ditto.
27478         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
27479         (*<smaxmin:code>v16qi3): Ditto.
27480         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
27481         (*sse2_eq<mode>3): Ditto.
27482         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
27483         (*sse2_gt<mode>3): Ditto.
27484         (vcondv2di): Split out of vcond<mode>.
27485         (vconduv2di): Split out of vcondu<mode>.
27486
27487 2011-04-11  Richard Guenther  <rguenther@suse.de>
27488
27489         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
27490         before calling tree_low_cst.
27491
27492 2011-04-11  Richard Guenther  <rguenther@suse.de>
27493
27494         * stor-layout.c (layout_type): Compute all array index size operations
27495         in the original type.
27496         (initialize_sizetypes): Add comment.
27497         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
27498
27499 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
27500
27501         * common.opt (Tbss=, Tdata=, Ttext=): New options.
27502
27503 2011-04-11  Martin Jambor  <mjambor@suse.cz>
27504
27505         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
27506         of cgraph_node, handle NULL return value.
27507         (cgraph_global_info): Likewise.
27508         (cgraph_rtl_info): Likewise.
27509         * tree-inline.c (estimate_num_insns): Likewise.
27510         * gimplify.c (unshare_body): Likewise.
27511         (unvisit_body): Likewise.
27512         (gimplify_body): Likewise.
27513         * predict.c (optimize_function_for_size_p): Likewise.
27514         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
27515         (call_may_clobber_ref_p_1): Likewise.
27516         * varasm.c (function_section_1): Likewise.
27517         (assemble_start_function): Likewise.
27518
27519 2011-04-11  Martin Jambor  <mjambor@suse.cz>
27520
27521         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
27522         of cgraph_node.
27523         * final.c (rest_of_clean_state): Likewise.
27524         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
27525         * passes.c (pass_init_dump_file): Likewise.
27526         (execute_all_ipa_transforms): Likewise.
27527         (function_called_by_processed_nodes_p): Likewise.
27528         * predict.c (maybe_hot_frequency_p): Likewise.
27529         (probably_never_executed_bb_p): Likewise.
27530         (compute_function_frequency): Likewise.
27531         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
27532         (unnest_nesting_tree_1): Likewise.
27533         (lower_nested_functions): Likewise.
27534         * tree-optimize.c (execute_fixup_cfg): Likewise.
27535         (tree_rest_of_compilation): Likewise.
27536         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
27537         * tree-sra.c (ipa_early_sra): Likewise.
27538         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
27539         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
27540         * ipa.c (record_cdtor_fn): Likewise.
27541         * ipa-inline.c (cgraph_early_inlining): Likewise.
27542         (compute_inline_parameters_for_current): Likewise.
27543         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
27544         * ipa-pure-const.c (local_pure_const): Likewise.
27545         * ipa-split.c (split_function): Likewise.
27546         (execute_split_functions): Likewise.
27547         * cgraphbuild.c (build_cgraph_edges): Likewise.
27548         (rebuild_cgraph_edges): Likewise.
27549         (cgraph_rebuild_references): Likewise.
27550         (remove_cgraph_callee_edges): Likewise.
27551         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
27552         (verify_cgraph_node): Likewise.
27553         (cgraph_analyze_functions): Likewise.
27554         (cgraph_preserve_function_body_p): Likewise.
27555         (save_inline_function_body): Likewise.
27556         (save_inline_function_body): Likewise.
27557         * tree-inline.c (copy_bb): Likewise.
27558         (optimize_inline_calls): Likewise.
27559
27560 2011-04-11  Martin Jambor  <mjambor@suse.cz>
27561
27562         PR tree-optimization/48195
27563         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
27564         ipa_check_create_edge_args.
27565         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
27566         ipa_check_create_edge_args.
27567         * ipa-inline.c (inline_generate_summary): Do not call
27568         ipa_check_create_node_params and ipa_check_create_edge_args.
27569         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
27570         ipa_check_create_edge_args.
27571
27572 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
27573
27574         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
27575         instead of loop.
27576         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
27577         * function.c (record_hard_reg_sets): Likewise.
27578         * ira.c (compute_regs_asm_clobbered): Likewise.
27579         * sched-deps.c (sched_analyze_1): Likewise.
27580         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
27581
27582 2011-04-09  Xinliang David Li  <davidxl@google.com>
27583
27584         PR tree-optimization/PR48484
27585         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
27586         has_valid_pred lazily
27587
27588 2011-04-09  Duncan Sands  <baldrick@free.fr>
27589
27590         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
27591
27592 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
27593
27594         * combine.c (combine_validate_cost): Adjust comments.  Set registered
27595         cost of I0 to zero at the end, if any.
27596
27597 2011-04-08  Xinliang David Li  <davidxl@google.com>
27598
27599         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
27600         to insane profile data.
27601
27602 2011-04-08  Xinliang David Li  <davidxl@google.com>
27603
27604         * ipa-cp.c (ipcp_update_profiling): Correct
27605          negative scale factor due to insane profile data.
27606
27607 2011-04-08  Xinliang David Li  <davidxl@google.com>
27608
27609         * final.c (dump_basic_block_info): New function.
27610         (final): Dump basic block.
27611         (final_scan_insn): Remove old dump.
27612
27613 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
27614
27615         PR target/47829
27616         * config.gcc (i386-*-freebsd): Disable unwind table generation for
27617         crtbegin/crtend.
27618
27619 2011-04-08  Michael Matz  <matz@suse.de>
27620
27621         PR middle-end/48389
27622         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
27623         functions.
27624         (rebuild_jump_labels): Call rebuild_jump_labels_1.
27625         * rtl.h (rebuild_jump_labels_chain): Declare.
27626         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
27627         insns inserted on edges.
27628
27629 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
27630
27631         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
27632         * config/arm/arm-arches.def: New.
27633         * config/arm/arm-opts.h: New.
27634         * config/arm/genopt.sh: New.
27635         * config/arm/arm-tables.opt: New (generated).
27636         * config/arm/arm.c (arm_handle_option, arm_target_help,
27637         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
27638         (all_architectures): Get most table contents from arm-arches.def.
27639         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
27640         arm_selected_tune here.
27641         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
27642         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
27643         (march=, mcpu=, mtune=): Use Enum and Var.
27644         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
27645         (arm.o): Update dependencies.
27646
27647 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
27648
27649         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
27650         of header_file.
27651         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
27652         (write_typed_alloc_defns): Likewise.
27653         (main): Calls write_typed_alloc_defns with output_header.
27654
27655 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
27656
27657         PR inline-asm/48435
27658         * ira-color.c (setup_profitable_hard_regs): Add comments.
27659         Don't take prohibited hard regs into account.
27660         (setup_conflict_profitable_regs): Rename to
27661         get_conflict_profitable_regs.
27662         (check_hard_reg_p): Check prohibited hard regs.
27663
27664 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
27665
27666         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
27667         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
27668         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
27669
27670 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27671
27672         PR target/48366
27673         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
27674         move from floating point to shift amount register.
27675         (emit_move_sequence): Remove secondary reload support for floating
27676         point to shift amount amount register copies.
27677         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
27678         amount register copies.
27679         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
27680         register, return false if mode isn't a scalar integer mode.
27681         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
27682
27683 2011-04-08  Richard Guenther  <rguenther@suse.de>
27684
27685         * gimple.c (gimple_call_flags): Remove kludge.
27686
27687 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
27688
27689         * sel-sched.c (sel_region_init): Move call to
27690         sel_setup_region_sched_flags after setup_current_loop_nest.
27691
27692 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
27693
27694         PR rtl-optimization/48272
27695         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
27696         init_insn_reg_pressure_info.  Adjust a caller.
27697         * sched-int.h (init_insn_reg_pressure_info): Declare.
27698         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
27699         when sched-pressure is enabled.
27700
27701 2011-04-08  Richard Guenther  <rguenther@suse.de>
27702
27703         * gimple.c (gimple_set_modified): Do not queue calls to
27704         MODIFIED_NORETURN_CALLS here ...
27705         * tree-ssa-operands.c (update_stmt_operands): ... but here.
27706
27707 2011-04-08  Richard Guenther  <rguenther@suse.de>
27708
27709         PR lto/48467
27710         * toplev.c (lang_dependent_init): Do not open asm_out_file
27711         in WPA mode, nor perform debug machinery initialization.
27712         (finalize): Do not unlink asm_out_file in WPA mode.
27713
27714 2011-04-08  Richard Guenther  <rguenther@suse.de>
27715
27716         * gimple.h (gimple_call_fntype): New function.
27717         (gimple_call_return_type): Use it.
27718         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
27719         * gimple-low.c (gimple_check_call_args): Likewise.
27720         * gimple.c (gimple_call_flags): Likewise.
27721         (gimple_call_arg_flags): Likewise.
27722         (gimple_call_return_flags): Likewise.
27723         * tree-cfg.c (verify_gimple_call): Likewise.
27724         (do_warn_unused_result): Likewise.
27725         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
27726         * value-prof.c (gimple_ic_transform): Fix fndecl check.
27727
27728 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
27729
27730         PR rtl-optimization/48235
27731         * sel-sched.c (code_motion_process_successors): Recompute the last
27732         insn in basic block if control flow changed.
27733         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
27734         Update condition for ilist_remove.
27735
27736 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
27737
27738         PR rtl-optimization/48302
27739         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
27740         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
27741         it to record added preheader blocks.
27742         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
27743         on to sel_add_loop_preheaders.
27744         (sel_region_init): Move call to setup_current_loop_nest after
27745         sel_init_bbs.
27746
27747 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
27748
27749         PR target/48273
27750         * cfgloop.h (loop_has_exit_edges): New helper.
27751         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
27752         non-clonable.
27753         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
27754         that have no exit edges.
27755
27756 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
27757
27758         PR rtl-optimization/48442
27759         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
27760         all callers.  Adjust assert.
27761
27762 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
27763
27764         PR tree-optimization/48377
27765         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
27766         is_packed to true even for types with smaller TYPE_ALIGN than
27767         TYPE_SIZE.
27768
27769 2011-04-08  Richard Guenther  <rguenther@suse.de>
27770
27771         PR bootstrap/48513
27772         * doc/tm.texi: Re-generate.
27773
27774 2011-04-08  Wei Guozhi  <carrot@google.com>
27775
27776         PR target/47855
27777         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
27778         * config/arm/arm.c (arm_attr_length_push_multi): New function.
27779         * config/arm/arm.md (*push_multi): Change the length computation to
27780         call a C function.
27781
27782 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
27783
27784         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
27785         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
27786         * doc/tm.texi: Regenerate.
27787         * system.h (ASM_OUTPUT_BSS): Poison.
27788         * varasm.c (asm_output_bss): Remove function.
27789         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
27790
27791         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
27792         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
27793         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
27794         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
27795         Likewise.
27796         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
27797         Likewise.
27798         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
27799         Likewise.
27800         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
27801
27802 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
27803
27804         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
27805         EnumValue lines.
27806
27807 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
27808
27809         * config/m68k/m68k.c (m68k_handle_option): Don't handle
27810         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
27811         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
27812         OPT_mcpu32.
27813         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
27814         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
27815         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
27816         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
27817         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
27818         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
27819         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
27820         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
27821         options.  Don't map other m68k options manually.  Don't handle
27822         old-style options as canonical.
27823         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
27824         * doc/install.texi (m68k-*-*): Document binutils version requirement.
27825
27826 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
27827
27828         * basic-block.h (force_nonfallthru): Move to...
27829         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
27830         (force_nonfallthru): ...here.
27831         * cfghooks.c (force_nonfallthru): New function.
27832         * cfgrtl.c (force_nonfallthru): Rename into...
27833         (rtl_force_nonfallthru): ...this.
27834         (commit_one_edge_insertion): Do not set AUX field.
27835         (commit_edge_insertions): Do not discover new basic blocks.
27836         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
27837         (cfg_layout_rtl_cfg_hooks): Likewise.
27838         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
27839         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
27840         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
27841
27842 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
27843
27844         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
27845         Remove macros.
27846
27847 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
27848
27849         * config/i386/sse.md: Update copyright year.
27850         (avxcvtvecmode): Remove.
27851         (sse_movhlps): Merge with *avx_movhlps.
27852         (sse_movlhps): Merge with *avx_movlhps.
27853         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
27854         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
27855         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
27856         (sse_loadhps): Merge with *avx_loadhps.
27857         (sse_storelps): Merge with *avx_storelps.
27858         (sse_loadlps): Merge with *avx_loadlps.
27859         (sse_movss): Merge with *avx_movss.
27860         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
27861         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
27862         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
27863         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
27864         (vec_set<mode>_0): Ditto.
27865         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
27866         (sse4_1_insertps): Merge with *avx_insertps.
27867         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
27868         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
27869         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
27870         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
27871         (sse2_storehpd): Merge with *avx_storehpd.
27872         (sse2_loadhpd): Merge with *avx_loadhpd.
27873         (sse2_loadlpd): Merge with *avx_loadlpd.
27874         (sse2_movsd): Merge with *avx_movsd.
27875         (*vec_concatv2df): Merge with *vec_concatv2df.
27876
27877 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
27878
27879         PR debug/48343
27880         * combine.c (combine_instructions): Add last_combined_insn,
27881         update it if insn is after it, pass it to all try_combine calls.
27882         (try_combine): Add last_combined_insn parameter, pass it instead of
27883         i3 to propagate_for_debug.
27884
27885 2011-04-07  Nick Clifton  <nickc@redhat.com>
27886
27887         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
27888         to handle MDR <-> data register transfers.
27889         (movhi_internal): Likewise.
27890
27891 2011-04-07  Alan Modra  <amodra@gmail.com>
27892
27893         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
27894         previous stack info.
27895
27896 2011-04-07  Tom de Vries  <tom@codesourcery.com>
27897
27898         PR target/43920
27899         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
27900         flow_find_cross_jump.  Swap variables to implement backward replacement.
27901         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
27902
27903 2011-04-07  Tom de Vries  <tom@codesourcery.com>
27904
27905         PR target/43920
27906         * cfgcleanup.c (walk_to_nondebug_insn): New function.
27907         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
27908         and bb2.
27909         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
27910         src1 or src2.  Redirect edges to the last basic block.  Update
27911         frequency and count on multiple basic blocks in case of fallthru.
27912
27913 2011-04-07  Tom de Vries  <tom@codesourcery.com>
27914
27915         PR target/43920
27916         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
27917         function.
27918         (old_insns_match_p): Change return type.  Replace return false/true
27919         with return dir_none/dir_both.  Use can_replace_by.
27920         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
27921         direction from dir_p.  Register replacement direction in dir, last_dir
27922         and afterlast_dir.  Handle new return type of old_insns_match_p using
27923         merge_dir.  Return replacement direction in dir_p.
27924         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
27925         return type of old_insns_match_p.
27926         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
27927         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
27928         flow_find_cross_jump.
27929         * basic-block.h (enum replace_direction): New type.
27930         (flow_find_cross_jump): Add parameter to declaration.
27931
27932 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
27933
27934         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
27935         (AVXMODEDCVTPS2DQ): Ditto.
27936         (VEC_FLOAT_MODE): Ditto.
27937         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
27938         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
27939         (<any_logic:code><mode>3): Use VF mode iterator.
27940         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
27941         Use VF mode iterator.
27942         (copysign<mode>3): Use VF mode iterator.
27943         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
27944         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
27945         (*<any_logic:code><MODEF:mode>3): Merge with
27946         *avx_<any_logic:code><MODEF:mode>3.
27947         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
27948         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
27949         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
27950         (avx_cvtdq2ps<avxmodesuffix>): Remove.
27951         (sse2_cvtdq2ps): Use %v modifier.
27952         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
27953         (avx_cvtps2dq<avxmodesuffix>): Remove.
27954         (sse2_cvtps2dq): Use %v modifier.
27955         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
27956         (avx_cvttps2dq<avxmodesuffix>): Remove.
27957         (sse2_cvttps2dq): Use %v modifier.
27958         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
27959         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
27960         (sse2_cvtsd2siq): Fix insn template.
27961         (sse2_cvtsd2siq_2): Ditto.
27962         (sse2_cvttsd2siq): Ditto.
27963         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
27964         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
27965
27966 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
27967
27968         * gcov-io.c: Use GCC Runtime Library Exception.
27969
27970 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
27971
27972         PR debug/48466
27973         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
27974         as base_reg whatever register reg has been eliminated to, instead
27975         of hardcoding STACK_POINTER_REGNUM.
27976
27977 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
27978
27979         * doc/tm.texi.in: Document C target hooks as separate from general
27980         target hooks.
27981         * doc/tm.texi: Regenerate.
27982         * genhooks.c (struct hook_desc): Add docname field.
27983         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
27984         docname field.
27985         (hook_array): Include c-target.def.
27986         (emit_documentation): Use docname field in output.
27987         (emit_init_macros): Take docname argument.  Only emit definitions
27988         for hooks matching docname.
27989         (main): Expect additional arguments in all cases.  Pass argument
27990         to emit_init_macros.
27991         * target.def: Move initial macro definitions and comments to
27992         target-hooks-macros.h.
27993         (gcc_targetcm): Move to c-family/c-target.def.
27994         * target.h (targetcm): Move declaration to c-family/c-target.h.
27995         * targhooks.c (default_handle_c_option): Move to
27996         c-family/c-opts.c.
27997         * targhooks.h (default_handle_c_option): Move declaration to
27998         c-family/c-common.h.
27999         * target-hooks-macros.h: New file.
28000         * config.gcc (target_has_targetcm): Define and use to add to
28001         c_target_objs and cxx_target_objs.
28002         * config/default-c.c: New file.
28003         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
28004         of target.h and target-def.h.
28005         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
28006         (darwin_objc_construct_string, darwin_cfstring_ref_p,
28007         darwin_check_cfstring_format_arg): Make static.
28008         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
28009         TARGET_STRING_OBJECT_REF_TYPE_P,
28010         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
28011         * config/darwin-protos.h (darwin_objc_construct_string,
28012         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
28013         declare.
28014         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
28015         TARGET_STRING_OBJECT_REF_TYPE_P,
28016         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
28017         * config/t-darwin (darwin-c.o): Update dependencies.
28018         * system.h (TARGET_HAS_TARGETCM): Poison.
28019         * Makefile.in (TARGET_H): Update.
28020         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
28021         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
28022         (default-c.o): New target.
28023         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
28024         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
28025         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
28026         c-target.def.
28027         (build/genhooks.o): Update dependencies.
28028
28029 2011-04-06  Richard Guenther  <rguenther@suse.de>
28030
28031         * ipa-inline.c (enum inlining_mode): Remove.
28032         (cgraph_flatten): Use some other token.
28033         (cgraph_edge_early_inlinable_p): New function, split out from ...
28034         (cgraph_perform_always_inlining): New function, split out from ...
28035         (cgraph_decide_inlining_incrementally): ... here.
28036         (cgraph_mark_inline_edge): Adjust.
28037         (cgraph_early_inlining): Re-structure.
28038         (pass_early_inline): Require SSA form.
28039
28040 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
28041             Julian Brown  <julian@codesourcery.com>
28042             Mark Shinwell  <shinwell@codesourcery.com>
28043
28044         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
28045         LO_REGS only for Thumb-1.
28046         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
28047         be used in short instructions when optimising for size on Thumb-2.
28048
28049 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
28050
28051         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
28052         associated with user returns to be preserved.
28053
28054 2011-04-06  Tristan Gingold  <gingold@adacore.com>
28055
28056         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
28057         symbol_queue_size, DBXOUT_DECR_NESTING,
28058         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
28059         if XCOFF_DEBUGGING_INFO.
28060
28061 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
28062
28063         * config/i386/i386.md (attribute isa): New.
28064         (attribute enabled): New.
28065         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
28066         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
28067         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
28068         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
28069         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
28070         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
28071         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
28072         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
28073
28074         * config/i386/sse.md (VF): New mode iterator.
28075         (VF1): Ditto.
28076         (VF2): Ditto.
28077         (VF_128): Ditto.
28078         (SSEMODEF4): Remove.
28079         (attribute sse): Handle V8SF and V4DF modes.
28080         (<absneg:code><mode>2): Use VF mode iterator.
28081         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
28082         mode iterator.
28083         (<plusminus_insn><mode>3): Use VF mode iterator.
28084         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
28085         Use VF mode iterator.
28086         (<sse>_vm<plusminus_insn><mode>3): Merge with
28087         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
28088         (mul<mode>3): Use VF mode iterator.
28089         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
28090         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
28091         mode iterator.
28092         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
28093         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
28094         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
28095         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
28096         mode iterator.
28097         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
28098         Use VF1 mode iterator.
28099         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
28100         (sqrt<VF2:mode>2): New expander.
28101         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
28102         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
28103         and sqrtv2df2.  Use VF mode iterator.
28104         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
28105         mode iterator.
28106         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
28107         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
28108         Use VF1 mode iterator.
28109         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
28110         (<smaxmin:code><mode>3): Use VF mode iterator.
28111         (*<smaxmin:code><mode>3_finite): Merge with
28112         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
28113         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
28114         (<sse>_vm<smaxmin:code><mode>2): Merge with
28115         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
28116         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
28117         mode iterator.
28118         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
28119         mode iterator.
28120         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
28121         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
28122         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
28123         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
28124         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
28125         VF mode iterator.
28126         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
28127         Use VF_128 mode iterator.
28128         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
28129         mode iterator.
28130         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
28131         VF_128 mode iterator.
28132         (vcond<mode>): Use VF mode iterator.
28133         * config/i386/predicates.md (sse_comparison_operator): Merge with
28134         avx_comparison_float_operator.  Do not declare as special_predicate.
28135         * config/i386/i386.c (struct builtin_description): Update for renamed
28136         compare patterns.
28137         (ix86_expand_args_builtin): Ditto.
28138         (ix86_expand_sse_compare_mask): Ditto.
28139
28140 2011-04-06  Richard Guenther  <rguenther@suse.de>
28141
28142         * tree-inline.c (estimate_num_insns): For calls simply account
28143         for all passed arguments and a used return value.
28144
28145 2011-04-06  Richard Guenther  <rguenther@suse.de>
28146
28147         PR tree-optimization/47663
28148         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
28149         call_stmt_time fields.
28150         (cgraph_edge_inlinable_p): Declare.
28151         (cgraph_edge_recursive_p): New inline function.
28152         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
28153         (cgraph_clone_edge): Copy it.
28154         * ipa-inline.c (cgraph_estimate_edge_time): New function.
28155         Account for call stmt time.
28156         (cgraph_estimate_time_after_inlining): Take edge argument.
28157         (cgraph_estimate_edge_growth): Account call stmt size.
28158         (cgraph_estimate_size_after_inlining): Take edge argument.
28159         (cgraph_mark_inline_edge): Adjust.
28160         (cgraph_check_inline_limits): Likewise.
28161         (cgraph_recursive_inlining_p): Remove.
28162         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
28163         (cgraph_decide_recursive_inlining): Take edge argument and
28164         adjust.
28165         (cgraph_decide_inlining_of_small_functions): Do not avoid
28166         diags for recursive inlining here.
28167         (cgraph_flatten): Adjust.
28168         (cgraph_decide_inlining_incrementally): Likewise.
28169         (estimate_function_body_sizes): Remove call cost handling.
28170         (compute_inline_parameters): Initialize caller edge call costs.
28171         (cgraph_estimate_edge_growth): New function.
28172         (cgraph_estimate_growth): Use it.
28173         (cgraph_edge_badness): Likewise.
28174         (cgraph_check_inline_limits): Take an edge argument.
28175         (cgraph_decide_inlining_of_small_functions): Adjust.
28176         (cgraph_decide_inlining): Likewise.
28177         * tree-inline.c (estimate_num_insns): Only account for call
28178         return value if it is used.
28179         (expand_call_inline): Avoid diagnostics on recursive inline
28180         functions here.
28181         * lto-cgraph.c (lto_output_edge): Output edge call costs.
28182         (input_edge): Input edge call costs.
28183
28184 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28185
28186         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
28187
28188 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
28189
28190         * doc/invoke.texi (Spec Files): Fix typo.
28191
28192 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
28193
28194         * profile.c (branch_prob): Move declaration of local variable.  Remove
28195         obsolete ??? comment.  Expand the location explicitly instead of using
28196         the LOCATION_FILE and LOCATION_LINE macros.
28197
28198 2011-04-06  Wei Guozhi  <carrot@google.com>
28199
28200         PR target/47855
28201         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
28202         (arm_cond_branch): Likewise.
28203         (arm_cond_branch_reversed): Likewise.
28204         (arm_jump): Likewise.
28205         (push_multi): Likewise.
28206         * config/arm/constraints.md (Py): New constraint.
28207
28208 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
28209
28210         PR bootstrap/48471
28211         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
28212         Move these...
28213         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
28214         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
28215         #ifdef DBX_DEBUGGING_INFO.
28216
28217 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
28218
28219         PR bootstrap/48403
28220         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
28221         if old and new states differ.
28222
28223 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
28224
28225         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
28226         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
28227         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
28228         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
28229         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
28230         mcfv4e): Use Alias.
28231         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
28232         ColdFire options to -mcpu= options.
28233
28234 2011-04-05  Jeff Law  <law@redhat.com>
28235
28236         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
28237         check if BB is a successor of LOOP->header and return
28238         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
28239
28240 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
28241
28242         * cprop.c (struct reg_use): Remove.
28243         (reg_use_table): Make an array of RTX.
28244         (find_used_regs, constprop_register, local_cprop_pass,
28245         bypass_block): Simplify users of reg_use_table.
28246         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
28247         on one of the uses found by find_used_regs.
28248
28249 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
28250
28251         PR bootstrap/48469
28252         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
28253         declaration.
28254
28255 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
28256
28257         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
28258         as an rtx.
28259         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
28260
28261 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
28262
28263         PR middle-end/48441
28264         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
28265
28266 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
28267
28268         * combine.c: Include obstack.h.
28269         (struct insn_link): Define.
28270         (uid_log_links): Adjust type.
28271         (FOR_EACH_LOG_LINK): New macro.
28272         (insn_link_obstack): Declare.
28273         (alloc_insn_link): Define.
28274         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
28275         type of link variables.
28276         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
28277         (try_combine, record_promoted_values, distribute_notes): Likewise.
28278         (distribute_links): Likewise.  Tweak prototype.
28279         (clear_log_links): Delete.
28280         (adjust_for_new_dest): Call alloc_insn_link.
28281         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
28282
28283 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
28284
28285         * gcse.c (modify_mem_list): Convert to an array of VECs.
28286         (canon_modify_mem_list, compute_transp): Tweak formatting.
28287         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
28288         (load_killed_in_block_p): Likewise.
28289         (record_last_mem_set_info): Likewise.
28290         (clear_modify_mem_tables): Likewise.
28291
28292 2011-04-05  Tom de Vries  <tom@codesourcery.com>
28293
28294         PR middle-end/48461
28295         * function.c (emit_use_return_register_into_block): Only define if
28296         HAVE_return.
28297
28298 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
28299
28300         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
28301
28302 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
28303
28304         * config/rx/rx-opts.h: New.
28305         * config/rx/rx.c (rx_cpu_type): Remove.
28306         (rx_handle_option): Don't assert that global structures are in
28307         use.  Access variables via opts pointer.  Defer most handling of
28308         OPT_mint_register_.  Use error_at.
28309         (rx_option_override): Handle deferred OPT_mint_register_ here.
28310         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
28311         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
28312         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
28313         (rx_cpu_types): New Enum and EnumValue entries.
28314         (mint-register=): Use Defer and use Var accordingly.
28315
28316 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
28317
28318         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
28319         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
28320         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
28321         Move these...
28322         (debug_free_queue, debug_nesting, symbol_queue_index):
28323         ...and these...
28324         * dbxout.c: ...to here.  Make static.
28325
28326 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
28327
28328         * gcse.c (modify_pair): Define.  Define a VEC of it.
28329         (canon_modify_mem_list): Convert to an array of VECs.
28330         (free_insn_expr_list_list): Delete.
28331         (clear_modify_mem_tables): Call VEC_free instead.
28332         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
28333         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
28334         (canon_list_insert, compute_transp): Likewise.
28335
28336 2011-04-05  Tom de Vries  <tom@codesourcery.com>
28337
28338         PR target/43920
28339         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
28340         for size.
28341
28342 2011-04-05  Tom de Vries  <tom@codesourcery.com>
28343
28344         PR target/43920
28345         * function.c (emit_use_return_register_into_block): New function.
28346         (thread_prologue_and_epilogue_insns): Use
28347         emit_use_return_register_into_block.
28348
28349 2011-04-05  Tom de Vries  <tom@codesourcery.com>
28350
28351         PR target/43920
28352         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
28353         insn.
28354
28355 2011-04-05  Tom de Vries  <tom@codesourcery.com>
28356
28357         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
28358
28359 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
28360
28361         * config/arm/arm.md (define_constants for unspec): Replace with
28362         define_c_enum.
28363         (define_constants for unspecv): Replace with define_c_enum.
28364         * config/arm/neon.md (define_constants for unspec): Replace with
28365         define_c_enum.
28366
28367 2011-04-04  Richard Henderson  <rth@redhat.com>
28368
28369         PR bootstrap/48400
28370         * dwarf2out.c (output_line_info): Always emit line info from
28371         at least one section.
28372         (dwarf2out_init): Create text_section_line_info here ...
28373         (set_cur_line_info_table): ... not here.
28374
28375 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
28376
28377         PR target/48380
28378         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
28379         not called.
28380
28381         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
28382
28383 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
28384
28385         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
28386         (expr_equiv_p): Remove.
28387         (insert_set_in_table): Look at <dest, src> pair instead of expr.
28388         (hash_scan_set): Update call to insert_set_in_table.
28389         (dump_hash_table): Dump <dest, src> pair.
28390         (lookup_set): Simplify.  Lookup <dest, src> pair.
28391         (compute_transp): Remove, fold heavily simplified code into...
28392         (compute_local_properties): ...here.  Expect COMP and TRANSP
28393         unconditionally.
28394         (find_avail_set): Take set directly from struct expr.
28395         (find_bypass-set): Likewise.
28396         (bypass_block): Likewise.
28397         (cprop_insn): Likewise.  Remove redundant INSN_P test.
28398
28399         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
28400         checks on form of COND from find_implicit_sets to here.
28401         (find_implicit_sets): Cleanup control flow. Split critical edges
28402         if it exposes implicit sets.  Allocate/resize implicit_sets as
28403         necessary.
28404         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
28405         changed something.  Run df_analyze after find_implicit_sets if any
28406         edges were split.  Do not allocate implicit_sets here.
28407
28408         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
28409         (gcse_obstack): Renamed to cprop_obstack.
28410         (GNEW, GNEWVEC, GNEWVAR): Remove.
28411         (gmalloc): Remove.
28412         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
28413         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
28414         (gcse_alloc): Likewise, and rename to cprop_alloc.
28415         (alloc_gcse_men, free_gcse_mem): Remove.
28416         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
28417         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
28418         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
28419
28420         * cprop.c (oprs_not_set_p): Remove.
28421         (mark_set, mark_clobber): Remove.
28422         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
28423         (reg_not_set_p): New function.
28424         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
28425         (cprop_insn): Likewise.
28426         (cprop_jump): Use FOR_EACH_EDGE.
28427
28428 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
28429
28430         PR bootstrap/48403
28431         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
28432         (rank_for_schedule): Use scheduled_insns vector instead of
28433         last_scheduled_insn.
28434         (ok_for_early_queue_removal): Likewise.
28435         (queue_to_ready): Search forward in nonscheduled_insns_begin if
28436         we have a dbg_cnt.
28437         (choose_ready): Likewise.
28438         (commit_schedule): Use VEC_iterate.
28439         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
28440         a dbg_cnt, use it and ensure the first insn is in the ready list.
28441         (haifa_sched_init): Allocate scheduled_insns.
28442         (sched_extend_ready_list): Don't allocate it; reserve space.
28443         (haifa_sched_finish): Free it.
28444
28445 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
28446
28447         * optc-gen.awk: Always remove type from Variable entry before
28448         recording in var_seen.
28449
28450 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
28451
28452         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
28453         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
28454         call to tidy_fallthru_edges.
28455
28456 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
28457
28458         * doc/options.texi (ToLower): Document.
28459         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
28460         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
28461         * opts.h (cl_option): Add cl_tolower field.
28462         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
28463         arguments with lowercase strings.
28464         * config/rx/rx.opt (mcpu=): Add ToLower.
28465         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
28466         argument.
28467
28468 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
28469
28470         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
28471
28472 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
28473
28474         * config/vax/vax.c: Include reload.h.
28475
28476 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
28477
28478         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
28479         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
28480         (sparc_preferred_reload_class): New function.
28481
28482 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
28483
28484         PR debug/48401
28485         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
28486         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
28487
28488 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
28489
28490         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
28491         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
28492
28493 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
28494
28495         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
28496         (ASM_OUTPUT_ALIGNED_BSS): Define.
28497
28498 2011-04-03  Michael Matz  <matz@suse.de>
28499
28500         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
28501         and next_slot members.
28502         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
28503         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
28504         (lto_streamer_cache_append): Declare.
28505         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
28506         unsigned index, remove offset parameter, ensure that we append
28507         or update existing entries.
28508         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
28509         parameter, update next_slot for append.
28510         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
28511         parameter.
28512         (lto_streamer_cache_insert_at): Likewise.
28513         (lto_streamer_cache_append): New function.
28514         (lto_streamer_cache_lookup): Use unsigned index.
28515         (lto_streamer_cache_get): Likewise.
28516         (lto_record_common_node): Don't test tree_node_can_be_shared.
28517         (preload_common_node): Adjust call to lto_streamer_cache_insert.
28518         (lto_streamer_cache_delete): Don't free offsets member.
28519         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
28520         (lto_output_string_with_length): Use lto_output_data_stream.
28521         (lto_output_tree_header): Remove ix parameter, don't write it.
28522         (lto_output_builtin_tree): Likewise.
28523         (lto_write_tree): Adjust callers to above, don't track and write
28524         offset, write unsigned index.
28525         (output_unreferenced_globals): Don't emit all global vars.
28526         (write_global_references): Use unsigned indices.
28527         (lto_output_decl_state_refs): Likewise.
28528         (write_symbol): Likewise.
28529         * lto-streamer-in.c (lto_input_chain): Move earlier.
28530         (input_function): Use unsigned index.
28531         (input_alias_pairs): Don't read and then ignore all global vars.
28532         (lto_materialize_tree): Remove ix_p parameter, don't read index,
28533         don't pass it back, use lto_streamer_cache_append.
28534         (lto_register_var_decl_in_symtab): Use unsigned index.
28535         (lto_register_function_decl_in_symtab): Likewise.
28536         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
28537         index.
28538         (lto_get_builtin_tree): Don't read index, use
28539         lto_streamer_cache_append.
28540         (lto_read_tree): Adjust call to lto_materialize_tree.
28541
28542         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
28543         don't use function calls in arguments to MIN.
28544
28545         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
28546         twice.
28547
28548         * gimple.c (gimple_type_leader_entry): Mark deletable.
28549
28550 2011-04-03  Alan Modra  <amodra@gmail.com>
28551
28552         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
28553
28554 2011-04-03  Michael Matz  <matz@suse.de>
28555
28556         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
28557         an integer.
28558         * tree.h (tree_decl_non_common.vindex): Adjust comment.
28559
28560 2011-04-03  Michael Matz  <matz@suse.de>
28561
28562         * cgraphbuild.c (record_reference): Canonicalize constructor values.
28563         * gimple-fold.c (canonicalize_constructor_val): Accept being called
28564         without function context.
28565         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
28566         current_function_decl and cfun.
28567
28568 2011-04-03  Michael Matz  <matz@suse.de>
28569
28570         * tree.c (decl_init_priority_insert): Don't create entry for
28571         default priority.
28572         (decl_fini_priority_insert): Ditto.
28573         (fields_compatible_p, find_compatible_field): Remove.
28574         * tree.h (fields_compatible_p, find_compatible_field): Remove.
28575         * gimple.c (gimple_compare_field_offset): Adjust block comment.
28576
28577 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
28578
28579         * combine.c (try_combine): Remove useless local variable.
28580
28581 2011-04-03  Richard Guenther  <rguenther@suse.de>
28582             Ira Rosen  <ira.rosen@linaro.org>
28583
28584         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
28585         non-variable offsets and compare the remaining bases of the two
28586         accesses instead of looking for exact same data-ref.
28587
28588 2011-04-02  Kai Tietz  <ktietz@redhat.com>
28589
28590         PR target/48416
28591         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
28592
28593         * i386.c (ix86_is_msabi_thiscall): New helper function.
28594         (ix86_is_type_thiscall): New helper function.
28595         (ix86_comp_type_attributes): Handle thiscall for method-functions
28596         special.
28597         (init_cumulative_args): Likewise.
28598         (find_drap_reg): Likewise.
28599         (ix86_static_chain): Likewise.
28600         (x86_this_parameter): Likewise.
28601         (x86_output_mi_thunk): Likewise.
28602
28603 2011-04-01  Olivier Hainque  <hainque@adacore.com>
28604             Nicolas Setton  <setton@adacore.com>
28605             Eric Botcazou  <ebotcazou@adacore.com>
28606
28607         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
28608         (add_gnat_descriptive_type_attribute): New function.
28609         (gen_array_type_die): Call it.
28610         (gen_enumeration_type_die): Likewise.
28611         (gen_struct_or_union_type_die): Likewise.
28612         (modified_type_die): Likewise.
28613         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
28614         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
28615         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
28616
28617 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
28618
28619         PR bootstrap/48148
28620         * dwarf2out.c (resolve_addr): Don't call force_decl_die
28621         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
28622
28623         Revert:
28624         2011-03-17  Richard Guenther  <rguenther@suse.de>
28625
28626         PR bootstrap/48148
28627         * lto-cgraph.c (input_overwrite_node): Clear the abstract
28628         origin for decls in other ltrans units.
28629         (input_varpool_node): Likewise.
28630
28631 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
28632
28633         PR middle-end/48335
28634         * expr.c (expand_assignment): Handle all possibilities
28635         if TO_RTX is CONCAT.
28636         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
28637         (store_split_bit_field): If SUBREG_REG (op0) or
28638         op0 itself has smaller mode than word, return it
28639         for offset 0 and const0_rtx for out-of-bounds stores.
28640         If word is const0_rtx, skip it.
28641
28642 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
28643
28644         * config/h8300/h8300.c (print_operand_address): Rename to...
28645         (h8300_print_operand_address): ...this. Make static. Adjust comments.
28646         Call h8300_print_operand and h8300_print_operand_address instead of
28647         print_operand and print_operand_address. Declare.
28648         (print_operand): Renake to...
28649         (h8300_print_operand): ...this. Make static. Adjust comments.
28650         Call h8300_print_operand instead of print_operand. Declare.
28651         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
28652         (h8300_register_move_cost): Likewise.
28653         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
28654         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
28655         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
28656         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
28657         * config/h8300/h8300-protos.h (print_operand): Delete.
28658         (print_operand_address): Delete.
28659
28660 2011-04-01  Richard Henderson  <rth@redhat.com>
28661
28662         PR 48400
28663         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
28664         in strict mode before dwarf4.  Re-order tests to early out
28665         before switching sections.
28666
28667 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
28668
28669         * config/h8300/constraints.md: New file.
28670         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
28671         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
28672         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
28673         * config/h8300/predicates.md (bit_operand): Likewise.
28674         (incdec_operand): Use satisfies_constraint_M and
28675         satisfies_constraint_O.  Don't use C code block.
28676         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
28677         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
28678         (compute_mov_length): Use satisfies_constraint_G.
28679         (fix_bit_operand): Use satisfies_constraint_U.
28680         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
28681         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
28682         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
28683         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
28684         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
28685         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
28686         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28687         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
28688         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
28689         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
28690         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
28691         (EXTRA_MEMORY_CONSTRAINT): Delete.
28692
28693 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
28694             Michael Meissner  <meissner@linux.vnet.ibm.com>
28695
28696         PR target/48262
28697         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
28698         operands, as per the specifications.
28699
28700         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
28701         (vec_extract_evenv4sf): Ditto.
28702         (vec_extract_evenv8hi): Ditto.
28703         (vec_extract_evenv16qi): Ditto.
28704         (vec_extract_oddv4si): Ditto.
28705
28706 2011-03-31  Mark Wielaard  <mjw@redhat.com>
28707
28708         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
28709         high_pc attribute if the CU has no associated code. Only output
28710         DW_AT_entry_pc for CU if not generating strict dwarf and
28711         dwarf_version < 4.
28712
28713 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
28714
28715         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
28716         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
28717         out of ...
28718         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
28719         * final.c (final_start_function): Call the new function rather
28720         than using a NULL argument for dwarf2out_frame_debug.
28721
28722         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
28723         that contains the prologue.
28724
28725         * haifa-sched.c (queue_insn): New arg REASON.  All callers
28726         changed.  Print it in debugging output.
28727
28728         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
28729
28730         * sched-ebb.c (begin_schedule_ready): Remove second argument.
28731         Split most of the code into...
28732         (begin_move_insn): ... here.  New function.
28733         (ebb_sched_info): Add a pointer to it.
28734         * haifa-sched.c (scheduled_insns): New static variable.
28735         (sched_extend_ready_list): Allocate it.
28736         (schedule_block): Use it to record the order of scheduled insns.
28737         Perform RTL changes to move insns only after all scheduling
28738         decisions have been made.
28739         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
28740         begin_move_insn field.
28741         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
28742         * sched-int.h (struct haifa_sched_info): Remove second argument
28743         from begin_schedule_ready hook.  Add new member begin_move_insn.
28744         * sched-rgn.c (begin_schedule_ready): Remove second argument.
28745         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
28746
28747         * haifa-sched.c (prune_ready_list): New function, broken out of
28748         schedule_block.
28749         (schedule_block): Use it.
28750
28751 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28752
28753         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
28754
28755 2011-04-01  Kai Tietz  <ktietz@redhat.com>
28756
28757         * config.gcc (*-*-mingw*): Allow as option the
28758         posix threading model.
28759         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
28760         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
28761         definition.
28762         (CPP_SPEC): Add pthread/no-pthread handling.
28763         (LIB_SPEC): Likewise.
28764         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
28765         (LIB_SPEC): Likewise.
28766         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
28767         flag to pass -pthread option for shared libgcc build.
28768         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
28769         for shared libgcc build.
28770         * config/i386/t-mingw-pthread: New file.
28771         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
28772         New define to enable use of library pthread by default.
28773         * config/i386/mingw.opt (pthread): New driver option.
28774         (no-pthread): New driver option.
28775         * config/i386/cygming.opt: Make sure trailing empty line is retained.
28776         * config/i386/mingw-w64.opt: Likewise.
28777
28778 2011-04-01  Gary Funck  <gary@intrepid.com>
28779
28780         * c-decl.c (grokdeclarator): Fix formatting.
28781
28782 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
28783
28784         * expr.c (emit_block_move_via_movmem): Use n_generator_args
28785         instead of n_operands.
28786         (set_storage_via_setmem): Likewise.
28787         * optabs.c (maybe_gen_insn): Likewise.
28788         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
28789         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
28790         (mips_expand_builtin_direct): Likewise.
28791         * config/spu/spu.c (expand_builtin_args): Likewise.
28792
28793 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
28794
28795         * recog.h (insn_data_d): Add n_generator_args.
28796         * genoutput.c (data): Likewise.
28797         (output_insn_data): Print it.
28798         (max_opno, num_dups): Delete.
28799         (scan_operands): Just fill in "d->operand[...]".
28800         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
28801
28802 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
28803
28804         * gensupport.h (pattern_stats): New structure.
28805         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
28806         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
28807         (max_operand_1, max_operand_vec): Delete.
28808         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
28809
28810 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
28811
28812         * emit-rtl.c (emit_pattern_after_setloc): New function.
28813         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
28814         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
28815         (emit_pattern_after): New function.
28816         (emit_insn_after, emit_jump_insn_after): Call it.
28817         (emit_call_insn_after, emit_debug_insn_after): Likewise.
28818         (emit_pattern_before_setloc): New function.
28819         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
28820         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
28821         Likewise.
28822         (emit_pattern_before): New function.
28823         (emit_insn_before, emit_jump_insn_before): Call it.
28824         (emit_call_insn_before, emit_debug_insn_before): Likewise.
28825
28826 2011-03-31  Richard Henderson  <rth@redhat.com>
28827
28828         * dwarf2out.c (dw_separate_line_info_ref): Remove.
28829         (dw_separate_line_info_entry): Remove.
28830         (enum dw_line_info_opcode): New.
28831         (dw_line_info_entry): Use it.
28832         (dw_line_info_table, dw_line_info_table_p): New.
28833         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
28834         (line_info_table, line_info_label_num): Remove.
28835         (line_info_table_in_use): Remove.
28836         (separate_line_info_table): Remove.
28837         (separate_line_info_table_allocated): Remove.
28838         (separate_line_info_table_in_use): Remove.
28839         (LINE_INFO_TABLE_INCREMENT): Remove.
28840         (line_info_label_num): New.
28841         (cur_line_info_table): New.
28842         (text_section_line_info, cold_text_section_line_info): New.
28843         (separate_line_info): New.
28844         (SEPARATE_LINE_CODE_LABEL): Remove.
28845         (print_dwarf_line_table): Remove.
28846         (debug_dwarf): Don't dump it.
28847         (output_one_line_info_table): New.
28848         (output_line_info): Use it.
28849         (new_line_info_table): New.
28850         (set_cur_line_info_table): New.
28851         (dwarf2out_switch_text_section): Use it.
28852         (dwarf2out_begin_function): Likewise.
28853         (push_dw_line_info_entry): New.
28854         (dwarf2out_source_line): Rewrite for new line info tables.
28855         (dwarf2out_init): Remove dead initailizations.
28856
28857 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
28858
28859         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
28860         various flags.
28861         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
28862         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
28863         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
28864         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
28865         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
28866         * opt-functions.awk (flag_init, switch_bit_fields): New.
28867         (switch_flags): Don't handle flags moved to bit-fields.  Don't
28868         generate CL_MISSING_OK or CL_SAVE.
28869         * optc-gen.awk: Update to generate bit-field output as well as
28870         flags field.
28871         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
28872         bit-field instead of CL_REJECT_DRIVER flag.
28873         * opts-common.c (generate_canonical_option,
28874         decode_cmdline_option): Use bit-fields instead of CL_* flags.
28875         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
28876         instead of CL_REJECT_NEGATIVE flag.
28877         * toplev.c (print_switch_values): Use cl_report bit-field instead
28878         of CL_REPORT flag.
28879
28880 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
28881
28882         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
28883         a zero minimum index only if it is redundant.
28884
28885 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
28886
28887         PR rtl-optimization/48381
28888         * ira-color.c (assign_hard_reg): Use hard reg set intersection
28889         instead of ira_class_hard_reg_index for calculating conflicting
28890         hard registers.
28891
28892 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
28893
28894         * cprop.c: Clean up hash table building.
28895         (reg_avail_info): Remove.
28896         (oprs_available_p): Remove.
28897         (record_last_reg_set_info): Remove.
28898         (record_last_set_info): Remove.
28899         (reg_available_p): New function.
28900         (gcse_constant_p): Do not treat unfolded conditions as constants.
28901         (make_set_regs_unavailable): New function.
28902         (hash_scan_set): Simplify with new reg_available_p.
28903         (compute_hash_table_work): Traverse insns stream only once.
28904         Do not compute reg_avail_info. Traverse insns in reverse order.
28905         Record implicit sets after recording explicit sets from the block.
28906
28907 2011-03-31  Michael Matz  <matz@suse.de>
28908
28909         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
28910
28911 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
28912
28913         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
28914         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
28915         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
28916         (h8300_mode_dependent_address_p): New function.
28917         (h8300_get_index): Make static.
28918
28919 2011-03-31  Jeff Law  <law@redhat.com>
28920
28921         * reload1.c (elimination_effects): Fix typo in recent change.
28922
28923         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
28924         typo potentially leading to null pointer dereference.
28925
28926         * caller-save.c (new_saved_hard_reg): Eliminate return value.
28927         (setup_save_areas): Corresponding changes to avoid useless
28928         assignments.
28929
28930         * jump.c (reversed_comparison_code_parts): Avoid successive return
28931         statements when REVERSE_CONDITION is defined.
28932
28933         * expr.c (expand_assignment): Avoid useless assignments.
28934         (expand_expr_real_1): Likewise.
28935         (expand_expr_real_2): Avoid useless statements.
28936
28937         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
28938
28939         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
28940
28941         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
28942         statements.
28943
28944         * stmt.c (expand_expr_stmt): Avoid useless assignment.
28945
28946 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
28947
28948         PR target/47109
28949         * doc/tm.texi.in (TARGET_VERSION): Remove.
28950         * doc/tm.texi: Regenerate.
28951         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
28952         * collect2.c (main): Don't use TARGET_VERSION.
28953         * mips-tdump.c (main): Don't use TARGET_VERSION.
28954         * mips-tfile.c (main): Don't use TARGET_VERSION.
28955         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
28956         * config/rs6000/vxworksae.h: Remove.
28957         * config/alpha/alpha.h (TARGET_VERSION): Remove.
28958         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
28959         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
28960         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
28961         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
28962         * config/arm/arm.h (TARGET_VERSION): Remove.
28963         * config/arm/coff.h (TARGET_VERSION): Remove.
28964         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
28965         * config/arm/elf.h (TARGET_VERSION): Remove.
28966         * config/arm/freebsd.h (TARGET_VERSION): Remove.
28967         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
28968         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
28969         * config/arm/pe.h (TARGET_VERSION): Remove.
28970         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
28971         * config/arm/semi.h (TARGET_VERSION): Remove.
28972         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
28973         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
28974         * config/arm/vxworks.h (TARGET_VERSION): Remove.
28975         * config/avr/avr.h (TARGET_VERSION): Remove.
28976         * config/bfin/bfin.h (TARGET_VERSION): Remove.
28977         * config/fr30/fr30.h (TARGET_VERSION): Remove.
28978         * config/frv/frv.h (TARGET_VERSION): Remove.
28979         * config/h8300/h8300.h (TARGET_VERSION): Remove.
28980         * config/i386/cygwin.h (TARGET_VERSION): Remove.
28981         * config/i386/darwin.h (TARGET_VERSION): Remove.
28982         * config/i386/darwin64.h (TARGET_VERSION): Remove.
28983         * config/i386/djgpp.h (TARGET_VERSION): Remove.
28984         * config/i386/freebsd.h (TARGET_VERSION): Remove.
28985         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
28986         * config/i386/gnu.h (TARGET_VERSION): Remove.
28987         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
28988         * config/i386/i386elf.h (TARGET_VERSION): Remove.
28989         * config/i386/linux.h (TARGET_VERSION): Remove.
28990         * config/i386/linux64.h (TARGET_VERSION): Remove.
28991         * config/i386/lynx.h (TARGET_VERSION): Remove.
28992         * config/i386/mingw32.h (TARGET_VERSION): Remove.
28993         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
28994         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
28995         * config/i386/netware.h (TARGET_VERSION): Remove.
28996         * config/i386/nto.h (TARGET_VERSION): Remove.
28997         * config/i386/openbsd.h (TARGET_VERSION): Remove.
28998         * config/i386/vxworks.h (TARGET_VERSION): Remove.
28999         * config/ia64/elf.h (TARGET_VERSION): Remove.
29000         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
29001         * config/ia64/hpux.h (TARGET_VERSION): Remove.
29002         * config/ia64/linux.h (TARGET_VERSION): Remove.
29003         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
29004         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
29005         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
29006         * config/lm32/lm32.h (TARGET_VERSION): Remove.
29007         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
29008         * config/m32c/m32c.h (TARGET_VERSION): Remove.
29009         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
29010         * config/m32r/m32r.h (TARGET_VERSION): Remove.
29011         * config/m68k/linux.h (TARGET_VERSION): Remove.
29012         * config/m68k/m68k.h (TARGET_VERSION): Remove.
29013         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
29014         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
29015         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
29016         * config/mep/mep.h (TARGET_VERSION): Remove.
29017         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
29018         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
29019         * config/mips/iris6.h (MACHINE_TYPE): Remove.
29020         * config/mips/linux.h (TARGET_VERSION): Remove.
29021         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
29022         * config/mips/vxworks.h (TARGET_VERSION): Remove.
29023         * config/mmix/mmix.h (TARGET_VERSION): Remove.
29024         * config/mn10300/linux.h (TARGET_VERSION): Remove.
29025         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
29026         * config/pa/pa.h (TARGET_VERSION): Remove.
29027         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
29028         * config/picochip/picochip.h (TARGET_VERSION): Remove.
29029         * config/rs6000/aix.h (TARGET_VERSION): Remove.
29030         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
29031         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
29032         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
29033         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
29034         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
29035         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
29036         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
29037         * config/rs6000/linux.h (TARGET_VERSION): Remove.
29038         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
29039         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
29040         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
29041         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
29042         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
29043         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
29044         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
29045         * config/s390/linux.h (TARGET_VERSION): Remove.
29046         * config/s390/s390.h (TARGET_VERSION): Remove.
29047         * config/s390/tpf.h (TARGET_VERSION): Remove.
29048         * config/score/score.h (TARGET_VERSION): Remove.
29049         * config/sh/linux.h (TARGET_VERSION): Remove.
29050         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
29051         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
29052         * config/sh/sh.h (TARGET_VERSION): Remove.
29053         * config/sh/sh64.h (TARGET_VERSION): Remove.
29054         * config/sh/superh.h (TARGET_VERSION): Remove.
29055         * config/sh/vxworks.h (TARGET_VERSION): Remove.
29056         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
29057         * config/sparc/linux.h (TARGET_VERSION): Remove.
29058         * config/sparc/linux64.h (TARGET_VERSION): Remove.
29059         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
29060         TARGET_NAME32, TARGET_NAME): Remove.
29061         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
29062         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
29063         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
29064         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
29065         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
29066         * config/spu/spu.h (TARGET_VERSION): Remove.
29067         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
29068         * config/v850/v850.h (TARGET_VERSION): Remove.
29069         * config/vax/linux.h (TARGET_VERSION): Remove.
29070         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
29071         * config/xtensa/elf.h (TARGET_VERSION): Remove.
29072         * config/xtensa/linux.h (TARGET_VERSION): Remove.
29073
29074 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
29075
29076         PR target/48142
29077         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
29078         frame-related from frame-unrelated adjustments to the stack pointer.
29079
29080 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
29081
29082         * common.opt (fdebug-types-section): Move earlier.
29083         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
29084
29085 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
29086
29087         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
29088         var.
29089
29090 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
29091
29092         * tree.h (CASE_CHAIN): Define.
29093         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
29094         (gimple_redirect_edge_and_branch): Likewise.
29095
29096 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
29097
29098         PR middle-end/48367
29099         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
29100         calculation.
29101
29102 2011-03-30  Jeff Law  <law@redhat.com>
29103
29104         * PR bootstrap/48371
29105         * reload1.c (reload): Fix botch in last change.
29106
29107         * reload.h (struct reload): Fix typo introduced in last change.
29108
29109 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
29110
29111         * config/arm/arm.opt (mhard-float, msoft-float): Mark
29112         Undocumented.  Remove help text.
29113         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
29114         -mhard-float.
29115
29116 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
29117
29118         * doc/options.texi (NegativeAlias): Document.
29119         (Alias): Mention NegativeAlias.
29120         * opt-functions.awk: Handle NegativeAlias.
29121         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
29122         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
29123         * opts.h (CL_NEGATIVE_ALIAS): Define.
29124         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
29125         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
29126         OPT_mspe_.
29127         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
29128         Alias entries.
29129         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
29130         mno-spe and mno-isel instead of mspe=no and -misel=no.
29131
29132 2011-03-29  Mark Wielaard  <mjw@redhat.com>
29133
29134         * common.opt (fdebug-types-section): New flag.
29135         * doc/invoke.texi: Document new -fno-debug-types-section flag.
29136         * dwarf2out.c (use_debug_types): New define.
29137         (struct die_struct): Mark die_id with GTY desc use_debug_types.
29138         (print_die): Guard output of type unit signatures using
29139         use_debug_types.
29140         (build_abbrev_table): Replace assert of dwarf_version >= 4
29141         with assert on use_debug_types.
29142         (size_of_die): Likewise.
29143         (unmark_dies): Likewise.
29144         (value_format): Decide AT_ref_external form on use_debug_types.
29145         (output_die): Replace dwarf_version version check guard with
29146         use_debug_types where appropriate.
29147         (modified_type_die): Likewise.
29148         (gen_reference_type_die): Likewise.
29149         (dwarf2out_start_source_file): Likewise.
29150         (dwarf2out_end_source_file): Likewise.
29151         (prune_unused_types_walk_attribs): Likewise.
29152         (dwarf2out_finish): Likewise.
29153
29154 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
29155
29156         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
29157
29158 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
29159
29160         PR rtl-optimization/48332
29161         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
29162         mode of input operand N and modeN to its actual mode.
29163
29164 2011-03-30  Jeff Law  <law@redhat.com>
29165
29166         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
29167         define accessor macro.
29168         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
29169         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
29170         (reg_equiv_init): Likewise.
29171         (reg_equivs_size): New variable.
29172         (reg_equiv_init_size): Remove.
29173         (allocate_initial_values): Move prototype to here from....
29174         * integrate.h (allocate_initial_values): Remove prototype.
29175         * integrate.c: Include reload.h.
29176         (allocate_initial_values): Corresponding changes.
29177         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
29178         (fix_reg_equiv_init, no_equiv): Corresponding changes.
29179         (update_equiv_regs): Corresponding changes.
29180         (ira): Corresponding changes.
29181         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
29182         (push_secondary_reload): Corresponding changes.
29183         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
29184         (make_memloc, find_reloads_address): Corresponding changes.
29185         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
29186         (find_reloads_address_1): Corresponding changes.
29187         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
29188         (refers_to_regno_for_reload_p): Corresponding changes.
29189         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
29190         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
29191         * reload1.c: Include ggc.h.
29192         (grow_reg_equivs): New function.
29193         (replace_pseudos_in, reload): Corresponding changes.
29194         (calculate_needs_all_insns, alter_regs): Corresponding changes.
29195         (eliminate_regs_1, elimination_effects): Corresponding changes.
29196         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
29197         (delete_output_reload): Likewise.
29198         * caller-save.c (mark_referenced_regs): Corresponding changes.
29199         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
29200         * frv/predicates.md (frv_load_operand): Corresponding changes.
29201         * microblaze/microblaze.c (double_memory_operand): Corresponding
29202         changes.
29203         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
29204         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
29205         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
29206         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
29207         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
29208         changes.
29209         * pa/pa.c (emit_move_sequence): Corresponding changes.
29210         * vax/vax.c (nonindexed_address_p): Corresponding changes.
29211
29212 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
29213
29214         PR target/47551
29215         * config/arm/arm.c (coproc_secondary_reload_class): Handle
29216         structure modes.  Don't check neon_vector_mem_operand for
29217         vector or structure modes.
29218
29219 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
29220             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
29221
29222         PR target/43590
29223         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
29224         operand 1 and reshuffle the operands to match.
29225         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
29226
29227 2011-03-30  Christian Schüler  <cschueler@gmx.de>
29228
29229         PR driver/48208
29230         * config/c.opt (F): Added 'Driver' to -F option.
29231
29232         PR driver/48260
29233         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
29234           handler function.
29235         * config/darwin.opt: Added '-arch' option.
29236
29237 2011-03-30  Nick Clifton  <nickc@redhat.com>
29238
29239         * config/rx/rx.md: Add peepholes and patterns to combine
29240         extending loads and simple arithmetic instructions.
29241         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
29242         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
29243         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
29244         modes to use pre-decrement and post-increment addressing.
29245         (rx_is_restricted_memory_address): Add range checking of REG+INT
29246         addresses.
29247         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
29248         (rx_memory_move_cost): Adjust cost of stores.
29249         (rx_adjust_insn_length): New function.
29250
29251 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
29252
29253         PR c/48305
29254         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
29255         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
29256         matching arg00/arg01 types.
29257
29258 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
29259
29260         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
29261         last_location to UNKNOWN_LOCATION.
29262
29263 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
29264
29265         PR target/48349
29266         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
29267         FLOAT_SSE_REGS.
29268
29269 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
29270             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29271
29272         PR bootstrap/48337
29273         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
29274         Init(PROCESSOR_V7).
29275         (sparc_cpu): Likewise.
29276         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
29277         PROCESSOR_V7.
29278
29279 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
29280
29281         PR target/48336
29282         PR middle-end/48342
29283         PR rtl-optimization/48345
29284         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
29285         hard regs for given mode from profitable regs when doing secondary
29286         allocation.
29287
29288 2011-03-29  Jeff Law  <law@redhat.com>
29289
29290         PR bootstrap/48327
29291         * tree-ssa-threadupdate.c (struct redirection_data): Remove
29292         do_not_duplicate field.
29293         (lookup_redirection_data): Corresponding changes.
29294         (create_duplicates): Always create a template block.
29295         (redirect_edges): Remove code which reused the original block
29296         when it was going to become unreachable code.
29297         (thread_block): Don't set do_not_duplicate field.
29298
29299 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
29300
29301         * lto-opts.c (register_user_option_p, lto_register_user_option):
29302         Make type argument unsigned.
29303         * lto-streamer.h (lto_register_user_option): Make type argument
29304         unsigned.
29305         * opth-gen.awk: Make CL_* macros unsigned.
29306         * opts-common.c (find_opt): Make lang_mask argument unsigned.
29307         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
29308         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
29309         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
29310         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
29311         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
29312         (find_opt): Make lang_mask argument unsigned.
29313
29314 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
29315
29316         PR rtl-optimization/48331
29317         PR rtl-optimization/48334
29318         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
29319         for any used algorithm.
29320
29321 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
29322
29323         * ira-conflicts.c (build_object_conflicts): Add unused attribute
29324         to parent_max.
29325
29326 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
29327
29328         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
29329         (alpha_option_override): Don't set alpha_sr_alias_set.
29330         (emit_frame_store_1): Use gen_frame_mem rather than calling
29331         set_mem_alias_set.
29332         (alpha_expand_epilogue): Ditto.
29333
29334 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
29335
29336         PR tree-optimization/48290
29337         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
29338         vectorization, check that relevant phis in the basic block after
29339         the inner loop are really inner loop's exit phis.
29340
29341 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
29342
29343         PR debug/48190
29344         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
29345         (cached_dw_loc_list_def): New structure.
29346         (cached_dw_loc_list): New typedef.
29347         (cached_dw_loc_list_table): New variable.
29348         (cached_dw_loc_list_table_hash): New function.
29349         (cached_dw_loc_list_table_eq): Likewise.
29350         (add_location_or_const_value_attribute): Take a bool cache_p.
29351         Cache the list when the parameter is true.
29352         (gen_formal_parameter_die): Update caller.
29353         (gen_variable_die): Likewise.
29354         (dwarf2out_finish): Likewise.
29355         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
29356         while generating debug info for the decl.
29357         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
29358         (dwarf2out_init): Initialize cached_dw_loc_list_table.
29359         (resolve_addr): Cache the result of resolving a chain of
29360         location lists.
29361
29362 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
29363
29364         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
29365         conflict object hard regset nodes have intersecting hard reg sets.
29366
29367         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
29368         after regstat_init_n_sets_and_refs.
29369
29370         * ira.c: Add more comments at the top.
29371         (setup_stack_reg_pressure_class, setup_pressure_classes):
29372         Add comments how we compute the register pressure classes.
29373         (setup_allocno_and_important_classes): Add more comments.
29374         (setup_class_translate_array, reorder_important_classes)
29375         (setup_reg_class_relations): Add comments.
29376
29377         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
29378         start of the file.
29379
29380         * ira-color.c: Add 2011 to the Copyright line.
29381         (assign_hard_reg):  Add more comments.
29382         (improve_allocation): Ditto.
29383
29384         * ira-costs.c: Add 2011 to the Copyright line.
29385         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
29386         comments.
29387         (setup_regno_cost_classes_by_mode): Ditto.
29388
29389         Initial patches from ira-improv branch:
29390
29391         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
29392
29393         * ira-build.c (ira_create_object): Remove initialization of
29394         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
29395         (ira_create_allocno): Remove initialization of
29396         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
29397         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
29398         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
29399         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
29400         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
29401         Initialize ALLOCNO_ADD_DATA.
29402         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
29403         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
29404         ALLOCNO_REG.
29405         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
29406         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
29407
29408         * ira.c (ira_reallocate): Remove.
29409         (setup_pressure_classes): Call
29410         ira_init_register_move_cost_if_necessary.  Use
29411         ira_register_move_cost instead of ira_get_register_move_cost.
29412         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
29413         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
29414
29415         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
29416         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
29417         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
29418         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
29419         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
29420         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
29421         Fix formatting.
29422         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
29423         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
29424         (struct allocno_color_data): New.
29425         (allocno_color_data_t): New typedef.
29426         (allocno_color_data): New definition.
29427         (ALLOCNO_COLOR_DATA): New macro.
29428         (struct object_color_data): New.
29429         (object_color_data_t): New typedef.
29430         (object_color_data): New definition.
29431         (OBJECT_COLOR_DATA): New macro.
29432         (update_copy_costs, calculate_allocno_spill_cost): Call
29433         ira_init_register_move_cost_if_necessary.  Use
29434         ira_register_move_cost instead of ira_get_register_move_cost.
29435         (move_spill_restore, update_curr_costs): Ditto.
29436         (allocno_spill_priority): Make it inline.
29437         (color_pass): Allocate and free allocno_color_dat and object_color_data.
29438         (struct coalesce_data, coalesce_data_t): New.
29439         (allocno_coalesce_data): New definition.
29440         (ALLOCNO_COALESCE_DATA): New macro.
29441         (merge_allocnos, coalesced_allocno_conflict_p): Use
29442         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
29443         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
29444         (coalesce_allocnos): Ditto.
29445         (setup_coalesced_allocno_costs_and_nums): Ditto.
29446         (collect_spilled_coalesced_allocnos): Ditto.
29447         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
29448         (setup_slot_coalesced_allocno_live_ranges): Ditto.
29449         (coalesce_spill_slots): Ditto.
29450         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
29451         free allocno_coalesce_data.
29452
29453         * ira-conflicts.c: Fix formatting.
29454         (process_regs_for_copy): Call
29455         ira_init_register_move_cost_if_necessary.  Use
29456         ira_register_move_cost instead of ira_get_register_move_cost.
29457         (build_object_conflicts): Optimize.
29458
29459         * ira-costs.c (record_reg_classes): Optimize.  Call
29460         ira_init_register_move_cost_if_necessary.  Use
29461         ira_register_move_cost, ira_may_move_in_cost, and
29462         ira_may_move_out_cost instead of ira_get_register_move_cost and
29463         ira_get_may_move_cost.
29464         (record_address_regs): Ditto.
29465         (scan_one_insn): Optimize.
29466         (find_costs_and_classes): Optimize.
29467         (process_bb_node_for_hard_reg_moves): Call
29468         ira_init_register_move_cost_if_necessary.  Use
29469         ira_register_move_cost instead of ira_get_register_move_cost.
29470
29471         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
29472         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
29473         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
29474         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
29475         definitions.
29476         (ira_initiate_emit_data, ira_finish_emit_data)
29477         (create_new_allocno): New functions.
29478         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
29479         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
29480         Use ira_register_move_cost instead of ira_get_register_move_cost.
29481
29482         * ira-int.h: Fix some comments.
29483         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
29484         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
29485         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
29486         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
29487         add_data.
29488         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
29489         bitfield after mode.  Make hard_regno a short int.  Make
29490         hard_regno short.  Remove first_coalesced_allocno and
29491         next_coalesced_allocno.  Move mem_optimized_dest_p,
29492         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
29493         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
29494         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
29495         temp, colorable_p.  Add new member add_data.
29496         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
29497         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
29498         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
29499         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
29500         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
29501         (ALLOCNO_ADD_DATA): New macro.
29502         (ira_emit_data_t): New typedef.
29503         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
29504         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
29505         from struct ira_allocno.
29506         (ALLOCNO_EMIT_DATA): New macro.
29507         (ira_allocno_emit_data, allocno_emit_reg): New.
29508         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
29509         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
29510         (OBJECT_ADD_DATA): New macro.
29511         (ira_reallocate): Remove.
29512         (ira_initiate_emit_data, ira_finish_emit_data): New.
29513         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
29514         (ira_init_register_move_cost_if_necessary): New.
29515         (ira_object_conflict_iter_next): Merge into
29516         ira_object_conflict_iter_cond.
29517         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
29518
29519         * ira-live.c (process_single_reg_class_operands): Call
29520         ira_init_register_move_cost_if_necessary.  Use
29521         ira_register_move_cost instead of ira_get_register_move_cost.
29522
29523         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
29524
29525         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
29526
29527         * ira-costs.c: Fix formatting.
29528         (cost_classes, cost_classes_num): Remove.
29529         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
29530         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
29531         (cost_classes_del, cost_classes_htab): New.
29532         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
29533         (initiate_regno_cost_classes, setup_cost_classes): New.
29534         (setup_regno_cost_classes_by_aclass): New.
29535         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
29536         (record_reg_classes): Use regno_cost_classes instead of
29537         cost_classes.  Move checking opposite operand up.
29538         (record_address_regs): Use regno_cost_classes
29539         instead of cost_classes.
29540         (scan_one_insn): Ditto.  Use always general register.
29541         (print_allocno_costs): Use regno_cost_classes instead of
29542         cost_classes.
29543         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
29544         (find_costs_and_classes): Set up cost classes for each registers.
29545         Use also their mode for this.  Use regno_cost_classes instead of
29546         cost_classes.
29547         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
29548         cost_classes.
29549         (free_ira_costs, ira_init_costs): Don't use cost_classes.
29550         (ira_costs, ira_set_pseudo_classes): Call
29551         initiate_regno_cost_classes and finish_regno_cost_classes.
29552
29553         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
29554
29555         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
29556
29557         * target.def (ira_cover_classes): Remove.
29558
29559         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
29560
29561         * doc/tm.texi.in: Ditto.
29562
29563         * ira-conflicts.c: Remove mentioning cover classes from the file.
29564         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
29565         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
29566
29567         * targhooks.c (default_ira_cover_classes): Remove.
29568
29569         * targhooks.h (default_ira_cover_classes): Ditto.
29570
29571         * haifa-sched.c: Remove mentioning cover classes from the file.
29572         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
29573         ira_pressure_classes and ira_pressure_classes_num instead of
29574         ira_reg_class_cover_size and ira_reg_class_cover.  Use
29575         sched_regno_pressure_class instead of sched_regno_cover_class.
29576         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
29577         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
29578
29579         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
29580         classes from the file.
29581         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
29582         (struct object_hard_regs, struct object_hard_regs_node): New.
29583         (struct ira_object): New members profitable_hard_regs,
29584         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
29585         (struct ira_allocno): Rename cover_class to aclass.  Rename
29586         cover_class_cost and updated_cover_class_cost to class_cost and
29587         updated_class_cost.  Remove splay_removed_p and
29588         left_conflict_size.  Add new members colorable_p.
29589         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
29590         (ALLOCNO_COLORABLE_P): New macro.
29591         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
29592         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
29593         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
29594         (OBJECT_...): Rename parameter C to O.
29595         (OBJECT_PROFITABLE_HARD_REGS): New macro.
29596         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
29597         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
29598         (struct target_ira_int): New members x_ira_max_memory_move_cost,
29599         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
29600         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
29601         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
29602         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
29603         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
29604         x_ira_reg_class_subunion.
29605         (ira_max_memory_move_cost, ira_max_register_move_cost)
29606         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
29607         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
29608         (ira_important_class_nums, ira_reg_class_superunion): New macros.
29609         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
29610         (ira_reg_class_union): Rename to ira_reg_class_subunion.
29611         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
29612         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
29613         (ira_tune_allocno_costs_and_cover_classes): Rename to
29614         ira_tune_allocno_costs.
29615         (ira_debug_hard_regs_forest): New.
29616         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
29617         (ira_object_conflict_iter_next): Fix comments.
29618         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
29619         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
29620         cover_class to aclass.
29621         (ira_allocate_and_accumulate_costs): Ditto.
29622         (ira_allocate_and_set_or_copy_costs): Ditto.
29623
29624         * opts.c (decode_options): Remove ira_cover_class check.
29625
29626         * ira-color.c: Remove mentioning cover classes from the file.  Use
29627         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
29628         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
29629         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
29630         (splay-tree.h): Remove include.
29631         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
29632         before copy_freq_compare_func.
29633         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
29634         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
29635         New definitions.
29636         (hard_regs_roots, hard_regs_node_vec): Ditto.
29637         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
29638         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
29639         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
29640         (create_new_object_hard_regs_node): Ditto.
29641         (add_new_object_hard_regs_node_to_forest): Ditto.
29642         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
29643         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
29644         Ditto.
29645         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
29646         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
29647         (remove_unused_object_hard_regs_nodes): Ditto.
29648         (enumerate_object_hard_regs_nodes): Ditto.
29649         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
29650         (object_hard_regs_subnode_t): Ditto.
29651         (struct object_hard_regs_subnode): Ditto.
29652         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
29653         (setup_object_hard_regs_subnode_index): Ditto.
29654         (get_object_hard_regs_subnodes_num): Ditto.
29655         (form_object_hard_regs_nodes_forest): Ditto.
29656         (finish_object_hard_regs_nodes_tree): Ditto.
29657         (finish_object_hard_regs_nodes_forest): Ditto.
29658         (allocnos_have_intersected_live_ranges_p): Rename to
29659         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
29660         (pseudos_have_intersected_live_ranges_p): Rename to
29661         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
29662         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
29663         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
29664         (update_copy_costs): Remove assert.  Skip cost update if the hard
29665         reg does not belong the class.
29666         (assign_hard_reg): Process only profitable hard regs.
29667         (uncolorable_allocnos_num): Make it scalar.
29668         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
29669         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
29670         and ira_reg_class_max_nregs.
29671         (bucket_allocno_compare_func): Check frequency first.
29672         (sort_bucket): Add compare function as a parameter.
29673         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
29674         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
29675         (push_allocno_to_stack): Rewrite for checking new allocno
29676         colorability.
29677         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
29678         (push_only_colorable): Pass new parameter to sort_bucket.
29679         (push_allocno_to_spill): Remove.
29680         (allocno_spill_priority_compare): Make it inline and rewrite.
29681         (splay_tree_allocate, splay_tree_free): Remove.
29682         (allocno_spill_sort_compare): New function.
29683         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
29684         build and use splay tree.  Choose first allocno in uncolorable
29685         allocno bucket to spill.  Remove setting spill cost.
29686         (all_conflicting_hard_regs): Remove.
29687         (setup_allocno_available_regs_num): Check only profitable hard
29688         regs.  Print info about hard regs nodes.
29689         (setup_allocno_left_conflicts_size): Remove.
29690         (put_allocno_into_bucket): Don't call
29691         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
29692         (improve_allocation): New.
29693         (color_allocnos): Call setup_profitable_hard_regs,
29694         form_object_hard_regs_nodes_forest, improve_allocation,
29695         finish_object_hard_regs_nodes_forest.  Setup spill cost.
29696         (print_loop_title): Use pressure classes.
29697         (color_allocnso): Ditto.
29698         (do_coloring): Remove allocation and freeing splay_tree_node_pool
29699         and allocnos_for_spilling.
29700         (ira_sort_regnos_for_alter_reg): Don't setup members
29701         {first,next}_coalesced_allocno.
29702         (color): Remove allocating and freeing removed_splay_allocno_vec.
29703         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
29704         prohibited_class_mode_regs.
29705
29706         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
29707         formatting.
29708         (update_allocno_pressure_excess_length): Use pressure classes.
29709         (inc_register_pressure, dec_register_pressure): Check for pressure
29710         class.
29711         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
29712         pressure class.  Use ira_reg_class_nregs instead of
29713         ira_reg_class_max_nregs.
29714         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
29715         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
29716         (single_reg_class): Use ira_reg_class_nregs instead of
29717         ira_reg_class_max_nregs.
29718         (process_bb_node_lives): Use pressure classes.
29719
29720         * ira-emit.c: Remove mentioning cover classes from the file.  Use
29721         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
29722         (change_loop): Use pressure classes.
29723         (modify_move_list): Call ira_set_allocno_class instead of
29724         ira_set_allocno_cover_class.
29725
29726         * ira-build.c: Remove mentioning cover classes from the file.  Use
29727         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
29728         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
29729         ALLOCNO_UPDATED_CLASS_COST instead of
29730         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
29731         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
29732         (ira_create_allocno): Remove initialization of
29733         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
29734         ALLOCNO_COLORABLE_P.
29735         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
29736         Update conflict regs for the objects.
29737         (create_cap_allocno): Remove assert.  Don't propagate
29738         ALLOCNO_AVAILABLE_REGS_NUM.
29739         (ira_free_allocno_costs): New function.
29740         (finish_allocno): Change a part of code into call of
29741         ira_free_allocno_costs.
29742         (low_pressure_loop_node_p): Use pressure classes.
29743         (object_range_compare_func): Don't compare classes.
29744         (setup_min_max_conflict_allocno_ids): Ditto.
29745
29746         * loop-invariant.c: Remove mentioning cover classes from the file.
29747         Use ira_pressure_classes and ira_pressure_classes_num instead of
29748         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
29749         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
29750         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
29751         Use reg_allocno_class instead of reg_cover_class.
29752         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
29753         STACK_REG_COVER_CLASS.
29754         (get_regno_cover_class): Rename to get_regno_pressure_class.
29755         (move_loop_invariants): Initialize and finalize regstat.
29756
29757         * ira.c: Remove mentioning cover classes from the file.  Add
29758         comments about coloring without cover classes.  Use ALLOCNO_CLASS
29759         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
29760         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
29761         setup_class_subset_and_memory_move_costs.
29762         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
29763         (setup_cover_and_important_classes): Rename to
29764         setup_allocno_and_important_classes.
29765         (setup_class_translate_array): New.
29766         (setup_class_translate): Call it for allocno and pressure classes.
29767         (cover_class_order): Rename to allocno_class_order.
29768         (comp_reg_classes_func): Use ira_allocno_class_translate instead
29769         of ira_class_translate.
29770         (reorder_important_classes): Set up ira_important_class_nums.
29771         (setup_reg_class_relations): Set up ira_reg_class_superunion.
29772         (print_class_cover): Rename to print_classes.  Add parameter.
29773         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
29774         Print pressure classes too.
29775         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
29776         setup_reg_subclasses.
29777         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
29778         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
29779         (setup_prohibited_class_mode_regs): Use
29780         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
29781         (clarify_prohibited_class_mode_regs): New function.
29782         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
29783         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
29784         (ira_init_once): Initialize them.
29785         (free_register_move_costs): Process them.
29786         (ira_init): Move calls of find_reg_classes and
29787         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
29788         Call clarify_prohibited_class_mode_regs.
29789         (ira_no_alloc_reg): Remove.
29790         (too_high_register_pressure_p): Use pressure classes.
29791
29792         * sched-deps.c: Remove mentioning cover classes from the file.
29793         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
29794         ira_pressure_classes and ira_pressure_classes_num instead of
29795         ira_reg_class_cover_size and ira_reg_class_cover.
29796         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
29797         sched_regno_pressure_class instead of sched_regno_cover_class.
29798         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
29799         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
29800
29801         * ira.h: Add 2010 to Copyright.
29802         (ira_no_alloc_reg): Remove external.
29803         (struct target_ira): Rename x_ira_hard_regno_cover_class,
29804         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
29805         x_ira_class_translate to x_ira_hard_regno_allocno_class,
29806         x_ira_allocno_classes_num, x_ira_allocno_classes, and
29807         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
29808         x_ira_pressure_classes, x_ira_pressure_class_translate, and
29809         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
29810         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
29811         x_ira_no_alloc_regs.
29812         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
29813         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
29814         ira_allocno_classes_num and ira_allocno_classes.
29815         (ira_class_translate): Rename to ira_allocno_class_translate.
29816         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
29817         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
29818         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
29819         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
29820         (ira_no_alloc_regs): New.
29821
29822         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
29823         classes from the file.  Use ALLOCNO_CLASS instead of
29824         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
29825         ALLOCNO_COVER_CLASS_COST.
29826         (regno_cover_class): Rename to regno_aclass.
29827         (record_reg_classes): Use ira_reg_class_subunion instead of
29828         ira_reg_class_union.
29829         (record_address_regs): Check overflow.
29830         (scan_one_insn): Ditto.
29831         (print_allocno_costs): Print total mem cost fore regional allocation.
29832         (print_pseudo_costs): Use REG_N_REFS.
29833         (find_costs_and_classes): Use classes intersected with them on the
29834         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
29835         ira_reg_class_union.  Use ira_allocno_class_translate and
29836         regno_aclass instead of ira_class_translate and regno_cover_class.
29837         Modify code for finding regno_aclass.  Setup preferred classes for
29838         the next pass.
29839         (setup_allocno_cover_class_and_costs): Rename to
29840         setup_allocno_class_and_costs.  Use regno_aclass instead of
29841         regno_cover_class.  Use ira_set_allocno_class instead of
29842         ira_set_allocno_cover_class.
29843         (init_costs, finish_costs): Use regno_aclass instead of
29844         regno_cover_class.
29845         (ira_costs): Use setup_allocno_class_and_costs instead of
29846         setup_allocno_cover_class_and_costs.
29847         (ira_tune_allocno_costs_and_cover_classes): Rename to
29848         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
29849         by processing objects.  Use ira_reg_class_max_nregs instead of
29850         ira_reg_class_nregs.
29851
29852         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
29853
29854         * sched-int.h: Remove mentioning cover classes from the file.
29855         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
29856
29857         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
29858         classes from the file.
29859         (struct reg_pref): Rename coverclass into allocnoclass.
29860         (reg_cover_class): Rename to reg_allocno_class.
29861
29862         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
29863
29864         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
29865
29866         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
29867
29868         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
29869
29870         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
29871
29872         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
29873
29874         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
29875
29876         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
29877
29878         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
29879
29880         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
29881
29882         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
29883         (i386_ira_cover_classes): Ditto.
29884
29885         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
29886
29887         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
29888
29889         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
29890
29891         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
29892
29893         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
29894
29895         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
29896
29897         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
29898         (mips_ira_cover_classes): Ditto.
29899
29900         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
29901
29902         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
29903
29904         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
29905
29906         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
29907
29908         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
29909
29910         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
29911         (IRA_COVER_CLASSES_VSX): Ditto.
29912
29913         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
29914         (rs6000_ira_cover_classes): Ditto.
29915
29916         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
29917
29918         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
29919
29920         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
29921
29922         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
29923
29924         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
29925
29926         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
29927
29928         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
29929
29930         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
29931
29932         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
29933
29934         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
29935
29936 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
29937
29938         PR debug/48253
29939         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
29940         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
29941         dw_fde_unlikely_section_end_label, cold_in_std_section,
29942         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
29943         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
29944         fields.
29945         (output_fde): Use dw_fde_second_{begin,end} if second is
29946         true, otherwise dw_fde_{begin,end}.
29947         (output_call_frame_info): Test dw_fde_second_begin != NULL
29948         instead of dw_fde_switched_sections.
29949         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
29950         fields, initialize new fields.  Initialize in_std_section
29951         unconditionally from the first partition.
29952         (dwarf2out_end_epilogue): Don't override dw_fde_end when
29953         dw_fde_second_begin is non-NULL.
29954         (dwarf2out_switch_text_section): Stop initializing removed
29955         dw_fde_struct fields, initialize new fields, initialize
29956         also dw_fde_end here.  Set dw_fde_switch_cfi even when
29957         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
29958         (struct var_loc_list_def): Add last_before_switch field.
29959         (arange_table, arange_table_allocated, arange_table_in_use,
29960         ARANGE_TABLE_INCREMENT, add_arange): Removed.
29961         (size_of_aranges): Count !in_std_section and !second_in_std_section
29962         hunks in fdes, instead of looking at arange_table_in_use.
29963         (output_aranges): Add aranges_length argument, don't call
29964         size_of_aranges here.  Instead of using aranges_table*
29965         emit ranges for fdes when !in_std_section resp.
29966         !second_in_std_section.
29967         (dw_loc_list): Break ranges crossing section switch.
29968         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
29969         use dw_fde_second_end instead of dw_fde_end as end of last range.
29970         (gen_subprogram_die): Don't call add_arange.  Use
29971         dw_fde_{begin,end} for first partition and if switched
29972         section dw_fde_second_{begin,end} for the second.
29973         (var_location_switch_text_section_1,
29974         var_location_switch_text_section): New functions.
29975         (dwarf2out_begin_function): Initialize cold_text_section even
29976         when function_section () isn't text_section.
29977         (prune_unused_types): Don't walk arange_table.
29978         (dwarf2out_finish): Don't needlessly test
29979         flag_reorder_blocks_and_partition when testing cold_text_section_used.
29980         If info_section_emitted, call size_of_aranges and if it indicates
29981         non-empty .debug_aranges, call output_aranges with the computed
29982         size.  Stop using removed dw_fde_struct fields, use
29983         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
29984         for second.
29985
29986         PR debug/48203
29987         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
29988         create ENTRY_VALUE if incoming or address of incoming's MEM
29989         is a hard REG.
29990         * dwarf2out.c (mem_loc_descriptor): Don't emit
29991         DW_OP_GNU_entry_value of DW_OP_fbreg.
29992         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
29993         on ENTRY_VALUE is able to find the canonical parameter VALUE.
29994         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
29995         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
29996         ENTRY_VALUE_EXPs.
29997         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
29998         is a REG_P or MEM_P with REG_P address, compute hash directly
29999         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
30000         (preserve_only_constants): Don't clear VALUES forwaring
30001         ENTRY_VALUE to some other VALUE.
30002
30003 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
30004
30005         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
30006         instead of GEN_INT.
30007
30008 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
30009
30010         * cfgexpand.c (expand_gimple_cond): Always set the source location and
30011         block before expanding the statement.
30012         (expand_gimple_stmt_1): Likewise.  Set them here...
30013         (expand_gimple_stmt): ...and not here.  Tidy.
30014         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
30015         unknown.
30016
30017 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
30018
30019         * Makefile.in: New rule for cprop.o.
30020         * gcse.c: Move constant/copy propagation to cprop.c.
30021         (compute_local_properties): Only handle expression tables.
30022         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
30023         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
30024         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
30025         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
30026         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
30027         compute_cprop_data, find_used_regs, try_replace_reg,
30028         find_avail_set, cprop_jump, constprop_register, cprop_insn,
30029         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
30030         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
30031         find_bypass_set, reg_killed_on_edge, bypass_block,
30032         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
30033         execute_rtl_cprop, pass_rtl_cprop): Move to...
30034         * cprop.c: ...here.  New file, constant/copy propagation for RTL
30035         moved from gcse.c to here with minor cleanups in duplicated code.
30036
30037 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
30038
30039         * config/i386/i386.c (flag_opts): Fix a typo in
30040         -mavx256-split-unaligned-store.
30041
30042 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
30043
30044         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
30045         LIBCALL_VALUE): Remove macros.
30046         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
30047         TARGET_FUNCTION_VALUE_REGNO_P): Define.
30048         (h8300_function_value, h8300_libcall_value,
30049         h8300_function_value_regno_p): New functions.
30050
30051 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
30052
30053         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
30054
30055 2011-03-28  Jeff Law  <law@redhat.com>
30056
30057         * tree-ssa-threadupdate.c (redirect_edges): Call
30058         create_edge_and_update_destination_phis as needed.
30059         (create_edge_and_update_destination_phis): Accept new BB argument.
30060         All callers updated.
30061         (thread_block): Do not update the profile when threading around
30062         intermediate blocks.
30063         (thread_single_edge): Likewise.
30064         (determine_bb_domination_status): If BB is not a successor of the
30065         loop header, return NONDOMINATING.
30066         (register_jump_thread): Note when we register a jump thread around
30067         an intermediate block.
30068         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
30069         (thread_across_edge): Use it.
30070
30071 2011-03-28  Tristan Gingold  <gingold@adacore.com>
30072
30073         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
30074         when for_return is 2.
30075
30076 2011-03-28  Jeff Law  <law@redhat.com>
30077
30078         * var-tracking.c (canonicalize_values_mark): Delete unused
30079         lhs assignment.
30080         (canonicalize_values_star, set_variable_part): Likewise.
30081         (clobber_variable_part, delete_variable_part): Likewise.
30082
30083 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
30084
30085         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
30086
30087 2011-03-28  Martin Jambor  <mjambor@suse.cz>
30088
30089         * tree-inline.c (expand_call_inline): Do not check that destination
30090         node is analyzed.
30091         (optimize_inline_calls): Assert that destination node is analyzed.
30092         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
30093         not call tree_lowering_passes.
30094         * cgraph.h (cgraph_analyze_function): Declare.
30095         * cgraphunit.c (cgraph_analyze_function): Make public.
30096
30097 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
30098
30099         * config/sparc/sparc-opts.h: New.
30100         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
30101         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
30102         (sparc_option_override): Store processor_type enumeration rather
30103         than string in cpu_default.  Remove name and enumeration from
30104         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
30105         without using sparc_select.  Use target_flags_explicit instead of
30106         fpu_option_set.
30107         * config/sparc/sparc.h (enum processor_type): Move to
30108         sparc-opts.h.
30109         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
30110         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
30111         HeaderInclude entry.
30112         (mcpu=, mtune=): Use Var and Enum.
30113         (sparc_processor_type): New Enum and EnumValue entries.
30114
30115 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30116             Iain Sandoe  <iains@gcc.gnu.org>
30117
30118         PR target/48245
30119         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
30120
30121 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
30122
30123         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
30124         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
30125         Insert new statements at it in lieu of STMT.
30126         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
30127         * tree-vect-stmts.c (vectorizable_store): Likewise.
30128         (vectorizable_load): Likewise.
30129
30130 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
30131
30132         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
30133         (divtf3): Ditto.
30134         (multf3): Ditto.
30135         (subtf3): Ditto.
30136
30137 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30138
30139         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
30140         unaligned 256bit load/store.
30141         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
30142         (*avx_movdqu<avxmodesuffix>): Likewise.
30143
30144 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30145
30146         PR target/48288
30147         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
30148         * config/pa/pa.md (iordi3): Use new predicate in expander.
30149         (iorsi3): Likewise.
30150
30151 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
30152
30153         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
30154         FUNCTION_VALUE_REGNO_P): Remove macros.
30155         * config/mips/mips-protos.h (mips_function_value): Remove.
30156         * config/mips/mips.c (mips_function_value): Rename to...
30157         (mips_function_value_1): ... this. Make static.  Handle receiving
30158         the function type in 'fn_decl_or_type' argument.
30159         (mips_function_value, mips_libcall_value,
30160         mips_function_value_regno_p): New function.
30161         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
30162         TARGET_FUNCTION_VALUE_REGNO_P): Define.
30163
30164 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30165
30166         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
30167         and -mavx256-split-unaligned-store.
30168         (ix86_option_override_internal): Split 32-byte AVX unaligned
30169         load/store by default.
30170         (ix86_avx256_split_vector_move_misalign): New.
30171         (ix86_expand_vector_move_misalign): Use it.
30172
30173         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
30174         -mavx256-split-unaligned-store.
30175
30176         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
30177         256bit load/store.  Generate unaligned store on misaligned memory
30178         operand.
30179         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
30180         256bit load/store.
30181         (*avx_movdqu<avxmodesuffix>): Likewise.
30182
30183         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
30184         -mavx256-split-unaligned-store.
30185
30186 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
30187
30188         PR target/38598
30189         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
30190         Update commentary.
30191
30192 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
30193
30194         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
30195         opno arguments with an expand_operand.  Use create_input_operand.
30196         (mips_prepare_builtin_target): Delete.
30197         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
30198         functions.
30199         (mips_expand_builtin_direct): Use create_output_operand and
30200         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
30201         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
30202         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
30203
30204 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
30205
30206         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
30207         function.
30208         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
30209
30210 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
30211
30212         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
30213         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
30214         basic blocks and call commit_edge_insertions directly.
30215         (fixup_abnormal_edges): Move from here to...
30216         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
30217         on the edges and return whether some have actually been inserted.
30218         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
30219         compensation code.
30220
30221 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
30222
30223         PR rtl-optimization/48144
30224         * sel-sched-ir.c (merge_history_vect): Factor out from ...
30225         (merge_expr_data): ... here.
30226         (av_set_intersect): Rename to av_set_code_motion_filter.
30227         Update all callers.  Call merge_history_vect when an expression
30228         is found in both sets.
30229         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
30230
30231 2011-03-26  Alan Modra  <amodra@gmail.com>
30232
30233         * config/rs6000/predicates.md (word_offset_memref_op): Handle
30234         cmodel medium addresses.
30235         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
30236         64-bit gpr loads and stores.
30237         (rs6000_secondary_reload_ppc64): New function.
30238         * config/rs6000/rs6000-protos.h: Declare it.
30239         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
30240
30241 2011-03-26  Alan Modra  <amodra@gmail.com>
30242
30243         PR target/47487
30244         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
30245         GNU Go in traceback table.
30246
30247 2011-03-25  Richard Henderson  <rth@redhat.com>
30248
30249         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
30250         if there are exactly 6 operands.
30251         (set_storage_via_setmem): Similarly.
30252
30253 2011-03-25  Kai Tietz  <ktietz@redhat.com>
30254
30255         * collect2.c (write_c_file_stat): Handle backslash
30256         as right-hand directory separator.
30257         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
30258         checking just for slash.
30259         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
30260         instead of checking for trailing slash.
30261         * gcc.c (record_temp_file): Use filename_cmp instead
30262         of strcmp.
30263         (do_spec_1): Likewise.
30264         (replace_outfile_spec_function): Likewise.
30265         (is_directory): Use filename_ncmp instead of strncmp.
30266         (print_multilib_info): Likewise.
30267         * gcov.c (find_source): Use filename_cmp instead
30268         instead of strcmp.
30269         (make_gcov_file_name): Fix order of slash/backslash
30270         checks.
30271         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
30272         (add_standard_paths): Likewise.
30273         * mips-tfile.c (saber_stop): Handle backslash.
30274         * prefix.c (update_path): Use filename_ncmp instead of
30275         strncmp.
30276         * profile.c (output_location): Use filename_cmp instead
30277         of strcmp.
30278         * read-md.c (handle_toplevel_file): Handle backslash.
30279         * tlink.c (frob_extension):  Likewise.
30280         * tree-cfg.c (same_line_p): Use filename_cmp instead of
30281         strcmp.
30282         * tree-dump.c (dequeue_and_dump): Handle backslash.
30283         * tree.c (get_file_function_name): Likewise.
30284         * gengtype.c (read_input_list): Likewise.
30285         (get_file_realbasename): Likewise.
30286         (get_output_file_with_visibility): Use filename_cmp
30287         instead of strcmp.
30288
30289 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
30290
30291         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
30292         case to VFPv1.
30293
30294 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
30295
30296         * fold-const.c (expr_location_or): New function.
30297         (fold_truth_not_expr): Call it.
30298
30299 2011-03-25  Jeff Law  <law@redhat.com>
30300
30301         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
30302         va_end.
30303         * c-family/c-common.c (def_fn_type): Likewise.
30304         * emit-rtl.c (gen_rtvec): Likewise.
30305         * lto/lto-lang.c (def_fn_type): Likewise.
30306
30307 2011-03-25  Richard Guenther  <rguenther@suse.de>
30308
30309         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
30310         also generate copies.
30311         (fini_copy_prop): Handle constant values properly.
30312
30313 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
30314
30315         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
30316         mode size instead of bitsize with DWARF2_ADDR_SIZE.
30317         (hash_loc_operands, compare_loc_operands): Handle
30318         DW_OP_GNU_entry_value.
30319
30320 2011-03-25  Kai Tietz  <ktietz@redhat.com>
30321
30322         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
30323         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
30324         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
30325         comment and use macro TARGET_64BIT_MS_ABI instead.
30326         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
30327         and change default behavior for 32-bit MS_ABI.
30328         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
30329         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
30330         32-bit, too.
30331         (ix86_cfun_abi): Likewise.
30332         (ix86_maybe_switch_abi): Adjust comment.
30333         (init_cumulative_args): Check for bit-ness in MS_ABI case.
30334         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
30335         instead of checking for SYSV_ABI.
30336         (ix86_nsaved_sseregs): Likewise.
30337         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
30338         to 16 bytes.
30339         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
30340         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
30341         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
30342         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
30343         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
30344
30345 2011-03-25  Richard Guenther  <rguenther@suse.de>
30346
30347         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
30348         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
30349         (verify_gimple): Remove.
30350         * tree-cfg.c (verify_gimple_call): Merge verification
30351         from verify_stmts.
30352         (verify_gimple_phi): Merge verification from verify_stmts.
30353         (verify_gimple_label): New function.
30354         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
30355         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
30356         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
30357         (verify_stmts): Rename to verify_gimple_in_cfg.
30358         (verify_gimple_in_cfg): New function.
30359         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
30360         * tree-ssa.c (verify_ssa): Likewise.
30361         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
30362
30363 2011-03-25  Richard Guenther  <rguenther@suse.de>
30364
30365         * passes.c (init_optimization_passes): Add FRE pass after
30366         early SRA.
30367
30368 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
30369             Andrew Stubbs  <ams@codesourcery.com>
30370
30371         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
30372         for Cortex-A8.
30373         (arm_movdi_vfp_cortexa8): New pattern.
30374         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
30375         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
30376         instructions when tuning for Cortex-A8.  Set attribute "arch".
30377         * config/arm/arm.md: Move include arm-tune.md up a bit.
30378         (define_attr "arch"): Add "onlya8" and "nota8" values.
30379         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
30380
30381 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
30382
30383         PR bootstrap/48282
30384         Revert:
30385         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
30386
30387         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
30388         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
30389         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
30390         * passes.c (init_optimization_passes): Move
30391         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
30392
30393 2011-03-25  Kai Tietz  <ktietz@redhat.com>
30394
30395         * c-typeck.c (comptypes_internal): Replace target
30396         hook call of comp_type_attributes by version in tree.c file.
30397         * gimple.c (gimple_types_compatible_p_1): Likewise.
30398         * tree-ssa.c (useless_type_conversion_p): Likewise.
30399         * tree.c (build_type_attribute_qual_variant): Likewise.
30400         (attribute_value_equal): New static helper function.
30401         (comp_type_attributes): New function.
30402         (merge_attributes): Use attribute_value_equal for comparison.
30403         (attribute_list_contained): Likewise.
30404         * tree.h (comp_type_attributes): New prototype.
30405
30406 2011-03-25  Richard Guenther  <rguenther@suse.de>
30407
30408         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
30409         of complex types at -O0.
30410         (verify_gimple_assign_binary): Likewise.
30411         (verify_gimple_assign_ternary): Likewise.
30412
30413 2011-03-24  Mark Wielaard  <mjw@redhat.com>
30414
30415         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
30416         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
30417
30418 2011-03-24  Mark Wielaard  <mjw@redhat.com>
30419
30420         PR debug/48041
30421         * dwarf2out.c (output_abbrev_section): Only write table when
30422         abbrev_die_table_in_use > 1.
30423
30424 2011-02-24  Richard Henderson  <rth@redhat.com>
30425
30426         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
30427         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
30428         (alpha_expand_unaligned_load_words): Use extql.
30429         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
30430         (emit_insxl): Handle all modes for consistency.
30431
30432 2011-02-24  Richard Henderson  <rth@redhat.com>
30433
30434         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
30435         (alpha_expand_unaligned_load): Likewise.
30436         (alpha_expand_unaligned_store): Likewise.
30437         (alpha_expand_unaligned_load_words): Likewise.
30438         (alpha_expand_unaligned_store_words): Likewise.
30439         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
30440         (alpha_split_lock_test_and_set_12): Likewise.
30441         (print_operand, alpha_fold_builtin_extxx): Likewise.
30442         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
30443         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
30444         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
30445         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
30446         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
30447         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
30448         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
30449         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
30450         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
30451         (extwl, extll, extql): Similarly.
30452         (inswh, inslh, insqh): Similarly.
30453         (mskbl, mskwl, mskll, mskql): Similarly.
30454         (mskwh, msklh, mskqh): Similarly.
30455
30456 2011-02-24  Richard Henderson  <rth@redhat.com>
30457
30458         * config/alpha/alpha.md (attribute isa): Add er, ner.
30459         (attribute enabled): Handle them.
30460         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
30461
30462 2011-02-24  Richard Henderson  <rth@redhat.com>
30463
30464         * config/alpha/alpha.md (attribute isa): Add vms.
30465         (attribute enabled): Handle it.
30466         (*movsf): Merge *movsf_{nofix,fix,nofp}.
30467         (*movdf): Merge *movdf_{nofix,fix,nofp}.
30468         (*movtf): Rename from *movtf_internal for consistency.
30469         (*movsi): Merge with *movsi_nt_vms.
30470         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
30471         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
30472         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
30473         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
30474
30475 2011-02-24  Richard Henderson  <rth@redhat.com>
30476
30477         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
30478         (extendqisi2, extendhisi2): Likewise.
30479         (extendqidi2): Simplify BWX/non-BWX expansions.
30480         (extendhidi2): Similarly.
30481
30482 2011-02-24  Richard Henderson  <rth@redhat.com>
30483
30484         * config/alpha/alpha.md (attribute isa): New.
30485         (attribute enabled): New.
30486         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
30487         (zero_extendqisi2, zero_extendqidi2): Similarly.
30488         (zero_extendhisi2, zero_extendhidi2): Similarly.
30489         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
30490
30491 2011-02-24  Richard Henderson  <rth@redhat.com>
30492
30493         * config/alpha/predicates.md (input_operand): Revert last change;
30494         update comment to mention 32-bit VMS rather than Windows.
30495
30496 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
30497
30498         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
30499         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
30500         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
30501         * passes.c (init_optimization_passes): Move
30502         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
30503
30504 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
30505
30506         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
30507
30508 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
30509
30510         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
30511         correctly.
30512
30513 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
30514
30515         PR debug/48204
30516         * simplify-rtx.c (simplify_const_unary_operation): Call
30517         real_convert when changing mode class with FLOAT_EXTEND.
30518
30519 2011-03-24  Nick Clifton  <nickc@redhat.com>
30520
30521         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
30522         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
30523         * config/rx/rx.c (rx_option_override): Set align_jumps,
30524         align_loops and align_labels if not set by the user.
30525         (rx_align_for_label): New function.
30526         (rx_max_skip_for_label): New function.
30527         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
30528         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
30529         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
30530         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
30531         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
30532
30533 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
30534
30535         PR rtl-optimization/48263
30536         * optabs.c (expand_binop_directly): Reinstate convert_modes code
30537         and original commutative_p handling.  Use maybe_gen_insn.
30538
30539 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30540
30541         * reload.c (find_reloads_subreg_address): Add address_reloaded
30542         parameter and return true there if the full address has been
30543         reloaded.
30544         (find_reloads_toplev): Pass address_reloaded flag.
30545         (find_reloads_address_1): Don't use address_reloaded parameter.
30546
30547 2011-03-24  Jeff Law  <law@redhat.com>
30548
30549         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
30550         unused variable "ann".
30551         (remove_unused_locals): Likewise.
30552
30553         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
30554         statement.
30555
30556         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
30557         after it is freed.
30558
30559 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30560
30561         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
30562         for invalid symbolic addresses.
30563         (s390_secondary_reload): Don't use s390_check_symref_alignment for
30564         larl operands.
30565
30566 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
30567
30568         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
30569         the argument in calls to fold_truth_not_expr.
30570
30571 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
30572
30573         * tree.c (record_node_allocation_statistics): New function.
30574         (make_node_stat, copy_node_stat, build_string): Call it.
30575         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
30576         (build1_stat, build_omp_clause): Likewise.
30577
30578 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
30579
30580         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
30581         last commit.
30582
30583 2011-03-24  Richard Guenther  <rguenther@suse.de>
30584
30585         PR tree-optimization/48271
30586         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
30587         blocks that still exist.
30588
30589 2011-03-24  Richard Guenther  <rguenther@suse.de>
30590
30591         PR tree-optimization/48270
30592         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
30593         not free datarefs before ddrs.
30594
30595 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
30596
30597         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
30598         from the address built for a reference with variable offset.
30599
30600 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
30601
30602         PR target/48237
30603         * config/i386/i386.md (*movdf_internal_rex64): Do not split
30604         alternatives that can be handled with movq or movabsq insn.
30605         (*movdf_internal): Disable for !TARGET_64BIT.
30606         (*movdf_internal_nointeger): Ditto.
30607         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
30608
30609 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
30610
30611         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
30612         (FUNCTION_ARG_ADVANCE): Likewise.
30613         * tm.texi.in: Change references to them to hook references.
30614         * tm.texi: Regenerate.
30615         * targhooks.c (default_function_arg): Eliminate check for target macro.
30616         (default_function_incoming_arg): Likewise.
30617         (default_function_arg_advance): Likewise.
30618         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
30619         (function_arg_advance): Likewise.
30620         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
30621
30622 2011-03-24  Richard Guenther  <rguenther@suse.de>
30623
30624         PR middle-end/48269
30625         * tree-object-size.c (addr_object_size): Do not double-account
30626         for MEM_REF offsets.
30627
30628 2011-03-24  Diego Novillo  <dnovillo@google.com>
30629
30630         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
30631         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
30632         (lto_input_data_block): Move from lto-opts.c.  Make extern.
30633         Update all users.
30634         (lto_input_string): Rename from input_string.  Make extern.
30635         Update all users.
30636         * lto-streamer-out.c (lto_output_string_with_length): Rename from
30637         output_string_with_length.
30638         Output 0 to indicate a non-NULL string.  Update all callers to
30639         not emit 0.
30640         (lto_output_string): Rename from output_string.  Make extern.
30641         Update all users.
30642         (lto_output_decl_state_streams): Make extern.
30643         (lto_output_decl_state_refs): Make extern.
30644         * lto-streamer.h (lto_input_string): Declare.
30645         (lto_input_data_block): Declare.
30646         (lto_output_string): Declare.
30647         (lto_output_string_with_length): Declare.
30648         (lto_output_decl_state_streams): Declare.
30649         (lto_output_decl_state_refs): Declare.
30650
30651 2011-03-24  Richard Guenther  <rguenther@suse.de>
30652
30653         PR tree-optimization/46562
30654         * tree.c (build_invariant_address): New function.
30655         * tree.h (build_invariant_address): Declare.
30656         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
30657         a renamed function moved ...
30658         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
30659         Take valueization callback parameter.
30660         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
30661         * gimple-fold.h: New file.
30662         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
30663         (ccp_fold, fold_const_aggregate_ref,
30664         fold_ctor_reference, fold_nonarray_ctor_reference,
30665         fold_array_ctor_reference, fold_string_cst_ctor_reference,
30666         get_base_constructor): Move ...
30667         * gimple-fold.c: ... here.
30668         (gimple_fold_stmt_to_constant_1): New function
30669         split out from ccp_fold.  Take a valueization callback parameter.
30670         Valueize all operands.
30671         (gimple_fold_stmt_to_constant): New wrapper function.
30672         (fold_const_aggregate_ref_1): New function split out from
30673         fold_const_aggregate_ref.  Take a valueization callback parameter.
30674         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
30675         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
30676         invariant POINTER_PLUS_EXPRs to invariant form.
30677         (vn_valueize): New function.
30678         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
30679         * tree-vrp.c (vrp_valueize): New function.
30680         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
30681         to fold statements to constants.
30682         * tree-ssa-pre.c (eliminate): Properly guard propagation of
30683         function declarations.
30684         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
30685         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
30686
30687 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
30688
30689         * config/h8300/predicates.md (jump_address_operand): Fix register
30690         mode check.
30691
30692 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
30693
30694         * doc/invoke.texi (max-stores-to-sink): Document.
30695         * params.h (MAX_STORES_TO_SINK): Define.
30696         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
30697         if either vectorization or if-conversion is disabled.
30698         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
30699         tree-vect-data-refs.c vect_equal_offsets.
30700         (dr_equal_offsets_p): New function.
30701         (find_data_references_in_bb): Remove static.
30702         * tree-data-ref.h (find_data_references_in_bb): Declare.
30703         (dr_equal_offsets_p): Likewise.
30704         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
30705         (vect_drs_dependent_in_basic_block): Update calls to
30706         vect_equal_offsets.
30707         (vect_check_interleaving): Likewise.
30708         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
30709         (cond_if_else_store_replacement): Rename to...
30710         (cond_if_else_store_replacement_1): ... this.  Change arguments and
30711         documentation.
30712         (cond_if_else_store_replacement): New function.
30713         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
30714         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
30715
30716 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
30717
30718         PR target/46934
30719         * config/arm/arm.md (casesi): Use the gen_int_mode() function
30720         to subtract lower bound instead of GEN_INT().
30721
30722 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
30723
30724         PR other/48179
30725         PR other/48221
30726         PR other/48234
30727         * doc/extend.texi (Alignment): Move section to match order in TOC.
30728         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
30729         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
30730
30731 2011-03-23  Jeff Law  <law@redhat.com>
30732
30733         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
30734         before removing the edge.
30735
30736         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
30737         it may have been freed by redirect_branch_edge or
30738         redirect_edge_succ_nodup.
30739
30740 2011-03-23  Richard Guenther  <rguenther@suse.de>
30741
30742         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
30743         (check_va_list_escapes): Likewise.
30744         (check_all_va_list_escapes): Likewise.
30745
30746 2011-03-23  Richard Guenther  <rguenther@suse.de>
30747
30748         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
30749         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
30750         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
30751         (alias.o): Likewise.
30752         (ipa-type-escape.o): Remove.
30753         (ipa-struct-reorg.o): Likewise.
30754         (GTFILES): Remove ipa-struct-reorg.c.
30755         * alias.c: Do not include ipa-type-escape.h.
30756         * tree-ssa-alias.c: Likewise.
30757         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
30758         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
30759         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
30760         and ipa-type-escape passes.
30761         * tree-pass.h (pass_ipa_type_escape): Remove.
30762         (pass_ipa_struct_reorg): Likewise.
30763         * ipa-struct-reorg.h: Remove.
30764         * ipa-struct-reorg.c: Likewise.
30765         * ipa-type-escape.h: Likewise.
30766         * ipa-type-escape.c: Likewise.
30767         * doc/invoke.texi (-fipa-struct-reorg): Remove.
30768         (--param struct-reorg-cold-struct-ratio): Likewise.
30769         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
30770         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
30771         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
30772
30773 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30774
30775         * config/s390/2084.md: Enable all insn reservations also for z9_ec
30776         cpu attribute value.
30777         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
30778         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
30779         * config/s390/s390.c (processor_flags_table): New constant array.
30780         (s390_handle_arch_option): Remove.
30781         (s390_handle_option): Remove s390_handle_arch_option invocations
30782         and OPT_mwarn_framesize_ handling.
30783         (s390_option_override): Remove s390_handle_arch_option invocation.
30784         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
30785         warnings.
30786         * config/s390/s390.md (cpu attribute): Add z9_ec value.
30787         * config/s390/s390.opt (s390_tune, s390_arch)
30788         (march=): Replace s390_arch_option enum and values with
30789         processor_type.  Set variable name to s390_arch.  Set
30790         initialization value.
30791         (mtune=): Replace s390_arch_option with processor_type.  Set
30792         variable name to s390_tune.  Set initialization value.
30793
30794 2011-03-23  Julian Brown  <julian@codesourcery.com>
30795
30796         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
30797         accesses which are not naturally aligned.
30798
30799 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
30800
30801         PR target/47553
30802         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
30803
30804 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
30805
30806         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
30807         parameter from "int" to "enum insn_code".
30808         (expand_operand_type): New enum.
30809         (expand_operand): New structure.
30810         (create_expand_operand): New function.
30811         (create_fixed_operand, create_output_operand): Likewise
30812         (create_input_operand, create_convert_operand_to): Likewise.
30813         (create_convert_operand_from, create_address_operand): Likewise.
30814         (create_integer_operand): Likewise.
30815         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
30816         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
30817         (expand_insn, expand_jump_insn): Likewise.
30818         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
30819         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
30820         (expand_movstr, expand_builtin___clear_cache): Likewise.
30821         (expand_builtin_lock_release): Likewise.
30822         * explow.c (allocate_dynamic_stack_space): Likewise.
30823         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
30824         and use the default handling in that case.
30825         * expmed.c (check_predicate_volatile_ok): Delete.
30826         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
30827         (emit_cstore): Likewise.
30828         * expr.c (emit_block_move_via_movmem): Likewise.
30829         (set_storage_via_setmem, expand_assignment): Likewise.
30830         (emit_storent_insn, try_casesi): Likewise.
30831         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
30832         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
30833         (expand_vec_shift_expr, expand_binop_directly): Likewise.
30834         (expand_twoval_unop, expand_twoval_binop): Likewise.
30835         (expand_unop_direct, emit_indirect_jump): Likewise.
30836         (emit_conditional_move, vector_compare_rtx): Likewise.
30837         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
30838         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
30839         (expand_sync_lock_test_and_set): Likewise.
30840         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
30841         (emit_unop_insn): Likewise.
30842         (expand_copysign_absneg): Change icode to an insn_code.
30843         (create_convert_operand_from_type): New function.
30844         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
30845         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
30846         (expand_insn, expand_jump_insn): Likewise.
30847         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
30848         than const_int_operand for operand 2.
30849
30850 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30851
30852         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
30853         if possible.
30854
30855 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
30856
30857         * emit-rtl.c (emit_pattern_before_noloc): New function.
30858         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
30859         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
30860         (emit_pattern_after_noloc): New function.
30861         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
30862         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
30863
30864 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
30865
30866         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
30867         (__ffsDI2): Likewise.
30868
30869 2011-03-22  Richard Henderson  <rth@redhat.com>
30870
30871         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
30872         of !TARGET_ABI_OPEN_VMS.
30873         (alpha_trampoline_init, alpha_start_function): Likewise.
30874         (alpha_expand_epilogue, alpha_file_start): Likewise.
30875         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
30876         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
30877         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
30878         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
30879         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
30880
30881 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
30882
30883         * config/s390/s390-opts.h: New.
30884         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
30885         s390_arch_flags, s390_warn_framesize, s390_stack_size,
30886         s390_stack_guard): Remove.
30887         (s390_handle_arch_option): Return void.  Take enum
30888         s390_arch_option value instead of string and searching array.
30889         (s390_handle_option): Don't assert that global structures are in
30890         use.  Access variables via opts pointer.  Use error_at.  Don't use
30891         sscanf for -mstack-guard= or -mstack-size=.  Update call to
30892         s390_handle_arch_option.
30893         (s390_option_override): Update call to s390_handle_arch_option.
30894         (s390_emit_prologue): Use %d format for s390_stack_size in
30895         diagnostic.  Use %wd for HOST_WIDE_INT.
30896         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
30897         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
30898         * config/s390/s390.opt (config/s390/s390-opts.h): New
30899         HeaderInclude entry.
30900         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
30901         s390_arch_flags, s390_warn_framesize): New Variable entries.
30902         (s390_arch_option): New Enum and EnumValue entries.
30903         (march=): Use Enum instead of Var.
30904         (mstack-guard=, mstack-size=): Use UInteger and Var.
30905         (mtune=): Use Enum.
30906
30907 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
30908
30909         * config/score/score.c (score_handle_option): Don't assert that
30910         global structures are in use.  Access target_flags via opts
30911         pointer.  Use value of -march= option to determine target_flags
30912         settings.
30913         * config/score/score.opt (march=): Use Enum.
30914         (score_arch): New Enum and EnumValue entries.
30915
30916 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
30917
30918         * config/mep/mep.c (option_mtiny_specified): Remove.
30919         (mep_option_override): Move register handling for -mivc2 from
30920         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
30921         instead of option_mtiny_specified.
30922         (mep_handle_option): Access target_flags via opts pointer.  Don't
30923         assert that global structures are in use.  Defer part of -mivc2
30924         handling and move it to mep_option_override.
30925         * config/mep/mep.opt (IVC2): New Mask entry.
30926         (mivc2): Use Var and Defer instead of Mask.
30927
30928 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
30929
30930         * config/v850/v850-opts.h: New.
30931         * config/v850/v850.c (small_memory): Replace with
30932         small_memory_physical_max array.  Make that array static const.
30933         (v850_handle_memory_option): Take integer value of argument.  Take
30934         gcc_options pointer, option text and location.  Return void.
30935         Update for changes to small memory structures.
30936         (v850_handle_option): Access target_flags via opts pointer.  Don't
30937         assert that global structures are in use.  Update calls to
30938         v850_handle_memory_option.
30939         (v850_encode_data_area): Update references to small memory settings.
30940         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
30941         (enum small_memory_type): Move to v850-opts.h.
30942         * config/v850/v850.opt (config/v850/v850-opts.h): New
30943         HeaderInclude entry.
30944         (small_memory_max): New Variable entry.
30945         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
30946         (mtda, mzda): Likewise.
30947
30948 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
30949
30950         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
30951         pointer.  Don't assert that global structures are in use.
30952
30953 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
30954
30955         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
30956         via opts pointer.  Don't assert that global structures are in use.
30957
30958 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
30959
30960         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
30961         (munix=93): Use Var.
30962         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
30963         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
30964         * config/pa/pa-opts.h: New.
30965         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
30966         (pa_handle_option): Don't assert that global structures are in
30967         use.  Access target_flags via opts pointer.  Don't handle
30968         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
30969         OPT_munix_98 here.
30970         (pa_option_override): Handle deferred OPT_mfixed_range_.
30971
30972 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
30973
30974         * config/mn10300/mn10300-opts.h: New.
30975         * config/mn10300/mn10300.c (mn10300_processor,
30976         mn10300_tune_string): Remove.
30977         (mn10300_handle_option): Don't assert that global structures are
30978         in use.  Access mn10300_processor via opts pointer.  Don't handle
30979         OPT_mtune_ here.
30980         * config/mn10300/mn10300.h (enum processor_type): Move to
30981         mn10300-opts.h.
30982         (mn10300_processor): Remove.
30983         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
30984         HeaderInclude entry.
30985         (mn10300_processor): New Variable entry.
30986         (mtune=): Use Var.
30987
30988 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
30989
30990         * config/microblaze/microblaze.c: Don't include opts.h.
30991         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
30992         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
30993         (mno-clearbss): Use Var and Warn.
30994
30995 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
30996
30997         * config/m32r/m32r-opts.h: New.
30998         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
30999         (m32r_handle_option): Don't assert that global structures are in
31000         use.  Access target_flags and m32r_cache_flush_func via opts
31001         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
31002         OPT_mno_flush_trap here.
31003         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
31004         include of m32r-opts.h.
31005         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
31006         HeaderInclude entry.
31007         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
31008         (mmodel=): Use Enum and Var.
31009         (m32r_model): New Enum and EnumValue entries.
31010         (mno-flush-trap): Use Var.
31011         (msdata=): Use Enum and Var.
31012         (m32r_sdata): New Enum and EnumValue entries.
31013
31014 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31015
31016         * config/m32c/m32c.c: Don't include opts.h.
31017         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
31018         m32c_handle_option): Remove.
31019         (m32c_option_override): Check global_options_set.x_target_memregs
31020         instead of target_memregs_set.
31021         * config/m32c/m32c.h (target_memregs): Remove.
31022         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
31023         variable.
31024
31025 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31026
31027         * config/iq2000/iq2000-opts.h: New.
31028         * config/iq2000/iq2000.c: Don't include opts.h.
31029         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
31030         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
31031         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
31032         HeaderInclude entry.
31033         (iq2000_tune): New Variable entry.
31034         (march=): Add comment.  Use Enum.
31035         (iq2000_arch): New Enum and EnumValue entries.
31036         (mcpu=): Use Enum and Var.
31037         (iq2000_tune): New Enum and EnumValue entries.
31038
31039 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31040
31041         * config/ia64/ia64-opts.h: New.
31042         * config/ia64/ia64.c (ia64_tune): Remove.
31043         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
31044         here.  Use error_at.
31045         (ia64_option_override): Handle deferred OPT_mfixed_range_.
31046         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
31047         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
31048         HeaderInclude entry.
31049         (ia64_tune): New Variable entry.
31050         (mfixed-range=): Use Defer and Var.
31051         (mtune=): Use Enum and Var.
31052         (ia64_tune): New Enum and EnumValue entries.
31053
31054 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31055
31056         * config/frv/frv-opts.h: New.
31057         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
31058         frv-opts.h.
31059         (frv_cpu_type): Remove.
31060         * config/frv/frv.c: Don't include opts.h.
31061         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
31062         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
31063         (frv_cpu_type): New Variable entry.
31064         (frv_cpu): New Enum and EnumValue entries.
31065
31066 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31067
31068         * config/cris/cris.c (cris_handle_option): Access target_flags via
31069         opts pointer.  Don't assert that global structures are in use.
31070         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
31071         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
31072
31073 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31074
31075         * config/bfin/bfin-opts.h: New.
31076         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
31077         bfin_si_revision, bfin_workarounds): Remove.
31078         (bfin_cpus): Make static const.
31079         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
31080         not bfin_lib_id_given.
31081         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
31082         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
31083         pointer. Use error_at.  Don't assert that global structures are in use.
31084         * config/bfin/bfin.h: Include bfin-opts.h.
31085         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
31086         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
31087         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
31088         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
31089         entries.
31090
31091 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31092
31093         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
31094         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
31095         or -msoft-float here.
31096         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
31097         -msoft-float and -mhard-float.
31098         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
31099         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
31100         msoft-float.
31101         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
31102         -msoft-float.
31103         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
31104         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
31105         not mhard-float.
31106         (LIBGCC_SPEC): Don't handle -msoft-float.
31107         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
31108         -mhard-float.
31109         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
31110         msoft-float.
31111         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
31112         -mfloat-abi=*, not -msoft-float and -mhard-float.
31113         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
31114         -msoft-float.
31115         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
31116         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
31117         mhard-float and msoft-float.
31118         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
31119         mfloat-abi=soft in comments, not mhard-float and msoft-float.
31120         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
31121         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
31122         mhard-float.
31123         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
31124         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
31125         msoft-float.
31126         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
31127         not mhard-float.
31128         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
31129         not msoft-float.
31130
31131 2011-03-22  Richard Henderson  <rth@redhat.com>
31132
31133         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
31134         TARGET_ABI_WINDOWS_NT.
31135         (alpha_output_function_end_prologue): Likewise.
31136         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
31137         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
31138         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
31139         (trap, *movsi_nt_vms): Likewise.
31140         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
31141         (*tablejump_osf_nt_internal): Remove.
31142         * config/alpha/predicates.md (input_operand): Only test Pmode.
31143
31144 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31145
31146         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
31147         via opts pointer.  Use error_at.  Don't assert that global
31148         structures are in use.
31149
31150 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31151
31152         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
31153         (ix86_handle_option): Access ix86_isa_flags and
31154         ix86_isa_flags_explicit via opts pointer.  Don't assert that
31155         global structures are in use.
31156         (ix86_function_specific_save, ix86_function_specific_restore):
31157         Update ix86_isa_flags_explicit field name.
31158         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
31159         (ix86_isa_flags_explicit): Rename TargetSave entry to
31160         x_ix86_isa_flags_explicit.
31161
31162 2011-03-22  Richard Henderson  <rth@redhat.com>
31163
31164         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
31165         (alpha_option_override, direct_return): Likewise.
31166         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
31167         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
31168         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
31169         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
31170         (alpha_expand_epilogue, alpha_end_function): Likewise.
31171         (alpha_init_libfuncs): Likewise.
31172         (struct machine_function): Remove unicosmk members.
31173         (print_operand) ['t']: Remove.
31174         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
31175         unicosmk_output_module_name, unicosmk_output_common,
31176         current_section_align, unicosmk_output_text_section_asm_op,
31177         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
31178         unicosmk_section_type_flags, unicosmk_unique_section,
31179         unicosmk_asm_named_section, unicosmk_insert_attributes,
31180         unicosmk_output_align, unicosmk_defer_case_vector,
31181         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
31182         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
31183         unicosmk_output_ssib, unicosmk_add_call_info_word,
31184         unicosmk_extern_head, unicosmk_output_default_externs,
31185         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
31186         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
31187         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
31188         * config/alpha/alpha-protos.h: Update.
31189         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
31190         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
31191         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
31192         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
31193         (*mulsi_se, mulvsi3): Likewise.
31194         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
31195         (*divmodsi_internal, call, call_value, realign): Likewise.
31196         (moddi3, umoddi3): Likewise; remove duplicate expander.
31197         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
31198         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
31199         (*movdi_nofix): Remove r/U alternative.
31200         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
31201         * config/alpha/constraints.md ("U"): Remove.
31202         * config/alpha/predicates.md (call_operand"): Don't test
31203         TARGET_ABI_UNICOSMK.
31204
31205 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31206
31207         * target.def (handle_option): Take gcc_options and
31208         cl_decoded_option pointers and location_t.
31209         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
31210         * doc/tm.texi: Regenerate.
31211         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
31212         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
31213         * lto-opts.c (lto_reissue_options): Generate option structure for
31214         targetm.handle_option call.
31215         * opts.c (target_handle_option): Update call to
31216         targetm.handle_option.  Remove assertions about values now passed
31217         down to hook.
31218         * targhooks.c (default_target_handle_option): New.
31219         * targhooks.h (default_target_handle_option): Declare.
31220         * config/alpha/alpha.c: Include opts.h.
31221         (alpha_handle_option): Update to new hook interface.
31222         * config/arm/arm.c: Include opts.h.
31223         (arm_handle_option): Update to new hook interface.
31224         * config/arm/t-arm (arm.o): Update dependencies.
31225         * config/bfin/bfin.c: Include opts.h.
31226         (bfin_handle_option): Update to new hook interface.
31227         * config/cris/cris.c: Include opts.h.
31228         (cris_handle_option): Update to new hook interface.
31229         * config/frv/frv.c: Include opts.h.
31230         (frv_handle_option): Update to new hook interface.
31231         * config/i386/i386.c: Include opts.h.
31232         (ix86_handle_option): Update to new hook interface.
31233         (ix86_valid_target_attribute_inner_p): Generate option structure
31234         for call to ix86_handle_option.
31235         * config/i386/t-i386 (i386.o): Update dependencies.
31236         * config/ia64/ia64.c: Include opts.h.
31237         (ia64_handle_option): Update to new hook interface.
31238         * config/ia64/t-ia64 (ia64.o): Update dependencies.
31239         * config/iq2000/iq2000.c: Include opts.h.
31240         (iq2000_handle_option): Update to new hook interface.
31241         * config/m32c/m32c.c: Include opts.h.
31242         (m32c_handle_option): Update to new hook interface.
31243         * config/m32r/m32r.c: Include opts.h.
31244         (m32r_handle_option): Update to new hook interface.
31245         * config/m68k/m68k.c: Include opts.h.
31246         (m68k_handle_option): Update to new hook interface.
31247         * config/mep/mep.c: Include opts.h.
31248         (mep_handle_option): Update to new hook interface.
31249         * config/microblaze/microblaze.c: Include opts.h.
31250         (microblaze_handle_option): Update to new hook interface.
31251         * config/mips/mips.c: Include opts.h.
31252         (mips_handle_option): Update to new hook interface.
31253         * config/mn10300/mn10300.c: Include opts.h.
31254         (mn10300_handle_option): Update to new hook interface.
31255         * config/pa/pa.c: Include opts.h.
31256         (pa_handle_option): Update to new hook interface.
31257         * config/pdp11/pdp11.c: Include opts.h.
31258         (pdp11_handle_option): Update to new hook interface.
31259         * config/rs6000/rs6000.c: Include opts.h.
31260         (rs6000_handle_option): Update to new hook interface.
31261         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
31262         * config/rx/rx.c: Include opts.h.
31263         (rx_handle_option): Update to new hook interface.
31264         * config/s390/s390.c: Include opts.h.
31265         (s390_handle_option): Update to new hook interface.
31266         * config/score/score.c: Include opts.h.
31267         (score_handle_option): Update to new hook interface.
31268         * config/sh/sh.c: Include opts.h.
31269         (sh_handle_option): Update to new hook interface.
31270         * config/sparc/sparc.c: Include opts.h.
31271         (sparc_handle_option): Update to new hook interface.
31272         * config/v850/v850.c: Include opts.h.
31273         (v850_handle_option): Update to new hook interface.
31274
31275 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31276
31277         * gcc.c (driver_unknown_option_callback): Only permit and save
31278         unknown -Wno- options.
31279         (driver_wrong_lang_callback): Save options directly instead of via
31280         driver_unknown_option_callback.
31281
31282 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
31283
31284         * combine.c (simplify_set): Try harder to find the best CC mode when
31285         simplifying a nested COMPARE on the RHS.
31286
31287 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31288
31289         * config/alpha/gnu.h: Remove.
31290         * config/arc: Remove directory.
31291         * config/arm/netbsd.h: Remove.
31292         * config/arm/t-pe: Remove.
31293         * config/crx: Remove directory.
31294         * config/i386/netbsd.h: Remove.
31295         * config/m68hc11: Remove directory.
31296         * config/m68k/uclinux-oldabi.h: Remove.
31297         * config/mcore/mcore-pe.h: Remove.
31298         * config/mcore/t-mcore-pe: Remove.
31299         * config/netbsd-aout.h: Remove.
31300         * config/rs6000/gnu.h: Remove.
31301         * config/sh/sh-symbian.h: Remove.
31302         * config/sh/symbian-base.c: Remove.
31303         * config/sh/symbian-c.c: Remove.
31304         * config/sh/symbian-cxx.c: Remove.
31305         * config/sh/symbian-post.h: Remove.
31306         * config/sh/symbian-pre.h: Remove.
31307         * config/sh/t-symbian: Remove.
31308         * config/svr3.h: Remove.
31309         * config/vax/netbsd.h: Remove.
31310         * config.build: Don't handle i[34567]86-*-pe.
31311         * config.gcc: Remove handling of deprecations for most deprecated
31312         targets.
31313         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
31314         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
31315         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
31316         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
31317         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
31318         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
31319         Remove cases.
31320         * config.host: Don't handle i[34567]86-*-pe.
31321         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
31322         (ASM_SPEC32): Don't handle -mcall-gnu.
31323         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
31324         -mcall-gnu.
31325         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
31326         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
31327         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
31328         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
31329         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
31330         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
31331         conditional on SYMBIAN.
31332         * configure.ac: Don't handle powerpc*-*-gnu*.
31333         * configure: Regenerate.
31334         * doc/extend.texi (interrupt attribute): Don't mention CRX.
31335         * doc/install-old.texi (m6811, m6812): Don't mention.
31336         * doc/install.texi (arc-*-elf*): Don't document multilib option.
31337         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
31338         (m68k-uclinuxoldabi): Don't mention.
31339         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
31340         Remove.
31341         (-mcall-gnu): Remove.
31342         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
31343         families): Remove constraint documentation.
31344
31345 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
31346
31347         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
31348         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
31349         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
31350
31351 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
31352
31353         PR target/48226
31354         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
31355         vector when peeking at the next token for vector, don't expand the
31356         keywords.
31357
31358 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
31359
31360         * config/avr/avr-protos.h (expand_epilogue): Change prototype
31361         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
31362         * config/avr/avr.c (init_cumulative_args)
31363         (avr_function_arg_advance): Use it.
31364         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
31365         sibcall epilogues.
31366         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
31367         (avr_function_ok_for_sibcall): ...this new function.
31368         (avr_lookup_function_attribute1): New static Function.
31369         (avr_naked_function_p, interrupt_function_p)
31370         (signal_function_p, avr_OS_task_function_p)
31371         (avr_OS_main_function_p): Use it.
31372         * config/avr/avr.md ("sibcall", "sibcall_value")
31373         ("sibcall_epilogue"): New expander.
31374         ("*call_insn", "*call_value_insn"): New insn.
31375         ("call_insn", "call_value_insn"): Remove
31376         ("call", "call_value", "epilogue"): Change expander to handle
31377         sibling calls.
31378
31379 2011-03-21  Nick Clifton  <nickc@redhat.com>
31380
31381         * doc/invoke.texi (Overall Options): Move closing brace to end of
31382         options list.
31383         (Optimization Options): Add missing @gol.
31384         (Directory Options): Likewise.
31385         (i386 and x86-64 Options): Likewise.
31386         (RS6000 and PowerPC Options): Likewise.
31387         (i386 and x86-64 Windows Options): Likewise.
31388         (V850 Options): Add text missing from descriptions.
31389
31390 2011-03-22  Richard Henderson  <rth@redhat.com>
31391
31392         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
31393         (avr_incoming_return_addr_rtx): New.
31394         (emit_push_byte): New.
31395         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
31396         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
31397         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
31398         (emit_pop_byte): New.
31399         (expand_epilogue): Use it.  Pop frame pointer by bytes.
31400         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
31401         (INCOMING_RETURN_ADDR_RTX): New.
31402         (INCOMING_FRAME_SP_OFFSET): New.
31403         (ARG_POINTER_CFA_OFFSET): New.
31404         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
31405         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
31406         (pophi): Remove.
31407
31408         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
31409
31410 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
31411
31412         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
31413         (FUNCTION_ARG_ADVANCE): Likewise.
31414         * tm.texi.in: Change references to them to hook references.
31415         * tm.texi: Regenerate.
31416         * targhooks.c (default_function_arg): Eliminate check for target
31417         macro.
31418         (default_function_incoming_arg): Likewise.
31419         (default_function_arg_advance): Likewise.
31420         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
31421         (function_arg_advance): Likewise.
31422         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
31423
31424 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
31425
31426         * tree.c (build_call_1): New function.
31427         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
31428
31429 2011-03-22  Richard Guenther  <rguenther@suse.de>
31430
31431         PR tree-optimization/48228
31432         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
31433         for single-arg PHIs.
31434
31435 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
31436
31437         PR rtl-optimization/48143
31438         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
31439         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
31440         sse2_cvtps2pd): Likewise.
31441
31442 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31443
31444         * recog.c (canonicalize_change_group): Use validate_unshare_change.
31445
31446 2011-03-22  Richard Guenther  <rguenther@suse.de>
31447
31448         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
31449         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
31450         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
31451         and REALIGN_LOAD_EXPR.
31452         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
31453         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
31454         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
31455         DOT_PROD_EXPR case ...
31456         (expand_expr_real_2): ... here.
31457         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
31458         and REALIGN_LOAD_EXPR.
31459         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
31460         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
31461         (vect_create_epilog_for_reduction): Likewise.
31462         (vectorizable_reduction): Likewise.
31463         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
31464         * tree-vect-stmts.c (vectorizable_load): Likewise.
31465
31466 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
31467
31468         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
31469
31470 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31471
31472         * config/s390/s390.c (s390_delegitimize_address): Fix offset
31473         handling for PLTOFF/GOTOFF.
31474
31475 2011-03-22  Nick Clifton  <nickc@redhat.com>
31476
31477         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
31478         trailing backslash from the end of the macro definition.
31479
31480 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31481
31482         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
31483         and PLT unspecs.
31484
31485 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
31486
31487         * expr.h (prepare_operand): Move to...
31488         * optabs.h (prepare_operand): ...here and change the insn code
31489         parameter from "int" to "enum insn_code".
31490         (insn_operand_matches): Declare.
31491         * expr.c (init_expr_target): Use insn_operand_matches.
31492         (compress_float_constant): Likewise.
31493         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
31494         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
31495         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
31496         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
31497         Likewise.
31498         (gen_cond_trap): Likewise.
31499         (prepare_operand): Likewise.  Change icode to an insn_code.
31500         (insn_operand_matches): New function.
31501         * reload.c (find_reloads_address_1): Use insn_operand_matches.
31502         * reload1.c (gen_reload): Likewise.
31503         * targhooks.c (default_secondary_reload): Likewise.
31504
31505 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
31506
31507         * config/alpha/alpha.md (unspec): New define_c_enum.
31508         (unspecv): Ditto.
31509
31510 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
31511
31512         PR debug/48214
31513         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
31514         between a call and its CALL_ARG_LOCATION note.
31515
31516 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
31517
31518         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
31519
31520 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
31521
31522         PR c/42544
31523         PR c/48197
31524         * c-common.c (shorten_compare): If primopN is first sign-extended
31525         to opN and then zero-extended to result type, set primopN to opN.
31526
31527 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
31528
31529         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
31530         for barrier handlers.
31531
31532 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
31533
31534         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
31535         UNSPEC constants to be in the unspec enumeration, and redefine
31536         all UNSPECV constants to be in the unspecv enumeration, so that
31537         dumps print which unspec/unspec_volatile this is.
31538         * config/rs6000/vector.md (UNSPEC_*): Ditto.
31539         * config/rs6000/paired.md (UNSPEC_*): Ditto.
31540         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
31541         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
31542         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
31543
31544         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
31545         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
31546         UNSPECV_LWSYNC, since these are used as unspec_volatile.
31547         * config/rs6000/sync.md (isync, lwsync): Ditto.
31548
31549 2011-03-21  Richard Guenther  <rguenther@suse.de>
31550
31551         * params.def (lto-min-partition): Fix typo.
31552
31553 2011-03-21  Richard Guenther  <rguenther@suse.de>
31554
31555         PR c/47939
31556         * c-decl.c (grokdeclarator): Drop to the main variant only
31557         for array types.  Drop flag_gen_aux_info check.
31558
31559 2011-03-21  Richard Guenther  <rguenther@suse.de>
31560
31561         PR translation/47911
31562         * params.def (lto-partitions): Fix typo.
31563         (lto-min-partition): Fix wording.
31564
31565 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
31566
31567         * config/rs6000/t-freebsd: Remove duplication from file.
31568
31569 2011-03-21  Richard Guenther  <rguenther@suse.de>
31570
31571         PR middle-end/47661
31572         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
31573
31574 2011-03-21  Richard Guenther  <rguenther@suse.de>
31575
31576         PR lto/48210
31577         * params.def (lto-partitions): Require at least 1 partition.
31578
31579 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31580
31581         * gthr-solaris.h: Remove.
31582         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
31583         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
31584         (LIB_SPEC): Likewise.
31585         * config/sol2.opt (threads): Remove.
31586         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
31587         (sparc*-*-solaris2*): Likewise.
31588         * configure.ac (enable_threads): Enable solaris support.
31589         * configure: Regenerate.
31590         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
31591         * doc/install.texi (Configuration, --enable-threads=lib): Remove
31592         solaris.
31593
31594 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31595
31596         * config.gcc: Obsolete *-*-solaris2.8*.
31597         * doc/install.texi (Specific, *-*-solaris2*): Document it.
31598
31599 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31600
31601         PR bootstrap/48135
31602         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
31603         reference.  Solaris 8 perl works.
31604
31605 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31606
31607         PR bootstrap/48135
31608         * doc/install.texi (Prerequisites): Move jar etc. up.
31609         Explain support library version requirements.
31610
31611 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31612
31613         PR bootstrap/48135
31614         * doc/install.texi (Prerequisites): Move Perl to build
31615         requirements.  Always necessary on Solaris 2 with Sun ld.
31616
31617 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31618
31619         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
31620         binutils 2.21.
31621         (Specific, i?86-*-solaris2.[89]): Likewise.
31622         (Specific, i?86-*-solaris2.10): Likewise.
31623         (Specific, mips-sgi-irix6): Likewise.
31624         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
31625         Update for binutils 2.21.
31626
31627 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31628
31629         * configure.ac (gcc_cv_lto_plugin): Fix typo.
31630         Allow -fuse-linker-plugin for non-default plugin linker.
31631         * configure: Regenerate.
31632
31633 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
31634
31635         PR bootstrap/48167
31636         * gengtype.c (files_rules): Added rule for cp/parser.h.
31637
31638 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
31639
31640         PR target/48213
31641         * config/s390/s390.c (s390_delegitimize_address): Don't call
31642         lowpart_subreg if orig_x has BLKmode.
31643
31644 2011-03-21  Kai Tietz  <ktietz@redhat.com>
31645
31646         PR target/12171
31647         * doc/plugins.texi: Adjust documentation for plugin register_callback.
31648         * tree.h (attribute_spec): Add new member affects_type_identity.
31649         * attribs.c (empty_attribute_table): Adjust attribute_spec
31650         initializers.
31651         * config/alpha/alpha.c: Likewise.
31652         * config/arc/arc.c: Likewise.
31653         * config/arm/arm.c: Likewise.
31654         * config/avr/avr.c: Likewise.
31655         * config/bfin/bfin.c: Likewise.
31656         * config/crx/crx.c: Likewise.
31657         * config/darwin.h: Likewise.
31658         * config/h8300/h8300.c: Likewise.
31659         * config/i386/cygming.h: Likewise.
31660         * config/i386/i386.c: Likewise.
31661         * config/ia64/ia64.c: Likewise.
31662         * config/m32c/m32c.c: Likewise.
31663         * config/m32r/m32r.c: Likewise.
31664         * config/m68hc11/m68hc11.c: Likewise.
31665         * config/m68k/m68k.c: Likewise.
31666         * config/mcore/mcore.c: Likewise.
31667         * config/mep/mep.c: Likewise.
31668         * config/microblaze/microblaze.c: Likewise.
31669         * config/mips/mips.c: Likewise.
31670         * config/rs6000/rs6000.c: Likewise.
31671         * config/rx/rx.c: Likewise.
31672         * config/sh/sh.c: Likewise.
31673         * config/sol2.h: Likewise.
31674         * config/sparc/sparc.c: Likewise.
31675         * config/spu/spu.c: Likewise.
31676         * config/stormy16/stormy16.c: Likewise.
31677         * config/v850/v850.c: Likewise.
31678
31679 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
31680
31681         * simplify-rtx.c (simplify_binary_operation_1): Handle
31682         (xor (and A B) C) case when B and C are both constants.
31683
31684 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
31685
31686         * tree-dfa.c (add_referenced_var): Fix typo in comment.
31687
31688 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
31689
31690         PR bootstrap/48168
31691         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
31692
31693 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
31694
31695         PR rtl-optimization/48156
31696         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
31697         assume df and df_lr are not NULL.
31698
31699 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
31700
31701         PR debug/48023
31702         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
31703         between a call and its CALL_ARG_LOCATION note.
31704
31705 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
31706
31707         PR debug/48178
31708         * config/sh/sh.c (find_barrier): Don't emit a constant pool
31709         between a call and its corresponding CALL_ARG_LOCATION note.
31710
31711 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
31712
31713         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
31714         instead of loop. Use HARD_REGISTER_NUM_P predicate.
31715         * haifa-sched.c (setup_ref_regs): Ditto.
31716         * caller-save.c (add_used_regs_1): Ditto.
31717         * dse.c (look_for_hardregs): Ditto.
31718         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
31719         * sched-rgn.c (check_live_1): Ditto.
31720
31721 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
31722
31723         * c-decl.c (diagnose_mismatched_decls): Give an error for
31724         redefining a typedef with variably modified type.
31725
31726 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
31727
31728         * c-decl.c (grokfield): Don't allow typedefs for structures or
31729         unions with no tag by default.
31730         * doc/extend.texi (Unnamed Fields): Update.
31731
31732 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
31733
31734         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
31735         Rewrite using indirect functions.
31736         (lwp_slwpcb): Ditto.
31737         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
31738         (avx_vinsertf128<mode>): Ditto.
31739
31740 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31741
31742         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
31743         unspecs.
31744
31745 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31746
31747         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
31748         splitting between a call and its corresponding CALL_ARG_LOCATION note.
31749
31750 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
31751
31752         PR rtl-optimization/48170
31753         * gcse.c (hoist_code): Remove bogus asserts.
31754
31755 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
31756
31757         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
31758         computation for prologue/epilogue.
31759
31760 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31761
31762         * Makefile.in (check-consistency): Remove.
31763
31764 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
31765
31766         PR debug/48176
31767         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
31768         arange_table_in_use is 0, but either text_section_used or
31769         cold_text_section_used is true.  Don't call it if
31770         !info_section_emitted.
31771
31772 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
31773
31774         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
31775         FUNCTION_VALUE_REGNO_P): Remove.
31776         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
31777         Remove.
31778         * config/avr/avr.c (avr_ret_register): Make static inline.
31779         (avr_function_value_regno_p): New function.
31780         (avr_libcall_value): Make static. Add 'func' argument.
31781         (avr_function_value): Make static. Rename 'func' argument to
31782         'fn_decl_or_type', forward it to avr_libcall_value. Call
31783         avr_ret_register function instead of RET_REGISTER macro.
31784         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
31785
31786 2011-03-18  Jason Merrill  <jason@redhat.com>
31787
31788         PR c++/23372
31789         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
31790
31791 2011-03-18  Richard Guenther  <rguenther@suse.de>
31792
31793         * doc/install.texi (--enable-gold): Remove.
31794         (--with-plugin-ld): Document.
31795         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
31796
31797 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
31798
31799         PR middle-end/47790
31800         * expr.c (optimize_bitfield_assignment_op): Revamp to work
31801         again after expansion changes.
31802
31803 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
31804
31805         * combine.c (try_combine): Do simplification only call of
31806         subst() on i2 even when i1 is present. Update comments.
31807
31808 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
31809
31810         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
31811         and UNSPEC_PCREL_SYMOFF.
31812
31813 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31814
31815         * config/s390/s390.md: Use define_c_enum for the unspec constant
31816         definitions.
31817
31818 2011-03-18  Richard Henderson  <rth@redhat.com>
31819             Jakub Jelinek  <jakub@redhat.com>
31820
31821         PR bootstrap/48161
31822         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
31823         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
31824
31825 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
31826
31827         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
31828         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
31829         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
31830         Change return type to bool.
31831         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
31832
31833 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
31834
31835         PR debug/48163
31836         * var-tracking.c (prepare_call_arguments): If CALL target
31837         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
31838         pc instead of looking it up using cselib_lookup and use
31839         Pmode for it if x has VOIDmode.
31840         * dwarf2out.c (gen_subprogram_die): If also both first and
31841         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
31842
31843         PR debug/48163
31844         * function.c (assign_parms): For data.passed_pointer parms
31845         use MEM of data.entry_parm instead of data.entry_parm itself
31846         as DECL_INCOMING_RTL.
31847         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
31848         also when passed and declared mode is the same, DECL_RTL
31849         is a MEM with pseudo as address and DECL_INCOMING_RTL is
31850         a MEM too.
31851
31852 2011-03-16  Jeff Law  <law@redhat.com>
31853
31854         PR rtl-optimization/37273
31855         * ira-costs.c (scan_one_insn): Detect constants living in memory and
31856         handle them like argument loads from stack slots.  Do not double
31857         count memory for memory constants and argument loads from stack slots.
31858
31859 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
31860
31861         PR debug/48160
31862         * var-tracking.c (prepare_call_arguments): Check SUBREG.
31863
31864 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
31865
31866         PR target/48171
31867         * config/i386/i386.opt: Add Save to -mavx and -mfma.
31868
31869 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
31870
31871         PR bootstrap/48153
31872         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
31873         if dwarf_strict.
31874         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
31875         Clear call_arg_locations and call_arg_loc_last always.
31876
31877         PR middle-end/48152
31878         * var-tracking.c (prepare_call_arguments): If argument needs to be
31879         passed by reference, adjust argtype and mode.
31880
31881 2011-03-17  Richard Guenther  <rguenther@suse.de>
31882
31883         PR middle-end/48134
31884         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
31885         a value make sure to fold the statement.
31886
31887 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
31888
31889         PR target/43872
31890         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
31891         return condition with !cfun->calls_alloca.
31892
31893 2011-03-17  Richard Guenther  <rguenther@suse.de>
31894
31895         PR bootstrap/48148
31896         * lto-cgraph.c (input_overwrite_node): Clear the abstract
31897         origin for decls in other ltrans units.
31898         (input_varpool_node): Likewise.
31899
31900 2011-03-17  Richard Guenther  <rguenther@suse.de>
31901
31902         PR middle-end/48165
31903         * tree-object-size.c (compute_object_offset): Properly return
31904         the offset operand of MEM_REFs as sizetype.
31905
31906 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
31907
31908         PR rtl-optimization/48141
31909         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
31910         * dse.c: Include params.h.
31911         (active_local_stores_len): New variable.
31912         (add_wild_read, dse_step1): Clear it when setting active_local_stores
31913         to NULL.
31914         (record_store, check_mem_read_rtx): Decrease it when removing
31915         from the chain.
31916         (scan_insn): Likewise.  Increase it when adding to chain, if it
31917         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
31918         set active_local_stores to NULL before the addition.
31919         * Makefile.in (dse.o): Depend on $(PARAMS_H).
31920
31921         PR rtl-optimization/48141
31922         * dse.c (record_store): If no positions are needed in an insn
31923         that cannot be deleted, at least unchain it from active_local_stores.
31924
31925 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
31926
31927         PR debug/47510
31928         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
31929         (lookup_type_die_strip_naming_typedef): ... here.
31930         (get_context_die): Use it.
31931         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
31932         the anonymous struct named by the naming typedef.
31933
31934 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
31935
31936         PR target/48154
31937         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
31938         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
31939
31940 2011-03-16  Jeff Law  <law@redhat.com>
31941
31942         * tree-vrp.c (identify_jump_threads): Slightly simplify type
31943         check for operands of conditional.  Allow type to be a pointer.
31944
31945 2011-03-16  Richard Guenther  <rguenther@suse.de>
31946
31947         PR tree-optimization/48149
31948         * fold-const.c (fold_binary_loc): Fold
31949         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
31950
31951 2011-03-16  Richard Guenther  <rguenther@suse.de>
31952
31953         PR tree-optimization/26134
31954         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
31955         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
31956         (non_rewritable_mem_ref_base): Handle complex type component
31957         accesses, constrain offsets for vector and complex extracts
31958         more properly.
31959
31960 2011-03-16  Richard Guenther  <rguenther@suse.de>
31961
31962         PR tree-optimization/48146
31963         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
31964         operands avoiding the need for renaming.
31965
31966 2011-03-16  Richard Guenther  <rguenther@suse.de>
31967
31968         * gimple-fold.c (maybe_fold_reference): Open-code relevant
31969         constant folding.  Move MEM_REF canonicalization first.
31970         Rely on fold_const_aggregate_ref for initializer folding.
31971         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
31972
31973 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
31974
31975         PR middle-end/48136
31976         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
31977         arg0/arg1 or their arguments are always fold converted to matching
31978         types.
31979
31980         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
31981         to nargs.
31982
31983 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31984
31985         PR lto/46944
31986         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
31987         Handle in-tree gold.
31988         (ld_vers): Extract binutils version for gold.
31989         (gcc_cv_ld_hidden): Handle gold here.
31990         (gcc_cv_lto_plugin): Determine level of linker plugin support.
31991         * configure: Regenerate.
31992         * config.in: Regenerate.
31993         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
31994         -fuse-linker-plugin otherwise.
31995         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
31996         (LINK_COMMAND_SPEC): Use it.
31997         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
31998
31999 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
32000
32001         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
32002         * calls.c: Remove debug.h include.
32003         (emit_call_1): Don't call virtual_call_token debug hook.
32004         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
32005         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
32006         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
32007         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
32008         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
32009         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
32010         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
32011         dwarf2out_virtual_call): Remove.
32012         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
32013         copy_call_info and virtual_call hooks.
32014         (dwarf2out_init): Don't initialize vcall_insn_table,
32015         debug_dcall_section and debug_vcall_section.
32016         (prune_unused_types): Don't mark nodes from dcall_table.
32017         (dwarf2out_finish): Don't output dcall or vcall tables.
32018         * final.c (final_scan_insn): Don't call direct_call or
32019         virtual_call debug hooks.
32020         * debug.h (struct gcc_debug_hooks): Remove direct_call,
32021         virtual_call_token, copy_call_info and virtual_call hooks.
32022         (debug_nothing_uid): Remove prototype.
32023         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
32024         copy_call_info and virtual_call hooks.
32025         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
32026         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
32027         * debug.c (do_nothing_debug_hooks): Likewise.
32028         (debug_nothing_uid): Remove.
32029         * doc/invoke.texi (-fenable-icf-debug): Remove.
32030         * common.opt (-fenable-icf-debug): Likewise.
32031
32032         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
32033         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
32034         call's MEM.  Handle functions returning aggregate through a hidden
32035         first pointer.  For virtual calls add clobbered pc to call arguments
32036         chain.
32037         * dwarf2out.c (gen_subprogram_die): Emit
32038         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
32039         can't be emitted.
32040
32041         PR debug/45882
32042         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
32043         * rtl.h (ENTRY_VALUE_EXP): Define.
32044         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
32045         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
32046         * print-rtl.c (print_rtx): Likewise.
32047         * gengtype.c (adjust_field_rtx_def): Likewise.
32048         * var-tracking.c (vt_add_function_parameter): Adjust
32049         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
32050         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
32051         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
32052         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
32053         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
32054
32055         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
32056         Call var_location debug hook even on CALL_INSNs.
32057         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
32058         * rtl.def (ENTRY_VALUE): New.
32059         * dwarf2out.c: Include cfglayout.h.
32060         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
32061         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
32062         (struct call_arg_loc_node): New type.
32063         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
32064         tail_call_site_count): New variables.
32065         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
32066         DW_TAG_GNU_call_site_parameter.
32067         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
32068         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
32069         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
32070         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
32071         and DW_AT_GNU_all_source_call_sites.
32072         (mem_loc_descriptor): Handle ENTRY_VALUE.
32073         (add_src_coords_attributes): Don't add enything if
32074         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
32075         (dwarf2out_abstract_function): Save and clear call_arg_location,
32076         call_site_count and tail_call_site_count around dwarf2out_decl call.
32077         (gen_call_site_die): New function.
32078         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
32079         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
32080         (dwarf2out_function_decl): Clear call_arg_locations,
32081         call_arg_loc_last, set call_site_count and tail_call_site_count
32082         to -1 and free block_map.
32083         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
32084         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
32085         followed by any real instructions.
32086         (dwarf2out_begin_function): Set call_site_count and
32087         tail_call_site_count to 0.
32088         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
32089         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
32090         attempt to force a DIE for it and worst case remove the attribute.
32091         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
32092         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
32093         the decl itself.
32094         * var-tracking.c: Include tm_p.h.
32095         (vt_stack_adjustments): For calls call note_register_arguments.
32096         (argument_reg_set): New variable.
32097         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
32098         ensure the VALUE is resolved.
32099         (call_arguments): New variable.
32100         (prepare_call_arguments): New function.
32101         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
32102         (struct expand_loc_callback_data): Add ignore_cur_loc field.
32103         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
32104         always use the best expression.
32105         (vt_expand_loc): Add ignore_cur_loc argument.
32106         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
32107         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
32108         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
32109         note for all calls.
32110         (vt_add_function_parameter): Use cselib_lookup_from_insn.
32111         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
32112         argument.  Don't call cselib_preserve_only_values and
32113         cselib_reset_table.
32114         (note_register_arguments): New function.
32115         (vt_initialize): Compute argument_reg_set.  Call
32116         vt_add_function_parameters before processing basic blocks instead of
32117         afterwards.  For calls call prepare_call_arguments before calling
32118         cselib_process_insn.
32119         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
32120         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
32121         (var-tracking.o): Depend on $(TM_P_H).
32122         * cfglayout.h (insn_scope): New prototype.
32123         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
32124         * cfglayout.c (insn_scope): No longer static.
32125         * insn-notes.def (CALL_ARG_LOCATION): New.
32126         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
32127         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
32128         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
32129         nothing for DECL_EXTERNAL BLOCK_VARS.
32130
32131 2011-03-16  Alan Modra  <amodra@gmail.com>
32132
32133         PR target/45844
32134         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
32135         create invalid offset address for vsx splat insn.
32136         * config/rs6000/predicates.md (splat_input_operand): New.
32137         * config/rs6000/vsx.md (vsx_splat_*): Use it.
32138
32139 2011-03-15  Xinliang David Li  <davidxl@google.com>
32140
32141         PR c/47837
32142         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
32143         (normalize_preds): New function.
32144         (is_use_properly_guarded): Normalize def predicates.
32145
32146 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
32147
32148         PR target/46788
32149         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
32150         in the output template.
32151
32152 2011-03-15  Richard Guenther  <rguenther@suse.de>
32153
32154         PR middle-end/47650
32155         * tree-pretty-print.c (dump_function_declaration): Properly
32156         dump unprototyped and varargs function types.
32157
32158 2011-03-15  Richard Guenther  <rguenther@suse.de>
32159
32160         PR tree-optimization/13954
32161         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
32162         and friends.
32163
32164 2011-03-15  Richard Guenther  <rguenther@suse.de>
32165
32166         PR tree-optimization/48037
32167         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
32168         selects into BIT_FIELD_REFs.
32169         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
32170         vector select.
32171
32172 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
32173
32174         PR tree-optimization/48129
32175         * builtins.c (fold_builtin_snprintf): Convert to type of
32176         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
32177         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
32178
32179 2011-03-15  Richard Guenther  <rguenther@suse.de>
32180
32181         PR tree-optimization/41490
32182         * tree-ssa-dce.c (propagate_necessity): Handle returns without
32183         value but with VUSE.
32184         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
32185         return statements.
32186         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
32187         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
32188         * tree-tailcall.c (find_tail_calls): Ignore returns.
32189
32190 2011-03-15  Richard Guenther  <rguenther@suse.de>
32191
32192         PR middle-end/48031
32193         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
32194         or variable-indexed array accesses when in gimple form.
32195
32196 2011-03-15  Richard Guenther  <rguenther@suse.de>
32197
32198         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
32199
32200 2011-03-15  Alan Modra  <amodra@gmail.com>
32201
32202         PR target/48032
32203         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
32204         presume symbol_refs without a symbol_ref_decl are suitably
32205         aligned, nor other trees we may see here.  Handle anchor symbols.
32206         (legitimate_constant_pool_address_p): Comment.  Add mode param.
32207         Check cmodel=medium addresses.  Adjust all calls.
32208         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
32209         creating cmodel=medium optimized access to locals.
32210         * config/rs6000/constraints.md (R): Pass QImode to
32211         legitimate_constant_pool_address_p.
32212         * config/rs6000/predicates.md (input_operand): Pass mode to
32213         legitimate_constant_pool_address_p.
32214         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
32215         Update prototype.
32216
32217 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
32218
32219         PR target/48053
32220         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
32221         64-bit constants being loaded into registers other than GPRs such
32222         as loading 0 into a VSX register.
32223
32224 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32225
32226         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
32227
32228 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
32229
32230         PR middle-end/47917
32231         * builtins.c (fold_builtin_snprintf): New function.
32232         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
32233         (fold_builtin_4): Likewise.
32234
32235         PR middle-end/38878
32236         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
32237         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
32238         and C - X == X also strip nops from +/-/p+ operand.
32239         When optimizing -X == C, fold C to arg0's type.
32240
32241         PR debug/47946
32242         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
32243         emit it as add_AT_int instead of add_AT_unsigned.
32244
32245 2011-03-14  Tom Tromey  <tromey@redhat.com>
32246
32247         * unwind-dw2.c: Include sys/sdt.h if it exists.
32248         (_Unwind_DebugHook): Use STAP_PROBE2.
32249         * config.in, configure: Rebuild.
32250         * configure.ac: Check for sys/sdt.h.
32251
32252 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
32253
32254         * config/i386/i386.md (ROUND_FLOOR): New constant.
32255         (ROUND_CEIL): Ditto.
32256         (ROUND_TRUNC): Ditto.
32257         (ROUND_MXCSR): Ditto.
32258         (ROUND_NO_EXC): Ditto.
32259         (rint<mode>2): Use new defines instead of numerical constants.
32260         (floor<mode>2): Ditto.
32261         (ceil<mode>2): Ditto.
32262         (btrunc<mode>2): Ditto.
32263         * config/i386/i386-builtin-types.def: Define ROUND function type
32264         aliases.
32265         * config/i386/i386.c (enum ix86_builtins): Add
32266         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
32267         (struct builtin_description): Add
32268         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
32269         (ix86_expand_sse_round): New static function.
32270         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
32271         function types.
32272         (ix86_builtin_vectorized_function): Handle
32273         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
32274
32275 2011-03-14  Tom Tromey  <tromey@redhat.com>
32276
32277         * c-parser.c (c_parser_asm_string_literal): Clear
32278         warn_overlength_strings.
32279
32280 2011-03-14  Tom Tromey  <tromey@redhat.com>
32281
32282         * c-parser.c (disable_extension_diagnostics): Save
32283         warn_overlength_strings.
32284         (restore_extension_diagnostics): Restore warn_overlength_strings.
32285
32286 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
32287
32288         * BASE-VER: Change to 4.7.0.
32289
32290 2011-03-14  Richard Guenther  <rguenther@suse.de>
32291
32292         PR middle-end/48098
32293         * tree.c (build_vector_from_val): Adjust assert to requirements
32294         and reality.
32295
32296 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
32297
32298         PR bootstrap/48102
32299         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
32300
32301 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
32302
32303         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
32304         terms of target_flags_explicit. Adjust copyright year.
32305
32306         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
32307         * config/rs6000/t-freebsd: New file. Add override for
32308         LIB2FUNCS_EXTRA.
32309
32310 2011-03-13  Chris Demetriou  <cgd@google.com>
32311
32312         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
32313         (-fno-diagnostics-show-option): this, to reflect current default.
32314         (-Werror=): Update text about -fno-diagnostics-show-option.
32315
32316 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
32317
32318         PR target/48053
32319         * config/rs6000/predicates.md (easy_vector_constant_add_self,
32320         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
32321         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
32322         mode is not V2DImode or V2DFmode.
32323         (vspltis_constant): Do not handle V2DImode and V2DFmode.
32324         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
32325         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
32326         registers to 0.
32327         (movdi_internal64): Likewise.
32328
32329 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
32330
32331         PR tree-optimization/47127
32332         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
32333         parameter.
32334         (set_cloog_options): Same.
32335         (scop_to_clast): Same.
32336         (print_clast_stmt): Do not call cloog_state_malloc and
32337         cloog_state_free.
32338         (print_generated_program): Same.
32339         (gloog): Same.
32340         * graphite-clast-to-gimple.h (cloog_state): Declared.
32341         (scop_to_clast): Adjust declaration.
32342         * graphite.c (cloog_state): Defined here.
32343         (graphite_initialize): Call cloog_state_malloc.
32344         (graphite_finalize): Call cloog_state_free.
32345
32346 2011-03-11  Jason Merrill  <jason@redhat.com>
32347
32348         * attribs.c (lookup_attribute_spec): Take const_tree.
32349         * tree.h: Adjust.
32350
32351 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
32352
32353         * config/sparc/sparc.c (sparc_option_override): Use
32354         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
32355
32356 2011-03-11  Richard Guenther  <rguenther@suse.de>
32357
32358         PR tree-optimization/48067
32359         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
32360         multiplication result will be only used once on the target
32361         stmt.
32362
32363 2011-03-11  Richard Guenther  <rguenther@suse.de>
32364
32365         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
32366
32367 2011-03-11  Richard Guenther  <rguenther@suse.de>
32368
32369         PR lto/48073
32370         * tree.c (find_decls_types_r): Do not walk types only reachable
32371         from IDENTIFIER_NODEs.
32372
32373 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
32374
32375         PR middle-end/48044
32376         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
32377         all vnode->force_output nodes as needed.
32378
32379 2011-03-11  Jason Merrill  <jason@redhat.com>
32380
32381         PR c++/48069
32382         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
32383         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
32384
32385 2011-03-11  Martin Jambor  <mjambor@suse.cz>
32386
32387         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
32388         cgraph_node.
32389
32390 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
32391
32392         PR tree-optimization/48063
32393         * ipa-inline.c (cgraph_decide_inlining): Don't try to
32394         inline functions called once if !tree_can_inline_p (node->callers).
32395
32396 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
32397
32398         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
32399         extra_objs.
32400         * config/score/score3.c: Delete.
32401         * config/score/score3.h: Delete.
32402         * config/score/mul-div.S: Delete.
32403         * config/score/sfp-machine.h: Add new file.
32404         * config/score/constraints.md: Add new file.
32405         * config/score/t-score-softfp: Add new file.
32406         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
32407         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
32408         (score7_extra_constraint): Delete.
32409         (score7_option_override): Remove unused code.
32410         * config/score/score.c: Remove score3 and score5 define and code.
32411         * config/score/score.h: Remove score3 and score5 define and code.
32412         * config/score/score.md: Remove score3 template and unusual insn.
32413         * config/score/score.opt: Remove score3 and score5 options.
32414
32415 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
32416
32417         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
32418         when _HPUX_SOURCE is defined.
32419         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
32420
32421 2011-03-10  Jason Merrill  <jason@redhat.com>
32422
32423         PR c++/48029
32424         * stor-layout.c (layout_type): Don't set structural equality
32425         on arrays of incomplete type.
32426         * tree.c (type_hash_eq): Handle comparing them properly.
32427
32428 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
32429
32430         PR debug/48043
32431         * config/s390/s390.c (s390_delegitimize_address): Make sure the
32432         result mode matches original rtl mode.
32433
32434 2011-03-10  Nick Clifton  <nickc@redhat.com>
32435
32436         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
32437         (andsi3, andsi3_flags): Fix timings for three operand alternative.
32438
32439 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
32440
32441         PR rtl-optimization/47866
32442         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
32443         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
32444         if target wasn't scalar.
32445         * function.c (assign_stack_temp_for_type): Assert that neither
32446         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
32447         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
32448         macro.
32449         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
32450
32451 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32452
32453         * config/s390/s390-protos.h (s390_label_align): New prototype.
32454         * config/s390/s390.c (s390_label_align): New function.
32455         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
32456
32457 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
32458
32459         PR target/47755
32460         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
32461         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
32462         (output_vec_const_move): Ditto.
32463
32464 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
32465
32466         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
32467         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
32468         * config/mips/mips.c (mips_preferred_reload_class): Make static.
32469         Change 'rclass' argument and result type to reg_class_t.
32470         (TARGET_PREFERRED_RELOAD_CLASS): Define.
32471
32472 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
32473
32474         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
32475         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
32476         (TARGET_MEMORY_MOVE_COST): Define.
32477         (avr_register_move_cost, avr_memory_move_cost): New Functions.
32478
32479 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
32480
32481         PR debug/47881
32482         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
32483         removed anything.
32484
32485         PR tree-optimization/48022
32486         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
32487         for EQ/NE_EXPR.
32488
32489 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
32490
32491         PR debug/47991
32492         * var-tracking.c (find_use_val): Return NULL for
32493         cui->sets && cui->store_p BLKmode MEMs.
32494
32495 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
32496
32497         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
32498         Remove.
32499         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
32500         xstormy16_print_operand_address): Remove.
32501         * config/stormy16/stormy16.c (xstormy16_print_operand,
32502         xstormy16_print_operand_address): Make static.
32503         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
32504
32505 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
32506
32507         PR target/47862
32508         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
32509         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
32510         before definition.
32511
32512 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
32513
32514         PR bootstrap/48000
32515         * cfgloopmanip.c (fix_bb_placements): Return immediately
32516         if FROM is BASE_LOOP's header.
32517
32518 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
32519
32520         * gimplify.c (gimplify_function_tree): Fix building calls
32521         to __builtin_return_address.
32522
32523 2011-03-07  Alan Modra  <amodra@gmail.com>
32524
32525         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
32526         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
32527         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
32528         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
32529         return_mode args.
32530         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
32531         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
32532         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
32533         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
32534         * config/rs6000/rs6000.c
32535         (rs6000_elf_end_indicate_exec_stack): Rename to..
32536         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
32537         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
32538         (rs6000_file_start): ..here.
32539         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
32540         file scope variables.
32541         (call_ABI_of_interest): New function.
32542         (init_cumulative_args): Set above vars when function return value
32543         is a float, vector, or small struct.
32544         (rs6000_function_arg_advance_1): Likewise for function args.
32545         (rs6000_va_start): Set rs6000_passes_float if variable arg function
32546         references float args.
32547
32548 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
32549
32550         * doc/cfg.texi: Remove "See" before @ref.
32551         * doc/invoke.texi: Likewise.
32552
32553 2011-03-05  Jason Merrill  <jason@redhat.com>
32554
32555         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
32556
32557 2011-03-05  Anthony Green  <green@moxielogic.com>
32558
32559         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
32560
32561 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
32562
32563         PR rtl-optimization/47899
32564         * cfgloopmanip.c (fix_bb_placements): Fix first argument
32565         to flow_loop_nested_p when moving the loop upward.
32566
32567 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
32568
32569         PR target/47719
32570         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
32571
32572 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
32573
32574         PR tree-optimization/47967
32575         * ipa-cp.c (build_const_val): Return NULL instead of creating
32576         VIEW_CONVERT_EXPR for mismatching sizes.
32577         (ipcp_create_replace_map): Return NULL if build_const_val failed.
32578         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
32579         give up on versioning.
32580
32581 2011-03-05  Alan Modra  <amodra@gmail.com>
32582
32583         PR target/47986
32584         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
32585         full cmodel medium/large lo_sum + high addresses.
32586
32587 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32588
32589         * config/s390/s390.c (s390_decompose_address): Reject non-literal
32590         pool references in UNSPEC_LTREL_OFFSET.
32591
32592 2011-03-04  Jan Hubicka  <jh@suse.cz>
32593
32594         PR lto/47497
32595         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
32596         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
32597         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
32598         Add node pointers.
32599         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
32600         cgraph_add_thunk): Add node pointers.
32601         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
32602         associated to right node.
32603         (input_node): Update use of cgraph_same_body_alias
32604         and cgraph_add_thunk.
32605
32606 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
32607
32608         * config/i386/i386.opt (mprefer-avx128): New flag.
32609         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
32610         modes when the flag -mprefer-avx128 is on.
32611
32612 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
32613
32614         * dwarf2out.c (compare_loc_operands): Fix address handling.
32615
32616 2011-03-04  Alan Modra  <amodra@gmail.com>
32617
32618         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
32619
32620 2011-03-04  Richard Guenther  <rguenther@suse.de>
32621
32622         PR middle-end/47968
32623         * expmed.c (extract_bit_field_1): Prefer vector modes that
32624         vec_extract patterns can handle.
32625
32626 2011-03-04  Richard Guenther  <rguenther@suse.de>
32627
32628         PR middle-end/47975
32629         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
32630
32631 2011-03-04  Richard Henderson  <rth@redhat.com>
32632
32633         * explow.c (emit_stack_save): Remove 'after' parameter.
32634         (emit_stack_restore): Likewise.
32635         * expr.h: Update to match.
32636         * builtins.c, calls.c, stmt.c: Likewise.
32637         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
32638         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
32639         * function.c (expand_function_end): Insert the emit_stack_save
32640         sequence before parm_birth_insn instead of after.
32641
32642 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
32643
32644         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
32645         (ssse3_pmaddubsw128): Ditto.
32646         (ssse3_pmaddubsw): Ditto.
32647
32648 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
32649
32650         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
32651
32652 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
32653
32654         PR c/47963
32655         * gimplify.c (omp_add_variable): Only call omp_notice_variable
32656         on TYPE_SIZE_UNIT if it is a DECL.
32657
32658         PR debug/47283
32659         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
32660         first operand is not is_gimple_mem_ref_addr, try to fold it.
32661         If the operand still isn't is_gimple_mem_ref_addr, clear
32662         MEM_EXPR on op0.
32663
32664 2011-03-03  Richard Guenther  <rguenther@suse.de>
32665
32666         PR middle-end/47283
32667         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
32668         match comment.
32669         (refs_may_alias_p_1): For release branches return true if
32670         we are confused by our input.
32671
32672 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32673
32674         * config/s390/s390.c (s390_function_value): Rename to ...
32675         (s390_function_and_libcall_value): ... this.
32676         (s390_function_value): New function.
32677         (s390_libcall_value): New function.
32678         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
32679         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
32680         target macro definitions.
32681         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
32682
32683 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
32684
32685         * config/i386/freebsd64.h (CC1_SPEC): Define.
32686         * config/i386/linux64.h (CC1_SPEC): Define.
32687         * config/i386/x86-64.h (CC1_SPEC): Don't define.
32688
32689 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
32690
32691         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
32692         Remove.
32693         * config/stormy16/stormy16.c: Include reload.h.
32694         (xstormy16_memory_move_cost): New function.
32695         (TARGET_MEMORY_MOVE_COST): Define.
32696
32697 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
32698
32699         PR rtl-optimization/47925
32700         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
32701         with side effects.  Remove the more-specific check for volatile asms.
32702
32703 2011-03-02  Alan Modra  <amodra@gmail.com>
32704
32705         PR target/47935
32706         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
32707         toc relative addresses for valid offsets.
32708
32709 2011-03-01  Richard Guenther  <rguenther@suse.de>
32710
32711         PR tree-optimization/47890
32712         * tree-vect-loop.c (get_initial_def_for_induction): Set
32713         related stmt properly.
32714
32715 2011-03-01  Richard Guenther  <rguenther@suse.de>
32716
32717         PR lto/47924
32718         * lto-streamer.c (lto_record_common_node): Also register
32719         the canonical type.
32720
32721 2011-03-01  Richard Guenther  <rguenther@suse.de>
32722
32723         PR lto/46911
32724         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
32725         Do not stream DECL_ABSTRACT_ORIGIN.
32726         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
32727         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
32728         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
32729         Do not stream DECL_ABSTRACT_ORIGIN.
32730         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
32731         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
32732
32733 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
32734
32735         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
32736         FUNCTION_VALUE_REGNO_P): Remove.
32737         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
32738         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
32739         Add 'outgoing' argument.
32740         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
32741         function.
32742         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
32743         TARGET_FUNCTION_VALUE_REGNO_P): Define.
32744
32745 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
32746
32747         PR debug/28047
32748         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
32749         (lookup_filename): Likewise.
32750         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
32751
32752 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
32753             Jakub Jelinek  <jakub@redhat.com>
32754
32755         PR middle-end/47893
32756         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
32757         (assign_stack_local_1): Change last argument type to int.
32758         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
32759         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
32760         don't record padding space into frame_space_list nor use those areas.
32761         (assign_stack_local): Adjust caller.
32762         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
32763         of assign_stack_local, pass 0 as last argument.
32764         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
32765         callers.
32766
32767 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
32768
32769         PR debug/47283
32770         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
32771         Use target address_mode and pointer_mode hooks instead of hardcoded
32772         Pmode and ptr_mode.  Handle some simple cases of extending if
32773         POINTERS_EXTEND_UNSIGNED < 0.
32774         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
32775         Call convert_debug_memory_address.
32776         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
32777         convert_debug_memory_address.
32778
32779         PR middle-end/46790
32780         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
32781         * configure: Regenerated.
32782         * config.in: Regenerated.
32783         * varasm.c (default_function_section): Return NULL
32784         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
32785
32786 2011-02-28  Martin Jambor  <mjambor@suse.cz>
32787
32788         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
32789         the description to match the printed values.
32790
32791 2011-02-28  Richard Guenther  <rguenther@suse.de>
32792
32793         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
32794         of the copied scope tree.
32795
32796 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32797
32798         * doc/extend.texi (Function Attributes): Avoid deeply (and
32799         wrongly) nested tables.
32800
32801 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
32802
32803         PR middle-end/47903
32804         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
32805         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
32806         r isn't op0 nor op1.
32807
32808 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
32809
32810         * config/avr/avr.md: Remove magic comment for emacs.
32811
32812 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
32813
32814         PR target/45261
32815         * config/avr/avr.c (avr_option_override): Use error on bad options.
32816         (avr_help): New function.
32817         (TARGET_HELP): Define.
32818
32819 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
32820
32821         PR target/42240
32822         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
32823         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
32824
32825 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
32826
32827         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
32828         (ARM Options): Ditto.
32829         (i386 and x86-64 Options): Ditto.
32830         (RX Options): Ditto.
32831         (SPARC Options): Ditto.
32832
32833 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
32834
32835         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
32836         FreeBSD 6 and later.  Generally use cpu generic.
32837
32838 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
32839
32840         * doc/cpp.texi: Update copyright years.
32841
32842 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
32843
32844         PR target/46898
32845         * config/lm32/lm32.md (ashrsi3): Added needed variable.
32846
32847 2011-02-25  Jon Beniston  <jon@beniston.com>
32848
32849         PR target/46898
32850         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
32851         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
32852         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
32853         (lm32_block_move_inline): Add type cast to remove warning.
32854         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
32855         (gen_int_relational): Move declarations to start of function.
32856
32857 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
32858
32859         PR tree-optimization/45470
32860         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
32861         can throw internally only.
32862         * tree-vect-stmts.c (vectorizable_call): Likewise.
32863
32864 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
32865
32866         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
32867         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
32868         * config/stormy16/stormy16-protos.h
32869         (xstormy16_preferred_reload_class): Remove.
32870         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
32871         static. Change 'rclass' argument and return type to reg_class_t.
32872         (TARGET_PREFERRED_RELOAD_CLASS,
32873         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
32874
32875 2011-02-24  Richard Guenther  <rguenther@suse.de>
32876
32877         * lto-streamer-in.c (input_bb): Do not find referenced vars
32878         in debug statements.
32879
32880 2011-02-23  Jason Merrill  <jason@redhat.com>
32881
32882         * common.opt (fabi-version): Document v5 and v6.
32883
32884 2011-02-23  Richard Guenther  <rguenther@suse.de>
32885
32886         PR tree-optimization/47849
32887         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
32888
32889 2011-02-23  Jie Zhang  <jie@codesourcery.com>
32890
32891         * opts-common.c (decode_cmdline_option): Print empty string
32892         argument as "" in decoded->orig_option_with_args_text.
32893         * gcc.c (execute): Print empty string argument as ""
32894         in the verbose output.
32895         (do_spec_1): Keep empty string argument.
32896
32897 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
32898
32899         * config.gcc: Declare score-* and crx-* obsolete.
32900
32901 2011-02-23  Jie Zhang  <jie@codesourcery.com>
32902
32903         PR rtl-optimization/47763
32904         * web.c (web_main): Ignore naked clobber when replacing register.
32905
32906 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
32907
32908         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
32909         Remove.
32910
32911 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
32912
32913         PR doc/47848
32914         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
32915
32916 2011-02-22  Mike Stump  <mikestump@comcast.net>
32917
32918         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
32919         assembler.
32920         * configure: Regenerate.
32921
32922 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
32923
32924         PR rtl-optimization/46002
32925         * ira-color.c (update_copy_costs): Change class intersection
32926         test to reg_class_contents[] test of 'hard_regno'.
32927
32928 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
32929
32930         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
32931         than Driver option.
32932         * config/hpux11.opt (mt): Likewise.
32933         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
32934         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
32935         * config/vax/elf.opt (mno-asm-pic): Likewise.
32936         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
32937
32938 2011-02-21  Mike Stump  <mikestump@comcast.net>
32939
32940         PR target/47822
32941         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
32942         tree so we can get save the type.
32943         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
32944         for CFString instead of trying to use past the end of the builtins.
32945         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
32946         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
32947         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
32948         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
32949         Rename to darwin_builtin_cfstring.
32950         (darwin_init_cfstring_builtins): Return the built type.
32951
32952 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
32953
32954         PR target/47840
32955         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
32956         (_mm256_insert_epi64): Use _mm_insert_epi64.
32957
32958 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
32959
32960         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
32961         * config/stormy16/stormy16-protos.h
32962         (xstormy16_mode_dependent_address_p): Remove.
32963         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
32964         Make static. Change return type to bool. Change argument type to
32965         const_rtx. Remove dead code.
32966         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
32967
32968 2011-02-21  Richard Guenther  <rguenther@suse.de>
32969
32970         PR lto/47820
32971         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
32972         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
32973         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
32974         TUs context.
32975         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
32976         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
32977
32978 2011-02-20  Richard Guenther  <rguenther@suse.de>
32979
32980         PR lto/47822
32981         * tree.c (free_lang_data_in_decl): Clean builtins from
32982         the TU decl BLOCK_VARS.
32983
32984 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
32985
32986         PR debug/47620
32987         PR debug/47630
32988         * haifa-sched.c (fix_tick_ready): Skip tick computation
32989         for debug insns.
32990
32991 2011-02-19  Richard Guenther  <rguenther@suse.de>
32992
32993         PR lto/47647
32994         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
32995         Remove lazy BLOCK_VARS streaming.
32996         (lto_input_ts_block_tree_pointers): Likewise.
32997         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
32998
32999 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
33000
33001         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
33002
33003 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
33004
33005         * config/i386/biarch32.h, config/i386/mach.h,
33006         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
33007
33008 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
33009
33010         PR target/47800
33011         * config/i386/i386.md (peephole2 for shift and plus): Use
33012         operands[1] original mode in the first insn.
33013
33014 2011-02-18  Mike Stump  <mikestump@comcast.net>
33015
33016         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
33017
33018 2011-02-18  Jan Hubicka  <jh@suse.cz>
33019
33020         PR middle-end/47788
33021         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
33022         to zero when the function is not inlinable at all.
33023
33024 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33025
33026         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
33027         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
33028         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
33029         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
33030         * config/pa/t-pa64: Likewise.
33031         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
33032
33033 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
33034
33035         PR driver/47787
33036         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
33037
33038 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33039
33040         PR target/47792
33041         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
33042
33043 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
33044
33045         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
33046         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
33047         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
33048         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
33049         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
33050         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
33051         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
33052         m32r_load_postinc_p, m32r_store_preinc_predec_p,
33053         m32r_legitimate_address_p): New functions.
33054         * config/m32r/constraints.md (constraint "S"): Don't use
33055         STORE_PREINC_PREDEC_P.
33056         (constraint "U"): Don't use LOAD_POSTINC_P.
33057
33058 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
33059
33060         PR rtl-optimization/46178
33061         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
33062         compute ira_hard_regno_cover_class[].
33063
33064 2011-02-18  Richard Guenther  <rguenther@suse.de>
33065
33066         PR lto/47798
33067         * lto-streamer.h (lto_global_var_decls): Declare.
33068         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
33069         statics for global var processing.
33070
33071 2011-02-18  Richard Guenther  <rguenther@suse.de>
33072
33073         PR tree-optimization/47737
33074         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
33075         edge dominance check.
33076
33077 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
33078
33079         PR debug/47780
33080         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
33081         avoid invalid rtx sharing.
33082
33083 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
33084
33085         * doc/cpp.texi (Obsolete Features): Add background on the
33086         origin of assertions.
33087
33088 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
33089
33090         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
33091         objc_abi == 2.
33092         * config/darwin.c (output_objc_section_asm_op): Added support for
33093         ABI v1 and v2.
33094         (is_objc_metadata): New.
33095         (darwin_objc2_section): New.
33096         (darwin_objc1_section): New.
33097         (machopic_select_section): Added support for ABI v1 and v2.
33098         (darwin_emit_objc_zeroed): New.
33099         (darwin_output_aligned_bss): Detect objc metadata and treat it
33100         appropriately.
33101         (darwin_asm_output_aligned_decl_common): Same.
33102         (darwin_asm_output_aligned_decl_local): Same.
33103         * config/darwin-sections.def: Updated for ABI v1 and v2.
33104         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
33105         compiling Objective-C code for the NeXT runtime, default to using
33106         ABI version 0 for 32-bit, and version 2 for 64-bit.
33107
33108 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
33109
33110         * common.opt (optimize_fast): New Variable.
33111         * opts.c (default_options_optimization): Use opts->x_optimize_fast
33112         instead of local variable ofast.
33113
33114 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
33115
33116         * doc/invoke.texi (fobjc-abi-version): Documented.
33117         (fobjc-nilcheck): Documented.
33118         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
33119         version.
33120
33121 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
33122
33123         PR driver/47390
33124         * common.opt (export-dynamic): New Driver option.
33125         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
33126
33127 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
33128
33129         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
33130
33131 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
33132             Jan Hubicka  <jh@suse.cz>
33133
33134         PR debug/47106
33135         PR debug/47402
33136         * cfgexpand.c (account_used_vars_for_block): Remove.
33137         (estimated_stack_frame_size): Use referenced vars.
33138         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
33139         that were referenced in the original function.  Test src_fn
33140         rather than cfun.  Drop redundant get_var_ann.
33141         (setup_one_parameter): Drop redundant get_var_ann.
33142         (declare_return_variable): Likewise.
33143         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
33144         (copy_arguments_for_versioning): Drop redundant get_var_ann.
33145         * ipa-inline.c (compute_inline_parameters): Do not compute
33146         disregard_inline_limits here.
33147         (compute_inlinable_for_current, pass_inlinable): New.
33148         (pass_inline_parameters): Require PROP_referenced_vars.
33149         * cgraphunit.c (cgraph_process_new_functions): Don't run
33150         compute_inline_parameters explicitly unless function is in SSA form.
33151         (cgraph_analyze_function): Set .disregard_inline_limits.
33152         * tree-sra.c (convert_callers): Compute inliner parameters
33153         only for functions already in SSA form.
33154
33155 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
33156
33157         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
33158         -mlittle-endian-data.
33159
33160 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
33161
33162         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
33163         -mno-fpu, not -fpu and -no-fpu.
33164         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
33165         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
33166
33167 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
33168
33169         PR target/43653
33170         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
33171         input reload with PLUS RTX.
33172
33173 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
33174
33175         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
33176         of InverseVar(MDMX).
33177
33178 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
33179
33180         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
33181         --m4-340.
33182
33183 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
33184
33185         * config/mn10300/mn10300.opt (mno-crt0): New.
33186
33187 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
33188
33189         * config/m68k/uclinux.opt (static-libc): New Driver option.
33190
33191 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
33192
33193         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
33194
33195 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
33196
33197         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
33198         %{muser-extend-enabled}.
33199
33200 2011-02-16  Richard Guenther  <rguenther@suse.de>
33201
33202         PR tree-optimization/47738
33203         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
33204         the TODO from tree_predictive_commoning.
33205
33206 2011-02-15  Jeff Law  <law@redhat.com>
33207
33208         Revert
33209         2011-01-25  Jeff Law  <law@redhat.com>
33210
33211         PR rtl-optimization/37273
33212         * ira-costs.c (scan_one_insn): Detect constants living in memory and
33213         handle them like argument loads from stack slots.  Do not double
33214         count memory for memory constants and argument loads from stack slots.
33215
33216 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
33217
33218         PR target/47755
33219         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
33220         mode for vector constants.  Remove code that checks for TImode.
33221
33222 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
33223
33224         PR debug/47106
33225         PR debug/47402
33226         * cgraph.h (compute_inline_parameters): Return void.
33227         * ipa-inline.c (compute_inline_parameters): Adjust.
33228
33229 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
33230
33231         PR debug/47106
33232         PR debug/47402
33233         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
33234         rather than decl.
33235         * cfgexpand.c (estimated_stack_frame_size): Likewise.
33236         * ipa-inline.c (compute_inline_parameters): Adjust.
33237
33238 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
33239
33240         PR debug/47106
33241         PR debug/47402
33242         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
33243         Adjust all users.  Pass FN to...
33244         * tree-flow-inline.h (first_referenced_var): ... this.  Add
33245         fn argument.
33246         * ipa-struct-reorg.c: Adjust.
33247         * tree-dfa.c: Adjust.
33248         * tree-into-ssa.c: Adjust.
33249         * tree-sra.c: Adjust.
33250         * tree-ssa-alias.c: Adjust.
33251         * tree-ssa-live.c: Adjust.
33252         * tree-ssa.c: Adjust.
33253         * tree-ssanames.c: Adjust.
33254         * tree-tailcall.c: Adjust.
33255
33256 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
33257
33258         PR debug/47106
33259         PR debug/47402
33260         * tree-flow.h (referenced_var_lookup): Add fn parameter.
33261         Adjust all callers.
33262         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
33263         * tree-flow-inline.h: Adjust.
33264         * gimple-pretty-print.c: Adjust.
33265         * tree-into-ssa.c: Adjust.
33266         * tree-ssa.c: Adjust.
33267         * cfgexpand.c: Adjust.
33268
33269 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
33270
33271         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
33272         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
33273         (EXTRA_CONSTRAINT): Delete.
33274         * config/iq2000/constraints.md: New file.
33275         * config/iq2000/iq2000.md: Include it.
33276         (define_insn ""): Delete.
33277         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
33278         unsupported constraint letters from patterns.
33279         (call_value, call_value_internal1): Likewise.
33280         (call_value_multiple_internal1): Likewise.
33281
33282 2011-02-15  Nick Clifton  <nickc@redhat.com>
33283
33284         * config/mn10300/mn10300.c: Include tm-constrs.h.
33285         (struct liw_data): New data structure describing an LIW candidate
33286         instruction.
33287         (extract_bundle): Use struct liw_data.  Allow small integer
33288         operands for some instructions.
33289         (check_liw_constraints): Use struct liw_data.  Remove swapped
33290         parameter.  Add comments describing the checks.  Fix bug when
33291         assigning the source of liw1 to the source of liw2.
33292         (liw_candidate): Delete.  Code moved into extract_bundle.
33293         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
33294         before swapping.
33295         * config/mn10300/predicates.md (liw_operand): New predicate.
33296         Allows registers and small integer constants.
33297         * config/mn10300/constraints.md (O): New constraint.  Accetps
33298         integers in the range -8 to +7 inclusive.
33299         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
33300         for moving a small integer into a register.  Give this alternative
33301         LIW attributes.
33302         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
33303         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
33304         using the J,K,L and M constraints,
33305         (liw): Remove SI mode on second operands to allow for HI and QI
33306         mode values.
33307         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
33308         instruction.
33309
33310 2011-02-15  Richard Guenther  <rguenther@suse.de>
33311
33312         PR tree-optimization/47743
33313         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
33314         for a non-type-compatible VN lookup bail out.
33315
33316 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
33317
33318         * config/fr30/constraints.md: New file.
33319         * config/fr30/fr30.md: Include it.
33320         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
33321         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
33322         (EXTRA_CONSTRAINT): Delete.
33323
33324 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
33325
33326         * config/frv/constraints.md: New file.
33327         * config/frv/predicates.md: Include it.
33328         * config/frv/frv.c (reg_class_from_letter): Delete.
33329         (frv_option_override): Don't initialize it.
33330         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
33331         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
33332         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
33333         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
33334         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
33335         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
33336         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
33337         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
33338         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
33339         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
33340         (REG_CLASS_FROM_CONSTRAINT): Delete.
33341
33342 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
33343
33344         PR middle-end/47581
33345         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
33346         if frame size is 0 in a leaf function.
33347
33348 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33349
33350         PR pch/14940
33351         * config/alpha/host-osf.c: New file.
33352         * config/alpha/x-osf: New file.
33353         * config.host (alpha*-dec-osf*): Use it.
33354
33355 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
33356
33357         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
33358         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
33359         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
33360         (rx_mode_dependent_address_p): ...this. Make static. Change argument
33361         type to const_rtx.
33362         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
33363
33364 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
33365
33366         * config/stormy16/constraints.md: New file.
33367         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
33368         Use satisfies_constraint_Q and satisfies_constraint_R.
33369         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
33370         Delete.
33371         (xstormy16_legitiamte_address_p): Declare.
33372         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
33373         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
33374         (EXTRA_CONSTRAINT): Delete.
33375         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
33376         Un-staticize.
33377         (xstormy16_extra_constraint_p): Delete.
33378
33379 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
33380
33381         PR tree-optimization/46494
33382         * loop-unroll.c (split_edge_and_insert): Adjust comment.
33383         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
33384         (pass_rtl_loop_done): Add TODO_verify_flow.
33385         * fwprop.c (pass_rtl_fwprop): Likewise.
33386         * modulo-sched.c (pass_sms): Likewise.
33387         * tree-ssa-dom.c (pass_dominator): Likewise.
33388         * tree-ssa-loop-ch.c (pass_ch): Likewise.
33389         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
33390         (pass_tree_loop_done): Likewise.
33391         * tree-ssa-pre.c (execute_pre): Likewise.
33392         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
33393         * tree-ssa-sink.c (pass_sink_code): Likewise.
33394         * tree-vrp.c (pass_vrp): Likewise.
33395
33396 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
33397
33398         * config/v850/constraints.md: New file.
33399         * config/v850/v850.md: Include it.
33400         * config/v850/predicates.md (reg_or_0_operand): Use
33401         satisfies_constraint_G.
33402         (special_symbolref_operand): Use satisfies_constraint_K.
33403         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
33404         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
33405         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
33406         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
33407         (EXTRA_CONSTRAINT): Delete.
33408         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
33409         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
33410         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
33411
33412 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
33413
33414         PR target/47696
33415         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
33416         description.
33417
33418 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
33419
33420         * config/mcore/constraints.md: New file.
33421         * config/mcore/mcore.md: Include it.
33422         * config/mcore/mcore.c (reg_class_from_letter): Delete.
33423         * config/mcore/mcore.h (reg_class_from_letter): Delete.
33424         (REG_CLASS_FROM_LETTER): Delete.
33425         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
33426         insn_const_int_ok_for_constraint.
33427         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
33428         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
33429         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
33430         (EXTRA_CONSTRAINT): Delete.
33431
33432 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33433
33434         PR ada/41929
33435         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
33436         (IS_SIGHANDLER): Define.
33437         (sparc64_is_sighandler): New function, split off from
33438         sparc64_fallback_frame_state.
33439         (sparc_is_sighandler): New function, split off from
33440         sparc_fallback_frame_state.
33441         (sparc64_fallback_frame_state): Merge with ...
33442         (sparc_fallback_frame_state): ... this into ...
33443         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
33444         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
33445         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
33446         stack instead of hardcoded offsets.
33447
33448 2011-02-14  Andriy Gapon  <avg@freebsd.org>
33449
33450         PR target/45808
33451         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
33452
33453 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33454
33455         * configure: Regenerate.
33456
33457 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
33458
33459         PR driver/45731
33460         * gcc.c (asm_options): Correct spec matching --target-help.
33461
33462 2011-02-12  Martin Jambor  <mjambor@suse.cz>
33463
33464         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
33465         to gimple call error.
33466
33467 2011-02-12  Mike Stump  <mikestump@comcast.net>
33468
33469         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
33470         comments in backslash regions.
33471
33472 2011-02-12  Mike Stump  <mikestump@comcast.net>
33473             Jakub Jelinek  <jakub@redhat.com>
33474             Iain Sandoe  <iains@gcc.gnu.org>
33475
33476         PR target/47324
33477         * dwarf2out.c (output_cfa_loc): When required, apply the
33478         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
33479         (output_loc_sequence): Likewise.
33480         (output_loc_operands_raw): Likewise.
33481         (output_loc_sequence_raw): Likewise.
33482         (output_cfa_loc): Likewise.
33483         (output_loc_list): Suppress register number adjustment when
33484         calling output_loc_sequence()
33485         (output_die): Likewise.
33486
33487 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
33488
33489         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
33490         Remove macros.
33491         * config/xtensa/xtensa.c (xtensa_register_move_cost,
33492         xtensa_memory_move_cost): New functions.
33493         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
33494
33495 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
33496
33497         PR lto/47225
33498         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
33499         in the current directory.
33500         * configure: Rebuilt.
33501
33502 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
33503
33504         * config/darwin.c (darwin_override_options): Add a hunk missed
33505         from the commit of r168571.  Trim comment line lengths and
33506         correct indents of the preceding block.
33507
33508 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
33509
33510         * gcc.c (driver_handle_option): Concatenate the argument to -F with
33511         the switch.
33512
33513 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
33514
33515         * common.opt (nostartfiles): New Driver option.
33516
33517 2011-02-11  Xinliang David Li  <davidxl@google.com>
33518
33519         PR tree-optimization/47707
33520         * tree-chrec.c (convert_affine_scev): Keep type precision.
33521
33522 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
33523
33524         PR tree-optimization/47420
33525         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
33526
33527 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
33528
33529         PR rtl-optimization/47614
33530         * rtl.h (check_for_inc_dec): Declare.
33531         * dse.c (check_for_inc_dec): Externalize...
33532         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
33533         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
33534
33535 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
33536
33537         PR driver/47678
33538         * gcc.c (main): Do not compile inputs if there were errors in
33539         option handling.
33540         * opts-common.c (read_cmdline_option): Check for wrong language
33541         after other error checks.
33542
33543 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
33544
33545         * cgraph.c: Fix comment typos.
33546         * cgraph.h: Likewise.
33547         * cgraphunit.c: Likewise.
33548         * ipa-cp.c: Likewise.
33549         * ipa-inline.c: Likewise.
33550         * ipa-prop.c: Likewise.
33551         * ipa-pure-const.c: Likewise.
33552         * ipa-ref.c: Likewise.
33553         * ipa-reference.c: Likewise.
33554
33555 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
33556
33557         PR debug/47684
33558         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
33559
33560 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33561
33562         PR testsuite/47400
33563         * doc/sourcebuild.texi (Require Support): Document
33564         dg-require-ascii-locale.
33565
33566 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
33567
33568         * doc/lto.texi (Write summary): Fix missing parentheses.
33569
33570 2011-02-10  DJ Delorie  <dj@redhat.com>
33571
33572         * config/m32c/m32c.c (m32c_option_override): Disable
33573         -fcombine-stack-adjustments until flag value tracking and compare
33574         optimization can be rewritten.
33575
33576 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
33577
33578         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
33579         PROCESSOR_POWER7.
33580         (PROCESSOR_DEFAULT64): Likewise.
33581
33582 2011-02-10  Richard Henderson  <rth@redhat.com>
33583
33584         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
33585         change from 2011-02-03.
33586         * config/rx/rx.c (flags_from_code): Likewise.
33587         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
33588         is valid, n/pz otherwise.
33589         (rx_select_cc_mode): Return CCmode if Y is not zero.
33590
33591 2011-02-10  Richard Guenther  <rguenther@suse.de>
33592
33593         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
33594
33595 2011-02-10  Richard Guenther  <rguenther@suse.de>
33596
33597         PR tree-optimization/47677
33598         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
33599
33600 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
33601
33602         PR target/47665
33603         * combine.c (make_compound_operation): Only change shifts into
33604         multiplication for SCALAR_INT_MODE_P.
33605
33606 2011-02-10  Jie Zhang  <jie@codesourcery.com>
33607
33608         PR testsuite/47622
33609         Revert
33610         2011-02-05  Jie Zhang  <jie@codesourcery.com>
33611         PR debug/42631
33612         * web.c (entry_register): Don't clobber the number of the
33613         first uninitialized reference in used[].
33614
33615 2011-02-09  Richard Guenther  <rguenther@suse.de>
33616
33617         PR tree-optimization/47664
33618         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
33619         all edges again.
33620
33621 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
33622
33623         PR target/46481
33624         PR target/47032
33625         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
33626         PROCESSOR_POWER7.
33627         (PROCESSOR_DEFAULT64): Same.
33628         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
33629
33630 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33631
33632         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
33633
33634 2011-02-09  Martin Jambor  <mjambor@suse.cz>
33635
33636         PR middle-end/45505
33637         * tree-sra.c (struct access): New flags grp_scalar_read and
33638         grp_scalar_write.  Changed description of assignment read and write
33639         flags.
33640         (dump_access): Dump new flags, reorder all of them.
33641         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
33642         to detect multiple scalar reads.
33643         (analyze_access_subtree): Use the new scalar read write flags instead
33644         of the old flags.  Adjusted comments.
33645
33646 2011-02-08  DJ Delorie  <dj@redhat.com>
33647
33648         PR target/47548
33649         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
33650         patterns.
33651
33652 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
33653
33654         * config/m68k/uclinux.opt: New.
33655         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
33656
33657 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
33658
33659         * config/cris/elf.opt (sim): New Driver option.
33660
33661 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
33662
33663         * config/xtensa/elf.opt: New.
33664         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
33665
33666 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
33667
33668         * config/vax/elf.opt: New.
33669         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
33670
33671 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
33672
33673         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
33674
33675 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
33676
33677         * config/gnu-user.opt: New.
33678         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
33679         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
33680         *-*-uclinux*): Use gnu-user.opt.
33681
33682 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
33683
33684         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
33685         * config/i386/gnu.h (CPP_SPEC): Likewise.
33686
33687 2011-02-08  Ian Lance Taylor  <iant@google.com>
33688
33689         * common.opt (fcx-limited-range): Add SetByCombined flag.
33690         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
33691         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
33692         (fassociative-math, freciprocal-math): Likewise.
33693         (funsafe-math-optimizations): Likewise.
33694         * opth-gen.awk: Handle SetByCombined.
33695         * optc-gen.awk: Likewise.
33696         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
33697         (set_unsafe_math_optimizations_flags): Likewise.
33698         * doc/options.texi (Option properties): Document SetByCombined.
33699
33700 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
33701
33702         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
33703         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
33704         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
33705         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
33706         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
33707
33708 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
33709
33710         PR tree-optimization/46834
33711         PR tree-optimization/46994
33712         PR tree-optimization/46995
33713         * graphite-sese-to-poly.c (used_outside_reduction): New.
33714         (detect_commutative_reduction): Call used_outside_reduction.
33715         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
33716         translate_scalar_reduction_to_array only when at least one
33717         loop-phi/close-phi tuple has been detected.
33718
33719 2011-02-08  Richard Guenther  <rguenther@suse.de>
33720
33721         PR middle-end/47639
33722         * tree-vect-generic.c (expand_vector_operations_1): Update
33723         stmts here ...
33724         (expand_vector_operations): ... not here.  Cleanup EH info
33725         and the CFG if required.
33726
33727 2011-02-08  Richard Guenther  <rguenther@suse.de>
33728
33729         PR tree-optimization/47641
33730         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
33731         require type compatibility.
33732
33733 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33734
33735         * gimple-low.c (lower_function_body): Don't remove the location of
33736         the return statement here.
33737         (lower_gimple_return): Do it here instead but only if the return
33738         statement is actually used twice.
33739
33740 2011-02-08  Richard Guenther  <rguenther@suse.de>
33741
33742         PR tree-optimization/47632
33743         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
33744         unused up_to_stmt parameter, return whether cfg-cleanup is
33745         necessary, remove EH info properly.
33746         (forward_propagate_into_gimple_cond): Adjust caller.
33747         (forward_propagate_into_cond): Likewise.
33748         (forward_propagate_comparison): Likewise.
33749         (tree_ssa_forward_propagate_single_use_vars): Make
33750         forward_propagate_comparison case similar to the two others.
33751
33752 2011-02-08  Nick Clifton  <nickc@redhat.com>
33753
33754         * config/mn10300/mn10300.opt (mliw): New command line option.
33755         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
33756         (liw_bundling): New automaton.
33757         (liw): New attribute.
33758         (liw_op): New attribute.
33759         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
33760         (movsi_internal): Add LIW attributes.
33761         (andsi3): Likewise.
33762         (iorsi3): Likewise.
33763         (xorsi3): Likewise.
33764         (addsi3): Separate register and immediate alternatives.
33765         Add LIW attributes.
33766         (subsi3): Likewise.
33767         (cmpsi): Likewise.
33768         (aslsi3): Likewise.
33769         (lshrsi3): Likewise.
33770         (ashrsi3): Likewise.
33771         (liw): New pattern.
33772         * config/mn10300/mn10300.c (liw_op_names): New
33773         (mn10300_print_operand): Handle 'W' operand descriptor.
33774         (extract_bundle): New function.
33775         (check_liw_constraints): New function.
33776         (liw_candidate): New function.
33777         (mn10300_bundle_liw): New function.
33778         (mn10300_reorg): New function.
33779         (TARGET_MACHINE_DEPENDENT_REORG): Define.
33780         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
33781         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
33782         __LIW__ or __NO_LIW__.
33783         * doc/invoke.texi: Describe the -mliw command line option.
33784
33785 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33786
33787         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
33788         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
33789         pthread_mutex_unlock): Remove.
33790         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
33791         * config/pa/t-pa64: Likewise.
33792         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
33793         shared libc if not linking against libpthread.
33794         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
33795
33796 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
33797
33798         PR target/47558
33799         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
33800         on 10.6 and later to ensure that we always use the unwinder from
33801         the system.  Only add -no_compact_unwind when tarteting darwin
33802         10.6 or later.
33803
33804 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
33805
33806         PR target/46997
33807         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
33808         (vec_interleave_lowv2sf): Ditto.
33809         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
33810         (vec_extract_oddv2sf): Ditto.
33811
33812 2011-02-07  Mike Stump  <mikestump@comcast.net>
33813
33814         PR target/42333
33815         Add __ieee_divdc3 entry point.
33816         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
33817         entry point.
33818         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
33819         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
33820         * config/darwin.c (darwin_rename_builtins): Add.
33821         * config/darwin-protos.h (darwin_rename_builtins): Add.
33822
33823 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
33824
33825         PR target/47636
33826         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
33827         for the condition.
33828
33829 2011-02-07  Mike Stump  <mikestump@comcast.net>
33830
33831         * config/darwin.opt (mmacosx-version-min): Update default OS version.
33832
33833 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
33834
33835         PR target/47534
33836         * config/avr/libgcc.S (exit): Move .endfunc
33837
33838 2011-02-07  Richard Guenther  <rguenther@suse.de>
33839
33840         PR tree-optimization/47615
33841         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
33842         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
33843         (run_scc_vn): Initialize it.
33844         (visit_reference_op_load): Use it.
33845         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
33846
33847 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
33848
33849         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
33850         DImode trapping arithmetic libfuncs.
33851
33852 2011-02-07  Richard Guenther  <rguenther@suse.de>
33853
33854         PR tree-optimization/47621
33855         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
33856         two duplicates ...
33857         (execute_update_addresses_taken): ... here.  Make it more
33858         conservative in what we accept.
33859
33860 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
33861
33862         * config/sparc/freebsd.h (ASM_SPEC): Define.
33863         * config/sparc/vxworks.h (ASM_SPEC): Define.
33864
33865 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
33866
33867         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
33868
33869 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
33870
33871         * doc/invoke.texi: Remove reference to compiler internals from
33872         user documentation.
33873
33874         * reg-notes.def: Remove REG_VALUE_PROFILE.
33875         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
33876
33877 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
33878
33879         PR middle-end/47610
33880         * varasm.c (default_section_type_flags): If decl is NULL,
33881         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
33882
33883 2011-02-05  Jie Zhang  <jie@codesourcery.com>
33884
33885         PR debug/42631
33886         * web.c (entry_register): Don't clobber the number of the
33887         first uninitialized reference in used[].
33888
33889 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
33890
33891         PR tree-optimization/46194
33892         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
33893         (build_classic_dist_vector_1): Do not represent classic distance
33894         vectors when the access functions are variating in different loops.
33895
33896 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
33897
33898         * config/mips/iris6.opt: New.
33899         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
33900
33901 2011-02-04  Richard Henderson  <rth@redhat.com>
33902             Steve Ellcey  <sje@cup.hp.com>
33903
33904         PR target/46997
33905         * config/ia64/predicates.md (mux1_brcst_element): New.
33906         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
33907         * config/ia64/ia64.c (ia64_unpack_assemble): New.
33908         (ia64_unpack_sign): New.
33909         (ia64_expand_unpack): Rewrite using new routines.
33910         (ia64_expand_widen_sum): Ditto.
33911         (ia64_expand_dot_prod_v8qi): Ditto.
33912         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
33913         routines, add endian check.
33914         (pmpy2_even): Rename from pmpy2_r, add endian check.
33915         (pmpy2_odd): Rename from pmpy2_l, add endian check.
33916         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
33917         (vec_widen_smult_hi_v4hi): Ditto.
33918         (vec_widen_umult_lo_v4hi): Ditto.
33919         (vec_widen_umult_hi_v4hi): Ditto.
33920         (mulv2si3): Change endian checks.
33921         (sdot_prodv4hi): Rewrite with new calls.
33922         (udot_prodv4hi): New.
33923         (vec_pack_ssat_v4hi): Add endian check.
33924         (vec_pack_usat_v4hi): Ditto.
33925         (vec_pack_ssat_v2si): Ditto.
33926         (max1_even): Rename from max1_r, add endian check.
33927         (max1_odd): Rename from max1_l, add endian check.
33928         (*mux1_rev): Format change.
33929         (*mux1_mix): Ditto.
33930         (*mux1_shuf): Ditto.
33931         (*mux1_alt): Ditto.
33932         (*mux1_brcst_v8qi): Use new predicate.
33933         (vec_extract_evenv8qi): Remove endian check.
33934         (vec_extract_oddv8qi): Ditto.
33935         (vec_interleave_lowv4hi): Format change.
33936         (vec_interleave_highv4hi): Ditto.
33937         (mix2_even): Rename from mix2_r, add endian check.
33938         (mix2_odd): Rename from mux2_l, add endian check.
33939         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
33940         (vec_extract_evenodd_helper): Format change.
33941         (vec_extract_evenv4hi): Remove endian check.
33942         (vec_extract_oddv4hi): Remove endian check.
33943         (vec_interleave_lowv2si): Format change.
33944         (vec_interleave_highv2si): Format change.
33945         (vec_initv2si): Remove endian check.
33946         (vecinit_v2si): Add endian check.
33947         (reduc_splus_v2sf): Add endian check.
33948         (reduc_smax_v2sf): Ditto.
33949         (reduc_smin_v2sf): Ditto.
33950         (vec_initv2sf): Remove endian check.
33951         (fpack): Add endian check.
33952         (fswap): Add endian check.
33953         (vec_interleave_highv2sf): Add endian check.
33954         (vec_interleave_lowv2sf): Add endian check.
33955         (fmix_lr): Add endian check.
33956         (vec_setv2sf): Format change.
33957         (*vec_extractv2sf_0_be): Use shift to extract operand.
33958         (*vec_extractv2sf_1_be): New.
33959         (vec_pack_trunc_v4hi): Add endian check.
33960         (vec_pack_trunc_v2si): Format change.
33961
33962 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
33963
33964         PR inline-asm/23200
33965         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
33966         do bb, locus and block comparison and disallow loads if it is not set.
33967         (stmt_is_replaceable_p): New function.
33968         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
33969         callers.
33970         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
33971         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
33972         SSA_NAME_DEF_STMT.
33973         * tree-flow.h (stmt_is_replaceable_p): New prototype.
33974
33975 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
33976
33977         * config/rs6000/xilinx.opt: New.
33978         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
33979
33980 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
33981
33982         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
33983
33984 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
33985
33986         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
33987         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
33988         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
33989         secondary_reload_info, xtensa_secondary_reload): Remove.
33990         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
33991         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
33992         (xtensa_preferred_reload_class): Make static. Change return and
33993         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
33994         Use CONST_DOUBLE_P predicate.
33995         (xtensa_preferred_output_reload_class): New function.
33996         (xtensa_secondary_reload): Make static.
33997
33998 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
33999
34000         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
34001         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
34002         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
34003
34004 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
34005
34006         PR middle-end/31490
34007         * output.h (SECTION_RELRO): Define.
34008         (SECTION_MACH_DEP): Adjust.
34009         (get_variable_section): New prototype.
34010         * varpool.c (varpool_finalize_named_section_flags): New function.
34011         (varpool_assemble_pending_decls): Call it.
34012         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
34013         * cgraphunit.c (cgraph_output_in_order): Call
34014         varpool_finalize_named_section_flags.
34015         * varasm.c (get_section): Allow section flags conflicts between
34016         relro and read-only sections if the section hasn't been declared yet.
34017         Set SECTION_OVERRIDE after diagnosing section type conflict.
34018         (get_variable_section): No longer static.
34019         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
34020         readonly sections that need relocations.
34021         (decl_readonly_section_1): New function.
34022         (decl_readonly_section): Use it.
34023
34024         Revert:
34025         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
34026                     Steve Ellcey  <sje@cup.hp.com>
34027
34028         PR middle-end/31490
34029         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
34030         if section attribute used.
34031
34032 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
34033
34034         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
34035         * config/darwin.c (SECTION_NO_ANCHOR): Define.
34036         (darwin_init_sections): Remove assertion.
34037
34038 2011-02-03  Nick Clifton  <nickc@redhat.com>
34039
34040         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
34041         lt and ge.
34042         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
34043         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
34044         instead of "n" and "pz".
34045         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
34046         CC_FLAG_S.
34047
34048 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
34049
34050         PR target/47312
34051         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
34052         fma, expand FMA_EXPR as fma{,f,l} call.
34053
34054         PR lto/47274
34055         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
34056         copy them into a unsigned char variable and pass address of it to
34057         lto_output_data_stream.
34058
34059         PR target/47564
34060         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
34061         around backend_init_target and lang_dependent_init_target calls.
34062         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
34063         (verify_cgraph_node): Don't call set_cfun here.  Use
34064         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
34065         Set error_found for incorrectly represented calls to thunks.
34066
34067 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
34068
34069         PR debug/43092
34070         PR rtl-optimization/43494
34071         * rtl.h (for_each_inc_dec_fn): New type.
34072         (for_each_inc_dec): Declare.
34073         * rtlanal.c (struct for_each_inc_dec_ops): New type.
34074         (for_each_inc_dec_find_inc_dec): New fn.
34075         (for_each_inc_dec_find_mem): New fn.
34076         (for_each_inc_dec): New fn.
34077         * dse.c (struct insn_size): Remove.
34078         (replace_inc_dec, replace_inc_dec_mem): Remove.
34079         (emit_inc_dec_insn_before): New fn.
34080         (check_for_inc_dec): Use it, along with for_each_inc_dec.
34081         (canon_address): Pass mem modes to cselib_lookup.
34082         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
34083         (cselib_lookup_from_insn): Likewise.
34084         (cselib_subst_to_values): Likewise.
34085         * cselib.c (find_slot_memmode): New var.
34086         (cselib_find_slot): New fn.  Use it instead of
34087         htab_find_slot_with_hash everywhere.
34088         (entry_and_rtx_equal_p): Use find_slot_memmode.
34089         (autoinc_split): New fn.
34090         (rtx_equal_for_cselib_p): Rename and implement in terms of...
34091         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
34092         Deal with autoinc.  Special-case recursion into MEMs.
34093         (cselib_hash_rtx): Likewise.
34094         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
34095         address and MEM modes.
34096         (cselib_subst_to_values): Add memmode, pass it on.
34097         Deal with autoinc.
34098         (cselib_lookup): Add memmode argument, pass it on.
34099         (cselib_lookup_from_insn): Add memmode.
34100         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
34101         (struct cselib_record_autoinc_data): New.
34102         (cselib_record_autoinc_cb): New fn.
34103         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
34104         mode to cselib_lookup.  Reset autoinced REGs here instead of...
34105         (cselib_process_insn): ... here.
34106         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
34107         to cselib_lookup.
34108         (add_uses): Likewise, also to cselib_subst_to_values.
34109         (add_stores): Likewise.
34110         * sched-deps.c (add_insn_mem_dependence): Pass mode to
34111         cselib_subst_to_values.
34112         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
34113         * gcse.c (do_local_cprop): Adjusted.
34114         * postreload.c (reload_cse_simplify_set): Adjusted.
34115         (reload_cse_simplify_operands): Adjusted.
34116         * sel-sched-dump (debug_mem_addr_value): Pass mode.
34117
34118 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
34119
34120         PR tree-optimization/45122
34121         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
34122         unsafe assumptions when there's more than one loop exit.
34123
34124 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
34125
34126         PR target/47272
34127         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
34128         Document using vector double with the load/store builtins, and
34129         that the load/store builtins always use Altivec instructions.
34130
34131         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
34132         to use altivec memory instructions, even on VSX.
34133         (vector_altivec_store_<mode>): Ditto.
34134
34135         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
34136         function.
34137
34138         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
34139         V2DF, V2DI support to load/store overloaded builtins.
34140
34141         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
34142         altivec load/store builtins for V2DF/V2DI types.
34143
34144         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
34145         set avoid indexed addresses on power6 if -maltivec.
34146         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
34147         vector_altivec_load/vector_altivec_store builtins.
34148         (altivec_expand_st_builtin): Ditto.
34149         (altivec_expand_builtin): Add VSX memory builtins.
34150         (rs6000_init_builtins): Add V2DI types to internal types.
34151         (altivec_init_builtins): Add support for V2DF/V2DI altivec
34152         load/store builtins.
34153         (rs6000_address_for_altivec): Insure memory address is appropriate
34154         for Altivec.
34155
34156         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
34157         vec_vsx_ld and vec_vsx_st.
34158         (vsx_store_<mode>): Ditto.
34159
34160         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
34161         variables to hold long long types for VSX vector memory builtins.
34162         (RS6000_BTI_unsigned_long_long): Ditto.
34163         (long_long_integer_type_internal_node): Ditti.
34164         (long_long_unsigned_type_internal_node): Ditti.
34165
34166         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
34167         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
34168         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
34169
34170         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
34171         short cuts.
34172         (vec_vsx_st): Ditto.
34173
34174 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
34175
34176         * config/pa/pa-hpux10.opt: New.
34177         * config/hpux11.opt (pthread): New Driver option.
34178         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
34179         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
34180
34181 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
34182
34183         * config/ia64/vms.opt: New.
34184         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
34185
34186 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
34187
34188         PR target/47580
34189         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
34190         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
34191         generator functions.
34192         (vsx_floatuns<VSi><mode>2): Ditto.
34193         (vsx_fix_trunc<mode><VSi>2): Ditto.
34194         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
34195
34196 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
34197
34198         * config/i386/djgpp.opt (posix): New Driver option.
34199
34200 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
34201
34202         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
34203         Move to the unsupported targets list.
34204
34205 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
34206
34207         PR rtl-optimization/47525
34208         * df-scan.c: Update copyright years.
34209         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
34210         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
34211
34212 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34213
34214         * config/i386/sysv4.h (TARGET_VERSION): Remove.
34215         (SUBTARGET_RETURN_IN_MEMORY): Remove.
34216         (ASM_OUTPUT_ASCII): Remove.
34217         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
34218
34219 2011-02-02  Jeff Law  <law@redhat.com>
34220
34221         PR middle-end/47543
34222         * reload.c (find_reloads_address): Handle reg+d address where both
34223         components are invalid by reloading the entire address.
34224
34225 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
34226             Richard Guenther  <rguenther@suse.de>
34227
34228         PR tree-optimization/40979
34229         PR bootstrap/47044
34230         * passes.c (init_optimization_passes): After LIM call copy_prop
34231         and DCE to clean up.
34232         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
34233
34234 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
34235
34236         PR tree-optimization/47576
34237         PR tree-optimization/47555
34238         * doc/invoke.texi (scev-max-expr-complexity): Documented.
34239         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
34240         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
34241         * tree-scalar-evolution.c (follow_ssa_edge): Use
34242         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
34243
34244 2011-02-02  Richard Guenther  <rguenther@suse.de>
34245
34246         PR tree-optimization/47566
34247         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
34248
34249 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
34250
34251         PR debug/47106
34252         PR debug/47402
34253         * tree-inline.c (declare_return_variable): Remove unused caller
34254         variable.
34255
34256         PR debug/47106
34257         PR debug/47402
34258         * tree-flow-inline.h (clear_is_used, is_used_p): New.
34259         * cfgexpand.c (account_used_vars_for_block): Use them.
34260         * tree-nrv.c (tree_nrv): Likewise.
34261         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
34262         (dump_scope_block): Likewise.
34263         (remove_unused_locals): Likewise.
34264
34265         PR debug/47106
34266         PR debug/47402
34267         * tree-inline.c (declare_return_variable): Add result decl to
34268         local decls only once.
34269         * gimple-low.c (record_vars_into): Mark newly-created variables
34270         as referenced.
34271
34272 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
34273
34274         PR debug/47498
34275         PR debug/47501
34276         PR debug/45136
34277         PR debug/45130
34278         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
34279         debug insns.
34280         (no_real_insns_p, schedule_block, set_priorities): Drop special
34281         treatment of boundary debug insns.
34282         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
34283         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
34284         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
34285         (BOUNDARY_DEBUG_INSN_P): Likewise.
34286         (SCHEDULE_DEBUG_INSN_P): Likewise.
34287         * sched-rgn.c (init_ready_list): Drop special treatment of
34288         boundary debug insns.
34289         * final.c (rest_of_clean_state): Clear notes' BB.
34290
34291 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
34292
34293         * config/openbsd.opt (assert=): New Driver option.
34294
34295 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
34296
34297         * config/i386/nto.opt: New.
34298         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
34299
34300 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
34301
34302         * config/i386/netware.opt: New.
34303         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
34304
34305 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
34306
34307         * config/interix.opt (posix): New Driver option.
34308
34309 2011-02-01  DJ Delorie  <dj@redhat.com>
34310
34311         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
34312
34313         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
34314         class for A0/A1.
34315
34316 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
34317
34318         PR tree-optimization/47561
34319         * toplev.c (process_options): Print the Graphite flags.  Add
34320         flag_loop_flatten to the list of options requiring Graphite.
34321
34322 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
34323
34324         * config/i386/cygming.opt (posix): New Driver option.
34325
34326 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
34327
34328         * config/arm/vxworks.opt: New.
34329         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
34330
34331 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
34332
34333         * config/alpha/elf.opt: New.
34334         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
34335         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
34336
34337 2011-02-01  Richard Guenther  <rguenther@suse.de>
34338
34339         PR tree-optimization/47559
34340         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
34341         store-motion on references that can throw.
34342
34343 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
34344
34345         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
34346         * tree-pass.h (TDF_CSELIB): New macro.
34347         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
34348         cselib_lookup): Check for it rather than for TDF_DETAILS.
34349
34350 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
34351
34352         PR driver/47547
34353         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
34354         is HOST_BIT_BUCKET.
34355
34356         * opts.c (finish_options): Don't add x_aux_base_name if it is
34357         HOST_BIT_BUCKET.
34358
34359 2011-02-01  Richard Guenther  <rguenther@suse.de>
34360
34361         PR tree-optimization/47555
34362         Revert
34363         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
34364
34365         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
34366
34367 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
34368
34369         PR gcc/46692
34370         * config/lm32/t-lm32: Add multilib for all CPU options.
34371
34372 2011-02-01  Richard Guenther  <rguenther@suse.de>
34373
34374         PR tree-optimization/47541
34375         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
34376         sure to have a field at offset zero.
34377
34378 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
34379
34380         * config/arc/arc.opt (EB, EL): New Driver options.
34381
34382 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
34383
34384         * config/alpha/osf5.opt: New.
34385         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
34386
34387 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
34388
34389         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
34390
34391 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
34392
34393         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
34394         -floop-interchange.
34395         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
34396         is an alias of -floop-interchange and that it requires the
34397         Graphite infrastructure.
34398         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
34399         flag_loop_interchange based on the value of flag_tree_loop_linear.
34400
34401 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
34402             Richard Guenther  <rguenther@suse.de>
34403
34404         PR tree-optimization/47538
34405         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
34406         type instead of r1type, except for comparisons.  For right
34407         shifts and comparisons punt if there are mismatches in
34408         sizetype vs. non-sizetype types.
34409
34410 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34411
34412         * doc/sourcebuild.texi (Effective-Target Keywords): Document
34413         avx_runtime.
34414
34415 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34416
34417         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
34418         version number.
34419         * configure: Regenerate.
34420
34421 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34422
34423         * configure.ac (gcc_cv_ld_static_option): Define.
34424         (gcc_cv_ld_dynamic_option): Define.
34425         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
34426         instead.
34427         (HAVE_LD_STATIC_DYNAMIC): Update message.
34428         (LD_STATIC_OPTION): Define.
34429         (LD_DYNAMIC_OPTION): Define.
34430         * configure: Regenerate.
34431         * config.in: Regenerate.
34432         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
34433         HAVE_LD_STATIC_DYNAMIC]: Use them.
34434
34435 2011-01-31  Nick Clifton  <nickc@redhat.com>
34436
34437         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
34438         registers inside interrupt handlers if the handler is not a leaf
34439         function.
34440
34441 2011-01-31  Nick Clifton  <nickc@redhat.com>
34442
34443         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
34444         reg_renumber returning an INVALID_REGNUM.
34445
34446 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
34447
34448         PR libgcj/44341
34449         * doc/install.texi: Document host options discarded when cross
34450         configuring target libraries.
34451
34452 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
34453
34454         Reverted:
34455         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
34456         PR debug/45136
34457         PR debug/45130
34458         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
34459         debug insns.
34460         (no_real_insns_p, schedule_block, set_priorities): Drop special
34461         treatment of boundary debug insns.
34462         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
34463         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
34464         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
34465         (BOUNDARY_DEBUG_INSN_P): Likewise.
34466         (SCHEDULE_DEBUG_INSN_P): Likewise.
34467         * sched-rgn.c (init_ready_list): Drop special treatment of
34468         boundary debug insns.
34469         * final.c (rest_of_clean-state): Clear notes' BB.
34470
34471 2011-01-31  Alan Modra  <amodra@gmail.com>
34472
34473         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
34474         toc relative expressions as we do in print_operand_address.
34475
34476 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
34477
34478         * doc/extend.texi: Follow spelling conventions.
34479         * doc/invoke.texi: Fix a typo.
34480
34481 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
34482
34483         * config/hpux11.opt: New.
34484         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
34485         ia64*-*-hpux*): Use hpux11.opt.
34486
34487 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
34488
34489         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
34490         to tmake_file.
34491
34492 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
34493
34494         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
34495         support sites.
34496
34497 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
34498
34499         * doc/install.texi (Binaries): Remove outdated reference for
34500         Motorola 68HC11/68HC12 downloads.
34501
34502 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
34503
34504         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
34505         Drepper's paper.
34506
34507 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
34508
34509         PR bootstrap/47147
34510         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
34511         used by NetBSD.
34512
34513 2011-01-28  Ahmad Sharif  <asharif@google.com>
34514
34515         * value-prof.c (check_counter): Corrected error message.
34516
34517 2011-01-29  Jie Zhang  <jie@codesourcery.com>
34518
34519         * config/arm/arm.c (arm_legitimize_reload_address): New.
34520         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
34521         arm_legitimize_reload_address.
34522         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
34523
34524 2011-01-28  Ian Lance Taylor  <iant@google.com>
34525
34526         * godump.c (go_define): Ignore macros whose definitions include
34527         two adjacent operands.
34528
34529 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
34530
34531         PR target/42894
34532         * varasm.c (force_const_mem): Store copy of x in desc->constant
34533         instead of x itself.
34534         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
34535         itself into REG_EQUAL note.
34536
34537 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
34538
34539         * config/freebsd.opt (posix, rdynamic): New Driver options.
34540
34541 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34542
34543         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
34544         -Bstatic/-Bdynamic.
34545         * configure: Regenerate.
34546
34547 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
34548
34549         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
34550         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
34551
34552 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
34553
34554         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
34555         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
34556         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
34557         (s390_preferred_reload_class): Make static. Change return and
34558         'rclass' argument type to reg_class_t.
34559
34560 2011-01-27  Jan Hubicka  <jh@suse.cz>
34561
34562         PR middle-end/46949
34563         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
34564         (process_function_and_variable_attributes): Check defined weakrefs.
34565
34566 2011-01-27  Martin Jambor  <mjambor@suse.cz>
34567
34568         PR tree-optimization/47228
34569         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
34570         build_ref_for_offset.
34571
34572 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
34573
34574         * config/spu/spu-elf.h (ASM_SPEC): Remove.
34575
34576 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
34577
34578         PR rtl-optimization/46856
34579         * postreload.c (reload_combine_recognize_const_pattern): Do not
34580         separate cc0 setter and user on cc0 targets.
34581
34582 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
34583
34584         PR c/43082
34585         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
34586         passed a VOID_TYPE expression, immediately emit an error and
34587         return error_mark_node.
34588
34589 2011-01-26  Jeff Law  <law@redhat.com>
34590
34591         PR rtl-optimization/47464
34592         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
34593         rather than may_trap_p as needed.
34594
34595 2011-01-26  DJ Delorie  <dj@redhat.com>
34596
34597         PR rtl-optimization/46878
34598         * combine.c (insn_a_feeds_b): Check for the implicit cc0
34599         setter/user dependency as well.
34600
34601 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
34602
34603         PR rtl-optimization/44469
34604         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
34605         after removing trivially dead basic blocks.
34606
34607 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
34608
34609         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
34610         * config/frv/frv.h (LINK_SPEC): Likewise.
34611         * config/i386/netware.h (LINK_SPEC): Likewise.
34612         * config/m68k/linux.h (ASM_SPEC): Likewise.
34613         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
34614         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
34615         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
34616         * config/sparc/linux.h (ASM_SPEC): Likewise.
34617         * config/sparc/linux64.h (ASM_SPEC): Likewise.
34618         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
34619
34620 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
34621
34622         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
34623         * config/frv/frv.h (ASM_SPEC): Likewise.
34624         * config/m68k/linux.h (ASM_SPEC): Likewise.
34625         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
34626         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
34627         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
34628         * config/sparc/linux.h (ASM_SPEC): Likewise.
34629         * config/sparc/linux64.h (ASM_SPEC): Likewise.
34630         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
34631
34632 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
34633
34634         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
34635         * config/frv/frv.h (LINK_SPEC): Likewise.
34636         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
34637
34638 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
34639
34640         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
34641         * config/frv/frv.h (ASM_SPEC): Likewise.
34642         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
34643         * config/m68k/linux.h (ASM_SPEC): Likewise.
34644         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
34645         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
34646         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
34647         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
34648         * config/sparc/linux.h (ASM_SPEC): Likewise.
34649         * config/sparc/linux64.h (ASM_SPEC): Likewise.
34650         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
34651         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
34652
34653 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
34654
34655         PR target/46997
34656         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
34657         (*mux2): Ditto.
34658         (vec_extract_evenodd_help): Ditto.
34659         (vec_extract_evenv4hi): Ditto.
34660         (vec_extract_oddv4hi): Ditto.
34661         (vec_interleave_lowv2si): Ditto.
34662         (vec_interleave_highv2si): Ditto.
34663         (vec_extract_evenv2si): Ditto.
34664         (vec_extract_oddv2si: Ditto.
34665         (vec_pack_trunc_v2si): Ditto.
34666
34667 2011-01-22  Jan Hubicka  <jh@suse.cz>
34668
34669         PR target/47237
34670         * cgraph.h (cgraph_local_info): New field can_change_signature.
34671         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
34672         signature can change.
34673         (ipcp_estimate_growth): Call sequence simplify only if calle signature
34674         can change.
34675         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
34676         (cgraph_function_versioning): We can not change signature of functions
34677         that don't allow that.
34678         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
34679         (lto_input_node): Likewise.
34680         * ipa-inline.c (compute_inline_parameters): Compute
34681         local.can_change_signature.
34682         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
34683         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
34684         functions that can not change signature.
34685         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
34686         init_cumulative_args): Do not use local calling conventions
34687         for functions that can not change signature.
34688
34689 2011-01-22  Jan Hubicka  <jh@suse.cz>
34690
34691         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
34692
34693 2011-01-26  Richard Guenther  <rguenther@suse.de>
34694
34695         PR tree-optimization/47190
34696         * cgraphunit.c (process_common_attributes): New function.
34697         (process_function_and_variable_attributes): Use it.
34698
34699 2011-01-26  Richard Guenther  <rguenther@suse.de>
34700
34701         PR lto/47423
34702         * cgraphbuild.c (record_eh_tables): Record reference to personality
34703         function.
34704
34705 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
34706
34707         PR debug/45454
34708         * sel-sched.c (moveup_expr): Don't let debug insns prevent
34709         non-debug insns from moving up.
34710
34711 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
34712
34713         PR target/40125
34714         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
34715         t-dlldir{,-x} fragment for build and add it to tmake_file.
34716         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
34717         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
34718         * config/i386/t-dlldir: New file.
34719         (SHLIB_DLLDIR): Define.
34720         * config/i386/t-dlldir-x: New file.
34721         (SHLIB_DLLDIR): Define.
34722         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
34723         (SHLIB_INSTALL): Use it.
34724
34725 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
34726
34727         PR target/47246
34728         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
34729         lower bound of the allowed Thumb-2 coprocessor load/store
34730         index range to -256. Add explaining comment.
34731
34732 2011-01-25  Ian Lance Taylor  <iant@google.com>
34733
34734         * godump.c (go_define): Improve lexing of macro expansion to only
34735         accept expressions which match Go spec.
34736
34737 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
34738
34739         PR c++/43601
34740         * tree.c (handle_dll_attribute): Handle it.
34741         * doc/extend.texi (@item dllexport): Mention it.
34742         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
34743
34744 2011-01-25  Ian Lance Taylor  <iant@google.com>
34745
34746         PR tree-optimization/26854
34747         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
34748         (decl_jump_unsafe): Move higher in file, with no other change.
34749         (bind): Set has_jump_unsafe_decl if appropriate.
34750         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
34751         (check_earlier_gotos): Likewise.
34752         (c_check_switch_jump_warnings): Likewise.
34753
34754 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
34755
34756         * doc/invoke.texi (Warning Options): Add missing hyphen.
34757         (-fprofile-dir): Minor grammatical fixes.
34758         (-fbranch-probabilities): Likewise.
34759
34760 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
34761
34762         PR debug/45136
34763         PR debug/45130
34764         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
34765         debug insns.
34766         (no_real_insns_p, schedule_block, set_priorities): Drop special
34767         treatment of boundary debug insns.
34768         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
34769         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
34770         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
34771         (BOUNDARY_DEBUG_INSN_P): Likewise.
34772         (SCHEDULE_DEBUG_INSN_P): Likewise.
34773         * sched-rgn.c (init_ready_list): Drop special treatment of
34774         boundary debug insns.
34775         * final.c (rest_of_clean-state): Clear notes' BB.
34776
34777 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
34778
34779         * Makefile.in (LAMBDA_H): Removed.
34780         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
34781         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
34782         lambda-trans.o, and tree-loop-linear.o.
34783         (lto-symtab.o): Remove dependence on LAMBDA_H.
34784         (tree-loop-linear.o): Remove rule.
34785         (lambda-mat.o): Same.
34786         (lambda-trans.o): Same.
34787         (lambda-code.o): Same.
34788         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
34789         (tree-vect-slp.o): Same.
34790         * hwint.h (gcd): Moved here.
34791         (least_common_multiple): Same.
34792         * lambda-code.c: Removed.
34793         * lambda-mat.c: Removed.
34794         * lambda-trans.c: Removed.
34795         * lambda.h: Removed.
34796         * tree-loop-linear.c: Removed.
34797         * lto-symtab.c: Do not include lambda.h.
34798         * omega.c (gcd): Removed.
34799         * passes.c (init_optimization_passes): Remove pass_linear_transform.
34800         * tree-data-ref.c (print_lambda_vector): Moved here.
34801         (lambda_vector_copy): Same.
34802         (lambda_matrix_copy): Same.
34803         (lambda_matrix_id): Same.
34804         (lambda_vector_first_nz): Same.
34805         (lambda_matrix_row_add): Same.
34806         (lambda_matrix_row_exchange): Same.
34807         (lambda_vector_mult_const): Same.
34808         (lambda_vector_negate): Same.
34809         (lambda_matrix_row_negate): Same.
34810         (lambda_vector_equal): Same.
34811         (lambda_matrix_right_hermite): Same.
34812         * tree-data-ref.h: Do not include lambda.h.
34813         (lambda_vector): Moved here.
34814         (lambda_matrix): Same.
34815         (dependence_level): Same.
34816         (lambda_transform_legal_p): Removed declaration.
34817         (lambda_collect_parameters): Same.
34818         (lambda_compute_access_matrices): Same.
34819         (lambda_vector_gcd): Same.
34820         (lambda_vector_new): Same.
34821         (lambda_vector_clear): Same.
34822         (lambda_vector_lexico_pos): Same.
34823         (lambda_vector_zerop): Same.
34824         (lambda_matrix_new): Same.
34825         * tree-flow.h (least_common_multiple): Removed declaration.
34826         * tree-parloops.c (lambda_trans_matrix): Moved here.
34827         (LTM_MATRIX): Same.
34828         (LTM_ROWSIZE): Same.
34829         (LTM_COLSIZE): Same.
34830         (LTM_DENOMINATOR): Same.
34831         (lambda_trans_matrix_new): Same.
34832         (lambda_matrix_vector_mult): Same.
34833         (lambda_transform_legal_p): Same.
34834         * tree-pass.h (pass_linear_transform): Removed declaration.
34835         * tree-ssa-loop.c (tree_linear_transform): Removed.
34836         (gate_tree_linear_transform): Removed.
34837         (pass_linear_transform): Removed.
34838         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
34839         flag_loop_interchange.
34840
34841 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
34842
34843         PR tree-optimization/47265
34844         PR tree-optimization/47443
34845         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
34846         if name still has some uses.
34847
34848 2011-01-25  Martin Jambor  <mjambor@suse.cz>
34849
34850         PR tree-optimization/47382
34851         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
34852         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
34853
34854 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
34855
34856         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
34857         sjlj_except_unwind_info.
34858
34859 2011-01-25  Richard Guenther  <rguenther@suse.de>
34860
34861         PR tree-optimization/47426
34862         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
34863         visible functions results escape.
34864
34865 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
34866
34867         PR target/45701
34868         * config/arm/arm.c (any_sibcall_uses_r3): New function.
34869         (arm_get_frame_offsets): Use it.
34870
34871 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
34872             Jakub Jelinek  <jakub@redhat.com>
34873
34874         PR tree-optimization/47271
34875         * tree-if-conv.c (bb_postdominates_preds): New.
34876         (if_convertible_bb_p): Call bb_postdominates_preds.
34877         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
34878         (predicate_scalar_phi): Call bb_postdominates_preds.
34879
34880 2011-01-25  Nick Clifton  <nickc@redhat.com>
34881
34882         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
34883         * config/rx/rx.c (rx_function_value): Likewise.
34884         (rx_promote_function_mode): Likewise.
34885         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
34886         in order to make it legitimate.
34887         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
34888         make sure that the first operand is the same as the result register.
34889         (addsi3_unspec): Delete.
34890         (subdi3): Do not accept immediate operands.
34891         (subdi3_internal): Likewise.
34892
34893 2011-01-25  Jeff Law  <law@redhat.com>
34894
34895         PR rtl-optimization/37273
34896         * ira-costs.c (scan_one_insn): Detect constants living in memory and
34897         handle them like argument loads from stack slots.  Do not double
34898         count memory for memory constants and argument loads from stack slots.
34899
34900 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
34901
34902         PR tree-optimization/47427
34903         PR tree-optimization/47428
34904         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
34905         coalesce if the new root var would be TREE_READONLY.
34906
34907 2011-01-25  Richard Guenther  <rguenther@suse.de>
34908
34909         PR middle-end/47414
34910         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
34911         correct type for TBAA.
34912
34913 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
34914
34915         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
34916         (close_phi_written_to_memory): Call for_each_index with
34917         dr_indices_valid_in_loop.
34918
34919 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
34920
34921         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
34922         when it is initialized.
34923
34924 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
34925
34926         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
34927         call to graphite_find_data_references_in_stmt.
34928         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
34929         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
34930         call to graphite_find_data_references_in_stmt.
34931         (analyze_drs_in_stmts): Same.
34932         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
34933         in which the scalar analysis of indices is performed.
34934         (create_data_ref): Same.  Update call to dr_analyze_indices.
34935         (find_data_references_in_stmt): Update call to create_data_ref.
34936         (graphite_find_data_references_in_stmt): Same.
34937         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
34938         declaration.
34939         (create_data_ref): Same.
34940         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
34941         call to create_data_ref.
34942
34943 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
34944
34945         * graphite-sese-to-poly.c (build_poly_scop): Move
34946         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
34947
34948 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
34949
34950         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
34951         VAR_DECL, PARM_DECL, and RESULT_DECL.
34952
34953 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
34954
34955         * graphite-dependences.c (reduction_dr_1): Allow several reductions
34956         in a reduction PBB.
34957         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
34958         that have already been marked as PBB_IS_REDUCTION.
34959
34960 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
34961
34962         * graphite-scop-detection.c (same_close_phi_node): New.
34963         (remove_duplicate_close_phi): New.
34964         (make_close_phi_nodes_unique): New.
34965         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
34966
34967 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
34968
34969         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
34970         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
34971         of both data references to be the same.
34972
34973 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
34974
34975         * graphite-dependences.c (build_lexicographical_constraint): Remove
34976         the gdim parameter.
34977         (build_lexicographical_constraint): Adjust call to
34978         ppl_powerset_is_empty.
34979         (dependence_polyhedron): Same.
34980         (graphite_legal_transform_dr): Same.
34981         (graphite_carried_dependence_level_k): Same.
34982         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
34983         parameter.
34984         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
34985
34986 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
34987
34988         * graphite-sese-to-poly.c
34989         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
34990         (close_phi_written_to_memory): New.
34991         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
34992         and unshare_expr.
34993
34994 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
34995
34996         * doc/install.texi: Update the expected version number of PPL to 0.11.
34997         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
34998         #if PPL_VERSION_MINOR < 11.
34999
35000 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35001
35002         * graphite-dependences.c: Include graphite-cloog-util.h.
35003         (new_poly_ddr): Inlined into dependence_polyhedron.
35004         (free_poly_ddr): Moved close by new_poly_ddr.
35005         (dependence_polyhedron_1): Renamed dependence_polyhedron.
35006         Early return NULL when ppl_powerset_is_empty returns true.
35007         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
35008         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
35009         (graphite_legal_transform_dr): Call new_poly_ddr.
35010         (graphite_carried_dependence_level_k): Same.
35011         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
35012         (dot_transformed_deps_stmt_1): Removed.
35013         (dot_deps_stmt_1): Call dot_deps_stmt_2.
35014         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
35015         (dot_deps_1): Call dot_deps_2.
35016         * Makefile.in (graphite-dependences.o): Add missing dependence on
35017         graphite-cloog-util.h.
35018
35019 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35020
35021         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
35022         (build_lexicographical_constraint): Same.
35023         (dependence_polyhedron_1): Same.
35024         (graphite_legal_transform_dr): Same.
35025         (graphite_carried_dependence_level_k): Same.
35026         * graphite-ppl.c (ppl_powerset_is_empty): New.
35027         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
35028         * tree-data-ref.c (dump_data_reference): Print the basic block index.
35029
35030 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35031
35032         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
35033         the "a followed by b" relation and document it.
35034
35035 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35036
35037         * graphite-dependences.c (build_lexicographical_constraint): Stop the
35038         iteration when the bag of constraints is empty.
35039
35040 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35041
35042         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
35043
35044 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35045
35046         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
35047         nest and two loop depths as parameters.
35048         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
35049         lst_perfect_nestify.
35050
35051 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35052
35053         * graphite-dependences.c (print_pddr): Call
35054         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
35055
35056 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35057
35058         * graphite-ppl.c (debug_gmp_value): New.
35059         * graphite-ppl.h (debug_gmp_value): Declared.
35060
35061 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
35062
35063         * doc/install.texi: Document availability of cloog-0.16.
35064
35065 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
35066
35067         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
35068         invalid postdominance info.
35069
35070 2011-01-24  Jan Hubicka  <jh@suse.cz>
35071
35072         PR c/21659
35073         * doc/extend.texi (weak pragma): Drop claim that it must
35074         appear before definition.
35075         * varasm.c (merge_weak, declare_weak): Only sanity check
35076         that DECL is not output at a time it is declared weak.
35077
35078 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
35079
35080         * machmode.def: Fixed comments.
35081
35082 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
35083
35084         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
35085
35086 2011-01-24  Paul Koning  <ni1d@arrl.net>
35087
35088         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
35089         WORDS_BIG_ENDIAN.
35090
35091 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
35092
35093         PR target/46519
35094         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
35095         (block_info): Add scanned and prev.
35096         (move_or_delete_vzeroupper_2): Return if the basic block
35097         has been scanned and the upper 128bit state is unchanged
35098         from the last scan.
35099         (move_or_delete_vzeroupper_1): Return true if the exit
35100         state is changed.
35101         (move_or_delete_vzeroupper): Visit basic blocks using the
35102         work-list based algorithm based on vt_find_locations in
35103         var-tracking.c.
35104
35105         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
35106
35107 2011-01-24  Nick Clifton  <nickc@redhat.com>
35108
35109         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
35110         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
35111         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
35112         then define __v850e1__.
35113         * doc/invoke.texi: Document -mv850es.
35114
35115 2011-01-24  Richard Henderson  <rth@redhat.com>
35116
35117         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
35118         compound unordered comparisons.
35119         * config/rx/rx.c (rx_split_fp_compare): Remove.
35120         * config/rx/rx-protos.h: Update.
35121         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
35122         (cbranchsf4): Don't call rx_split_fp_compare.
35123         (*cbranchsf4): Use rx_split_cbranch.
35124         (*cmpsf): Don't accept "i" constraint.
35125         (*conditional_branch): Only valid after reload.
35126         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
35127
35128 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
35129
35130         PR target/47385
35131         * config/rs6000/altivec.md (vector constant splitters): Add
35132         support for creating vector single precision constants if -mvsx is
35133         used and we would create the constant using Altivec primitives.
35134
35135 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
35136             Richard Sandiford  <rdsandiford@googlemail.com>
35137
35138         PR rtl-optimization/47166
35139         * reload1.c (emit_reload_insns): Disable the spill_reg_store
35140         mechanism for PRE_MODIFY and POST_MODIFY.
35141         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
35142         reloadreg.
35143
35144 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
35145
35146         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
35147
35148 2011-01-22  Jan Hubicka  <jh@suse.cz>
35149
35150         PR lto/47333
35151         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
35152
35153 2011-01-22  Jan Hubicka  <jh@suse.cz>
35154
35155         PR tree-optimization/43884
35156         PR lto/44334
35157         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
35158         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
35159
35160 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
35161
35162         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
35163         * config/s390/s390.c (s390_register_move_cost,
35164         s390_memory_move_cost): New.
35165         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
35166
35167 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
35168
35169         PR middle-end/47401
35170         * except.c (sjlj_assign_call_site_values): Move setting the
35171         crtl->uses_eh_lsda flag to ...
35172         (sjlj_mark_call_sites): ... here.
35173         (sjlj_emit_function_enter): Support NULL dispatch label.
35174         (sjlj_build_landing_pads): In a function with no landing pads
35175         that still has must-not-throw regions, generate code to register
35176         a personality function with empty LSDA.
35177
35178 2011-01-21  Richard Henderson  <rth@redhat.com>
35179
35180         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
35181
35182         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
35183
35184         * compare-elim.c: New file.
35185         * Makefile.in (OBJS-common): Add it.
35186         (compare-elim.o): New.
35187         * common.opt (fcompare-elim): New.
35188         * opts.c (default_options_table): Add OPT_fcompare_elim.
35189         * tree-pass.h (pass_compare_elim_after_reload): New.
35190         * passes.c (init_optimization_passes): Add it.
35191         * recog.h: Protect against re-inclusion.
35192         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
35193         * doc/invoke.texi (-fcompare-elim): Document it.
35194         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
35195         * doc/tm.texi: Rebuild.
35196
35197 2011-01-22  Nick Clifton  <nickc@redhat.com>
35198
35199         * config/rx/rx.md (cstoresf4): Pass comparison operator to
35200         rx_split_fp_compare.
35201
35202 2011-01-22  Nick Clifton  <nickc@redhat.com>
35203
35204         * config/rx/rx.md (UNSPEC_CONST): New.
35205         (deallocate_and_return): Wrap the amount popped off the stack in
35206         an UNSPEC_CONST in order to stop it being rejected by
35207         -mmax-constant-size.
35208         (pop_and_return): Add a "(return)" rtx.
35209         (call): Drop the immediate operand.
35210         (call_internal): Likewise.
35211         (call_value): Likewise.
35212         (call_value_internal): Likewise.
35213         (sibcall_internal): Likewise.
35214         (sibcall_value_internal): Likewise.
35215         (sibcall): Likewise.  Generate an explicit call using
35216         sibcall_internal.
35217         (sibcall_value): Likewise.
35218         (mov<>): FAIL if a constant operand is not legitimate.
35219         (addsi3_unpsec): New pattern.
35220
35221         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
35222         (ok_for_max_constant): New function.
35223         (gen_safe_add): New function.
35224         (rx_expand_prologue): Use gen_safe_add.
35225         (rx_expand_epilogue): Likewise.
35226         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
35227         UNSPEC CONSTs.
35228
35229 2011-01-21  Jeff Law  <law@redhat.com>
35230
35231         PR tree-optimization/47053
35232         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
35233         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
35234         statements are deleted.
35235         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
35236         is nonempty, then purge dead edges and cleanup the CFG.
35237
35238 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
35239
35240         PR debug/47402
35241         Temporarily revert:
35242         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
35243         PR debug/47106
35244         * tree-dfa.c (create_var_ann): Mark variable as used.
35245
35246 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
35247
35248         PR middle-end/45566
35249         * except.c (convert_to_eh_region_ranges): Emit queued no-region
35250         notes from other section in hot/cold partitioning even if
35251         last_action is -3.  Increment call_site_base.
35252
35253         PR rtl-optimization/47366
35254         * fwprop.c (forward_propagate_into): Return bool.  If
35255         any changes are made, -fnon-call-exceptions is used and
35256         REG_EH_REGION note is present, call purge_dead_edges
35257         and return true if it purged anything.
35258         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
35259         any EH edges were purged.
35260
35261 2011-01-21  Jeff Law  <law@redhat.com>
35262
35263         PR rtl-optimization/41619
35264         * caller-save.c (setup_save_areas): Break out code to determine
35265         which hard regs are live across calls by examining the reload chains
35266         so that it is always used.
35267         Eliminate code which checked REG_N_CALLS_CROSSED.
35268
35269 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
35270
35271         PR tree-optimization/47355
35272         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
35273         NOP has non-debug uses beyond PHIs in new_bb.
35274
35275 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
35276
35277         PR debug/47106
35278         * cfgexpand.c (account_used_vars_for_block): Only account vars
35279         that are annotated as used.
35280         (estimated_stack_frame_size): Don't set TREE_USED.
35281         * tree-dfa.c (create_var_ann): Mark variable as used.
35282
35283 2011-01-21  Richard Guenther  <rguenther@suse.de>
35284
35285         PR middle-end/47395
35286         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
35287
35288 2011-01-21  Richard Guenther  <rguenther@suse.de>
35289
35290         PR tree-optimization/47365
35291         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
35292         (vn_reference_lookup_pieces): Adjust.
35293         (vn_reference_lookup): Likewise.
35294         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
35295         (vn_reference_lookup_3): Only look through kills if in
35296         VN_WALKREWRITE mode.
35297         (vn_reference_lookup_pieces): Adjust.
35298         (vn_reference_lookup): Likewise.
35299         (visit_reference_op_load): Likewise.
35300         (visit_reference_op_store): Likewise.
35301         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
35302         (compute_avail): Likewise.
35303         (eliminate): Likewise.
35304
35305 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
35306
35307         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
35308         DECL_IGNORED_P non-reg vars if they are used.
35309
35310         PR tree-optimization/47391
35311         * varpool.c (const_value_known_p): Return false if
35312         decl is volatile.
35313
35314 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
35315
35316         PR bootstrap/47215
35317         * config/i386/i386.c (ix86_local_alignment): Handle
35318         case for va_list_type_node is nil.
35319         (ix86_canonical_va_list_type): Likewise.
35320
35321 2011-01-21  Alan Modra  <amodra@gmail.com>
35322
35323         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
35324         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
35325
35326 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35327
35328         * config/arm/arm.md (define_attr type): Rename f_load
35329         and f_store to f_fpa_load and f_fpa_store. Update.
35330         (write_conflict): Deal with rename fallout.
35331         (*push_fp_multi): Likewise.
35332         * config/arm/fpa.md (f_load): Use f_fpa_load.
35333         (f_store): Use f_fpa_store.
35334         (*movsf_fpa): Likewise.
35335         (*movdf_fpa): Likewise.
35336         (*movxf_fpa): Likewise.
35337         (*thumb2_movsf_fpa): Likewise.
35338         (*thumb2_movdf_fpa): Likewise.
35339         (*thumb2_movxf_fpa): Likewise.
35340         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
35341         f_loadd and f_stored.
35342         (*thumb2_movdi_vfp): Likewise.
35343         (*thumb2_movsf_vfp): Fix attribute to f_loads.
35344         (*thumb2_movsi_vfp): Likewise.
35345         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
35346         Use f_loads instead of f_load.
35347         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
35348
35349 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
35350
35351         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
35352         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
35353         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
35354         (xtensa_mode_dependent_address_p): New function.
35355         (constantpool_address_p): Make static. Change return type to bool.
35356         Change argument type to const_rtx. Use CONST_INT_P predicate.
35357
35358 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
35359
35360         PR debug/46583
35361         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
35362
35363 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
35364
35365         PR debug/47283
35366         * cfgexpand.c (expand_debug_expr): Instead of generating
35367         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
35368         etc. handling.
35369
35370 2011-01-20  Richard Guenther  <rguenther@suse.de>
35371
35372         PR middle-end/47370
35373         * tree-inline.c (remap_gimple_op_r): Recurse manually for
35374         the pointer operand of MEM_REFs.
35375
35376 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
35377
35378         PR tree-optimization/46130
35379         * ipa-split.c (consider_split): If return_bb contains non-virtual
35380         PHIs other than for retval or if split_function would not adjust it,
35381         refuse to split.
35382
35383 2011-01-20  Richard Guenther  <rguenther@suse.de>
35384
35385         PR tree-optimization/47167
35386         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
35387         Revert previous change, only avoid enumeral type changes.
35388
35389 2011-01-19  Mike Stump  <mikestump@comcast.net>
35390
35391         * doc/tm.texi.in (BRANCH_COST): Englishify.
35392         * doc/tm.texi (BRANCH_COST): Likewise.
35393
35394 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
35395
35396         PR c++/47291
35397         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
35398         (gen_scheduled_generic_parms_dies): New functions.
35399         (gen_struct_or_union_type_die): Schedule template parameters DIEs
35400         generation for the end of CU compilation.
35401         (dwarf2out_finish): Generate template parameters DIEs here.
35402
35403 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
35404
35405         PR debug/46240
35406         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
35407         debug bind stmt on merge edges.
35408
35409 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
35410
35411         PR debug/47079
35412         PR debug/46724
35413         * function.c (instantiate_expr): Instantiate incoming rtl of
35414         implicit arguments, and recurse on VALUE_EXPRs.
35415         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
35416         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
35417
35418 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
35419
35420         * c-parser.c (c_parser_for_statement): Initialize
35421         collection_expression.
35422
35423 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
35424
35425         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
35426
35427 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
35428
35429         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
35430         (LINK_SHLIB_SPEC): Don't use %(link_path).
35431         (SUBTARGET_EXTRA_SPECS): Remove link_path.
35432
35433 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
35434
35435         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
35436         (NO_SHARED_LIB_SUPPORT): Remove.
35437         (LINK_SHLIB_SPEC): Remove one conditional definition.
35438
35439 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
35440
35441         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
35442         %{call_shared}.
35443         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
35444         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
35445         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
35446         %{call_shared} and conditionals on these options not being passed.
35447         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
35448         %{call_shared}.
35449
35450 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
35451
35452         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
35453         simplify.
35454
35455         * ipa-split.c: Spelling fixes.
35456
35457 2011-01-19  Richard Henderson  <rth@redhat.com>
35458
35459         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
35460         (*mulsi3): Likewise.
35461
35462         * longlong.h [__mn10300__] (count_leading_zeros): New.
35463         [__mn10300__] (umul_ppmm, smul_ppmm): New.
35464         [__mn10300__] (add_ssaaaa, subddmmss): New.
35465         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
35466         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
35467
35468 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
35469
35470         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
35471
35472 2011-01-19  Richard Henderson  <rth@redhat.com>
35473
35474         * config/mn10300/mn10300.md (addsi3_flags): New.
35475         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
35476         (subsi3_flags, subc_internal, subdi3): New.
35477         (subdi3_internal, *subdi3_degenerate): New.
35478         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
35479
35480         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
35481         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
35482         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
35483         * config/mn10300/mn10300-protos.h: Update.
35484         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
35485         (return_ret): Likewise.  Rename from return_internal_regs.
35486         (return_internal): Remove.
35487
35488         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
35489         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
35490         (mn10300_legitimate_constant_p): Likewise.
35491         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
35492         (mn10300_frame_size): New.
35493         (mn10300_expand_prologue): Use it.
35494         (mn10300_expand_epilogue): Likewise.
35495         (mn10300_initial_offset): Likewise.
35496         * config/mn10300/mn10300-protos.h: Update.
35497         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
35498         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
35499         (prologue, epilogue, return_internal): Tidy output code.
35500         (mn10300_store_multiple_operation, return): Likewise.
35501         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
35502         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
35503         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
35504         (load_pic, am33_load_pic): New.
35505         (mn10300_load_pic0, mn10300_load_pic1): New.
35506
35507         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
35508         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
35509         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
35510         (cc_flags_for_mode, cc_flags_for_code): New.
35511         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
35512         overflow flag is not valid.  Validate that the flags we need
35513         for the comparison are valid.
35514         (mn10300_output_cmp): Remove.
35515         (mn10300_output_add): New.
35516         (mn10300_select_cc_mode): Use cc_flags_for_code.
35517         (mn10300_split_cbranch): New.
35518         (mn10300_match_ccmode): New.
35519         (mn10300_split_and_operand_count): New.
35520         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
35521         to the function.
35522         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
35523         (addsi3): ... here.  Use mn10300_output_add.
35524         (*addsi3_flags): New.
35525         (*am33_subsi3, *mn10300_subsi3): Merge...
35526         (subsi3): ... here.  Use attribute isa.
35527         (*subsi3_flags): New.
35528         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
35529         when possible.
35530         (*am33_andsi3, *mn10300_andsi3): Merge...
35531         (andsi3): ... here.
35532         (*andsi3_flags): New.
35533         (andsi3 splitters): New.
35534         (*am33_iorsi3, *mn10300_iorsi3): Merge...
35535         (iorsi3): ... here.
35536         (*iorsi3_flags): New.
35537         (*am33_xorsi3, *mn10300_xorsi3): Merge...
35538         (xorsi3): ... here.
35539         (*xorsi3_flags): New.
35540         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
35541         (one_cmplsi2): ... here.
35542         (*one_cmplsi2_flags): New.
35543         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
35544         instead of "dax" in constraints.  Use mn10300_split_cbranch.
35545         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
35546         use matching constraints to eliminate a self-comparison.
35547         (*integer_conditional_branch): Rename from integer_conditional_branch.
35548         Use int_mode_flags to match CC_REG.
35549         (*cbranchsi4_btst, *btstsi): New.
35550         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
35551         mn10300_split_cbranch.
35552         (*am33_cmpsf): Rename from am33_cmpsf.
35553         (*float_conditional_branch): Rename from float_conditional_branch.
35554         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
35555         (zero_extendqisi2): ... here.
35556         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
35557         (zero_extendhisi2): ... here.
35558         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
35559         (extendqisi2): ... here.
35560         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
35561         (extendhisi2): ... here.
35562         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
35563         (ashlsi3): ... here.
35564         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
35565         (lshrsi3): ... here.
35566         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
35567         (ashrsi3): ... here.
35568         (consecutive add peephole): Remove.
35569         * config/mn10300/predicates.md (label_ref_operand): New.
35570         (int_mode_flags): New.
35571         (CCZN_comparison_operator): New.
35572
35573         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
35574         (throughput_42_latency_43): New reservation.
35575         (mulsidi3, umulsidi3): New expanders.
35576         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
35577         the MDR register to allocation; separately allocate the low and
35578         high parts of the DImode result.
35579         (umulsidi3_internal): Similarly.
35580         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
35581         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
35582         (udivsi3, umodsi3): Remove.
35583         (udivmodsi4, divmodsi4): New expanders.
35584         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
35585         (*divmodsi4): Simiarly.
35586         (ext_internal): New.
35587
35588         * config/mn10300/constraints.md ("z"): New constraint.
35589         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
35590         (FIXED_REGISTERS): Don't fix MDR.
35591         (CALL_USED_REGSITERS): Reformat nicely.
35592         (REG_ALLOC_ORDER): Add MDR.
35593         (enum regclass): Add MDR_REGS.
35594         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
35595         (IRA_COVER_CLASSES): Add MDR_REGS.
35596         (REGNO_REG_CLASS): Handle MDR_REG.
35597         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
35598         (mn10300_register_move_cost): Likewise.
35599         * config/mn10300/mn10300.md (MDR_REG): New.
35600         (*movsi_internal): Handle moves to/from MDR_REGS.
35601
35602         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
35603         POST_MODIFY.
35604         (mn10300_secondary_reload): Tidy combination reload classes.
35605         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
35606         addresses for AM33.  Allow symbolic offsets for reg+imm.
35607         (mn10300_regno_in_class_p): New.
35608         (mn10300_legitimize_reload_address): New.
35609         * config/mn10300/mn10300.h (enum reg_class): Remove
35610         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
35611         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
35612         SP_OR_GENERAL_REGS.
35613         (REG_CLASS_NAMES): Update to match.
35614         (REG_CLASS_CONTENTS): Likewise.
35615         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
35616         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
35617         (REGNO_IN_RANGE_P): Remove.
35618         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
35619         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
35620         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
35621         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
35622         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
35623         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
35624         (REGNO_GENERAL_P): New.
35625         (HAVE_POST_MODIFY_DISP): New.
35626         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
35627         (LEGITIMIZE_RELOAD_ADDRESS): New.
35628         * config/mn10300/mn10300-protos.h: Update.
35629
35630         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
35631         DATA_REGS for AM33 stack-pointer destination.
35632         (mn10300_preferred_output_reload_class): Likewise.
35633         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
35634         into a form appropriate for ...
35635         (TARGET_SECONDARY_RELOAD): New.
35636         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
35637         * config/mn10300/mn10300-protos.h: Update.
35638         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
35639         reload_insi; use the "A" constraint for the scratch; handle AM33
35640         moves of sp to non-address registers.
35641
35642         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
35643         (*movqi_internal): ... here.
35644         (*am33_movhi, *mn10300_movhi): Merge into...
35645         (*movhi_internal): ... here.
35646         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
35647         as the source/destination of moves from/to SP.
35648         (movsf): Only allow for AM33-2.
35649         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
35650         any integer constant constraint.  Only allow for AM33-2.  Tidy
35651         all of the alternative outputs.
35652         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
35653         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
35654         for MN103.
35655         (udivsi3, umodsi3): New patterns for MN103 only.
35656
35657 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
35658
35659         * doc/tm.texi.in: Spell out that a lack of register class unions
35660         can lead to ICEs.
35661         * doc/tm.texi: Regenerate.
35662
35663 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
35664
35665         PR rtl-optimization/47337
35666         * dce.c (check_argument_store): New function.
35667         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
35668
35669         PR tree-optimization/47290
35670         * tree-eh.c (infinite_empty_loop_p): New function.
35671         (cleanup_empty_eh): Use it.
35672
35673 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
35674
35675         PR target/46997
35676         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
35677         (a64_expand_widen_sum): Ditto.
35678         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
35679         (vec_extract_evenodd_help): Ditto.
35680         (vec_extract_evenv4hi): Ditto.
35681         (vec_extract_oddv4hi): Ditto.
35682         (vec_extract_evenv2si): Ditto.
35683         (vec_extract_oddv2si): Ditto.
35684         (vec_extract_evenv2sf): Ditto.
35685         (vec_extract_oddv2sf): Ditto.
35686         (vec_pack_trunc_v4hi: Ditto.
35687         (vec_pack_trunc_v2si): Ditto.
35688         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
35689         (vec_interleave_highv8qi): Ditto.
35690         (mix1_r): Ditto.
35691         (vec_extract_oddv8qi): Ditto.
35692         (vec_interleave_lowv4hi): Ditto.
35693         (vec_interleave_highv4hi): Ditto.
35694         (vec_interleave_lowv2si): Ditto.
35695         (vec_interleave_highv2si): Ditto.
35696
35697 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35698
35699         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
35700         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
35701         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
35702         (pa_c_mode_for_suffix): New.
35703         (TARGET_EXPAND_BUILTIN): Define.
35704         (TARGET_C_MODE_FOR_SUFFIX): Define.
35705         (pa_builtins): Define.
35706         (pa_init_builtins): Register __float128 type and init new support
35707         builtins.
35708         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
35709         * config/pa/quadlib.c (_U_Qfcopysign): New.
35710
35711 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
35712
35713         PR middle-end/46894
35714         * explow.c (allocate_dynamic_stack_space): Do not assume more than
35715         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
35716         are defined.
35717
35718 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
35719
35720         PR tree-optimization/47179
35721         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
35722         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
35723
35724 2011-01-18  Richard Guenther  <rguenther@suse.de>
35725
35726         PR rtl-optimization/47216
35727         * emit-rtl.c: Include tree-flow.h.
35728         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
35729         of replicating it with different semantics.
35730         * Makefile.in (emit-rtl.o): Adjust.
35731
35732 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35733
35734         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
35735         (cortex_a9_dp): Handle neon types correctly.
35736
35737 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
35738
35739         PR rtl-optimization/47299
35740         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
35741         subtarget.  Use normal multiplication if both operands are constants.
35742         * expmed.c (expand_widening_mult): Don't try to optimize constant
35743         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
35744         before using it.
35745
35746 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35747
35748         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
35749         spacing after 'e.g.', typos, comma, hyphenation.
35750
35751 2011-01-17  Richard Henderson  <rth@redhat.com>
35752
35753         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
35754         (rx_restricted_mem_operand): New.
35755         (rx_shift_operand): Use register_operand.
35756         (rx_source_operand, rx_compare_operand): Likewise.
35757         * config/rx/rx.md (addsi3_flags): New expander.
35758         (adddi3): Rewrite as expander.
35759         (adc_internal, *adc_flags, adddi3_internal): New patterns.
35760         (subsi3_flags): New expander.
35761         (subdi3): Rewrite as expander.
35762         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
35763
35764         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
35765         (rx_init_builtins): Remove sat builtin.
35766         (rx_expand_builtin): Likewise.
35767         * config/rx/rx.md (ssaddsi3): New.
35768         (*sat): Rename from sat.  Represent the CC_REG input.
35769
35770         * config/rx/predicates.md (rshift_operator): New.
35771         * config/rx/rx.c (rx_expand_insv): Remove.
35772         * config/rx/rx-protos.h: Update.
35773         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
35774         operand to the canonical position.
35775         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
35776         (*bitclr, *bitclr_in_memory): Similarly.
35777         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
35778         (insv): Retain the zero_extract in the expansion.
35779
35780         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
35781         (bswaphi2, bitinvert, revw): Likewise.
35782
35783         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
35784         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
35785         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
35786         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
35787         (bitset, bitset_in_memory): Likewise.
35788         (bitinvert, bitinvert_in_memory): Likewise.
35789         (bitclr, bitclr_in_memory): Likewise.
35790         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
35791         (rx_strend, rx_cmpstrn): Likewise.
35792         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
35793         (bitop peep2 patterns): Remove.
35794
35795         * config/rx/rx.c (rx_match_ccmode): New.
35796         * config/rx/rx-protos.h: Update.
35797         * config/rx/rx.md (abssi2): Clobber, don't set flags.
35798         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
35799         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
35800         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
35801         (fix_truncsfsi2, floatsisf2): Likewise.
35802         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
35803         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
35804         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
35805         (*subsi3_flags, *xorsi3_flags): New.
35806
35807         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
35808
35809         * config/rx/rx.c (rx_print_operand): Remove workaround for
35810         unsplit comparison operations.
35811
35812         * config/rx/rx.md (movsicc): Split after reload.
35813         (*movsicc): Merge *movsieq and *movsine via match_operator.
35814         (*stcc): New pattern.
35815
35816         * config/rx/rx.c (rx_float_compare_mode): Remove.
35817         * config/rx/rx.h (rx_float_compare_mode): Remove.
35818         * config/rx/rx.md (cstoresi4): Split after reload.
35819         (*sccc): New pattern.
35820
35821         * config/rx/predicates.md (label_ref_operand): New.
35822         (rx_z_comparison_operator): New.
35823         (rx_zs_comparison_operator): New.
35824         (rx_fp_comparison_operator): New.
35825         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
35826         Validate that the flags are set properly for the comparison.
35827         (rx_gen_cond_branch_template): Remove.
35828         (rx_cc_modes_compatible): Remove.
35829         (mode_from_flags): New.
35830         (flags_from_code): Rename from flags_needed_for_conditional.
35831         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
35832         (rx_select_cc_mode): Likewise.
35833         (rx_split_fp_compare): New.
35834         (rx_split_cbranch): New.
35835         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
35836         (*cbranchsi4): Use match_operator and rx_split_cbranch.
35837         (*cbranchsf4): Similarly.
35838         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
35839         match_operator and rx_split_cbranch.
35840         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
35841         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
35842         (*cmpsi): Rename from cmpsi.
35843         (*tstsi): Rename from tstsi.
35844         (*cmpsf): Rename from cmpsf; use CC_Fmode.
35845         (*conditional_branch): Rename from conditional_branch.
35846         (*reveresed_conditional_branch): Remove.
35847         (b<code>): Remove expander.
35848         * config/rx/rx-protos.h: Update.
35849
35850         * config/rx/rx.c (rx_compare_redundant): Remove.
35851         * config/rx/rx.md (cmpsi): Don't use it.
35852         * config/rx/rx-protos.h: Update.
35853
35854         * config/rx/rx-modes.def (CC_F): New mode.
35855         * config/rx/rx.c (rx_select_cc_mode): New.
35856         * config/rx/rx.h (SELECT_CC_MODE): Use it.
35857         * config/rx/rx-protos.h: Update.
35858
35859 2011-01-17  Richard Henderson  <rth@redhat.com>
35860
35861         * except.c (dump_eh_tree): Fix stray ; after for statement.
35862
35863 2011-01-17  Richard Guenther  <rguenther@suse.de>
35864
35865         PR tree-optimization/47313
35866         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
35867         handling before copying the body.  Properly deal with
35868         by-reference result in SSA form.
35869
35870 2011-01-17  Ian Lance Taylor  <iant@google.com>
35871
35872         PR target/47219
35873         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
35874         (struct_value_alias_set): Don't define.
35875         (sparc_option_override): Don't set sparc_sr_alias_set and
35876         struct_value_alias_set.
35877         (save_or_restore_regs): Use gen_frame_mem rather than calling
35878         set_mem_alias_set.
35879         (sparc_struct_value_rtx): Likewise.
35880
35881 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
35882
35883         PR target/47318
35884         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
35885         (_mm_maskstore_pd): Likewise.
35886         (_mm_maskload_ps): Likewise.
35887         (_mm_maskstore_ps): Likewise.
35888         (_mm256_maskload_pd): Change mask to __m256i.
35889         (_mm256_maskstore_pd): Likewise.
35890         (_mm256_maskload_ps): Likewise.
35891         (_mm256_maskstore_ps): Likewise.
35892
35893         * config/i386/i386-builtin-types.def: Updated.
35894         (ix86_expand_special_args_builtin): Likewise.
35895
35896         * config/i386/i386.c (bdesc_special_args): Update
35897         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
35898         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
35899         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
35900         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
35901
35902         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
35903         Use <avxpermvecmode> on mask register.
35904         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
35905
35906 2011-01-17  Olivier Hainque  <hainque@adacore.com>
35907             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
35908             Eric Botcazou  <ebotcazou@adacore.com>
35909
35910         PR target/46655
35911         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
35912         if <= USHRT_MAX in 32-bit mode.
35913
35914 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35915
35916         * doc/install.texi (Configuration, Specific): Wrap long
35917         lines in examples.  Allow line wrapping in long options
35918         and URLs where beneficial for PDF output.
35919
35920 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
35921
35922         * config/mips/mips.c (mips_classify_symbol): Don't return
35923         SYMBOL_PC_RELATIVE for nonlocal labels.
35924
35925 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
35926
35927         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
35928
35929 2011-01-15  Jan Hubicka  <jh@suse.cz>
35930
35931         PR tree-optimization/47276
35932         * ipa.c (function_and_variable_visibility): Do not try to mark alias
35933         declarations as needed.
35934
35935 2011-01-15  Martin Jambor  <mjambor@suse.cz>
35936
35937         * common.opt (fdevirtualize): New flag.
35938         * doc/invoke.texi (Option Summary): Document it.
35939         * opts.c (default_options_table): Add devirtualize flag.
35940         * ipa-prop.c (detect_type_change): Return immediately if
35941         devirtualize flag is not set.
35942         (detect_type_change_ssa): Likewise.
35943         (compute_known_type_jump_func): Likewise.
35944         (ipa_analyze_virtual_call_uses): Likewise.
35945
35946 2011-01-14  Martin Jambor  <mjambor@suse.cz>
35947
35948         PR tree-optimization/45934
35949         PR tree-optimization/46302
35950         * ipa-prop.c (type_change_info): New type.
35951         (stmt_may_be_vtbl_ptr_store): New function.
35952         (check_stmt_for_type_change): Likewise.
35953         (detect_type_change): Likewise.
35954         (detect_type_change_ssa): Likewise.
35955         (compute_complex_assign_jump_func): Check for dynamic type change.
35956         (compute_complex_ancestor_jump_func): Likewise.
35957         (compute_known_type_jump_func): Likewise.
35958         (compute_scalar_jump_functions): Likewise.
35959         (ipa_analyze_virtual_call_uses): Likewise.
35960         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
35961
35962 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
35963
35964         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
35965         * config/i386/i386.opt (msse5): New Alias.
35966
35967 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
35968
35969         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
35970         * config/sparc/linux64.h (CC1_SPEC): Likewise.
35971         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
35972         * config/sparc/sparc.h (CC1_SPEC): Likewise.
35973
35974 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
35975
35976         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
35977         -mcpu options.
35978         * config/sparc/linux64.h (CC1_SPEC): Likewise.
35979         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
35980         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
35981         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
35982         Likewise.
35983         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
35984
35985 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
35986
35987         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
35988
35989 2011-01-14  Mike Stump  <mikestump@comcast.net>
35990
35991         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
35992         * config/fr30/fr30.md: Likweise
35993         (movsi_push): Likewise.
35994         (movsi_pop): Likewise.
35995         (enter_func): Likewise.
35996         * config/moxie/moxie.md (movsi_push): Likewise.
35997         (movsi_pop): Likewise.
35998
35999 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36000
36001         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
36002         %{no_archive} %{exact_version}.
36003         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
36004         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
36005         %{no_archive} %{exact_version}.
36006         * config/mips/openbsd.h (LINK_SPEC): Likewise.
36007         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
36008         * config/mips/vxworks.h: Likewise.
36009
36010 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36011
36012         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
36013
36014 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36015
36016         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
36017         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
36018
36019 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36020
36021         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
36022         -nodefaultlib.
36023
36024 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36025
36026         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
36027         for mcpu not cpu.
36028         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
36029         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
36030         not cpu.
36031         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
36032         Don't handle -shlib.
36033
36034 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36035
36036         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
36037         (CC1_SPEC): Don't handle -profile.
36038
36039 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36040
36041         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
36042         * config/mips/mips.h (CC1_SPEC): Likewise.
36043
36044 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36045
36046         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
36047         * config/mips/mips.h (CC1_SPEC): Likewise.
36048
36049 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36050
36051         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
36052         * config/m32r/linux.h (LINK_SPEC): Likewise.
36053         * config/mips/linux.h (LINK_SPEC): Likewise.
36054         * config/mips/linux64.h (LINK_SPEC): Likewise.
36055         * config/sparc/linux.h (LINK_SPEC): Likewise.
36056         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
36057         LINK_SPEC): Likewise.
36058         * config/xtensa/linux.h (LINK_SPEC): Likewise.
36059
36060 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36061
36062         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
36063         %{version:-v}.
36064         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
36065
36066 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36067
36068         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
36069         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
36070
36071 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36072
36073         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
36074
36075 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36076
36077         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
36078         supports -Bstatic/-Bdynamic.
36079         * configure: Regenerate.
36080
36081 2011-01-14  Jan Hubicka  <jh@suse.cz>
36082             Jack Howarth  <howarth@bromo.med.uc.edu>
36083
36084         PR target/46037
36085         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
36086         when checking debug_info_level. Test write_symbols instead of
36087         debug_hooks->var_location when setting flag_var_tracking_uninit.
36088
36089 2011-01-14  Richard Guenther  <rguenther@suse.de>
36090
36091         PR tree-optimization/47179
36092         * target.def (ref_may_alias_errno): New target hook.
36093         * targhooks.h (default_ref_may_alias_errno): Declare.
36094         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
36095         (default_ref_may_alias_errno): New function.
36096         * target.h (struct ao_ref_s): Declare.
36097         * tree-ssa-alias.c: Include target.h.
36098         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
36099         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
36100         (targhooks.o): Likewise.
36101         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
36102         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
36103
36104 2011-01-14  Richard Guenther  <rguenther@suse.de>
36105
36106         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
36107
36108 2011-01-14  Richard Guenther  <rguenther@suse.de>
36109
36110         PR tree-optimization/47280
36111         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
36112         return CFG changes.
36113         (tree_ssa_forward_propagate_single_use_vars): Deal with
36114         CFG changes from associate_plusminus.
36115
36116 2011-01-14  Richard Guenther  <rguenther@suse.de>
36117
36118         PR middle-end/47281
36119         Revert
36120         2011-01-11  Richard Guenther  <rguenther@suse.de>
36121
36122         PR tree-optimization/46076
36123         * tree-ssa.c (useless_type_conversion_p): Conversions from
36124         unprototyped to empty argument list function types are useless.
36125
36126 2011-01-14  Richard Guenther  <rguenther@suse.de>
36127
36128         PR tree-optimization/47286
36129         * tree-ssa-structalias.c (new_var_info): Register variables are global.
36130
36131 2011-01-14  Martin Jambor  <mjambor@suse.cz>
36132
36133         PR middle-end/46823
36134         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
36135
36136 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
36137
36138         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
36139         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
36140         * config/xtensa/xtensa.c (xtensa_libcall_value,
36141         xtensa_function_value_regno_p): New functions.
36142         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
36143
36144 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
36145
36146         PR c++/47213
36147         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
36148         PE specific hook.
36149         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
36150         New function prototype.
36151         * config/i386/winnt.c (i386_pe_assemble_visibility):
36152         Warn only if attribute was specified by user.
36153
36154 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
36155
36156         PR target/47251
36157         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
36158         floating point.
36159         (floatunsdidf2_fcfidu): Ditto.
36160
36161 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36162
36163         * config/s390/s390.c (print_operand_address): Replace 'error' with
36164         'output_operand_lossage'.
36165         (print_operand): Likewise.
36166
36167 2011-01-13  Jeff Law  <law@redhat.com>
36168
36169         PR rtl-optimization/39077
36170         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
36171         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
36172         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
36173         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
36174         * gcse.c (prune_insertions_deletions): New function.
36175         (compute_pre_data): Use it.
36176
36177 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
36178
36179         PR debug/PR46973
36180         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
36181         static function.
36182         (prune_unused_types_mark): Use it.
36183
36184 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
36185
36186         PR rtl-optimization/45352
36187         * sel-sched.c: Update copyright years.
36188         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
36189         in the advancing loop when we have issued issue_rate insns.
36190
36191 2011-01-12  Richard Henderson  <rth@redhat.com>
36192
36193         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
36194         (TARGET_MD_ASM_CLOBBERS): New.
36195
36196         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
36197         (TARGET_DELEGITIMIZE_ADDRESS): New.
36198
36199         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
36200         (clzsi2, *bsch): New patterns.
36201
36202         * config/mn10300/mn10300.md (INT): New mode iterator.
36203         (*mov<INT>_clr): New pattern, and peep2 to generate it.
36204
36205         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
36206         flag_split_wide_types.
36207
36208         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
36209         (mn10300_trampoline_init): Rewrite without a template, an immediate
36210         load and a direct branch.
36211         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
36212
36213 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
36214
36215         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
36216         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
36217         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
36218         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
36219
36220 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
36221
36222         PR debug/47209
36223         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
36224         of type.
36225
36226 2011-01-12  Jan Hubicka  <jh@suse.cz>
36227
36228         PR driver/47244
36229         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
36230         (PLUGIN_COND_CLOSE): New macro.
36231         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
36232
36233 2011-01-12  Richard Guenther  <rguenther@suse.de>
36234
36235         PR lto/47259
36236         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
36237         register variables in a MEM_REF.
36238
36239 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
36240
36241         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
36242         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
36243         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
36244         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
36245         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
36246         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
36247         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
36248         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
36249         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
36250         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
36251         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
36252         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
36253         * config/gnu-user.h: New.  Copied from linux.h.
36254         (LINUX_TARGET_STARTFILE_SPEC): Rename to
36255         GNU_USER_TARGET_STARTFILE_SPEC.
36256         (LINUX_TARGET_ENDFILE_SPEC): Rename to
36257         GNU_USER_TARGET_ENDFILE_SPEC.
36258         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
36259         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
36260         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
36261         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
36262         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
36263         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
36264         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
36265         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
36266         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
36267         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
36268         * config/arm/linux-eabi.h (CC1_SPEC): Use
36269         GNU_USER_TARGET_CC1_SPEC.
36270         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
36271         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
36272         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
36273         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
36274         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
36275         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
36276         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
36277         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
36278
36279 2011-01-12  Richard Guenther  <rguenther@suse.de>
36280
36281         PR other/46946
36282         * doc/invoke.texi (ffast-math): Document it is turned on
36283         with -Ofast.
36284
36285 2011-01-12  Jan Hubicka  <jh@suse.cz>
36286
36287         PR tree-optimization/47233
36288         * opts.c (common_handle_option): Disable ipa-reference with profile
36289         feedback.
36290
36291 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
36292
36293         * c-parser.c (c_parser_objc_at_property_declaration): Improved
36294         error message.
36295
36296 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
36297
36298         * c-parser.c (c_lex_one_token): Updated and reindented some
36299         comments.  No changes in code.
36300
36301 2011-01-11  Ian Lance Taylor  <iant@google.com>
36302
36303         * godump.c (go_output_var): Don't output the variable if there is
36304         already a type with the same name.
36305
36306 2011-01-11  Ian Lance Taylor  <iant@google.com>
36307
36308         * godump.c (go_format_type): Don't generate float80.
36309
36310 2011-01-11  Richard Henderson  <rth@redhat.com>
36311
36312         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
36313         declaration.  Rewrite for both speed and size.
36314         (mn10300_address_cost_1): Remove.
36315         (mn10300_register_move_cost): New.
36316         (mn10300_memory_move_cost): New.
36317         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
36318         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
36319         extensions, shifts, BSWAP, CLZ.
36320         (mn10300_wide_const_load_uses_clr): Remove.
36321         (TARGET_REGISTER_MOVE_COST): New.
36322         (TARGET_MEMORY_MOVE_COST): New.
36323         * config/mn10300/mn10300-protos.h: Update.
36324         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
36325
36326         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
36327         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
36328         * config/mn10300/mn10300-protos.h: Update.
36329         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
36330         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
36331         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
36332         (*test_int_bitfield, *test_byte_bitfield): Remove.
36333         (*bit_test, *subreg_bit_test): Remove.
36334         * config/mn10300/predicates.md (const_8bit_operand): Remove.
36335
36336         * config/mn10300/constraints.md ("c"): Rename from "A".
36337         ("A", "D"): New constraint letters.
36338         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
36339         (fmssf4, fnmasf4, fnmssf4): Likewise.
36340
36341         * config/mn10300/mn10300.md (isa): New attribute.
36342         (enabled): New attribute.
36343
36344         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
36345         (abssf2, negsf2): Define only for hardware fp.
36346         (sqrtsf2): Reformat.
36347         (addsf3, subsf3, mulsf3): Merge expander and insn.
36348
36349         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
36350         (DEBUGGER_AUTO_OFFSET): Remove.
36351         (DEBUGGER_ARG_OFFSET): Remove.
36352
36353         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
36354         Emit register stores with the same offsets as the hardware.
36355         (mn10300_store_multiple_operation): Don't check that the register
36356         save offsets are monotonic.
36357         * config/mn10300/mn10300-protos.h: Update.
36358
36359         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
36360
36361         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
36362         in terms of the value on the stack, not the MDR register.
36363
36364 2011-01-11  Jan Hubicka  <jh@suse.cz>
36365
36366         PR lto/45721
36367         PR lto/45375
36368         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
36369         (symbol_alias_set_destroy, symbol_alias_set_contains,
36370         propagate_aliases_backward): Declare.
36371         * lto-streamer-out.c (struct sets): New sturcture.
36372         (trivally_defined_alias): New function.
36373         (output_alias_pair_p): Rewrite.
36374         (output_unreferenced_globals): Fix output of alias pairs.
36375         (produce_symtab): Likewise.
36376         * ipa.c (function_and_variable_visibility): Set weak alias destination
36377         as needed in lto.
36378         * varasm.c (symbol_alias_set_t): Remove.
36379         (symbol_alias_set_destroy): Export.
36380         (propagate_aliases_forward, propagate_aliases_backward): New functions
36381         based on ...
36382         (compute_visible_aliases): ... this one; remove.
36383         (trivially_visible_alias): New
36384         (trivially_defined_alias): New.
36385         (remove_unreachable_alias_pairs): Rewrite.
36386         (finish_aliases_1): Reorganize code checking if alias is defined.
36387         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
36388         in LTO mode.
36389
36390 2011-01-11  Richard Guenther  <rguenther@suse.de>
36391
36392         PR tree-optimization/46076
36393         * tree-ssa.c (useless_type_conversion_p): Conversions from
36394         unprototyped to empty argument list function types are useless.
36395
36396 2011-01-11  Richard Guenther  <rguenther@suse.de>
36397
36398         PR middle-end/45235
36399         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
36400         volatile MEMs as MEM_READONLY_P.
36401
36402 2011-01-11  Richard Guenther  <rguenther@suse.de>
36403
36404         PR tree-optimization/47239
36405         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
36406
36407 2011-01-11  Jeff Law  <law@redhat.com>
36408
36409         PR tree-optimization/47086
36410         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
36411         IVs from statements that might throw.
36412
36413 2011-01-10  Jan Hubicka  <jh@suse.cz>
36414
36415         PR lto/45375
36416         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
36417
36418 2011-01-10  Jan Hubicka  <jh@suse.cz>
36419
36420         PR lto/45375
36421         * profile.c (read_profile_edge_counts): Ignore profile inconistency
36422         when correcting profile.
36423
36424 2011-01-10  Jan Hubicka  <jh@suse.cz>
36425
36426         PR lto/46083
36427         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
36428         DECL_FINI_PRIORITY.
36429         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
36430         Restore DECL_FINI_PRIORITY.
36431
36432 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36433
36434         * doc/gimple.texi: Fix quoting of multi-word return values in
36435         @deftypefn statements.  Ensure presence of return value.  Wrap
36436         overlong @deftypefn lines.
36437         (is_gimple_operand, is_gimple_min_invariant_address): Remove
36438         descriptions of removed functions.
36439         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
36440         of multi-word return value in @deftypefn statement.
36441
36442 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36443
36444         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
36445         (Conditional Expressions, Logical Operators)
36446         (Statement and operand traversals): Do not indent smallexample
36447         code.  Fix duplicate function argument in example.
36448
36449 2011-01-10  Jeff Law  <law@redhat.com>
36450
36451         PR tree-optimization/47141
36452         * ipa-split.c (split_function): Handle case where we are
36453         returning a value and the return block has a virtual operand phi.
36454
36455 2011-01-10  Jan Hubicka  <jh@suse.cz>
36456
36457         PR tree-optimization/47234
36458         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
36459         (pass_feedback_split_functions): Declare.
36460         * passes.c (init_optimization_passes): Add ipa-split as subpass of
36461         tree-profile.
36462         * ipa-split.c (gate_split_functions): Update comments; disable
36463         split-functions for profile_arc_flag and branch_probabilities.
36464         (gate_feedback_split_functions): New function.
36465         (execute_feedback_split_functions): New function.
36466         (pass_feedback_split_functions): New global var.
36467
36468 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
36469
36470         PR lto/46760
36471         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
36472         calling gimple_call_set_cannot_inline.
36473
36474 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
36475
36476         * config/darwin-sections.def: Remove unused section.
36477
36478 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
36479
36480         PR c++/47218
36481         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
36482
36483 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
36484
36485         PR objc/47232
36486         * c-parser.c (c_parser_declaration_or_fndef): Improved
36487         error message.
36488
36489 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
36490
36491         * config/i386/winnt.c (i386_pe_start_function): Make sure
36492         to switch back to function's section.
36493
36494 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
36495
36496         PR gcc/46902
36497         PR testsuite/46912
36498         * plugin.c: Move include of dlfcn.h from here...
36499         * system.h: ... to here.
36500
36501 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36502
36503         * doc/cpp.texi (C++ Named Operators): Fix markup for header
36504         file name.
36505         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
36506         two extra empty pages in PDF output.
36507
36508 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
36509
36510         PR objc/47078
36511         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
36512         for error recovery purposes behave as if it was not specified so
36513         that the default type is usd.
36514
36515 2011-01-07  Jan Hubicka  <jh@suse.cz>
36516
36517         PR tree-optmization/46469
36518         * ipa.c (function_and_variable_visibility): Clear needed flags on
36519         nodes with external decls; handle weakrefs merging correctly.
36520
36521 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
36522
36523         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
36524         not false.
36525
36526 2011-01-07  Jan Hubicka  <jh@suse.cz>
36527
36528         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
36529         and no longer claim that gold is required for linker plugin.
36530         * configure: Regenerate.
36531         * gcc.c (PLUGIN_COND): New macro.
36532         (LINK_COMMAND_SPEC): Use it.
36533         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
36534         * config.in (HAVE_LTO_PLUGIN): New.
36535         * configure.ac (--with-lto-plugin): New parameter; autodetect
36536         HAVE_LTO_PLUGIN.
36537
36538 2011-01-07  Jan Hubicka  <jh@suse.cz>
36539
36540         PR tree-optimization/46367
36541         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
36542         when we can update original.
36543         (cgraph_mark_inline_edge): Sanity check.
36544         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
36545
36546 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
36547
36548         * config/spu/spu.h (ASM_COMMENT_START): Define.
36549
36550 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
36551
36552         PR driver/42445
36553         * gcc.c (%>S): New.
36554         (SWITCH_KEEP_FOR_GCC): Likewise.
36555         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
36556         (do_spec_1): Handle "%>".
36557
36558         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
36559
36560 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
36561
36562         PR target/47201
36563         * config/i386/i386.c (ix86_delegitimize_address): If
36564         simplify_gen_subreg fails, return orig_x.
36565
36566         PR bootstrap/47187
36567         * value-prof.c (gimple_stringop_fixed_value): Handle
36568         lhs of the call properly.
36569
36570 2011-01-07  Jan Hubicka  <jh@suse.cz>
36571
36572         PR lto/45375
36573         * lto-opt.c (lto_reissue_options): Set flag_shlib.
36574
36575 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
36576
36577         * target.def (function_switched_text_sections): New hook.
36578         * doc/tm.texi: Regenerated.
36579         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
36580         * final.c (default_function_switched_text_sections): New.
36581         (final_scan_insn): Call function_switched_text_sections when a
36582         mid-function section change occurs.
36583         * output.h (default_function_switched_text_sections): Declare.
36584         * config/darwin-protos.h (darwin_function_switched_text_sections):
36585         Likewise.
36586         * config/darwin.c (darwin_function_switched_text_sections): New.
36587         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
36588
36589 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
36590
36591         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
36592         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
36593         the secondary code fragment when outputting for DWARF == 2.
36594
36595 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
36596
36597         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
36598         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
36599         Remove.
36600         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
36601         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
36602
36603 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
36604
36605         PR debug/46704
36606         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
36607         when it is not empty.
36608
36609 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
36610
36611         Bobcat Enablement
36612         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
36613         (case ${target}): Add btver1.
36614         * config/i386/driver-i386.c (host_detect_local_cpu): Let
36615         -march=native recognize btver1 processors.
36616         * config/i386/i386-c.c (ix86_target_macros_internal): Add
36617         btver1 def_and_undef
36618         * config/i386/i386.c (struct processor_costs btver1_cost): New
36619         btver1 cost table.
36620         (m_BTVER1): New definition.
36621         (m_AMD_MULTIPLE): Includes m_BTVER1.
36622         (initial_ix86_tune_features): Add btver1 tune.
36623         (processor_target_table): Add btver1 entry.
36624         (static const char *const cpu_names): Add btver1 entry.
36625         (software_prefetching_beneficial_p): Add btver1.
36626         (ix86_option_override_internal): Add btver1 instruction sets.
36627         (ix86_issue_rate): Add btver1.
36628         (ix86_adjust_cost): Add btver1.
36629         * config/i386/i386.h (TARGET_BTVER1): New definition.
36630         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
36631         (enum processor_type): Add PROCESSOR_BTVER1.
36632         * config/i386/i386.md (define_attr "cpu"): Add btver1.
36633
36634 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36635
36636         PR target/43309
36637         * config/i386/i386.c (legitimize_tls_address)
36638         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
36639         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
36640         (tls_initial_exec_64_sun): New pattern.
36641
36642 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
36643
36644         * doc/invoke.texi (Overall Options): Improve wording and markup
36645         of the description of -wrapper.
36646
36647 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
36648
36649         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
36650         rdynamic, threads): New Driver options.
36651
36652 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36653
36654         PR target/38118
36655         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
36656         if coming from .tdata.
36657         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
36658
36659 2011-01-06  Jan Hubicka  <jh@suse.cz>
36660
36661         PR lto/47188
36662         * collect2.c (main): Do not enable LTOmode when plugin is active.
36663
36664 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36665
36666         PR other/45915
36667         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
36668         --version output if supported.
36669         * configure: Regenerate.
36670
36671 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
36672
36673         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
36674         Driver options.
36675
36676 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
36677
36678         PR c/47150
36679         * c-convert.c (convert): When converting a complex expression
36680         other than COMPLEX_EXPR to a different complex type, ensure
36681         c_save_expr is called instead of save_expr, unless in_late_binary_op.
36682         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
36683         when converting COMPLEX_TYPE.
36684
36685 2011-01-06  Ira Rosen  <irar@il.ibm.com>
36686
36687         PR tree-optimization/47139
36688         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
36689         only the last reduction value is used outside the loop.  Update
36690         documentation.
36691
36692 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
36693
36694         * config/rtems.opt: New.
36695         * config.gcc (*-*-rtems*): Use rtems.opt.
36696
36697 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
36698
36699         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
36700         processors do not support 3DNow instructions.
36701
36702 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
36703
36704         * config/spu/spu.c (spu_option_override): Set parameter
36705         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
36706
36707 2011-01-05  Jan Hubicka  <jh@suse.cz>
36708
36709         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
36710         at the command line.
36711
36712 2011-01-05  Martin Jambor  <mjambor@suse.cz>
36713
36714         PR lto/47162
36715         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
36716         deltas on streamed outgoing edges.
36717         (output_node_opt_summary): Output info for outgoing edges only when
36718         the node is in new parameter set.
36719         (output_cgraph_opt_summary): New parameter set, passed to the two
36720         aforementioned functions.  Update its forward declaration and its
36721         callee too.
36722
36723 2011-01-05  Tom Tromey  <tromey@redhat.com>
36724
36725         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
36726         operator to c_finish_omp_atomic.
36727         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
36728         (build_unary_op): Update.
36729         (build_modify_expr): Update.
36730         (build_asm_expr): Update.
36731
36732 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
36733
36734         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
36735         newly inserted insns.
36736         (pad_bb): Likewise.
36737         (spu_emit_branch_hint): Likewise.
36738         (insert_hbrp_for_ilb_runout): Likewise.
36739         (spu_machine_dependent_reorg): Call df_finish_pass after
36740         schedule_insns returns.
36741
36742 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
36743
36744         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
36745
36746 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
36747
36748         PR tree-optimization/47005
36749         * tree-sra.c (struct access): Add 'non_addressable' bit.
36750         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
36751         (decide_one_param_reduction): Return 0 if the parameter is passed by
36752         reference and one of the accesses in the group is non_addressable.
36753
36754 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
36755
36756         PR tree-optimization/47056
36757         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
36758         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
36759         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
36760
36761 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
36762
36763         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
36764         initializer.  Skip view conversions from aggregate types.
36765
36766 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
36767
36768         PR bootstrap/47055
36769         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
36770
36771 2011-01-04  Philipp Thomas  <pth@suse.de>
36772
36773         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
36774         obvious typo.
36775
36776 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
36777
36778         * function.c (thread_prologue_and_epilogue_insns): Do not crash
36779         on empty epilogue sequences.
36780
36781 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
36782
36783         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
36784         non-static): New Driver options.
36785
36786 2011-01-04  Jie Zhang  <jie@codesourcery.com>
36787
36788         PR driver/47137
36789         * gcc.c (default_compilers[]): Set combinable field to 0
36790         for all assembly languages.
36791
36792 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
36793
36794         * config/mips/loongson3a.md: New file.
36795         * config/mips/mips.md: Include loongson3a.md.
36796         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
36797         TUNE_LOONGSON_3A.
36798
36799 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
36800
36801         PR middle-end/47017
36802         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
36803         instead of convert_memory_address_addr_space on the base expression.
36804
36805 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
36806
36807         * config/spu/spu.c (spu_option_override): Update error text
36808         for bad -march= / -mtune= values.
36809
36810 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
36811
36812         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
36813         if branch-hint optimization will be performed.
36814
36815 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
36816
36817         PR tree-optimization/47148
36818         * ipa-split.c (split_function): Convert arguments to
36819         DECL_ARG_TYPE if possible.
36820
36821         PR tree-optimization/47155
36822         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
36823         when computing uns.
36824
36825         PR rtl-optimization/47157
36826         * combine.c (try_combine): If undobuf.other_insn becomes
36827         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
36828         and set *new_direct_jump_p too.
36829
36830 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
36831
36832         PR tree-optimization/47021
36833         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
36834
36835 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
36836
36837         * gcc.c (process_command): Update copyright notice dates.
36838         * gcov.c (print_version): Likewise.
36839         * gcov-dump.c (print_version): Likewise.
36840         * mips-tfile.c (main): Likewise.
36841         * mips-tdump.c (main): Likewise.
36842
36843 2011-01-03  Martin Jambor  <mjambor@suse.cz>
36844
36845         PR tree-optimization/46801
36846         * tree-sra.c (type_internals_preclude_sra_p): Check whether
36847         aggregate fields start at byte boundary instead of the bit-field flag.
36848
36849 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
36850
36851         PR driver/47137
36852         * gcc.c (main): Revert revision 168407.
36853
36854 2011-01-03  Martin Jambor  <mjambor@suse.cz>
36855
36856         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
36857
36858 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
36859
36860         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
36861         vector optab to expand vector/scalar shift, update gimple to vector.
36862
36863 2011-01-03  Martin Jambor  <mjambor@suse.cz>
36864
36865         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
36866         a thunk.
36867
36868 2011-01-03  Martin Jambor  <mjambor@suse.cz>
36869
36870         PR tree-optimization/46984
36871         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
36872         HOST_WIDE_INT.
36873         (cgraph_create_indirect_edge): Fixed line length.
36874         (cgraph_indirect_call_info): Declare.
36875         (cgraph_make_edge_direct) Update declaration.
36876         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
36877         (cgraph_create_indirect_edge): Use it.
36878         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
36879         callees.
36880         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
36881         the new thunk_delta representation.
36882         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
36883         HOST_WIDE_INT.
36884         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
36885         (ipa_read_indirect_edge_info): Likewise.
36886         * lto-cgraph.c (output_edge_opt_summary): New function.
36887         (output_node_opt_summary): Call it on all outgoing edges.
36888         (input_edge_opt_summary): New function.
36889         (input_node_opt_summary): Call it on all outgoing edges.
36890
36891 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
36892
36893         PR driver/47137
36894         * gcc.c (main): Don't check have_o when settting combine_inputs.
36895
36896 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
36897
36898         * regrename.c: Add general comment describing the pass.
36899         (struct du_head): Remove 'length' field.
36900         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
36901         (regrename_optimize): Do not sort chains.  Rework comments, add others.
36902         Force renaming to the preferred class (if any) in the first pass and do
36903         not consider registers that belong to it in the second pass.
36904         (create_new_chain): Do not set 'length' field.
36905         (scan_rtx_reg): Likewise.
36906
36907 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
36908
36909         PR tree-optimization/47140
36910         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
36911         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
36912         to bit_value_binop.
36913
36914         PR rtl-optimization/47028
36915         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
36916         parm_birth_insn instead of at the beginning of first bb.
36917
36918 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
36919
36920         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
36921         Remove the word "see" before "@pxref".
36922         * doc/rtl.texi: Remove the word "see" before "@pxref".
36923
36924 2011-01-01  Jan Hubicka  <jh@suse.cz>
36925
36926         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
36927         memory.
36928
36929 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
36930
36931         PR target/38662
36932         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
36933
36934 \f
36935 Copyright (C) 2011 Free Software Foundation, Inc.
36936
36937 Copying and distribution of this file, with or without modification,
36938 are permitted in any medium without royalty provided the copyright
36939 notice and this notice are preserved.