OSDN Git Service

PR target/50493
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-11-19  Richard Earnshaw  <rearnsha@arm.com>
2
3         PR target/50493
4         * arm.c (neon_disambiguate_copy): Correctly handle partial overlap
5         of src and dest operands.
6
7 2011-11-19  Iain Sandoe  <iains@gcc.gnu.org>
8
9         * config/darwin.h (ASM_DEBUG_SPEC): New.
10         * config/darwin9.h (ASM_DEBUG_SPEC): New.
11
12 2011-11-18  Jan Hubicka  <jh@suse.cz>
13
14         * config/i386/i386.c (atom_cost): Disable SSE loop until alignment
15         issues are fixed.
16
17 2011-11-18  Anatoly Sokolov  <aesok@post.ru>
18
19         * config/cris/cris.c (cris_function_value_regno_p): Make static.
20         (TARGET_FUNCTION_VALUE_REGNO_P): Define.
21         * config/cris/cris.h (FUNCTION_VALUE_REGNO_P): Remove.
22         * config/cris/cris-protos.h (cris_function_value_regno_p): Remove.
23
24 2011-11-18  H.J. Lu  <hongjiu.lu@intel.com>
25
26         PR target/33944
27         * doc/extend.texi: Document __builtin_ia32_movnti64.
28
29         * config/i386/emmintrin.h (_mm_stream_si64): New.
30
31         * config/i386/i386-builtin-types.def: Add VOID_FTYPE_PLONGLONG_LONGLONG.
32
33         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTI64.
34         (bdesc_special_args): Update __builtin_ia32_movnti.  Add
35         __builtin_ia32_movnti64.
36         (ix86_expand_special_args_builtin): Handle
37         VOID_FTYPE_PLONGLONG_LONGLONG.
38
39         * config/i386/i386.md (UNSPEC_MOVNTI): New.
40
41         * config/i386/sse.md (sse2_movntsi): Renamed to ...
42         (sse2_movnti<mode>): This.
43
44 2011-11-18  Georg-Johann Lay  <avr@gjlay.de>
45
46         PR target/49868
47         * config/avr/avr.h (base_arch_s): Add field n_segments.
48         (ADDR_SPACE_PGM1, ADDR_SPACE_PGM2, ADDR_SPACE_PGM3,
49         ADDR_SPACE_PGM4, ADDR_SPACE_PGM5, ADDR_SPACE_PGMX): New address spaces.
50         (AVR_HAVE_ELPM, AVR_HAVE_ELPMX): New defines.
51         (INIT_EXPANDERS): New define.
52         * config/avr/avr-protos.h (avr_mem_pgmx_p): New.
53         (avr_init_expanders): New.
54         (avr_emit_movmemhi, avr_out_movmem): New.
55         (avr_xload_libgcc_p): New.
56         * config/avr/avr-c.c (avr_register_target_pragmas): Register
57         address spaces __pgm1, __pgm2,  __pgm3,  __pgm4  __pgm5,  __pgmx.
58         (avr_cpu_cpp_builtins): Add built-in defines __PGM1,
59         __PGM2, __PGM3, __PGM4, __PGM5, __PGMX.
60         * config/avr/avr-devices.c (avr_arch_types): Set field n_segments.
61
62         * config/avr/avr.c (AVR_SECTION_PROGMEM): Change define to cover
63         3 bits instead of just 1.
64         (xstring_empty, xstring_e, rampz_rtx): New static GTYed variables.
65         (progmem_section): Change from section to array of sections.
66         (progmem_section_prefix): New static variable.
67         (avr_file_start): Print set for __RAMPZ__
68         (avr_option_override): Move initialization of RTXes from here...
69         (avr_init_expanders): ...to this new function.
70         (avr_pgm_segment): New static function.
71         (avr_decl_pgm_p): Handle error_mark_node.
72         (avr_mem_pgmx_p, avr_decl_pgmx_p): New static functions.
73         (avr_out_xload, avr_find_unused_d_reg): New static functions.
74         (expand_prologue, expand_epilogue): Use rampz_rtx.
75         (print_operand): Hande CONST_STRING.
76         (avr_xload_libgcc_p): New static function.
77         (avr_out_lpm_no_lpmx, avr_out_lpm): Handle ELPM.
78         (avr_progmem_p): Return 2 for 24-bit flash address space.
79         (avr_out_sbxx_branch): Clean-up code from ASn macros.
80         (out_movqi_r_mr, out_movqi_mr_r): Ditto. And recognize RAMPZ's
81         address and print symbolically.
82         (avr_asm_named_section, avr_section_type_flags,
83         avr_encode_section_info, avr_asm_select_section,
84         avr_addr_space_address_mode, avr_addr_space_pointer_mode,
85         avr_addr_space_legitimate_address_p, avr_addr_space_convert,
86         avr_addr_space_legitimize_address): Handle new address spaces.
87         (avr_output_progmem_section_asm_op): New static function.
88         (avr_asm_init_sections): Initialize progmem_section[].
89         (adjust_insn_length): Handle ADJUST_LEN_XLOAD, ADJUST_LEN_MOVMEM.
90         (avr_const_address_lo16): New static function.
91         (avr_assemble_integer): Use it to handle 3-byte integers.
92         (avr_emit_movmemhi, avr_out_movmem): New functions.
93         
94         * config/avr/predicates.md (nox_general_operand): Handle new
95         address spaces.
96         * config/avr/avr.md (unspec): Add UNSPEC_MOVMEM.
97         (adjust_len): Add xload, movmem.
98         (SP_ADDR): New define_constants.
99         (isa): Add "lpm", "lpmx", "elpm", "elpmx".
100         (enabled): Handle them.
101         (load<mode>_libgcc): New expander.
102         (*load.<mode>.libgcc): Rename to load_<mode>_libgcc.
103         (xload8_A, xload<mode>_A): New insn-and-splits.
104         (xload_8, xload_<mode>_libgcc, xload_<mode>, loadmem_elpm): New insns.
105         (mov<mode>): Handle new address spaces.
106         (movmemhi): Rewrite using avr_emit_movmemhi.
107         (MOVMEM_r_d): New mode attribute.
108         (movmem_<mode>, movmem_qi_elpm): New insns.
109         (setmemhi, *clrmemqi, *clrmemhi, strlenhi, *strlenhi): Unquote
110         C-code.  Use label instead of hard-coded instrunction lengths.
111
112 2011-11-18  Martin Jambor  <mjambor@suse.cz>
113
114         PR tree-optimization/50605
115         * gimple.c (is_gimple_ip_invariant_address): Also handle MEM_REFs
116         of IPA invariant decls.
117
118 2011-11-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
119
120         * tree-outof-ssa.c (insert_back_edge_copies):  Add call to
121         mark_dfs_back_edges.
122
123 2011-11-18  Iain Sandoe  <iains@gcc.gnu.org>
124
125         PR target/49992
126         * configure.ac: Remove ranlib special-casing for Darwin.
127         * configure: Regenerate.
128
129 2011-11-18  Uros Bizjak  <ubizjak@gmail.com>
130
131         PR tree-optimization/51118
132         * fold-const.c (fold_checksum_tree): Check for TS_TYPED structure
133         before using TREE_TYPE accessor on expr.
134
135 2011-11-17  Jan Hubicka  <jh@suse.cz>
136
137         PR bootstrap/51134
138         * i386.c (atom_cost): Fix 32bit memset description.
139         (expand_set_or_movmem_via_loop_with_iter): Output proper bounds check
140         for epilogue loops.
141         (expand_movmem_epilogue): Handle epilogues up to size 15 w/o producing
142         byte loop.
143         (decide_alg): sse_loop is not useable wthen SSE2 is disabled;
144         when not optimizing always use rep movsb or lincall; do not produce
145         word sized loops when optimizing memset for size (to avoid need
146         for large constants).
147         (ix86_expand_movmem): Get into sync with ix86_expand_setmem;
148         choose unroll factors better; always do 128bit moves when producing
149         SSE loops; do not produce loopy epilogue when size is too small.
150         (promote_duplicated_reg_to_size): Do not look into desired alignments
151         when doing vector expansion.
152         (ix86_expand_setmem): Track better when promoted value is available;
153         choose unroll factors more sanely. Output loopy epilogue only
154         when needed.
155
156 2011-11-17  Steve Ellcey  <sje@cup.hp.com>
157
158         PR middle-end/51144
159         * output.h (fprint_w): Remove.
160         * final.c (fprint_w): Remove.
161         (output_addr_const): Change fprint_w back to fprintf.
162
163 2011-11-17  Andrew Pinski  <apinski@cavium.com>
164
165         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for MIPS.
166
167 2011-11-17  Andrew MacLeod  <amacleod@redhat.com>
168
169         * builtins.c (expand_builtin): Remove 4th parameter representing
170         weak/strong mode when __atomic_compare_exchange becomes a library call.
171
172 2011-11-17  Richard Henderson  <rth@redhat.com>
173
174         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap): Get
175         new pseudo for target after convert_modes.
176         (rs6000_expand_atomic_exchange, rs6000_expand_atomic_op): Likewise.
177
178 2011-11-17  Richard Henderson  <rth@redhat.com>
179
180         * builtins.c (expand_builtin_mem_thread_fence): Remove.
181         (expand_builtin_mem_signal_fence): Remove.
182         (expand_builtin_atomic_thread_fence): Use expand_mem_thread_fence.
183         (expand_builtin_sync_synchronize): Likewise.
184         (expand_builtin_atomic_signal_fence): Use expand_mem_signal_fence.
185         * optabs.c (expand_asm_memory_barrier): Split out from
186         expand_builtin_mem_signal_fence.
187         (expand_mem_thread_fence): New, a combination of code from
188         expand_builtin_mem_thread_fence and expand_builtin_sync_synchronize.
189         (expand_mem_signal_fence): Moved and renamed from
190         expand_builtin_mem_signal_fence.
191         (expand_atomic_exchange): Use expand_mem_thread_fence.
192         (expand_atomic_load, expand_atomic_store): Likewise.
193         * expr.h, optabs.h: Update decls.
194
195 2011-11-17  Bin Cheng  <bin.cheng@arm.com>
196
197         PR rtl-optimization/50663
198         * cprop.c (implicit_set_indexes): New global variable.
199         (insert_set_in_table): Add additional parameter and record implicit
200         set information.
201         (hash_scan_set): Add additional parameter and pass it to above.
202         (hash_scan_insn): Pass false to hash_scan_set.
203         (compute_hash_table_work): Pass true to hash_scan_set.
204         (compute_cprop_data): Add implicit set to AVIN of block which the
205         implicit set is recorded for.
206         (one_cprop_pass): Handle implicit_set_indexes array.
207
208 2011-11-17  Michael Matz  <matz@suse.de>
209
210         PR middle-end/50644
211         PR middle-end/50741
212         * tree-ssa-live.c (mark_all_vars_used_1): Recurse only for decls of
213         current function.
214         (remove_unused_locals): Ditto.
215
216 2011-11-16  Richard Henderson  <rth@redhat.com>
217
218         * config/alpha/alpha.c (alpha_split_compare_and_swap_12): Copy
219         ALIAS_SET_MEMORY_BARRIER when creating a new memory.
220         (alpha_split_atomic_exchange_12): Likewise.
221         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Likewise.
222
223 2011-11-16  Joseph Myers  <joseph@codesourcery.com>
224
225         * config/i386/i386elf.h (PREFERRED_DEBUGGING_TYPE): Remove.
226
227 2011-11-16  David Edelsohn  <dje.gcc@gmail.com>
228
229         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags):
230         Default to minimum alignment if decl is NULL.
231
232 2011-11-16  Uros Bizjak  <ubizjak@gmail.com>
233
234         * config/i386/sse.md (round<mode>2_vec_pack_sfix): Optimize V2DFmode
235         sequence for AVX.
236         (<sse4_1>_round<ssemodesuffix>_vec_pack_sfix<avxsizesuffix>): Ditto.
237
238 2011-11-16  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
239
240         * doc/invoke.texi: Document AMD bdver1 and btver1.
241
242 2011-11-16  Richard Earnshaw  <rearnsha@arm.com>
243             Bernd Schmidt <bernds@coudesourcery.com>
244             Sebastian Huber <sebastian.huber@embedded-brains.de>
245
246         PR target/49641
247         * config/arm/arm.c (store_multiple_sequence): Avoid cases where
248         the base reg is stored iff compiling for Thumb1.
249
250 2011-11-16  Razya Ladelsky  <razya@il.ibm.com>
251
252         PR tree-optimization/49960
253         * tree-data-ref.c (initialize_data_dependence_relation): Add
254         initializations.
255         Remove call to compute_self_dependence.
256         (compute_affine_dependence): Remove the !DDR_SELF_REFERENCE condition.
257         (compute_self_dependence): Remove old code. Add call to
258         compute_affine_dependence.
259         (compute_all_dependences): Remove call to compute_self_dependence.
260         Add call to compute_affine_dependence.
261
262 2011-11-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
263
264         PR middle-end/50325
265         * expmed.c (store_bit_field_1): Use extract_bit_field on big
266         endian targets if the source cannot be exactly covered by word
267         mode chunks.
268
269 2011-11-15  Joseph Myers  <joseph@codesourcery.com>
270
271         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Change STRING_LIMIT to
272         ELF_STRING_LIMIT.
273
274 2011-11-15  Richard Henderson  <rth@redhat.com>
275
276         * config/alpha/alpha.c (alpha_pre_atomic_barrier): New.
277         (alpha_post_atomic_barrier): New.
278         (alpha_split_atomic_op): New memmodel argument; honor it.
279         (alpha_split_compare_and_swap): Take array of operands.  Honor
280         memmodel; always set bool output
281         (alpha_expand_compare_and_swap_12): Similarly.
282         (alpha_split_compare_and_swap_12): Similarly.
283         (alpha_split_atomic_exchange): Similarly.  Rename from
284         alpha_split_lock_test_and_set.
285         (alpha_expand_atomic_exchange_12): Similarly.  Rename from
286         alpha_expand_lock_test_and_set_12.
287         (alpha_split_atomic_exchange_12): Similarly.  Rename from
288         alpha_split_lock_test_and_set_12.
289         * config/alpha/alpha-protos.h: Update.
290         * config/alpha/alpha.md (UNSPECV_CMPXCHG): New.
291         * config/alpha/constraints.md ("w"): New.
292         * config/alpha/predicates.md (mem_noofs_operand): New.
293         * config/alpha/sync.md (atomic_compare_and_swap<mode>): Rename from
294         sync_compare_and_swap<mode>; add the new parameters.
295         (atomic_exchange<mode>): Update from sync_test_and_set<mode>.
296         (atomic_fetch_<op><mode>): Update from sync_old_<op><mode>.
297         (atomic_<op>_fetch<mode>): Update from sync_new_<op><mode>.
298         (atomic_<op><mode>): Update from sync_<op><mode>.
299
300 2011-11-16  Tom de Vries  <tom@codesourcery.com>
301
302         * tree-ssa-tail-merge.c (replace_block_by): Add frequency of bb2 to bb1.
303
304 2011-11-16  Alan Modra  <amodra@gmail.com>
305
306         PR rtl-optimization/51051
307         PR bootstrap/51086
308         * function.c (thread_prologue_and_epilogue_insns): Guard
309         emitting return with single_succ_p test.
310
311 2011-11-15  Joern Rennecke  <joern.rennecke@embecosm.com>
312
313         * config/epiphany/epiphany.md (mov<mode>cc): Fix code to
314         get mode from CMP_OP1 if CMP_OP0 is VOIDmode.
315
316 2011-11-15  Uros Bizjak  <ubizjak@gmail.com>
317
318         * config/i386/sse.md (vec_pack_trunc_v2df): Optimize sequence for AVX.
319         (vec_pack_sfix_trunc_v2df): Ditto.
320         (vec_pack_sfix_v2df): Ditto.
321         (vec_pack_sfix_trunc_v4df): Generate fix_truncv4dfv4si2 and
322         avx_vec_concatv8si patterns.
323         (vec_pack_sfix_v4df): Generate avx_cvtpd2dq256 and
324         avx_vec_concatv8si patterns.
325
326 2011-11-15  Torvald Riegel  <triegel@redhat.com>
327
328         * c-parser.c (c_parser_transaction_expression): Require parentheses
329         when parsing transaction expressions.
330
331 2011-11-15  Tristan Gingold  <gingold@adacore.com>
332
333         * incpath.c (get_added_cpp_dirs): New function.
334         * incpath.h (get_added_cpp_dirs): Declare.
335         * config/vms/vms-c.c (vms_c_register_includes): New function.
336         (vms_std_modules): New variable.
337         * config/vms/vms.h (TARGET_EXTRA_INCLUDES): Define.
338         (vms_c_register_includes): Declare.
339
340 2011-11-15  Tristan Gingold  <gingold@adacore.com>
341
342         * c-family/c-pragma.h (pragma_extern_prefix): Declare.
343         * c-family/c-pragma.c (pragma_extern_prefix): Make it public.
344         * config/vms/vms-c.c (saved_extern_prefix): New variable.
345         (vms_pragma_extern_prefix): New function.
346         (vms_c_register_pragma): Register vms_pragma_extern_prefix.
347
348 2011-11-15  Georg-Johann Lay  <avr@gjlay.de>
349
350         PR target/49868
351         * config/avr/avr.h (ADDR_SPACE_PGM): New address spaces.
352         (REGISTER_TARGET_PRAGMAS): New define.
353         * config/avr/avr-protos.h (avr_mem_pgm_p): New.
354         (avr_load_libgcc_p): New.
355         (avr_register_target_pragmas): New.
356         (asm_output_external_libcall): Remove.
357         (avr_log_t): Add field "progmem".  Order alphabetically.
358         * config/avr/avr-log.c (avr_log_set_avr_log): Set avr_log.progmem.
359         * config/avr/avr-c.c (langhooks.h): New include.
360         (avr_register_target_pragmas): New function. Register address
361         space __pgm.
362         (avr_cpu_cpp_builtins): Add built-in define __PGM.
363
364         * config/avr/avr.c: Include "c-family/c-common.h".
365         (TARGET_LEGITIMATE_ADDRESS_P): Remove define.
366         (TARGET_LEGITIMIZE_ADDRESS): Remove define.
367         (TARGET_ADDR_SPACE_SUBSET_P): Define to...
368         (avr_addr_space_subset_p): ...this new static function.
369         (TARGET_ADDR_SPACE_CONVERT): Define to...
370         (avr_addr_space_convert): ...this new static function.
371         (TARGET_ADDR_SPACE_ADDRESS_MODE): Define to...
372         (avr_addr_space_address_mode): ...this new static function.
373         (TARGET_ADDR_SPACE_POINTER_MODE): Define to...
374         (avr_addr_space_pointer_mode): ...this new static function.
375         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define to...
376         (avr_addr_space_legitimate_address_p): ...this new static function.
377         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Define to...
378         (avr_addr_space_legitimize_address): ...this new static function.
379         (avr_mode_code_base_reg_class): Handle address spaces.
380         (avr_regno_mode_code_ok_for_base_p): Ditto.
381         (lpm_addr_reg_rtx, lpm_reg_rtx, all_regs_rtx): New static variables.
382         (avr_option_override): Initialize them.
383         (output_reload_in_const): Use all_regs_rtx. Fix signedness of loop
384         variables.
385         (avr_pgm_segment): New static function.
386         (avr_decl_pgm_p, avr_mem_pgm_p): New static functions.
387         (avr_out_lpm, avr_out_lpm_no_lpmx): New static functions.
388         (output_movqi, output_movhi, output_movsisf, avr_out_movpsi): Call
389         avr_out_lpm to handle loads from progmem.
390         (avr_load_libgcc_p): New static function.
391         (avr_progmem_p): Test if decl is in flash.
392         (avr_pgm_pointer_const_p): New static function.
393         (avr_nonconst_pointer_addrspace): New static function.
394         (avr_pgm_check_var_decl): New static function.
395         (avr_insert_attributes): Use it.  Change error message to report
396         cause (progmem or address space) when code wants to write to flash.
397         (avr_section_type_flags): Unset section flag SECTION_BSS for
398         data in progmem.
399
400         * config/avr/predicates.md (nop_general_operand): New predicate.
401         (nox_general_operand): New predicate.
402         * config/avr/avr.md (LPM_REGNO): New define_constant.
403         (load<mode>_libgcc): New expander.
404         (*load.<mode>.libgcc): New insn.
405         (mov<mode>): Handle loads from non-generic AS.
406         (movmemhi): Ditto.  Propagate address space information to newly
407         created MEM.
408         (movqi_insn, *movhi, *movpsi, *movsi, *movsf): Change predicate #1
409         to nox_general_operand.
410         (ashrqi3, ashrhi3, ashrsi3): Change predicate #1 to
411         nop_general_operand.
412         (ashlqi3, *ashlqi3, ashlhi3, ashlsi3): Ditto.
413         (lshrqi3, *lshrqi3, lshrhi3, lshrsi3): Ditto.
414         (split-lpmx): New split.
415         (*ashlhi3_const, *ashlsi3_const, *ashrhi3_const, *ashrsi3_const,
416         *lshrhi3_const, *lshrsi3_const): Indent, unquote C.
417
418 2011-11-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
419
420         * ipa-cp.c (ipa_value_from_jfunc): Make global.
421         (ipa_cst_from_jfunc): Remove, use ipa_value_from_jfunc instead.
422         (get_indirect_edge_target): Rename, make global.
423         (devirtualization_time_bonus, estimate_local_effects,)
424         (ipcp_discover_new_direct_edges): Update.
425         * ipa-inline-analysis.c (evaluate_conditions_for_edge):
426         Generalize to also handle types.  Rename to ...
427         (evaluate_properties_for_edge): Use instead of
428         evaluate_conditions_for_edge.
429         (estimate_edge_devirt_benefit): New function.
430         (estimate_calls_size_and_time): Use it.
431         (estimate_node_size_and_time, estimate_ipcp_clone_size_and_time,)
432         (inline_merge_summary): Update.
433         (do_estimate_edge_time, do_estimate_edge_growth): Update.  Calculate
434         parameter information at the call site and pass it on to subroutines.
435         * tree-inline.c (estimate_num_insns): Distinguish between direct and
436         indirect calls.
437         (init_inline_once): Set size and time costs or indirect calls.
438         * tree-inline.h (eni_weights): Add indirect_call_cost.
439
440 2011-11-15  Tom de Vries  <tom@codesourcery.com>
441
442         PR tree-optimization/51005
443         * tree-ssa-tail-merge.c (delete_basic_block_same_succ): Rename to
444         mark_basic_block_deleted.
445         (update_worklist): Inline purge_bbs.
446         (purge_bbs, unlink_virtual_phi, update_vuses, vop_at_entry)
447         (delete_block_update_dominator_info): Remove.
448         (replace_block_by): Remove update_vops parameter.  Partially evaluate
449         for update_vops == false.
450         (apply_clusters): Remove update_vops parameter.  Remove update_vops
451         argument in replace_block_by call.
452         (update_debug_stmts): Remove MAY_HAVE_DEBUG_STMTS test.
453         (tail_merge_optimize): Remove update_vops argument to apply_clusters.
454         Remove call to purge_bbs.  Add calls to calculate_dominance_info and
455         free_dominance_info.  Add MAY_HAVE_DEBUG_STMTS  before calling
456         update_debug_stmts.  Mark vop var for renaming, if necessary.
457
458 2011-11-15  Bernd Schmidt  <bernds@codesourcery.com>
459
460         PR rtl-optimization/51051
461         * cfgrtl.c (cfg_layout_can_merge_blocks_p): Return FALSE if the
462         move would cause fallthrough into the exit block.
463
464 2011-11-14  Richard Henderson  <rth@redhat.com>
465
466         * config/rs6000/rs6000.c (emit_load_locked): Assert the mode is
467         handled.
468         (emit_store_conditional): Likewise.
469         (rs6000_pre_atomic_barrier, rs6000_post_atomic_barrier): New.
470         (rs6000_adjust_atomic_subword): New.
471         (rs6000_mask_atomic_subword, rs6000_finish_atomic_subword): New.
472         (rs6000_expand_atomic_op): Rename from rs6000_emit_sync; rewrite
473         for pre-reload expansion.
474         (rs6000_split_compare_and_swap, rs6000_split_compare_and_swapqhi,
475         rs6000_expand_compare_and_swapqhi): Merge into ...
476         (rs6000_expand_atomic_compare_and_swap): ... here.  New function.
477         rs6000_split_lock_test_and_set; expand immediately.  Handle
478         QImode and HImode.
479         * config/rs6000/rs6000.md (UNSPEC_LWSYNC): Move and rename
480         from UNSPECV_LWSYNC.
481         * config/rs6000/sync.md (fetchopsi_constr, fetchopdi_constr): Remove.
482         (mem_thread_fence): New.
483         (hwsync): Rename from memory_barrier.
484         (*hwsync): Rename from *sync_internal.
485         (lwsync, *lwsync): Mirror hwsync implementation.
486         (isync): Don't reference memory.
487         (loadsync): New.
488         (atomic_load<INT>, atomic_store<INT>): New.
489         (ATOMIC): New mode iterator.
490         (load_locked<ATOMIC>): Rename from load_locked_<GPR>.
491         (store_conditional<ATOMIC>): Rename from store_conditional_<GPR>.
492         (sync_compare_and_swap<GPR>): Remove.
493         (sync_compare_and_swaphi, sync_compare_and_swapqi): Remove.
494         (sync_compare_and_swapqhi_internal): Remove.
495         (sync_lock_test_and_set<GPR>): Remove.
496         (sync_<FETCHOP><INT1>): Remove.
497         (*sync_<FETCHOP>si_internal, *sync_<FETCHOP>di_internal): Remove.
498         (sync_nand<INT1>, *sync_nand<GPR>_internal): Remove.
499         (sync_old_<FETCHOP><GPR>): Remove.
500         (*sync_old_<FETCHOP>si_internal): Remove.
501         (*sync_old_<FETCHOP>di_internal): Remove.
502         (sync_old_nand<INT1>): Remove.
503         (*sync_old_nand<GPR>_internal): Remove.
504         (sync_new_<FETCHOP><GPR>): Remove.
505         (*sync_new_<FETCHOP>si_internal): Remove.
506         (*sync_new_<FETCHOP>di_internal): Remove.
507         (sync_new_nand<INT1>): Remove.
508         (*sync_new_nand<GPR>_internal): Remove.
509         (*atomic_andsi, *atomic_anddi): Remove.
510         (*sync_addshort_internal, *sync_subshort_internal): Remove.
511         (*sync_andsi_internal, *sync_boolsi_internal): Remove.
512         (*sync_boolcshort_internal): Remove.
513         (sync_lock_release<INT1>): Remove.
514         (atomic_compare_and_swap<INT1>): New.
515         (atomic_exchange<INT1>): New.
516         (atomic_<FETCHOP><INT1>, atomic_nand<INT1>): New.
517         (atomic_fetch_<FETCHOP><INT1>, atomic_fetch_nand<INT1>): New.
518         (atomic_<FETCHOP>_fetch<INT1>, atomic_nand_fetch<INT1>): New.
519
520 2011-11-14  Uros Bizjak  <ubizjak@gmail.com>
521
522         * config/i386/sse.md (round<mode>2): Use register_operand for
523         operand 1 predicate.
524         (round<mode>2_sfix): Ditto.
525         (round<mode>2_vec_pack_sfix): Ditto for operand 1 and operand 2.
526
527 2011-11-14  Nathan Sidwell  <nathan@acm.org>
528
529         * gcov.c (canonicalize_name): Protect use of S_ISLNK.
530
531 2011-11-14  Jan Hubicka  <jh@suse.cz>
532
533         PR target/51126
534         * config/i386/i386.c (core cost model): Correct pasto.
535
536 2011-11-14  Uros Bizjak  <ubizjak@gmail.com>
537
538         * config/i386/sse.md (round<mode>2_sfix): New expander.
539         (round<mode>2_vec_pack_sfix): Ditto.
540         (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
541         (<sse4_1>_round<ssemodesuffix>_vec_pack_sfix<avxsizesuffix>): Ditto.
542         * config/i386/builtin-types.def (V4SI_FTYPE_V4SF_ROUND,
543         V8SI_FTYPE_V8SF_ROUND, V4SI_FTYPE_V2DF_V2DF_ROUND,
544         V8SI_FTYPE_V4DF_V4DF_ROUND): New builtin types.
545         * config/i386/i386.c (ix86_builtins): Add
546         IX86_BUILTIN_{FLOORPD,CEILPD,ROUNDPD_AZ}_VEC_PACK_SFIX{,256} and
547         IX86_BUILTIN_{FLOORPS,CEILPS,ROUNDPS_AZ}_SFIX{,256} defines.
548         (bdesc_args): Add __builtin_ia32_{floorpd,ceilpd}_vec_pack_sfix{,256},
549         __builtin_ia32_roundpd_az_vec_pack_sfix{,256},
550         __builtin_ia32_{floorps,ceilps}_sfix{,256}and
551         __builtin_ia32_roundps_az_sfix{,256} descriptions.
552         (ix86_expand_sse_round_vec_pack_sfix): New.
553         (ix86_expand_args_builtin): Handle V4SI_FTYPE_V4SF_ROUND,
554         V8SI_FTYPE_V8SF_ROUND, V4SI_FTYPE_V2DF_V2DF_ROUND and
555         V8SI_FTYPE_V4DF_V4DF_ROUND types.  Check last argument of
556         CODE_FOR_sse4_1_roundpd_vec_pack_sfix, CODE_FOR_sse4_1_roundps_sfix,
557         CODE_FOR_avx_roundpd_vec_pack_sfix256 and CODE_FOR_avx_roundps_sfix256.
558         (ix86_builtin_vectorized_function): Handle
559         BUILT_IN_{I,L,LL}FLOOR{,F}, BUILT_IN_{I,L,LL}CEIL{,F} and
560         BUILT_IN_{I,L,LL}ROUND{,F}
561
562 2011-11-14  Jan Hubicka  <jh@suse.cz>
563
564         PR middle-end/50598
565         * cgraph.h (varpool_externally_visible_p): Declare.
566         (varpool_add_new_variable): Declare.
567         * tree-emultls.c (get_emutls_init_templ_addr,
568         new_emutls_decl): Use varpool_add_new_variable.
569         * ipa.c (varpool_externally_visible_p): Export.
570         * varpool.c (varpool_add_new_variable): New function.
571
572 2011-11-14  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
573             Jan Hubicka  <jh@suse.cz>
574
575         * config/i386/i386.h (processor_costs): Add second dimension to
576         stringop_algs array.
577         * config/i386/i386.c (cost models): Initialize second dimension of
578         stringop_algs arrays.
579         (core_cost): New costs based on generic64 costs with updated stringop
580         values.
581         (promote_duplicated_reg): Add support for vector modes, add
582         declaration.
583         (promote_duplicated_reg_to_size): Likewise.
584         (processor_target): Set core costs for core variants.
585         (expand_set_or_movmem_via_loop_with_iter): New function.
586         (expand_set_or_movmem_via_loop): Enable reuse of the same iters in
587         different loops, produced by this function.
588         (emit_strset): New function.
589         (expand_movmem_epilogue): Add epilogue generation for bigger sizes,
590         use SSE-moves where possible.
591         (expand_setmem_epilogue): Likewise.
592         (expand_movmem_prologue): Likewise for prologue.
593         (expand_setmem_prologue): Likewise.
594         (expand_constant_movmem_prologue): Likewise.
595         (expand_constant_setmem_prologue): Likewise.
596         (decide_alg): Add new argument align_unknown.  Fix algorithm of
597         strategy selection if TARGET_INLINE_ALL_STRINGOPS is set; Skip sse_loop
598         (decide_alignment): Update desired alignment according to chosen move
599         mode.
600         (ix86_expand_movmem): Change unrolled_loop strategy to use SSE-moves.
601         (ix86_expand_setmem): Likewise.
602         (ix86_slow_unaligned_access): Implementation of new hook
603         slow_unaligned_access.
604         * config/i386/i386.md (strset): Enable half-SSE moves.
605         * config/i386/sse.md (vec_dupv4si): Add expand for vec_dupv4si.
606         (vec_dupv2di): Add expand for vec_dupv2di.
607
608 2011-11-14  Dimitrios Apostolou  <jimis@gmx.net>
609
610         PR bootstrap/51094
611         PR middle-end/51116
612         * config/elfos.h (TARGET_ASM_INTERNAL_LABEL): Remove.
613         * varasm.c (default_elf_internal_label): Remove.
614
615 2011-11-14  Kai Tietz  <ktietz@redhat.com>
616
617         * gcov.c (generate_results): Add missing semicolon and correct indent.
618
619 2011-11-14  Ira Rosen  <ira.rosen@linaro.org>
620
621         PR bootstrap/51112
622         * tree-vect-stmts.c (vectorizable_condition): Initialize comp_vectype.
623
624 2011-11-14  Mingjie Xing  <mingjie.xing@gmail.com>
625
626         * doc/invoke.texi (Wunused-result): Change @pxref{Variable Attributes}
627         to @pxref{Function Attributes}.
628
629 2011-11-13  Oleg Endo  <oleg.endo@t-online.de>
630
631         PR target/50694
632         * config/sh/sh.h (IS_LITTLE_ENDIAN_OPTION, UNSUPPORTED_SH2A):
633         New macros.
634         (DRIVER_SELF_SPECS): Use new macros to filter out unsupported options
635         taking the default configuration into account.
636
637 2011-11-13  Jonathan Wakely  <jwakely.gcc@gmail.com>
638
639         * doc/install.texi (Specific): Fix anchor for
640         x86_64-*-solaris2.1[0-9]*.
641
642 2011-11-13  Nathan Sidwell  <nathan@acm.org>
643
644         * gcov.c (source_prefix, source_length): New globals.
645         (flag_relative_only): Likewise.
646         (print_usage, options, process_args): Update.
647         (generate_results): Use coverage.name, check
648         flag_relative_only. Adjust messages.
649         (find_source): Check source_prefix.
650         (output_lines): Use coverage.name, adjust messages.
651         * doc/gcov.texi (Invoking Gcov): Document new options.
652
653 2011-11-12  Jason Merrill  <jason@redhat.com>
654
655         PR c++/51060
656         * gimplify.c (gimplify_target_expr): Add a clobber to the cleanup.
657         (gimplify_modify_expr): Don't try to simplify it.
658
659 2011-11-12  Dimitrios Apostolou  <jimis@gmx.net>
660
661         PR bootstrap/51094
662         * config/elfos.h (STRING_ASM_OP): Define.
663         * varasm.c (default_elf_asm_output_limited_string): Use it.
664
665         PR bootstrap/51094
666         * gcc/configure.ac: Check for stpcpy declaration.
667         * system.h: Declare it if not.
668         * config.in, configure: Regenerate.
669
670 2011-11-12  Richard Henderson  <rth@redhat.com>
671
672         * config/rs6000/rs6000.md (fix_trunc<SFDF>si2_stfiwx): Use
673         nonimmediate_operand for the destination.
674         (fixuns_trunc<SFDF>si2_stfiwx): Likewise.
675
676         * builtins.c (expand_builtin_compare_and_swap): If target is const0,
677         don't pass the target to expand_atomic_compare_and_swap.
678         (expand_builtin_atomic_compare_exchange): Likewise.
679
680         * config/sh/linux.h (TARGET_INIT_LIBFUNCS): New.
681         * config/sh/sh.c (sh_init_sync_libfuncs): New.
682
683         * config/pa/pa-linux.h (TARGET_SYNC_LIBCALL): New.
684         * config/pa/pa.h (TARGET_SYNC_LIBCALL): New default.
685         * config/pa/pa.c (pa_init_libfuncs): Use init_sync_libfuncs.
686
687 2011-11-12  Iain Sandoe  <iains@gcc.gnu.org>
688
689         PR target/45233
690         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
691         Only expand a symbol ref. into an access when the entity is defined
692         in the TU.
693
694 2011-11-12  Jan Hubicka  <jh@suse.cz>
695
696         PR bootstrap/50822
697         * cgraphunit.c (output_weakrefs): Output really only weakrefs.
698
699 2011-11-12  Nathan Sidwell  <nathan@acm.org>
700
701         * gcov.c (struct name_map): New.
702         (names, n_names, a_names): New global vars.
703         (print_usage): Adjust usage.
704         (generate_results): Canonicalize main file name.
705         (release_structures): Adjust.
706         (name_search, name_sort): New callbacks.
707         (find_source): Look for and create a canonical name.
708         (canonicalize_name): New.
709         (make_gcov_file_name): Reimplement and fix mangling.
710         (mangle_name): New.
711         * doc/gcov.texi: Update documentation about path preservation.
712
713 2011-11-11  David S. Miller  <davem@davemloft.net>
714
715         * config/sparc/linux.h (ASM_GENERATE_INTERNAL_LABEL): Delete.
716         * config/sparc/linux64.h (ASM_GENERATE_INTERNAL_LABEL): Delete.
717
718 2011-11-11  Jakub Jelinek  <jakub@redhat.com>
719
720         * config/i386/i386-protos.h (ix86_maybe_emit_epilogue_vzeroupper):
721         New prototype.
722         * config/i386/i386.c (ix86_maybe_emit_epilogue_vzeroupper): New
723         function.
724         (ix86_expand_epilogue): Use it.
725         * config/i386/i386.md (return, simple_return): Call it in the
726         expanders.
727
728         PR tree-optimization/51091
729         * tree-stdarg.c (execute_optimize_stdarg): Ignore TREE_CLOBBER_P
730         rhs also in the va_list_simple_ptr case.
731
732         PR tree-optimization/51058
733         * tree-vect-slp.c (vect_remove_slp_scalar_calls): New function.
734         (vect_schedule_slp): Call it.
735         * tree-vect-stmts.c (vectorizable_call): If slp_node != NULL,
736         don't replace scalar calls with setting of their lhs to zero here.
737
738         PR tree-optimization/51074
739         * fold-const.c (vec_cst_ctor_to_array, fold_vec_perm): New functions.
740         (fold_binary_loc): Handle VEC_EXTRACT_EVEN_EXPR,
741         VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR and
742         VEC_INTERLEAVE_LOW_EXPR with VECTOR_CST or CONSTRUCTOR operands.
743         (fold_ternary_loc): Handle VEC_PERM_EXPR with VECTOR_CST or
744         CONSTRUCTOR operands.
745         * tree-ssa-propagate.c (valid_gimple_rhs_p): Handle ternary
746         expressions.
747         * tree-vect-generic.c (lower_vec_perm): Mask sel_int elements
748         to 0 .. 2 * elements - 1.
749
750 2011-11-11  Richard Henderson  <rth@redhat.com>
751
752         * gimple-pretty-print.c (dump_gimple_omp_atomic_load): Dump needed.
753         (dump_gimple_omp_atomic_store): Likewise.
754         * optabs.c (can_atomic_exchange_p): New.
755         * optabs.h (can_atomic_exchange_p): Declare.
756         * omp-low.c (expand_omp_atomic_load): Implement.
757         (expand_omp_atomic_store): Likewise.
758         (expand_omp_atomic): Update for new arguments to load/store.
759
760 2011-11-11  Eric Botcazou  <ebotcazou@adacore.com>
761
762         * cprop.c: Adjust outdated comments throughout.
763         (hash_scan_set): Rename PAT parameter into SET.
764         (cprop_pavloc): Rename into...
765         (cprop_avloc): ...this.
766         (cprop_absaltered): Rename into...
767         (cprop_kill): ...this.
768         (alloc_cprop_mem): Adjust for above renaming.
769         (free_cprop_mem): Likewise.
770         (compute_cprop_data): Likewise.
771         (compute_local_properties): Rename TRANSP parameter into KILL and
772         adjust throughout.  Rework comments.
773         (try_replace_reg): Fix long line.
774         (cprop_jump): Likewise.
775         (constprop_register): Fix prototype and take INSN last.
776         (cprop_insn): Adjust calls to above function.  Fix long lines.
777         (bypass_block): Likewise.
778         (one_cprop_pass): Likewise.
779
780 2011-11-11  Uros Bizjak  <ubizjak@gmail.com>
781
782         * config/alpha/elf.h (ELF_ASCII_ESCAPES): Rename from ESCAPES.
783         (ELF_STRING_LIMIT): Rename from STRING_LIMIT.
784
785 2011-11-11  Jason Merrill  <jason@redhat.com>
786
787         * varasm.c (default_elf_asm_output_limited_string): #ifdef
788         ELF_ASCII_ESCAPES.
789         (default_elf_asm_output_ascii): Likewise.
790
791 2011-11-11  Uros Bizjak  <ubizjak@gmail.com>
792
793         PR target/50762
794         * config/i386/constraints.md (j): New address constraint.
795         * config/i386/predicates.md (lea_address_operand): Redefine as
796         special predicate.
797         * config/i386/i386.md (*lea_3_zext): Use "j" constraint for operand 1.
798         (*lea_4_zext): Ditto.
799
800 2011-11-11  David S. Miller  <davem@davemloft.net>
801
802         Revert
803         2011-11-05  David S. Miller  <davem@davemloft.net>
804
805         * config/sparc/sparc.md (UNSPEC_SHORT_LOAD): New unspec.
806         (zero-extend_v8qi_vis, zero_extend_v4hi_vis): New expanders.
807         (*zero_extend_v8qi_<P:mode>_insn,
808         *zero_extend_v4hi_<P:mode>_insn): New insns.
809         * config/sparc/sparc.c (vector_init_move_words,
810         vector_init_prepare_elts, sparc_expand_vector_init_vis2,
811         sparc_expand_vector_init_vis1): New functions.
812         (vector_init_bshuffle): Rewrite to handle more cases and make use
813         of locs[] array prepared by vector_init_prepare_elts.
814         (vector_init_fpmerge, vector_init_faligndata): Delete.
815         (sparc_expand_vector_init): Rewrite using new infrastructure.
816
817 2011-11-11  Jakub Jelinek  <jakub@redhat.com>
818
819         * opts-common.c (generate_canonical_option): Free opt_text
820         it it has been allocated here and not stored anywhere.
821
822         * tree-vect-slp.c (vect_free_slp_tree): Also free SLP_TREE_CHILDREN
823         vector.
824         (vect_create_new_slp_node): Don't allocate node before checking stmt
825         type.
826         (vect_free_oprnd_info): Remove FREE_DEF_STMTS argument, always
827         free def_stmts vectors and additionally free oprnd_info.
828         (vect_build_slp_tree): Adjust callers.  Call it even if
829         stop_recursion.  If vect_create_new_slp_node or
830         vect_build_slp_tree fails, properly handle freeing memory.
831         If it succeeded, clear def_stmts in oprnd_info.
832
833 2011-11-11  Dimitrios Apostolou  <jimis@gmx.net>
834
835         * defaults.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Expand on
836         multiple lines for readability.
837         * output.h (fprint_whex, fprint_w, fprint_ul, sprint_ul): Declare.
838         (ASM_OUTPUT_LABELREF): Call fputs instead of asm_fprintf.
839         * dwarf2asm.c (dw2_assemble_integer, dw2_asm_output_data,
840         dw2_asm_data_uleb128, dw2_asm_delta_uleb128,
841         dw2_asm_delta_sleb128): Convert fprintf calls to the new functions.
842         * dwarf2out.c (dwarf2out_source_line): Call fprint_ul instead of
843         fprintf.
844         * final.c (fprint_whex, fprint_w, fprint_ul, sprint_ul): New functions
845         serving as fast replacements for fprintf integer to string conversions.
846         (sprint_ul_rev): Internal helper for the above.
847         (output_addr_const) <CONST_INT>: Don't use fprintf.
848         * varasm.c: Fix some whitespace inconsistencies.
849         (default_elf_asm_output_limited_string): New.
850         (default_elf_asm_output_ascii): Likewise.
851         (default_elf_internal_label): Likewise.
852         * config/elfos.h (ASM_GENERATE_INTERNAL_LABEL): Use sprint_ul and
853         stpcpy instead of sprintf.
854         (TARGET_ASM_INTERNAL_LABEL): Define as default_elf_internal_label.
855         (ELF_ASCII_ESCAPES, ELF_STRING_LIMIT): Rename from old ESCAPES and
856         STRING_LIMIT macros.
857         (ASM_OUTPUT_LIMITED_STRING, ASM_OUTPUT_ASCII): Call functions that
858         provide the same functionality.
859         * config/i386/i386.c (print_reg): Call fprint_ul instead of fprintf.
860
861 2011-11-10  Andrew MacLeod  <amacleod@redhat.com>
862
863         * doc/extend.texi: Document __atomic_test_and_set and __atomic_clear.
864
865 2011-11-10  Andrew MacLeod  <amacleod@redhat.com>
866
867         PR middle-end/51038
868         * builtins.c (expand_builtin_atomic_clear): New.  Expand atomic_clear.
869         (expand_builtin_atomic_test_and_set): New.  Expand atomic test_and_set.
870         (expand_builtin): Add cases for test_and_set and clear.
871         * sync-builtins.def (BUILT_IN_ATOMIC_TEST_AND_SET): New.
872         (BUILT_IN_ATOMIC_CLEAR): New.
873
874 2011-11-10  Roberto Agostino Vitillo  <ravitillo@lbl.gov>
875
876         PR debug/50983
877         * dwarf2out.c (set_cur_line_info_table): Restore the last is_stmt
878         value in the current line table.
879
880 2011-11-10  Nathan Sidwell  <nathan@acm.org>
881
882         * gcov.c (struct function_info): Make src an index, not a pointer.
883         (struct source_info): Remove index and next source fields.
884         (fn_end): New static var.
885         (sources_index): Remove.
886         (sources): Now a pointer to an array, not a list.
887         (n_sources, a_sources): New.
888         (process_file): Adjust for changes to read_graph_file. Insert
889         functions into source lists and check line numbers here.
890         (generate_results): Only allocate lines for sources with
891         contents.  Adjust for source array.
892         (release_structures): Likewise.
893         (find_source): Return source index, adjust for source array.
894         (read_graph_file): Return function list.  Don't insert into source
895         lists here.
896         (read_count_file): Take list of functions.
897         (solve_flow_graph): Reverse the arc lists here.
898         (add_line_counts): Adjust for source array.
899
900 2011-11-10  Jakub Jelinek  <jakub@redhat.com>
901
902         PR middle-end/51077
903         * tree-object-size.c (addr_object_size): Check TREE_CODE of
904         MEM_REF's operand rather than code of the MEM_REF itself.
905
906 2011-11-10  Andrew MacLeod  <amacleod@redhat.com>
907
908         PR rtl-optimization/51040
909         * optabs.c (expand_atomic_fetch_op): Patchup code for NAND should
910         be AND followed by NOT.
911         * builtins.c (expand_builtin_atomic_fetch_op): Patchup code for NAND
912         should be AND followed by NOT.
913
914 2011-11-10  Jakub Jelinek  <jakub@redhat.com>
915
916         * vec.h (VEC_BASE): If base is at offset 0 in the structure,
917         use &(P)->base even if P is NULL.
918
919         PR rtl-optimization/51023
920         * combine.c (simplify_comparison) <case SIGN_EXTEND>: Don't use
921         val_signbit_known_clear_p for signed comparison narrowing
922         optimization.  Don't check for non-VOIDmode, use
923         HWI_COMPUTABLE_MODE_P macro.
924         <case ZERO_EXTEND>: Don't check for non-VOIDmode.
925         Optimize even when const_op is equal to GET_MODE_MASK (mode),
926         don't optimize if const_op is negative.
927
928 2011-11-10  Richard Guenther  <rguenther@suse.de>
929
930         PR tree-optimization/51042
931         * tree-ssa-pre.c (phi_translate_1): Avoid recursing on
932         self-referential expressions.  Refactor code to avoid duplication.
933
934 2011-11-10  Richard Guenther  <rguenther@suse.de>
935
936         PR tree-optimization/51070
937         * tree-loop-distribution.c (generate_builtin): Do not replace
938         the loop with a builtin if the partition contains statements which
939         results are used outside of the loop.
940         (pass_loop_distribution): Verify and collect.
941
942 2011-11-10  Richard Guenther  <rguenther@suse.de>
943
944         PR tree-optimization/51030
945         * tree-ssa-phiopt.c (jump_function_from_stmt): New function.
946         (value_replacement): Use it to handle trivial non-empty
947         intermediate blocks.
948
949 2011-11-10  Richard Guenther  <rguenther@suse.de>
950
951         PR middle-end/51071
952         * gimple.c (gimple_has_side_effects): Remove checking code
953         that doesn't belong here.
954
955 2011-11-10  Ira Rosen  <ira.rosen@linaro.org>
956
957         PR tree-optimization/51058
958         * tree-vect-slp.c (vect_get_constant_vectors): Handle CALL_EXPR.
959
960 2011-11-10  Jakub Jelinek  <jakub@redhat.com>
961
962         PR tree-optimization/51000
963         * tree-vect-patterns.c (vect_recog_bool_pattern): If adding
964         a pattern stmt for a bool store, adjust DR_STMT too.
965         Don't handle bool conversions to single bit precision lhs.
966         * tree-vect-stmts.c (vect_remove_stores): If next is a pattern
967         stmt, remove its related stmt and free its stmt_vinfo.
968         (free_stmt_vec_info): Free also pattern stmt's vinfo and
969         pattern def stmt's vinfo.
970         * tree-vect-loop.c (destroy_loop_vec_info): Don't try to
971         free pattern stmt's vinfo here.
972         (vect_transform_loop): When calling vect_remove_stores,
973         do gsi_next first and don't call gsi_remove.  If not strided
974         store, free stmt vinfo for gsi_stmt (si) rather than stmt.
975
976 2011-11-09  Jakub Jelinek  <jakub@redhat.com>
977
978         PR target/50911
979         * config/i386/i386.c (expand_vec_perm_interleave2): If d->vmode is
980         V4SImode, !TARGET_SSE2 and punpck[lh]* is needed, change dremap.vmode
981         to V4SFmode.
982
983         * function.h (requires_stack_frame_p): New prototype.
984         * function.c (requires_stack_frame_p): No longer static.
985         * config/i386/i386.c (ix86_finalize_stack_realign_flags): If
986         stack_realign_fp was just a conservative guess for a function
987         which doesn't use sp/fp/argp at all, clear frame_pointer_needed
988         and stack realignment.
989
990 2011-11-09  Paolo Carlini  <paolo.carlini@oracle.com>
991
992         PR preprocessor/51061
993         * incpath.c (merge_include_chains): Make sure to not pass null
994         pointers to free_path.
995
996 2011-11-09  Paolo Carlini  <paolo.carlini@oracle.com>
997
998         * doc/invoke.texi ([Option Summary, C++ Language Options]):
999         Add -Wzero-as-null-pointer-constant.
1000
1001 2011-11-07  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
1002
1003         * config/arm/arm-cores.def: Add -mcpu=cortex-a7.
1004         * config/arm/arm-tables.opt: Regenerate.
1005         * config/arm/arm-tune.md: Likewise.
1006         * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex A-7.
1007         * doc/invoke.texi: Document -mcpu=cortex-a7.
1008
1009 2011-11-09  Richard Guenther  <rguenther@suse.de>
1010
1011         Revert
1012         2011-11-09  Richard Guenther  <rguenther@suse.de>
1013
1014         * tree-cfg.c (verify_gimple_call): Verify that
1015         gimple_call_cannot_inline_p is returning a conservative
1016         correct result according to gimple_check_call_matching_types.
1017
1018 2011-11-09  Richard Guenther  <rguenther@suse.de>
1019
1020         PR tree-optimization/51039
1021         * tree-cfg.c (verify_gimple_call): Verify that
1022         gimple_call_cannot_inline_p is returning a conservative
1023         correct result according to gimple_check_call_matching_types.
1024         * ipa-inline-analysis.c (estimate_function_body_sizes): Remove
1025         code dealing with un-inlinablility.
1026         * gimple-streamer-in.c (input_gimple_stmt): Update the
1027         non-inlinable flag.
1028
1029 2011-11-09  Richard Guenther  <rguenther@suse.de>
1030
1031         PR tree-optimization/51039
1032         * tree-inline.c (setup_one_parameter): Always perform a
1033         valid gimple type change.
1034         (declare_return_variable): Likewise.
1035
1036 2011-11-09  Jakub Jelinek  <jakub@redhat.com>
1037
1038         * config/rs6000/vector.md (vcondv4sfv4si, vcondv4siv4sf,
1039         vconduv4sfv4si): New patterns.
1040         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Handle
1041         different dest_mode from comparison mode.
1042
1043 2011-11-09  Richard Guenther  <rguenther@suse.de>
1044
1045         * gimple-fold.c (canonicalize_constructor_val): Mark
1046         address-taken variables addressable.
1047
1048 2011-11-09  Ira Rosen  <ira.rosen@linaro.org>
1049
1050         PR tree-optimization/51015
1051         * tree-vect-loop.c (vect_determine_vectorization_factor): Expect
1052         vectype to be set for pattern def stmts.
1053
1054 2011-11-09  Alan Modra  <amodra@gmail.com>
1055
1056         * function.c (bb_active_p): Delete.
1057         (dup_block_and_redirect, active_insn_between): New functions.
1058         (convert_jumps_to_returns, emit_return_for_exit): New functions,
1059         split out from..
1060         (thread_prologue_and_epilogue_insns): ..here.  Delete
1061         shadowing variables.  Don't do prologue register clobber tests
1062         when shrink wrapping already failed.  Delete all last_bb_active
1063         code.  Instead compute tail block candidates for duplicating
1064         exit path.  Remove these from antic set.  Duplicate tails when
1065         reached from both blocks needing a prologue/epilogue and
1066         blocks not needing such.
1067         * ifcvt.c (dead_or_predicable): Test both flag_shrink_wrap and
1068         HAVE_simple_return.
1069         * bb-reorder.c (get_uncond_jump_length): Make global.
1070         * bb-reorder.h (get_uncond_jump_length): Declare.
1071         * cfgrtl.c (rtl_create_basic_block): Comment typo fix.
1072         (rtl_split_edge): Likewise.  Warning fix.
1073         (rtl_duplicate_bb): New function.
1074         (rtl_cfg_hooks): Enable can_duplicate_block_p and duplicate_block.
1075         * Makefile.in (function.o): Update dependencies.
1076
1077 2011-11-08  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1078             Georg-Johann Lay  <avr@gjlay.de>
1079
1080         * doc/tm.texi.in (MODE_CODE_BASE_REG_CLASS): Add address space
1081         argument.
1082         (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
1083         * doc/tm.texi: Regenerate.
1084
1085         * config/cris/cris.h (MODE_CODE_BASE_REG_CLASS): Add address
1086         space argument.
1087         (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
1088         * config/bfin/bfin.h (MODE_CODE_BASE_REG_CLASS): Likewise.
1089         (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
1090         * config/avr/avr.h (MODE_CODE_BASE_REG_CLASS): Add address space
1091         argument.
1092         (REGNO_MODE_CODE_OK_FOR_BASE_P): Ditto.
1093         * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
1094         (avr_regno_mode_code_ok_for_base_p): Ditto.
1095         * config/avr/avr.c (avr_mode_code_base_reg_class): Ditto.
1096         (avr_regno_mode_code_ok_for_base_p): Ditto.
1097         (avr_reg_ok_for_addr_p): Pass AS down to
1098         avr_regno_mode_code_ok_for_base_p.
1099
1100         * addresses.h (base_reg_class): Add address space argument.
1101         Pass to MODE_CODE_BASE_REG_CLASS.
1102         (ok_for_base_p_1): Add address space argument.  Pass to
1103         REGNO_MODE_CODE_OK_FOR_BASE_P.
1104         (regno_ok_for_base_p): Add address space argument.  Pass to
1105         ok_for_base_p_1.
1106
1107         * regrename.c (scan_rtx_address): Add address space argument.
1108         Pass address space to regno_ok_for_base_p and base_reg_class.
1109         Update recursive calls.
1110         (scan_rtx): Pass address space to scan_rtx_address.
1111         (build_def_use): Likewise.
1112         * regcprop.c (replace_oldest_value_addr): Add address space
1113         argument.  Pass to regno_ok_for_base_p and base_reg_class.
1114         Update recursive calls.
1115         (replace_oldest_value_mem): Pass address space to
1116         replace_oldest_value_addr.
1117         (copyprop_hardreg_forward_1): Likewise.
1118
1119         * reload.c (find_reloads_address_1): Add address space argument.
1120         Pass address space to base_reg_class and regno_ok_for_base_p.
1121         Update recursive calls.
1122         (find_reloads_address): Pass address space to base_reg_class,
1123         regno_ok_for_base_p, and find_reloads_address_1.
1124         (find_reloads): Pass address space to base_reg_class.
1125         (find_reloads_subreg_address): Likewise.
1126
1127         * ira-costs.c (record_reg_classes): Update calls to base_reg_class.
1128         (ok_for_base_p_nonstrict): Add address space argument.  Pass to
1129         ok_for_base_p_1.
1130         (record_address_regs): Add address space argument.  Pass to
1131         base_reg_class and ok_for_base_p_nonstrict.  Update recursive calls.
1132         (record_operand_costs): Pass address space to record_address_regs.
1133         (scan_one_insn): Likewise.
1134
1135         * caller-save.c (init_caller_save): Update call to base_reg_class.
1136         * ira-conflicts.c (ira_build_conflicts): Likewise.
1137         * reload1.c (maybe_fix_stack_asms): Likewise.
1138
1139 2011-11-08  Michael Matz  <matz@suse.de>
1140
1141         * gengtype.c (write_field_root): Avoid out-of-scope access of newv.
1142
1143         * tree-stdarg.c (execute_optimize_stdarg): Accept clobbers.
1144
1145         * tree.h (TREE_CLOBBER_P): New macro.
1146         * gimple.h (gimple_clobber_p): New inline function.
1147         * gimplify.c (gimplify_bind_expr): Add clobbers for all variables
1148         that go out of scope and live in memory.
1149         * tree-ssa-operands.c (get_expr_operands): Transfer volatility also
1150         for constructors.
1151         * cfgexpand.c (decl_to_stack_part): New static variable.
1152         (add_stack_var): Allocate it, and remember mapping.
1153         (fini_vars_expansion): Deallocate it.
1154         (stack_var_conflict_p): Add early outs.
1155         (visit_op, visit_conflict, add_scope_conflicts_1,
1156         add_scope_conflicts): New static functions.
1157         (expand_used_vars_for_block): Don't call add_stack_var_conflict, tidy.
1158         (expand_used_vars): Add scope conflicts.
1159         (expand_gimple_stmt_1): Expand clobbers to nothing.
1160         (expand_debug_expr): Ditto.
1161
1162         * tree-pretty-print.c (dump_generic_node): Dump clobbers nicely.
1163         * tree-ssa-live.c (remove_unused_locals): Remove clobbers that
1164         refer to otherwise unused locals.
1165         * tree-sra.c (build_accesses_from_assign): Ignore clobbers.
1166         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Clobbers of
1167         SSA names aren't necessary.
1168         (propagate_necessity): Accept and ignore constructors on the rhs, tidy.
1169         * gimple.c (walk_gimple_op): Accept constructors like mem_rhs.
1170         * tree-ssa-structalias.c (find_func_aliases): Clobbers don't store
1171         any known value.
1172         * tree-ssa-sccvn.c (vn_reference_lookup_3): Ditto, in particular they
1173         don't zero-initialize something.
1174         * tree-ssa-phiopt.c (cond_if_else_store_replacement_1): Ignore
1175         clobber RHS, we don't want PHI nodes with those.
1176
1177 2011-11-08  Jakub Jelinek  <jakub@redhat.com>
1178
1179         * config/i386/i386.c (ix86_preferred_simd_mode): Even for TARGET_AVX
1180         if not TARGET_PREFER_AVX128 return 32-byte integer vectors.
1181
1182 2011-11-08  Richard Guenther  <rguenther@suse.de>
1183
1184         PR tree-optimization/51012
1185         * ipa-prop.c (update_indirect_edges_after_inlining): Fixup
1186         non-inlinable state.
1187         * cgraph.c (cgraph_make_edge_direct): Likewise.
1188
1189 2011-11-08  Eric Botcazou  <ebotcazou@adacore.com>
1190
1191         PR rtl-optimization/47698
1192         * ifcvt.c (noce_operand_ok): Move around comment.
1193
1194 2011-11-08  Richard Guenther  <rguenther@suse.de>
1195
1196         PR lto/50999
1197         * lto-opts.c (append_to_collect_gcc_options): Split out from...
1198         (lto_write_options): ... here.  Prepend frontend specific flags.
1199
1200 2011-11-08  Jakub Jelinek  <jakub@redhat.com>
1201
1202         * config/i386/sse.md (*avx_vperm2f128<mode>3_nozero): Emit mask
1203         0x12 and 0x20 as vinsert[fi]128 instead of vperm2[fi]128.
1204
1205         * tree-vect-stmts.c (vectorizable_call): Add SLP_NODE argument.
1206         Handle vectorization of SLP calls.
1207         (vect_analyze_stmt): Adjust caller, add call to it for SLP too.
1208         (vect_transform_stmt): Adjust vectorizable_call caller, remove
1209         assertion.
1210         * tree-vect-slp.c (vect_get_and_check_slp_defs): For calls start
1211         with op_idx 3.
1212         (vect_build_slp_tree): Allow CALL_EXPR.
1213
1214 2011-11-08  Richard Guenther  <rguenther@suse.de>
1215
1216         * gimple-fold.c (canonicalize_constructor_val): Make sure
1217         we have referenced vars setup before adding to them.
1218
1219 2011-11-07  Richard Henderson  <rth@redhat.com>
1220             Aldy Hernandez  <aldyh@redhat.com>
1221             Andrew MacLeod  <amacleod@redhat.com>
1222             Torvald Riegel  <triegel@redhat.com>
1223
1224         Merged from transactional-memory.
1225
1226         * gtm-builtins.def: New file.
1227         * trans-mem.c: New file.
1228         * trans-mem.h: New file.
1229
1230         * opts.c (finish_options): Error out when using -flto and -fgnu-tm.
1231
1232         * config/i386/i386.c: Define TARGET_VECTORIZE* transactional variants.
1233         (ix86_handle_tm_regparm_attribute, struct bdesc_tm,
1234         ix86_builtin_tm_load, ix86_builtin_tm_store,
1235         ix86_init_tm_builtins): New.
1236         (ix86_init_builtins): Initialize TM builtins.
1237         (struct ix86_attribute_table): Add "*tm regparm".
1238         * config/i386/i386-builtin-types.def (PV2SI): Define.
1239         (PCV2SI): Define.
1240         Define V2SI_FTYPE_PCV2SI.
1241         Define V4SF_FTYPE_PCV4SF.
1242         Define V8SF_FTYPE_PCV8SF.
1243         Define VOID_PV2SI_V2SI.
1244
1245         * doc/invoke.texi (C Dialect Options): Document -fgnu-tm and
1246         tm-max-aggregate-size.
1247         * doc/tm.texi.in: Add TARGET_VECTORIZE_BUILTIN_TM_LOAD and
1248         TARGET_VECTORIZE_BUILTIN_TM_STORE hooks.
1249         * doc/tm.texi: Regenerate.
1250
1251         * attribs.c (apply_tm_attr): New.
1252         (init_attributes): Allow '*' prefix for overrides.
1253         (register_attribute): Likewise.
1254         * builtin-attrs.def (ATTR_TM_TMPURE, ATTR_TM_REGPARM): New.
1255         (ATTR_TM_NOTHROW_LIST, ATTR_TM_TMPURE_NOTHROW_LIST,
1256         ATTR_TM_PURE_TMPURE_NOTHROW_LIST, ATTR_TM_NORETURN_NOTHROW_LIST,
1257         ATTR_TM_CONST_NOTHROW_LIST, ATTR_TMPURE_MALLOC_NOTHROW_LIST,
1258         ATTR_TMPURE_NOTHROW_LIST): New.
1259         * builtin-types.def (BT_FN_I[1248]_VPTR, BT_FN_FLOAT_VPTR,
1260         BT_FN_DOUBLE_VPTR, BT_FN_LDOUBLE_VPTR, BT_FN_VOID_VPTR_I[1248],
1261         BT_FN_VOID_VPTR_FLOAT, BT_FN_VOID_VPTR_DOUBLE,
1262         BT_FN_VOID_VPTR_LDOUBLE, BT_FN_VOID_VPTR_SIZE): New.
1263         * builtins.def: Include gtm-builtins.def. Add comments regarding
1264         transactional memory synchronization.
1265         (DEF_TM_BUILTIN): New.
1266         * c-parser.c (struct c_parser): Add in_transaction.
1267         (c_parser_transaction, c_parser_transaction_expression,
1268         c_parser_transaction_cancel, c_parser_transaction_attributes): New.
1269         (c_parser_attribute_any_word): Split out from c_parser_attributes.
1270         (c_parser_statement_after_labels): Handle RID_TRANSACTION*.
1271         (c_parser_unary_expression): Same.
1272         * c-tree.h (c_finish_transaction): Declare.
1273         * c-typeck.c (c_finish_transaction): New.
1274         (build_function_call_vec): Call tm_malloc_replacement.
1275         * calls.c (is_tm_builtin): New.
1276         (flags_from_decl_or_type): Add ECF_TM_BUILTIN and ECF_TM_PURE.
1277         * cfgbuild.c (make_edges): Add edges for REG_TM notes.
1278         * cfgexpand.c (expand_call_stmt): Call
1279         mark_transaction_restart_calls.
1280         (gimple_expand_cfg): Free the tm_restart map.
1281         (mark_transaction_restart_calls): New.
1282         * cfgrtl.c (purge_dead_edges): Look for REG_TM notes.
1283         * cgraph.c (dump_cgraph_node): Handle tm_clone.
1284         * cgraph.h (struct cgraph_node): Add tm_clone field.
1285         (decl_is_tm_clone): New.
1286         (struct cgraph_local_info): Add tm_may_enter_irr.
1287         (cgraph_copy_node_for_versioning): Declare.
1288         * cgraphunit.c (cgraph_copy_node_for_versioning): Export;
1289         copy analyzed from old version.
1290         * combine.c (distribute_notes): Handle REG_TM notes.
1291         * common.opt: Add -fgnu-tm.
1292         * crtstuff.c (__TMC_LIST__, __TMC_END__): New.
1293         (__do_global_dtors_aux): Deregister clone table.
1294         (frame_dummy): Register clone table.
1295         * emit-rtl.c (try_split): Handle REG_TM. Early return if no function
1296         body.
1297         * gimple-low.c (lower_stmt): Handle GIMPLE_EH_ELSE and
1298         GIMPLE_TRANSACTION.
1299         (gimple_stmt_may_fallthru): Handle GIMPLE_EH_ELSE.
1300         * gimple-pretty-print.c: Include trans-mem.h.
1301         (dump_gimple_fmt): Add %x.
1302         (dump_gimple_call): Dump arguments for calls to _ITM_beginTransaction.
1303         (dump_gimple_eh_else, dump_gimple_transaction): New.
1304         (dump_gimple_stmt): Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
1305         * gimple.c (gimple_build_eh_else, gimple_build_transaction): New.
1306         (walk_gimple_seq): Honor removed_stmt. Document usage of removed_stmt
1307         field.
1308         (walk_gimple_op): Handle GIMPLE_TRANSACTION.
1309         (walk_gimple_stmt): Initialize and honor removed_stmt.
1310         Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
1311         (gimple_copy): Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
1312         * gimple.def (GIMPLE_TRANSACTION, GIMPLE_EH_ELSE): New.
1313         * gimple.h (struct gimple_statement_eh_else,
1314         gimple_statement_transaction, GTMA_*): New.
1315         (gimple_statement_d): Add gimple_statement_eh_else and
1316         gimple_transaction.
1317         (gimple_build_eh_else, gimple_build_transaction,
1318         gimple_fold_call, diagnose_tm_safe_errors): Declare.
1319         (get_call_expr_in): Remove prototype.
1320         (gimple_has_substatements): Add GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
1321         (gimple_eh_else_n_body, gimple_eh_else_e_body,
1322         gimple_eh_else_set_n_body, gimple_eh_else_set_e_body,
1323         gimple_transaction_body, gimple_transaction_label,
1324         gimple_transaction_label_ptr, gimple_transaction_subcode,
1325         gimple_transaction_set_body, gimple_transaction_set_label,
1326         gimple_transaction_set_subcode): New.
1327         (struct walk_stmt_info): Use BOOL_BITFIELD; add removed_stmt.
1328         * gimplify.c (create_tmp_var_name): Use clean_symbol_name.
1329         (voidify_wrapper_expr): Handle TRANSACTION_EXPR.
1330         (gimplify_transaction): New.
1331         (gimplify_expr): Handle TRANSACTION_EXPR.
1332         * gsstruct.def (GSS_EH_ELSE, GSS_TRANSACTION): New.
1333         * ipa-inline.c (can_inline_edge_p): Do not inline TM safe calling
1334         TM pure functions.
1335         * Makefile.in: Add trans-mem.o and dependencies.
1336         (BUILTINS_DEF): Add gtm-builtins.def.
1337         (gimple-pretty-print.o): Depend on TRANS_MEM_H.
1338         (GTFILES): Add trans-mem.c.
1339         * omp-low.c (WALK_SUBSTMTS): Add GIMPLE_TRANSACTION.
1340         * output.h (record_tm_clone_pair, finish_tm_clone_pairs,
1341         get_tm_clone_pair): Declare.
1342         * params.def (PARAM_TM_MAX_AGGREGATE_SIZE): New.
1343         * passes.c (init_optimization_passes): Place transactional memory
1344         passes.
1345         * print-tree.c (print_node): Dump tm-clone.
1346         * recog.c (peep2_attempt): Handle REG_TM.
1347         * reg-notes.def (TM): New.
1348         * rtlanal.c (alloc_reg_note): Handle REG_TM.
1349         * target.def (builtin_tm_load, builtin_tm_store): New.
1350         * targhooks.c (default_builtin_tm_load_store): New.
1351         * targhooks.h (default_builtin_tm_load_store): Declare.
1352         * timevar.def (TV_TRANS_MEM): New.
1353         * toplev.c (compile_file): Call finish_tm_clone_pairs.
1354         * tree-cfg.c (make_edges): Handle GIMPLE_TRANSACTION.
1355         (cleanup_dead_labels): Handle GIMPLE_TRANSACTION. Avoid unnecessary
1356         writes into the statements to update labels.
1357         (is_ctrl_altering_stmt): Add TM ending statements. Handle
1358         GIMPLE_TRANSACTION.
1359         (verify_gimple_transaction): New.
1360         (verify_gimple_stmt): Handle GIMPLE_TRANSACTION.
1361         (verify_gimple_in_seq_2): Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
1362         (gimple_redirect_edge_and_branch): Handle TM_TRANSACTION.
1363         (dump_function_to_file): Display [tm-clone] if applicable.
1364         * tree-eh.c (struct_ptr_eq): Make inline and move to tree.h.
1365         (struct_ptr_hash): Same.
1366         (collect_finally_tree): Handle GIMPLE_EH_ELSE.
1367         (replace_goto_queue_1): Likewise.
1368         (get_eh_else): New.
1369         (honor_protect_cleanup_actions): Handle GIMPLE_EH_ELSE.
1370         (lower_try_finally_nofallthru): Likewise.
1371         (lower_try_finally_onedest): Likewise.
1372         (lower_try_finally_copy): Likewise.
1373         (lower_try_finally_switch): Likewise.
1374         (lower_try_finally): Likewise.
1375         (decide_copy_try_finally): Likewise.
1376         (lower_eh_constructs_2): Likewise.
1377         (refactor_eh_r): Likewise.
1378         * tree-flow.h (struct gimple_df): Add tm_restart field.
1379         Define tm_restart_node.
1380         * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_TRANSACTION.
1381         (estimate_num_insns): Likewise.
1382         (init_inline_once): Init tm_cost.
1383         * tree-inline.h (struct eni_weights_d): Add tm_cost.
1384         * tree-pass.h (pass_diagnose_tm_blocks, pass_lower_tm, pass_tm_init,
1385         pass_tm_mark, pass_tm_memopt, pass_tm_edges, pass_ipa_tm): Declare.
1386         * tree-pretty-print.c (dump_generic_node): Handle TRANSACTION_EXPR.
1387         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
1388         BUILT_IN_TM_MEMSET, BUILT_IN_TM_MEMCPY, BUILT_IN_TM_MEMMOVE.
1389         Add support for TM vector loads.  Add support for TM logging builtins.
1390         (call_may_clobber_ref_p_1): Add support for vector stores.
1391         * tree-ssa-structalias.c (find_func_aliases): Add support for TM
1392         vector stores and loads. Handle BUILT_IN_TM_MEMSET,
1393         BUILT_IN_TM_MEMCPY, BUILT_IN_TM_MEMMOVE.
1394         * tree.c (strip_invariant_refs): Moved from gimple.c to here.
1395         (local_define_builtin): Handle ECF_TM_PURE.
1396         (build_common_builtin_nodes): Set __builtin_eh_pointer to ECF_TM_PURE.
1397         * tree.def (TRANSACTION_EXPR): New.
1398         * tree.h (strip_invariant_refs): Moved from gimple.h to here.
1399         (TRANSACTION_EXPR_BODY, TRANSACTION_EXPR_CHECK,
1400         TRANSACTION_EXPR_OUTER, TRANSACTION_EXPR_RELAXED,
1401         BUILTIN_TM_LOAD_STORE_P, BUILTIN_TM_LOAD_P, BUILTIN_TM_STORE_P,
1402         CASE_BUILT_IN_TM_LOAD, CASE_BUILT_IN_TM_STORE): New.
1403         (ECF_TM_PURE, ECF_TM_BUILTIN): New.
1404         (struct tree_function_decl): Add tm_clone_flag.
1405         (struct_ptr_eq, struct_ptr_hash): New.
1406         (apply_tm_attr): Declare.
1407         (is_tm_safe_or_pure): New.
1408         (build_tm_abort_call, is_tm_safe, is_tm_pure,
1409         is_tm_may_cancel_outer, is_tm_ending_fndecl, record_tm_replacement,
1410         tm_malloc_replacement): Declare.
1411         * varasm.c (tm_clone_hash): New.
1412         (record_tm_clone_pair, finish_tm_clone_pairs, get_tm_clone_pair,
1413         dump_tm_clone_to_vec, dump_tm_clone_pairs, tm_alias_pair_cmp): New.
1414         (struct tm_alias_pair): New.  Declare VEC types for object.
1415
1416 2011-11-07  Richard Henderson  <rth@redhat.com>
1417
1418         * optabs.h (OTI_sync_compare_and_swap, OTI_sync_lock_test_and_set,
1419         OTI_sync_old_add, OTI_sync_old_sub, OTI_sync_old_ior,
1420         OTI_sync_old_and, OTI_sync_old_xor, OTI_sync_old_nand,
1421         OTI_sync_new_add, OTI_sync_new_sub, OTI_sync_new_ior,
1422         OTI_sync_new_and, OTI_sync_new_xor, OTI_sync_new_nand): Move and
1423         rename from the direct_optab_index enum.
1424         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab,
1425         sync_old_add_optab, sync_old_sub_optab, sync_old_ior_optab,
1426         sync_old_and_optab, sync_old_xor_optab, sync_old_nand_optab,
1427         sync_new_add_optab, sync_new_sub_optab, sync_new_ior_optab,
1428         sync_new_and_optab, sync_new_xor_optab, sync_new_nand_optab): Read
1429         from the optab_table, not the direct_optab_table.
1430         (init_sync_libfuncs): Declare.
1431         (can_compare_and_swap_p): Update parameters.
1432         * optabs.c (init_sync_libfuncs_1, init_sync_libfuncs): New.
1433         (can_compare_and_swap_p): Add allow_libcall parameter; if true,
1434         test for the legacy compare-and-swap libcall.
1435         (expand_atomic_exchange): Use the legacy test-and-set libcall.
1436         (expand_atomic_compare_and_swap): Use the legacy CAS libcall.
1437         (struct atomic_op_functions): Update for optab type changes.
1438         (maybe_emit_op): Likewise.
1439         (expand_atomic_fetch_op): Use the legacy fetch-op libcalls.
1440         * builtins.c (fold_builtin_atomic_always_lock_free): Update call
1441         to can_compare_and_swap_p.
1442         * omp-low.c (expand_omp_atomic_fetch_op): Likewise.
1443         (expand_omp_atomic_pipeline): Likewise.
1444         * genopinit.c (optabs): Make sync_old_*_optab, sync_new_*_optab,
1445         sync_compare_and_swap_optab, sync_lock_test_and_set_optab regular
1446         optabs.
1447         * doc/md.texi (sync_compare_and_swap): Update docs for libcalls.
1448
1449 2011-11-07  Jakub Jelinek  <jakub@redhat.com>
1450
1451         * config/i386/i386-bultin-types.def (V8SI_FTYPE_V4DF_V4DF): Add.
1452         * config/i386/i386.c (enum ix86_builtins): Add
1453         IX86_BUILTIN_VEC_PACK_SFIX256.
1454         (bdesc_args): Add __builtin_ia32_vec_pack_sfix256.
1455         (ix86_expand_args_builtin): Handle V8SI_FTYPE_V4DF_V4DF.
1456         (ix86_builtin_vectorized_function): Also vectorize lrint using
1457         256-bit vectors for -mavx.
1458
1459 2011-11-07  Anatoly Sokolov  <aesok@post.ru>
1460
1461         * config/cris/constraints.md: New file.
1462         * config/cris/cris.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
1463         CRIS_CONST_OK_FOR_LETTER_P, CONST_OK_FOR_CONSTRAINT_P,
1464         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_MEMORY_CONSTRAINT,
1465         EXTRA_CONSTRAINT, EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_R,
1466         EXTRA_CONSTRAINT_T, EXTRA_CONSTRAINT_S, EXTRA_CONSTRAINT_U): Remove.
1467         * config/cris/cris.c: Incule "tm-constrs.h".
1468         (cris_print_operand): Use satisfies_constraint_O.
1469         (cris_normal_notice_update_cc, cris_rtx_costs): Use
1470         satisfies_constraint_I.
1471         (cris_address_cost): Use satisfies_constraint_L.
1472         * config/cris/cris.md: Include "constraints.md".
1473         (*mov_side<mode>, *mov_sidesisf, *mov_side<mode>_mem,
1474         *mov_sidesisf_mem, *clear_side<mode>, *ext_sideqihi,
1475         *ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>,
1476         *extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side,
1477         *extop<mode>si_swap_side): Use satisfies_constraint_N and
1478         satisfies_constraint_J.
1479         (moversideqi movemsideqi mover2side peephole2): Use
1480         satisfies_constraint_N and satisfies_constraint_J.
1481         (andu peephole2): Use satisfies_constraint_I and
1482         satisfies_constraint_O.
1483
1484 2011-11-07  Uros Bizjak  <ubizjak@gmail.com>
1485
1486         * config/i386/i386.c (ix86_builtin_vectorized_function): Handle
1487         BUILT_IN_IRINT, BUILT_IN_IRINTF, BUILT_IN_LLRINT and BUILT_IN_LLRINTF.
1488
1489 2011-11-07  Andrew MacLeod  <amacleod@redhat.com>
1490
1491         * optabs.c (get_atomic_op_for_code): Fill in optab table at runtime so
1492         SWITCHABLE_TARGET can change the values during compilation.
1493         (expand_atomic_fetch_op): Handle parameter change ripples for
1494         get_atomic_op_for_code call.
1495
1496 2011-11-07  Andrew MacLeod  <amacleod@redhat.com>
1497
1498         * doc/extend.texi: Docuemnt behaviour change for __atomic_exchange and
1499         __atomic_store.
1500         * optabs.c (expand_atomic_exchange): Expand to __sync_lock_test_and_set
1501         only when originated from that builtin.
1502         (expand_atomic_store): Expand to __sync_lock_release when originated
1503         from that builtin.
1504         * builtins.c (expand_builtin_sync_lock_test_and_set): Add flag that
1505         expand_atomic_exchange call originated from here.
1506         (expand_builtin_sync_lock_release): Add flag that expand_atomic_store
1507         call originated from here.
1508         (expand_builtin_atomic_exchange): Add origination flag.
1509         (expand_builtin_atomic_store): Add origination flag.
1510         * expr.h (expand_atomic_exchange, expand_atomic_store): Add boolean
1511         parameters to indicate implementation fall back options.
1512
1513 2011-11-07  Georg-Johann Lay  <avr@gjlay.de>
1514
1515         * config/avr/avr.c (output_reload_in_const): Can handle CONSTANT_P
1516         now, not only CONST_INT and CONST_DOUBLE.
1517         (output_movqi): Use output_reload_in_const.
1518         (output_reload_inhi): Ditto.
1519         (output_reload_insisf): Move assertion to output_reload_in_const.
1520         (avr_out_reload_inpsi): Ditto.
1521
1522 2011-11-07  Nathan Sidwell  <nathan@acm.org>
1523
1524         * gcov.c (object_summary): Replace with ...
1525         (object_runs): ... this.
1526         (process_file): Remove functions with no data.
1527         (generate_results): Ignore files with no lines.
1528         (release_function): New helper, broken out of ...
1529         (release_structures): ... here.  Use it.
1530         (read_count_file): Adjust for new data file format.
1531         (output_lines): Use object_runs.
1532         * gcov-io.h (GCOV_TAG_OBJECT_SUMMARY): Obsolete.
1533         (struct gcov_ctr_info): Move definition.
1534         (struct gcov_fn_info): Add key field, use gcov_ctr_info for
1535         trailing array.
1536         (struct gcov_info): Add merge function array, remove mask and
1537         counts.  Trailing array is array of pointers to function info.
1538         * coverage.c (struct function_list): Replace counter numbers with
1539         counter arrays.  Add fndecl field.  GTYify.
1540         (counts_entry): Remove chain workspace.
1541         (functions_head): GTYify.
1542         (prg_n_ctrs): Remove.
1543         (fn_v_ctrs): New.
1544         (tree_ctr_tables): Remove.
1545         (read_counts_file): Cope with blank entries and expect program
1546         summaries before functions.  Don't warn on missing entries.
1547         (coverage_counter_alloc): Allocate individual function arrays.
1548         (tree_coverage_counter_ref, tree_coverage_counter_addr): Adjust
1549         for individual function arrays.
1550         (coverage_end_function): GTYify function list object. Finalize
1551         function's counter arrays.
1552         (build_var): New.  Create a counter-related variable with
1553         appropriate linkage.
1554         (build_fn_info_type): Adjust for new runtime structure.
1555         (build_fn_info_value): Rename to ...
1556         (build_fn_info): ... here.  Build new format data.
1557         (build_ctr_info_type, build_ctr_info_value): Remove.
1558         (build_info_type): New. Build new format data structure.
1559         (build_info): Adjust for new format data.
1560         (create_coverage): Likewise.
1561         * gcov-dump.c (tag_function): Recognize placeholders.
1562
1563 2011-11-07  Georg-Johann Lay  <avr@gjlay.de>
1564
1565         * config/avr/constraints.md (Cm2): New constraint for int -2.
1566         * config/avr/avr.md (addqi3): Use it. New alternatives for +/-2.
1567         (*negqihi2): New insn.
1568
1569 2011-11-07  H.J. Lu  <hongjiu.lu@intel.com>
1570
1571         * dwarf2cfi.c (dwarf2out_frame_debug_expr): Check
1572         HARD_FRAME_POINTER_REGNUM instead of hard_frame_pointer_rtx in Rule 18.
1573
1574 2011-11-07  Jakub Jelinek  <jakub@redhat.com>
1575
1576         * config/i386/i386.c (ix86_expand_builtin): If gather mask
1577         argument is known to have all high bits set, pass pc_rtx as
1578         second argument to the expander instead of op0.
1579         * config/i386/sse.md (*avx2_gathersi<mode>_2,
1580         *avx2_gatherdi<mode>_2): New patterns.
1581         * config/i386/avx2intrin.h (_mm256_i32gather_pd,
1582         _mm256_i64gather_pd, _mm256_i32gather_ps): Set mask using
1583         _mm256_cmp_pd with zero vector arguments and _CMP_EQ_OQ instead of
1584         _mm256_set1_pd.
1585
1586         PR tree-optimization/50789
1587         * tree-vect-stmts.c (process_use): Add force argument, avoid
1588         exist_non_indexing_operands_for_use_p check if true.
1589         (vect_mark_stmts_to_be_vectorized): Adjust callers.  Handle
1590         STMT_VINFO_GATHER_P.
1591         (gen_perm_mask): New function.
1592         (perm_mask_for_reverse): Use it.
1593         (reverse_vec_element): Rename to...
1594         (permute_vec_elements): ... this.  Add Y and MASK_VEC arguments,
1595         generalize for any permutations.
1596         (vectorizable_load): Adjust caller.  Handle STMT_VINFO_GATHER_P.
1597         * target.def (TARGET_VECTORIZE_BUILTIN_GATHER): New hook.
1598         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_GATHER): Document it.
1599         * doc/tm.texi: Regenerate.
1600         * tree-data-ref.c (initialize_data_dependence_relation,
1601         compute_self_dependence): No longer static.
1602         * tree-data-ref.h (initialize_data_dependence_relation,
1603         compute_self_dependence): New prototypes.
1604         * tree-vect-data-refs.c (vect_check_gather): New function.
1605         (vect_analyze_data_refs): Detect possible gather load data refs.
1606         * tree-vectorizer.h (struct _stmt_vec_info): Add gather_p field.
1607         (STMT_VINFO_GATHER_P): Define.
1608         (vect_check_gather): New prototype.
1609         * config/i386/i386-builtin-types.def: Add types for alternate
1610         gather builtins.
1611         * config/i386/sse.md (AVXMODE48P_DI): Remove.
1612         (VEC_GATHER_MODE): Rename mode_attr to...
1613         (VEC_GATHER_IDXSI): ... this.
1614         (VEC_GATHER_IDXDI, VEC_GATHER_SRCDI): New mode_attrs.
1615         (avx2_gathersi<mode>, *avx2_gathersi<mode>): Use <VEC_GATHER_IDXSI>
1616         instead of <VEC_GATHER_MODE>.
1617         (avx2_gatherdi<mode>): Use <VEC_GATHER_IDXDI> instead of
1618         <AVXMODE48P_DI> and <VEC_GATHER_SRCDI> instead of VEC_GATHER_MODE
1619         on src and mask operands.
1620         (*avx2_gatherdi<mode>): Likewise.  Use VEC_GATHER_MODE iterator
1621         instead of AVXMODE48P_DI.
1622         (avx2_gatherdi<mode>256, *avx2_gatherdi<mode>256): Removed.
1623         * config/i386/i386.c (enum ix86_builtins): Add
1624         IX86_BUILTIN_GATHERALTSIV4DF, IX86_BUILTIN_GATHERALTDIV8SF,
1625         IX86_BUILTIN_GATHERALTSIV4DI and IX86_BUILTIN_GATHERALTDIV8SI.
1626         (ix86_init_mmx_sse_builtins): Create those builtins.
1627         (ix86_expand_builtin): Handle those builtins and adjust expansions
1628         of other gather builtins.
1629         (ix86_vectorize_builtin_gather): New function.
1630         (TARGET_VECTORIZE_BUILTIN_GATHER): Define.
1631
1632 2011-11-07  Uros Bizjak  <ubizjak@gmail.com>
1633
1634         * config/i386/f16cintrin.h: Remove extra _X86INTRIN_H_INCLUDED check.
1635
1636 2011-11-07  Tristan Gingold  <gingold@adacore.com>
1637
1638         * config.gcc (*-*-*vms*): Set c_target_objs, cxx_target_objs.
1639         * config/vms/t-vms: Add vms-c.o rule.
1640         * config/vms/vms-c.c: New file.
1641         * config/vms/vms-protos.h (vms_c_register_pragma): New prototype.
1642         * config/vms/vms.h (REGISTER_TARGET_PRAGMAS): Define.
1643
1644 2011-11-07  Tristan Gingold  <gingold@adacore.com>
1645
1646         * config/alpha/vms.h (TARGET_OBJECT_SUFFIX,
1647         TARGET_EXECUTABLE_SUFFIX, TARGET_OS_CPP_BUILTINS,
1648         TARGET_ABI_OPEN_VMS, LONG_TYPE_SIZE, ADA_LONG_TYPE_SIZE,
1649         POINTER_SIZE, POINTERS_EXTEND_UNSIGNED): Move to config/vms/vms.h
1650         (SUBTARGET_OS_CPP_BUILTINS): Define.
1651         (TARGET_DEFAULT): Tune according to POINTER_SIZE.
1652         (MASK_RETURN_ADDR): Define in 64 bit mode.
1653         * config/ia64/vms.h: Likewise.
1654         * config/vms/vms.h: New file.
1655         * config/vms/vms64.h: New file.
1656         * config/alpha/vms64.h: Removed.
1657         * config/ia64/vms64.h: Removed.
1658         * config.gcc (alpha64-dec-*vms*, alpha*-dec-*vms*, ia64-hp-*vms*):
1659         Adjust for above change.
1660
1661 2011-11-07  Enkovich Ilya  <ilya.enkovich@intel.com>
1662
1663         PR target/50962
1664         * config/i386/i386-protos.h (ix86_use_lea_for_mov): New.
1665         * config/i386/i386.c (ix86_use_lea_for_mov): Likewise.
1666         * config/i386/i386.md (movsi_internal): Emit lea if profitable.
1667         (movdi_internal_rex64): Likewise.
1668
1669 2011-11-07  Sergey Ostanevich  <sergos.gnu@gmail.com>
1670
1671         PR rtl-optimization/47698
1672         * ifcvt.c (noce_operand_ok): Return false for mems with side effects.
1673
1674 2011-11-07  Tristan Gingold  <gingold@adacore.com>
1675
1676         * common/config/alpha/alpha-common.c (alpha_option_init_struct):
1677         New function.
1678         (TARGET_OPTION_INIT_STRUCT): Define.
1679         * config/alpha/alpha.c (TARGET_MIN_ANCHOR_OFFSET)
1680         (TARGET_MAX_ANCHOR_OFFSET)
1681         (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Redefine.
1682
1683 2011-11-06  Quentin Neill  <quentin.neill@amd.com>
1684
1685         Fix r180999, update ChangeLog
1686         * config.gcc: Add f16cintrin.h.
1687         * config/i386/f16cintrin.h: Add missing endif.
1688
1689 2011-11-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1690
1691         * config.gcc (arm*-*-rtemseabi*): New target.
1692         * config/arm/rtems-eabi.h: New.
1693         * config/arm/t-rtems-eabi: New.
1694
1695 2011-11-06  David S. Miller  <davem@davemloft.net>
1696
1697         * config/sparc/sparc.md (UNSPEC_SHORT_LOAD): Delete.
1698         (zero_extend_v8qi_vis, zero_extend_v4hi_vis,
1699         *zero_extend_v8qi_<P:mode>_insn,
1700         *zero_extend_v4hi_<P:mode>_insn): Express using vec_merge
1701         and vec_duplicate instead of using an UNSPEC.
1702
1703 2011-11-07  Alan Modra  <amodra@gmail.com>
1704
1705         PR target/30282
1706         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Always emit
1707         blockage for ABI_V4.
1708
1709 2011-11-06  Dave Korn  <dave.korn.cygwin@gmail.com>
1710
1711         * config/i386/cygwin.h (LIBGCJ_SONAME): Updated to match recent
1712         libgcj version bump.
1713         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
1714
1715 2011-11-06  Eric Botcazou  <ebotcazou@adacore.com>
1716
1717         * gcse.c: Adjust outdated comments throughout.
1718         (struct mem_conflict_info): New structure.
1719         (mems_conflict_for_gcse_p): Use it to communicate with caller.
1720         (load_killed_in_block_p): Pass it to note_stores.
1721         (hash_expr): Remove superfluous line break.
1722         (hash_scan_set): Rename PAT parameter into SET.
1723         (hash_scan_insn): Reorder cases.
1724         (canon_list_insert): Fix long line.
1725         (edge_list): Delete.
1726         (prune_expressions): Rename E local variable into EXPR.
1727         (compute_pre_data): Return struct edge_list * object.
1728         (pre_expr_reaches_here_p_work): Fix formatting.
1729         (process_insert_insn): Move around comment.
1730         (pre_edge_insert): Fix long line.
1731         (pre_insert_copies): Likewise.
1732         (gcse_emit_move_after): Swap SRC and DEST parameters.
1733         (pre_delete): Adjust call to gcse_emit_move_after.
1734         (pre_gcse): Take struct edge_list * parameter.  Fix long line.
1735         (one_pre_gcse_pass): Use flag_gcse_lm condition for all routines.
1736         Use a local list of edges.
1737         (hoist_code): Fix long line.  Adjust call to gcse_emit_move_after.
1738         (pre_ldst_expr_hash): Fix long line.
1739         (free_ldst_mems): Rename into...
1740         (free_ld_motion_mems): ...this.
1741         (first_ls_expr): Delete.
1742         (next_ls_expr): Likewise.
1743         (print_ldst_list): Do not use above two functions.
1744         (simple_mem): Adjust interface.
1745         (compute_ld_motion_mems): Fix formatting.
1746         (update_ld_motion_stores): Reuse local variable.
1747
1748 2011-11-06  Joseph Myers  <joseph@codesourcery.com>
1749
1750         * c-decl.c (shadow_tag_warned, grokdeclarator): Handle _Alignas
1751         specifiers.
1752         (build_null_declspecs): Initialize align_log and alignas_p fields.
1753         (declspecs_add_alignas): New.
1754         * c-parser.c (c_token_starts_declspecs): Handle RID_ALIGNAS.
1755         (c_parser_declspecs): Handle _Alignas specifiers.
1756         (c_parser_alignas_specifier): New.
1757         (c_parser_alignof_expression): Diagnose alignof use for non-C1X.
1758         Diagnose _Alignof (expression).
1759         * c-tree.h (struct c_declspecs): Add align_log and alignas_p fields.
1760         (declspecs_add_alignas): Declare.
1761         * ginclude/stddef.h (max_align_t): Define for C1X and C++11.
1762         * ginclude/stdalign.h: New.
1763         * Makefile.in (USER_H): Add stdalign.h.
1764
1765 2011-11-06  Joern Rennecke  <joern.rennecke@embecosm.com>
1766
1767         * regset.h (fixed_reg_set_regset): Declare.
1768         * dse.c: Include regset.h .
1769         (struct insn_info): Add member fixed_regs_live.
1770         (note_add_store_info): New typedef.
1771         (note_add_store): New function.
1772         (emit_inc_dec_insn_before): Expect arg to be of type insn_info_t.
1773         Use gen_add3_insn / gen_move_insn.
1774         Check new insn for unwanted clobbers before emitting it.
1775         (check_for_inc_dec): Rename to...
1776         (check_for_inc_dec_1:) ... this.  Return bool.  Take insn_info
1777         parameter.  Changed all callers in file.
1778         (check_for_inc_dec, copy_fixed_regs): New functions.
1779         (scan_insn): Set fixed_regs_live field of insn_info.
1780         * rtl.h (check_for_inc_dec): Update prototype.
1781         * postreload.c (reload_cse_simplify): Take new signature of
1782         check_ind_dec into account.
1783         * reginfo.c (fixed_reg_set_regset): New variable.
1784         (init_reg_sets_1): Initialize it.
1785
1786 2011-11-06  Jakub Jelinek  <jakub@redhat.com>
1787
1788         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0 don't remove
1789         any user labels.
1790
1791 2011-11-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1792
1793         * config/pa/pa.c (pa_hpux_init_libfuncs): Rename to pa_init_libfuncs.
1794         Remove dependence of declaration and target define on definition of
1795         HPUX_LONG_DOUBLE_LIBRARY.  Update implementation.
1796
1797 2011-11-06  Andrew Macleod  <amacleod@redhat.com>
1798             Richard Henderson  <rth@redhat.com>
1799             Aldy Hernandez  <aldyh@redhat.com>
1800
1801         Merged from cxx-mem-model.
1802
1803         * cppbuiltin.c (define__GNUC__): Define __ATOMIC memory models
1804         * coretypes.h (enum memmodel): New.  enumerated memory model type.
1805         * Makefile.in (cppbuiltin.o) Add missing dependency on $(TREE_H)
1806         * genopinit,c (optabs): Add atomic direct optab handlers.
1807         * sync-builtins.def (BUILT_IN_ATOMIC_*): New builtins.
1808         * builtin-types.def (BT_CONST_VOLATILE_PTR,
1809         BT_FN_I{1,2,4,8,16}_CONST_VPTR_INT, BT_FN_VOID_VPTR_INT,
1810         BT_FN_BOOL_VPTR_INT, BT_FN_BOOL_SIZE_CONST_VPTR,
1811         BT_FN_I{1,2,4,8,16}_VPTR_I{1,2,4,8,16}_INT,
1812         BT_FN_VOID_VPTR_I{1,2,4,8,16}_INT, BT_FN_VOID_SIZE_VPTR_PTR_INT,
1813         BT_FN_VOID_SIZE_CONST_VPTR_PTR_INT, BT_FN_VOID_SIZE_VPTR_PTR_PTR_INT,
1814         BT_FN_BOOL_VPTR_PTR_I{1,2,4,8,16}_BOOL_INT_INT): New builtin types.
1815         * expr.h (expand_atomic_*): Add prototypes.
1816         (expand_{bool,val}_compare_and_swap): Remove prototypes.
1817         * c-typeck.c (build_function_call_vec): Don't reprocess __atomic
1818         parameters.
1819         * common.opt (Winvalid-memory-model): New warning flag.
1820         (finline-atomics): New. Flag to disable atomic inlining.
1821         * params.h (ALLOW_LOAD_DATA_RACES): New.
1822         (ALLOW_PACKED_LOAD_DATA_RACES): New.
1823         (ALLOW_PACKED_STORE_DATA_RACES): New.
1824         * params.def (PARAM_ALLOW_LOAD_DATA_RACES): New.
1825         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES): New.
1826         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): New.
1827         * builtins.c (is_builtin_name): Handle __atomic.
1828         (get_memmodel): New.  Extract memory model.
1829         (expand_expr_force_mode): New. Factor out common code for ensuring an
1830         integer argument is in the proper mode.
1831         (expand_builtin_sync_operation): Remove ignore param.  Always call
1832         expand_atomic_fetch_op instead of the old expanders.
1833         (expand_builtin_compare_and_swap,
1834         expand_builtin_sync_lock_test_and_set): Use expand_expr_force_mode,
1835         call atomic expanders instead of sync expanders.
1836         (expand_builtin_sync_lock_release): Call atomic_store expander.
1837         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
1838         expand_builtin_atomic_store, expand_builtin_atomic_fetch_op): New.
1839         (expand_builtin_atomic_exchange): New.
1840         (fold_builtin_atomic_always_lock_free,
1841         expand_builtin_atomic_always_lock_free,
1842         fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
1843         New.
1844         (expand_builtin_mem_thread_fence, expand_builtin_atomic_thread_fence,
1845         expand_builtin_atomic_signal_fence): New.
1846         (expand_builtin_mem_signal_fence): New.
1847         (expand_builtin): Add cases for BUILT_IN_ATOMIC_*.
1848         (fold_builtin_2): Add cases for BUILT_IN_ATOMIC_{IS,ALWAYS}_LOCK_FREE.
1849         * optabs.h (DOI_atomic_*): Define new atomics.
1850         (atomic_*_optab): Define.
1851         (can_compare_and_swap_p, expand_atomic_compare_and_swap): New
1852         prototypes.
1853         * optabs.c (expand_sync_operation, expand_sync_fetch_operation): Remove.
1854         (expand_sync_lock_test_and_set): Remove.
1855         (expand_atomic_load, expand_atomic_store): New.
1856         (expand_atomic_exchange): New.
1857         (expand_atomic_compare_and_swap): New.  Implements
1858         atomic_compare_exchange via compare and swap.
1859         (struct atomic_op_functions): Opcode table struct for fetch ops.
1860         (get_atomic_op_for_code): New.  Return an opcode table entry.
1861         (maybe_emit_op): New.  Try to emit a fetch op.
1862         (expand_atomic_fetch_op): New.
1863         (expand_val_compare_and_swap_1): Remove.
1864         (expand_val_compare_and_swap, expand_bool_compare_and_swap): Remove.
1865         (expand_atomic_compare_and_swap): Rename from
1866         expand_atomic_compare_exchange.  Rewrite to return both success and
1867         oldval return values; expand via both atomic and sync optabs.
1868         (can_compare_and_swap_p): New.
1869         (expand_compare_and_swap_loop): Use expand_atomic_compare_and_swap.
1870         (maybe_gen_insn): Handle 7 and 8 operands.
1871         * omp-low.c (expand_omp_atomic_fetch_op): Don't test individual
1872         fetch_op optabs, only test can_compare_and_swap_p.  Use __atomic
1873         builtins instead of __sync builtins.
1874         (expand_omp_atomic_pipeline): Use can_compare_and_swap_p.
1875         * doc/extend.texi: Document __atomic built-in functions.
1876         * doc/invoke.texi: Document data race parameters.
1877         * doc/md.texi: Document atomic patterns.
1878         * config/i386/i386.md (UNSPEC_MOVA): New.
1879         (UNSPECV_CMPXCHG): Split into ...
1880         (UNSPECV_CMPXCHG_1, UNSPECV_CMPXCHG_2,
1881         UNSPECV_CMPXCHG_3, UNSPECV_CMPXCHG_4): New.
1882         * config/i386/sync.md (ATOMIC): New mode iterator.
1883         (atomic_load<ATOMIC>, atomic_store<ATOMIC>): New.
1884         (atomic_loaddi_fpu, atomic_storedi_fpu, movdi_via_fpu): New.
1885         (mem_thread_fence): Rename from memory_barrier.
1886         Handle the added memory model parameter.
1887         (mfence_nosse): Rename from memory_barrier_nosse.
1888         (sync_compare_and_swap<CASMODE>): Split into ...
1889         (atomic_compare_and_swap<SWI124>): this and ...
1890         (atomic_compare_and_swap<CASMODE>): this.  Handle the new parameters.
1891         (atomic_compare_and_swap_single<SWI>): Rename from
1892         sync_compare_and_swap<SWI>; rewrite to use split unspecs.
1893         (atomic_compare_and_swap_double<DCASMODE>): Rename from
1894         sync_double_compare_and_swap<DCASMODE>; rewrite to use split unspecs.
1895         (*atomic_compare_and_swap_doubledi_pic): Rename from
1896         sync_double_compare_and_swapdi_pic; rewrite to use split unspecs.
1897         (atomic_fetch_add<SWI>): Rename from sync_old_add<SWI>; add memory
1898         model parameter.
1899         (*atomic_fetch_add_cmp<SWI>): Similarly.
1900         (atomic_add<SWI>, atomic<any_logic><SWI>): Similarly.
1901         (atomic_sub<SWI>): Similarly.  Use x86_maybe_negate_const_int.
1902         (sync_lock_test_and_set<SWI>): Merge with ...
1903         (atomic_exchange<SWI>): ... this.
1904
1905 2011-11-6  Richard Guenther  <rguenther@suse.de>
1906
1907         * ipa-prop.c (ipa_modify_call_arguments): Re-compute inlinable flag.
1908
1909 2011-11-06  Ira Rosen  <ira.rosen@linaro.org>
1910
1911         * tree-vectorizer.h (vectorizable_condition): Add argument.
1912         * tree-vect-loop.c (vectorizable_reduction): Fail for condition
1913         in SLP.  Update calls to vectorizable_condition.
1914         * tree-vect-stmts.c (vect_is_simple_cond): Add basic block info to
1915         the arguments.  Pass it to vect_is_simple_use_1.
1916         (vectorizable_condition): Add slp_node to the arguments.  Support
1917         vectorization of basic blocks.  Fail for reduction in SLP.  Update
1918         calls to vect_is_simple_cond and vect_is_simple_use.  Support SLP:
1919         call vect_get_slp_defs to get vector operands.
1920         (vect_analyze_stmt): Update calls to vectorizable_condition.
1921         (vect_transform_stmt): Likewise.
1922         * tree-vect-slp.c (vect_create_new_slp_node): Handle COND_EXPR.
1923         (vect_get_and_check_slp_defs): Handle COND_EXPR.  Allow pattern
1924         def stmts.
1925         (vect_build_slp_tree): Handle COND_EXPR.
1926         (vect_analyze_slp_instance): Push pattern statements to root node.
1927         (vect_get_constant_vectors): Fix comments.  Handle COND_EXPR.
1928
1929 2011-11-05  David S. Miller  <davem@davemloft.net>
1930
1931         * config/sparc/sparc.md (UNSPEC_SHORT_LOAD): New unspec.
1932         (zero-extend_v8qi_vis, zero_extend_v4hi_vis): New expanders.
1933         (*zero_extend_v8qi_<P:mode>_insn,
1934         *zero_extend_v4hi_<P:mode>_insn): New insns.
1935         * config/sparc/sparc.c (vector_init_move_words,
1936         vector_init_prepare_elts, sparc_expand_vector_init_vis2,
1937         sparc_expand_vector_init_vis1): New functions.
1938         (vector_init_bshuffle): Rewrite to handle more cases and make use
1939         of locs[] array prepared by vector_init_prepare_elts.
1940         (vector_init_fpmerge, vector_init_faligndata): Delete.
1941         (sparc_expand_vector_init): Rewrite using new infrastructure.
1942
1943 2011-11-05  Joern Rennecke  <joern.rennecke@embecosm.com>
1944
1945         * config.gcc (epiphany-*-*): New architecture.
1946         (epiphany-*-elf): New configuration.
1947         * config/epiphany, common/config/epiphany : New directories.
1948         * doc/extend.texi (disinterrupt attribute): Add Epiphany.
1949         (interrupt attribute): Add Epiphany.
1950         (long_call, short_call attribute): Add Epiphany.
1951         * doc/invoke.texi (Options): Add Epiphany options.
1952         * doc/md.texi (Machine Constraints): Add Epiphany constraints.
1953         * doc/install.texi (Options specification):
1954         Add --with-stack-offset=@var{num} description.
1955         (host/target specific issues): Add epiphany-*-elf.
1956         * doc/contrib.texi (Contributors): Mention Epiphany port.
1957
1958 2011-11-05  Jakub Jelinek  <jakub@redhat.com>
1959
1960         PR tree-optimization/50693
1961         * tree-cfg.c (gimple_can_merge_blocks_p): Allow merging with
1962         non-forced user labels.
1963         (gimple_merge_blocks): Turn non-forced user labels into
1964         debug bind stmt with the label as first operand and reset value.
1965         (gimple_duplicate_bb): Don't duplicate label debug stmts.
1966         * dwarf2out.c (gen_label_die): Handle NOTE_INSN_DELETED_DEBUG_LABEL.
1967         * final.c (final_scan_insn): Likewise.
1968         (rest_of_clean_state): Don't dump NOTE_INSN_DELETED_DEBUG_LABEL.
1969         * var-tracking.c (debug_label_num): New variable.
1970         (delete_debug_insns): Don't delete DEBUG_INSNs for LABEL_DECLs,
1971         instead turn them into NOTE_INSN_DELETED_DEBUG_LABEL notes.
1972         * cfglayout.c (skip_insns_after_block, duplicate_insn_chain): Handle
1973         NOTE_INSN_DELETED_DEBUG_LABEL.
1974         (duplicate_insn_chain): Don't duplicate LABEL_DECL DEBUG_INSNs.
1975         * insn-notes.def (DELETED_DEBUG_LABEL): New note kind.
1976         * print-rtl.c (print_rtx): Handle NOTE_INSN_DELETED_DEBUG_LABEL.
1977         * gengtype.c (adjust_field_rtx_def): Likewise.
1978         * config/i386/i386.c (ix86_output_function_epilogue): For MachO
1979         clear CODE_LABEL_NUMBER of NOTE_INSN_DELETED_DEBUG_LABEL
1980         if their are at the end of function and nop hasn't been emitted.
1981         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Likewise.
1982
1983 2011-11-05  Georg-Johann Lay  <avr@gjlay.de>
1984
1985         PR rtl-optimization/50448
1986         * cprop.c (try_replace_reg): Also try to replace uses of FROM that
1987         appear in SET_DEST.
1988
1989 2011-11-05  Peter Dufault  <dufault@hda.com>,
1990             Sebastian Huber  <sebastian.huber@embedded-brains.de>
1991
1992         * config/rs6000/rtems.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
1993         Extend rs6000_spe handling.
1994
1995 2011-11-05  Ralf Corsépius  <ralf.corsepius@rtems.org>
1996
1997         * config/rs6000/t-rtems: Add -mcpu=8540/-mfloat-gprs=double multilib.
1998         Remove -mcpu=601 multilib.
1999         Remove -Dmpc8260 multilib.
2000         * config/rs6000/rtems.h: Allow --float-gprs=... to override grps
2001         on E500 targets.
2002
2003 2011-11-05  Quentin Neill  <quentin.neill@amd.com>
2004
2005         Piledriver f16cintrin.h fix.
2006         * config/i386/f16cintrin.h: Contents moved from immintrin.h.
2007         * config/i386/immintrin.h: Include f16cintrin.h.
2008         * config.gcc (i[34567]86-*-*, x86_64-*-*): Add f16cintrin.h.
2009
2010
2011 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
2012
2013         PR c++/50608
2014         * c-parser.c (c_parser_postfix_expression) <RID_OFFSETOF>: Adjust call
2015         to fold_offsetof.
2016         * c-typeck.c (build_unary_op) <ADDR_EXPR>: Call fold_offsetof_1.
2017
2018 2011-11-04  Alan Modra  <amodra@gmail.com>
2019
2020         * reload1.c (gen_reload): Don't use REGNO on SUBREGs.
2021         * print-rtl.c (print_rtx): Don't segfault on negative regno.
2022
2023 2011-11-04  David S. Miller  <davem@davemloft.net>
2024
2025         PR target/49965
2026         * config/sparc/sparc.c (sparc_expand_conditional_move): Handle the
2027         fact that sparc_emit_float_lib_cmp modifies the comparison in
2028         operands[1].
2029
2030 2011-11-04  Ralf Corsépius  <ralf.corsepius@rtems.org>
2031
2032         * config/lm32/t-rtems: New.
2033         * config.gcc (lm32-*-rtems*): Add t-rtems.
2034
2035 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
2036
2037         PR target/50979
2038         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=v8.
2039
2040 2011-11-04  Jiangning Liu  <jiangning.liu@arm.com>
2041
2042         PR rtl-optimization/38644
2043         * config/arm/arm.c (thumb1_expand_epilogue): Add memory barrier
2044         for epilogue having stack adjustment.
2045
2046 2011-11-04  Georg-Johann Lay  <avr@gjlay.de>
2047
2048         PR target/50931
2049         * config/avr/avr-modes.def: New file defining PSImode.
2050         * config/avr/avr-c.c (__INT24_MAX__, __INT24_MIN__,
2051         __UINT24_MAX__): New built-in defines.
2052         * config/avr/avr.md (adjust_len): Add tstpsi, mov24,  reload_in24,
2053         ashlpsi, ashrpsi, lshrpsi.
2054         (QISI, QIDI, HISI, HIDI, MPUSH, rotx, rotsmode): Add PSI.
2055         (MOVMODE): New mode iterator.
2056         (movpsi): New expander.
2057         (movqi, movhi, movsi, movsf, movpsi): Write as one using MOVMODE.
2058         (*reload_inpsi, *movpsi): New insns.
2059         (*reload_inpsi): New RTL peephole.
2060         (addpsi3, *addpsi3_zero_extend.qi, *addpsi3_zero_extend.hi,
2061         *addpsi3_sign_extend.hi): New insns.
2062         (subpsi3, *subpsi3_zero_extend.qi, *subpsi3_zero_extend.hi,
2063         *subpsi3_sign_extend.hi): New insns.
2064         (divmodpsi4, udivmodpsi4): New define insn-and-split.
2065         (*divmodpsi4_call, *udivmodpsi4_call): New insns.
2066         (andpsi3, iorpsi3, xorpsi3): New insns.
2067         (*rotlpsi2.1, *rotlpsi2.23): New insns.
2068         (*rotw<mode>): Insn condition only allow even-sized modes.
2069         (*rotb<mode>): Insn condition allows odd-sized modes.
2070         (ashlpsi3, ashrpsi3, lshrpsi3, *addpsi3.lt0): New insns.
2071         (negpsi2, one_cmplpsi2): New insns.
2072         (extendqipsi2, extendhipsi2, extendpsisi2): New insns.
2073         (zero_extendqipsi2, zero_extendhipsi2, zero_extendpsisi2): New
2074         insn-and-splits.
2075         (*cmppsi, *negated_tstpsi, *reversed_tstpsi): New insns.
2076         (cbranchpsi4): New expander.
2077         * config/avr/constraints.md (Ca3, Co3, Cx3): New constraints.
2078         * config/avr/avr-protos.h (avr_out_tstpsi, avr_out_movpsi,
2079         avr_out_ashlpsi3, avr_out_ashrpsi3, avr_out_lshrpsi3,
2080         avr_out_reload_inpsi): New prototypes.
2081
2082         * config/avr/avr.c (TARGET_SCALAR_MODE_SUPPORTED_P): Define to...
2083         (avr_scalar_mode_supported_p): ...this new static function.
2084         (avr_asm_len): Always return "".
2085         (avr_out_load_psi, avr_out_store_psi): New static functions.
2086         (avr_out_movpsi, avr_out_reload_inpsi): New functions.
2087         (avr_out_tstpsi): New function.
2088         (avr_out_ashlpsi3, avr_out_ashrpsi3, avr_out_lshrpsi3): New functions.
2089         (avr_out_plus_1, output_reload_in_const): Handle 3-byte types.
2090         (avr_simplify_comparison_p): Ditto.
2091         (adjust_insn_length): Handle ADJUST_LEN_RELOAD_IN24,
2092         ADJUST_LEN_MOV24, ADJUST_LEN_TSTPSI, ADJUST_LEN_ASHLPSI,
2093         ADJUST_LEN_ASHRPSI, ADJUST_LEN_LSHRPSI.
2094         (avr_rtx_costs_1): Report PSI costs.
2095         (avr_libcall_value): Handle odd-sized parameters.
2096         (avr_init_builtin_int24): New static function to define built-in
2097         24-bit types __int24 and __uint24.
2098         (avr_init_builtins): Use it.
2099
2100 2011-11-04  Thomas Doerfler <thomas.doerfler@embedded-brains.de>
2101
2102         PR target/50989
2103         * config/arm/rtems-elf.h, config/arm/t-rtems: Add optional
2104         support for VFP floating point model.
2105
2106 2011-11-04  Tristan Gingold  <gingold@adacore.com>
2107
2108         * config/alpha/vms.h (ASM_OUTPUT_DEF): Do not switch section.
2109
2110 2011-11-04  Ira Rosen  <ira.rosen@linaro.org>
2111
2112         Unrevert:
2113         2011-10-24  Ira Rosen  <ira.rosen@linaro.org>
2114
2115         PR tree-optimization/50730
2116         * tree-vect-data-refs.c (vect_analyze_data_refs): Stop basic block
2117         analysis if encountered unsupported data-ref.
2118
2119 2011-11-04  Jakub Jelinek  <jakub@redhat.com>
2120
2121         * config/i386/i386.c (ix86_expand_vector_convert_uns_vsivsf): New
2122         function.
2123         * config/i386/i386-protos.h (ix86_expand_vector_convert_uns_vsivsf):
2124         New prototype.
2125         * config/i386/sse.md (floatuns<sseintvecmodelower><mode>2): Use it.
2126         For floatunsv8siv8sf2 require TARGET_AVX2.
2127
2128         * config/i386/i386.c (ix86_expand_adjust_ufix_to_sfix_si): Add
2129         XORP argument.  Subtract 0x1p31 instead of 0x1p32.  Use normal
2130         signalling comparison instead of non-signalling.  Store into
2131         *XORP pseudo holding 0x80000000 integers if 0x1p31 has been
2132         subtracted and 0 otherwise.
2133         * config/i386/i386-protos.h (ix86_expand_adjust_ufix_to_sfix_si):
2134         Adjust prototype.
2135         * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): Enable
2136         already for TARGET_SSE2.  Xor in vector initialized by
2137         ix86_expand_adjust_ufix_to_sfix_si at the end.
2138         (vec_pack_ufix_trunc_<mode>): Likewise.
2139
2140         * tree-vect-stmts.c (vectorizable_conversion): Rewritten to handle
2141         not just FLOAT_EXPR and FIX_TRUNC_EXPR, but also CONVERT_EXPR_CODE_P,
2142         WIDEN_MULT_EXPR and WIDEN_LSHIFT_EXPR to handle what
2143         vectorizable_type_demotion and vectorizable_type_promotion did.
2144         Additionally handle FLOAT_EXPR and FIX_TRUNC_EXPR where the integer
2145         is {,un}signed {char,short}.
2146         (vect_create_vectorized_demotion_stmts): Fix comment typo.  For
2147         recursive calls unconditionally use VEC_PACK_TRUNC_EXPR.
2148         Push vec_dest back to the vec_dsts vector at the end.
2149         (vect_create_vectorized_promotion_stmts): Don't recurse, do just
2150         one step.  Removed multi_step_cvt, vec_dsts, slp_node and
2151         prev_stmt_info arguments, add vec_dest argument.  Push always
2152         into vec_tmp, not just when multi_step_cvt != 0, replace *vec_oprdn0
2153         with vec_tmp at the end after freeing old *vec_oprnd0 vector.
2154         (vectorizable_type_demotion, vectorizable_type_promotion): Removed.
2155         (vect_analyze_stmt): Don't call vectorizable_type_demotion and
2156         vectorizable_type_promotion.  Call vectorizable_conversion even
2157         for SLP bb vectorization.
2158         (vect_transform_stmt): Call vectorizable_conversion instead of
2159         vectorizable_type_demotion and vectorizable_type_promotion.
2160         (supportable_widening_operation): Clear *multi_step_cvt first,
2161         simplify c1/c2 computation, free *interm_types vector on failure.
2162         (supportable_narrowing_operation): Clear *multi_step_cvt first,
2163         free *interm_types vector on failure, handle multi-step
2164         FIX_TRUNC_EXPR.
2165
2166 2011-11-04  Tristan Gingold  <gingold@adacore.com>
2167
2168         * config/alpha/alpha.c (alpha_write_linkage): Remove fundecl
2169         argument.  Conditionally generate crash debug info.  Adjust
2170         for alpha_funcs_tree removal.
2171         (machine_function): Add links field.
2172         (alpha_start_function): Conditionally generate crash debug info.
2173         (alpha_end_function): Adjust call to alpha_write_linkage.
2174         (alpha_funcs): Remove.
2175         (links_kind): Remove.
2176         (alpha_links): Remove num, target and lkind field.  Add func field.
2177         (alpha_links_tree): Remove.
2178         (alpha_funcs_tree): Remove.
2179         (alpha_need_linkage): Remove.
2180         (alpha_use_linkage): Change prototype.  Adjust.
2181         (alpha_write_one_linkage): Use ASM_OUTPUT_INTERNAL_LABEL.
2182         Use SYMBOL_REF_EXTERNAL_P and SYMBOL_REF_LOCAL_P macro.
2183         * config/alpha/alpha-protos.h (alpha_use_linkage): Update.
2184         (alpha_need_linkage): Remove.
2185         * config/alpha/alpha.md: Update calls to alpha_use_linkage.
2186         Adjust calls to alpha_need_linkage.
2187
2188 2011-11-03  Uros Bizjak  <ubizjak@gmail.com>
2189
2190         * sched-vis.c (print_value): Handle STRICT_LOW_PART.
2191
2192 2011-11-03  Uros Bizjak  <ubizjak@gmail.com>
2193
2194         * config/i386/i386.md (lround<X87MODEF:mode><SWI248x:mode>2,
2195         rint<mode>2, floor<mode>2, lfloor<MODEF:mode><SWI48:mode>2,
2196         btrunc<mode>2, lwp_lwpval<mode>3): Use operands[N] instead of operandN.
2197
2198 2011-11-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2199
2200         PR target/50978
2201         * config/arm/t-bpabi: New file.
2202         * config.gcc (arm*-*-linux*): Add arm/t-bpabi to tmake_file for
2203         arm*-*-linux-*eabi.
2204         (arm*-*-uclinux*): Add arm/t-bpabi to tmake_file for
2205         arm*-*-uclinux*eabi.
2206         (arm*-*-eabi*, arm*-*-symbianelf*): Add arm/t-bpabi to tmake_file
2207         for arm*-*-eabi*.
2208
2209 2011-11-03  Michael Matz  <matz@suse.de>
2210
2211         PR bootstrap/50857
2212         * configure.ac: Check for -fno-exceptions -fno-rtti.
2213         * configure: Regenerate.
2214         * Makefile.in (NOEXCEPTION_FLAGS): New flag.
2215         (ALL_CXXFLAGS): Use it.
2216
2217 2011-11-03  Uros Bizjak  <ubizjak@gmail.com>
2218
2219         * config/i386/i386.md: Use {} for multi-line preparation statements.
2220
2221 2011-11-03  Eric Botcazou  <ebotcazou@adacore.com>
2222
2223         * config/sparc/sparc.md (movtf_insn_sp32_no_fpu): Consolidate into...
2224         (movtf_insn_sp32): ...this.
2225         (movtf_insn_sp64_no_fpu): Consolidate into...
2226         (movtf_insn_sp64): ...this.
2227         (movtf_insn_sp64_hq): Do not test TARGET_FPU.
2228         * config/sparc/sparc.c (sparc_legitimate_address_p): Likewise.
2229
2230 2011-11-03  Tristan Gingold  <gingold@adacore.com>
2231
2232         * config/vms/vms.c (vms_patch_builtins): Fix typo.
2233
2234 2011-11-03  Richard Guenther  <rguenther@suse.de>
2235
2236         PR lto/44965
2237         * lto-opts.c: Re-implement.
2238         * lto-streamer.h (lto_register_user_option): Remove.
2239         (lto_read_file_options): Likewise.
2240         (lto_reissue_options): Likewise.
2241         (lto_clear_user_options): Likewise.
2242         (lto_clear_file_options): Likewise.
2243         * opts-global.c (post_handling_callback): Remove.
2244         (set_default_handlers): Do not set post_handling_callback.
2245         (decode_options): Remove LTO specific code.
2246         * lto-wrapper.c (merge_and_complain): New function.
2247         (run_gcc): Read all input file options and
2248         prepend a merged set before the linker driver options.
2249         * gcc.c (driver_post_handling_callback): Remove.
2250         (set_option_handlers): Do not set post_handling_callback.
2251         * opts-common.c (handle_option): Do not call post_handling_callback.
2252         * opts.h (struct cl_option_handlers): Remove post_handling_callback.
2253
2254 2011-11-03  Richard Guenther  <rguenther@suse.de>
2255
2256         * collect2.c (main): Guard object_nbr variable with TARGET_AIX_VERSION.
2257
2258 2011-11-03  Martin Jambor  <mjambor@suse.cz>
2259
2260         * ipa-prop.c (type_change_info): New fields offset, object,
2261         known_current_type and multiple_types_encountered.
2262         (extr_type_from_vtbl_ptr_store): New function.
2263         (check_stmt_for_type_change): Use it, set multiple_types_encountered if
2264         the result is different from the previous one.
2265         (detect_type_change): Renamed to detect_type_change_1. New parameter
2266         comp_type.  Set up new fields in tci, build known type jump
2267         functions if the new type can be identified.
2268         (detect_type_change): New function.
2269         * tree.h (DECL_CONTEXT): Comment new use.
2270
2271 2011-11-03  Richard Guenther  <rguenther@suse.de>
2272
2273         PR lto/48217
2274         * lto-wrapper.c (get_options_from_collect_gcc_options): Properly
2275         decode an encoded literal '.
2276
2277 2011-11-03  Tristan Gingold  <gingold@adacore.com>
2278
2279         * collect2.c (main): Add support of -f (response file) on AIX.
2280
2281 2011-11-03  Ira Rosen  <ira.rosen@linaro.org>
2282
2283         PR tree-optimization/50912
2284         * tree-vectorizer.h (slp_void_p): New.
2285         (struct _slp_tree): Replace left and right with children.  Update
2286         documentation.
2287         (struct _slp_oprnd_info): New.
2288         (vect_get_vec_defs): Declare.
2289         (vect_get_slp_defs): Update arguments.
2290         * tree-vect-loop.c (vect_create_epilog_for_reduction): Call
2291         vect_get_vec_defs instead of vect_get_slp_defs.
2292         (vectorizable_reduction): Likewise.
2293         * tree-vect-stmts.c (vect_get_vec_defs): Remove static, add argument.
2294         Update call to vect_get_slp_defs.
2295         (vectorizable_conversion): Update call to vect_get_vec_defs.
2296         (vectorizable_assignment, vectorizable_shift,
2297         vectorizable_operation): Likewise.
2298         (vectorizable_type_demotion): Call vect_get_vec_defs instead of
2299         vect_get_slp_defs.
2300         (vectorizable_type_promotion, vectorizable_store): Likewise.
2301         (vect_analyze_stmt): Fix typo.
2302         * tree-vect-slp.c (vect_free_slp_tree): Update SLP tree traversal.
2303         (vect_print_slp_tree, vect_mark_slp_stmts,
2304         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
2305         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
2306         vect_schedule_slp_instance): Likewise.
2307         (vect_create_new_slp_node): New.
2308         (vect_create_oprnd_info, vect_free_oprnd_info): Likewise.
2309         (vect_get_and_check_slp_defs): Pass information about defs using
2310         oprnds_info, allow any number of operands.
2311         (vect_build_slp_tree): Likewise.  Update calls to
2312         vect_get_and_check_slp_defs.  Fix comments.
2313         (vect_analyze_slp_instance): Move node creation to
2314         vect_create_new_slp_node.
2315         (vect_get_slp_defs): Allow any number of operands.
2316
2317 2011-11-02  Peter Bergner  <bergner@vnet.ibm.com>
2318             Iain Sandoe  <iains@gcc.gnu.org>
2319
2320         * config/rs6000/rs6000.c (USE_HIDDEN_LINKONCE): New define.
2321         (get_ppc476_thunk_name): Use it.
2322         (rs6000_code_end): Likewise.
2323         (macho_branch_islands): Fix typo.
2324
2325 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
2326             Jason Merrill  <jason@redhat.com>
2327
2328         PR c++/50810
2329         * configure.ac: Add -Wno-narrowing to warning options.
2330         * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
2331
2332 2011-11-02  Eric Botcazou  <ebotcazou@adacore.com>
2333
2334         PR target/50945
2335         * config/sparc/sparc.md (movsf_insn): Reindent constraints.
2336         (movdf_insn_sp32): Likewise.  Remove redundant G constraint.
2337         (movdf_insn_sp64): Likewise.
2338         (DFmode splitter): Do not test TARGET_FPU.
2339         (movtf_insn_sp32): Reindent constraints.
2340         (movtf_insn_sp32_no_fpu): Likewise.
2341         (movtf_insn_sp64): Likewise.
2342         (movtf_insn_sp64_hq): Likewise.
2343         (movtf_insn_sp64_no_fpu): Likewise.
2344
2345 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
2346
2347         PR c++/50956
2348         * builtins.c (fold_builtin_memchr): Fix cast.
2349
2350 2011-11-02  Teresa Johnson  <tejohnson@google.com>
2351
2352         * config/i386/predicates.md (promotable_binary_operator): Add minus
2353         to the list of promotable operators.
2354
2355 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2356
2357         * gthr-single.h, gthr.h: Move to ../libgcc.
2358         * gthr-aix.h: Move to ../libgcc/config/rs6000.
2359         * gthr-dce.h: Move to ../libgcc/config/pa.
2360         * gthr-lynx.h: Move to ../libgcc/config.
2361         * gthr-mipssde.h: Move to ../libgcc/config/mips.
2362         * gthr-posix.h: Move to ../libgcc/config.
2363         * gthr-rtems.h: Likewise.
2364         * gthr-tpf.h: Move to ../libgcc/config/s390.
2365         * gthr-vxworks.h: Move to ../libgcc/config.
2366         * gthr-win32.h: Move to ../libgcc/config/i386.
2367         * configure.ac (gthread_flags): Remove
2368         (gthr-default.h): Don't create.
2369         (thread_file): Don't substitute.
2370         * configure: Regenerate.
2371         * Makefile.in (GCC_THREAD_FILE): Remove.
2372         (GTHREAD_FLAGS): Remove.
2373         (libgcc.mvars): Remove GTHREAD_FLAGS.
2374         * config/t-vxworks (EXTRA_HEADERS): Remove.
2375
2376 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2377             Paolo Bonzini  <bonzini@gnu.org>
2378
2379         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Remove.
2380         * configure: Regenerate.
2381         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list): Remove.
2382         (TM_H): Remove libgcc_tm.h, $(libgcc_tm_file_list).
2383         (libgcc_tm.h, cs-libgcc_tm.h): Remove.
2384         (clean): Remove libgcc_tm.h
2385         * mkconfig.sh: Don't include libgcc_tm.h in tm.h.
2386         * config.gcc (libgcc_tm_file): Remove.
2387         (arm*-*-linux*): Remove libgcc_tm_file for arm*-*-linux-*eabi.
2388         (arm*-*-uclinux*): Remove libgcc_tm_file for arm*-*-uclinux*eabi.
2389         (arm*-*-eabi*, arm*-*-symbianelf*): Remove libgcc_tm_file.
2390         (avr-*-rtems*): Likewise.
2391         (avr-*-*): Likewise.
2392         (frv-*-elf): Likewise.
2393         (frv-*-*linux*): Likewise.
2394         (h8300-*-rtems*): Likewise.
2395         (h8300-*-elf*): Likewise.
2396         (i[34567]86-*-darwin*): Likewise.
2397         (x86_64-*-darwin*): Likewise.
2398         (rx-*-elf*): Likewise.
2399         (tic6x-*-elf): Likewise.
2400         (tic6x-*-uclinux): Likewise.
2401         (i[34567]86-*-linux*, x86_64-*-linux*): Likewise.
2402
2403 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2404
2405         * Makefile.in (LIBGCC2_DEBUG_CFLAGS LIBGCC2_CFLAGS)
2406         (LIBGCC2_INCLUDES, TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXTRA)
2407         (LIB2FUNCS_STATIC_EXTRA, LIB2FUNCS_EXCLUDE, T, T_TARGET)
2408         (INCLUDES_FOR_TARGET): Remove.
2409         (LIBGCC2_CFLAGS): Don't export.
2410         (LIB2FUNCS_ST, LIB2_DIVMOD_FUNCS, LIB2ADD, LIB2ADD_ST, srcdirify):
2411         Remove.
2412         (libgcc-support): Remove $(LIB2ADD), $(LIB2ADD_ST) dependencies.
2413         (libgcc.mvars): Likewise.
2414         Don't emit LIB2FUNCS_ST, LIB2FUNCS_EXCLUDE, LIB2ADD, LIB2ADD_ST,
2415         LIB2_SIDITI_CONV_FUNCS, LIB2_DIVMOD_FUNCS, LIBGCC2_CFLAGS,
2416         TARGET_LIBGCC2_CFLAGS.
2417         Emit GTHREAD_FLAGS.
2418         * libgcc2.c, libgcc2.h, gbl-ctors.h, longlong.h: Move to ../libgcc.
2419         * config/darwin-64.c: Move to ../libgcc/config.
2420         * config/divmod.c, config/floatunsidf.c, config/floatunsisf.c,
2421         config/floatunsitf.c, config/floatunsixf.c, config/udivmod.c,
2422         config/udivmodsi4.c: Move to ../libgcc/config.
2423         * config/gthr-posix.c: Move to ../libgcc/config/alpha.
2424         * config/memcmp.c, config/memcpy.c, config/memmove.c,
2425         config/memset.c: Move to ../libgcc/config.
2426         * config/t-darwin (TARGET_LIBGCC2_CFLAGS): Remove.
2427         * config/t-freebsd: Remove.
2428         * config/t-freebsd-thread: Move to ../libgcc/config.
2429         * config/t-libgcc-pic: Move to ../libgcc/config.
2430         * config/t-libunwind (TARGET_LIBGCC2_CFLAGS): Remove.
2431         * config/t-linux: Remove.
2432         * config/t-lynx (TARGET_LIBGCC2_CFLAGS, LIBGCC, INSTALL_LIBGCC):
2433         Remove.
2434         * config/t-openbsd-thread: Move to ../libgcc/config.
2435         * config/t-rtems (LIBGCC2_INCLUDES): Remove.
2436         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Remove.
2437         * config/t-svr4: Remove.
2438         * config/t-vxworks (LIBGCC, INSTALL_LIBGCC, TARGET_LIBGCC2_CFLAGS)
2439         (LIBGCC2_DEBUG_CFLAGS, LIB2FUNCS_EXTRA, LIBGCC2_INCLUDES): Remove.
2440         * config/vxlib.c, config/vxlib-tls.c: Move to ../libgcc/config.
2441         * config/alpha/qrnnd.asm: Move to ../libgcc/config/alpha/qrnnd.S.
2442         * config/alpha/t-alpha, config/alpha/t-ieee: Remove.
2443         * config/alpha/t-vms (LIB2FUNCS_EXTRA, LIBGCC, INSTALL_LIBGCC): Remove.
2444         * config/alpha/vms-gcc_shell_handler.c: Move to ../libgcc/config/alpha.
2445         * config/arm/bpabi.c, config/arm/unaligned-funcs.c,
2446         config/arm/fp16.c, config/arm/linux-atomic.c,
2447         config/arm/linux-atomic-64bit.c: Move to ../libgcc/config/arm.
2448         * config/arm/t-arm-elf (LIBGCC, INSTALL_LIBGCC)
2449         (TARGET_LIBGCC2_CFLAGS): Remove.
2450         * config/arm/t-bpabi, config/arm/t-linux: Remove.
2451         * config/arm/t-linux-eabi (TARGET_LIBGCC2_CFLAGS)
2452         (LIB2FUNCS_STATIC_EXTRA): Remove.
2453         * config/arm/t-netbsd: Remove.
2454         * config/arm/t-strongarm-elf (LIBGCC, INSTALL_LIBGCC)
2455         (TARGET_LIBGCC2_CFLAGS): Remove.
2456         * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Remove.
2457         * config/arm/t-wince-pe (LIBGCC, INSTALL_LIBGCC)
2458         (TARGET_LIBGCC2_CFLAGS): Remove.
2459         * config/avr/t-avr (LIB2FUNCS_EXCLUDE, TARGET_LIBGCC2_CFLAGS)
2460         (LIBGCC, INSTALL_LIBGCC): Remove.
2461         * config/bfin/t-bfin-elf (TARGET_LIBGCC2_CFLAGS): Remove.
2462         * config/bfin/t-bfin-linux: Likewise.
2463         * config/bfin/t-bfin-uclinux: Likewise.
2464         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
2465         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
2466         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
2467         config/c6x/ltf.c: Move to ../libgcc/config/c6x.
2468         * config/c6x/t-c6x-elf (LIB2FUNCS_EXCLUDE, LIB2FUNCS_EXTRA): Remove.
2469         * config/c6x/t-c6x-uclinux (TARGET_LIBGCC2_CFLAGS): Remove.
2470         * config/cris/arit.c: Move to ../libgcc/config/cris.
2471         * config/cris/cris_abi_symbol.c: Remove.
2472         * config/cris/cris.h: Remove obsolete comment.
2473         * config/cris/mulsi3.asm: Move to ../libgcc/config/cris/mulsi3.S.
2474         * config/cris/t-cris (LIB2FUNCS_EXTRA, CRIS_LIB1CSRC)
2475         ($(LIB2FUNCS_EXTRA)): Remove.
2476         * config/cris/t-elfmulti (LIB2FUNCS_STATIC_EXTRA, INSTALL_LIBGCC)
2477         (LIBGCC): Remove.
2478         * config/cris/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
2479         * config/fr30/t-fr30: Remove.
2480         * config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
2481         config/frv/modi.c, config/frv/uitod.c, config/frv/uitof.c,
2482         config/frv/ulltod.c, config/frv/ulltof.c, config/frv/umodi.c: Move
2483         to ../libgcc/config/frv.
2484         * config/frv/t-frv (LIB2FUNCS_EXTRA, TARGET_LIBGCC2_CFLAGS)
2485         (cmovh.c, cmovw.c, cmovd.c, modi.c, umodi.c, uitof.c, uitod.c)
2486         (ulltof.c, LIBGCC, INSTALL_LIBGCC): Remove.
2487         * config/frv/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
2488         * config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
2489         config/h8300/fixunssfsi.c, config/h8300/parityhi2.c,
2490         config/h8300/popcounthi2.c: Move to ../libgcc/config/h8300.
2491         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA, TARGET_LIBGCC2_CFLAGS)
2492         (LIBGCC, INSTALL_LIBGCC): Remove.
2493         * config/i386/gthr-win32.c: Move to ../libgcc/config/i386.
2494         * config/i386/t-cygming (LIBGCC2_INCLUDES): Remove.
2495         * config/i386/t-cygwin: Remove.
2496         * config/i386/t-darwin (LIB2_SIDITI_CONV_FUNCS, LIB2FUNCS_EXTRA)
2497         (LIB2FUNCS_EXCLUDE): Remove.
2498         * config/i386/t-darwin64 (LIB2_SIDITI_CONV_FUNCS, LIB2FUNCS_EXTRA)
2499         (LIBGCC, INSTALL_LIBGCC): Remove.
2500         * config/i386/t-gthr-win32: Move to ../libgcc/config/i386.
2501         * config/i386/t-linux64 (LIBGCC, INSTALL_LIBGCC): Remove.
2502         * config/i386/t-mingw-w32: Likewise.
2503         * config/i386/t-mingw-w64: Likewise.
2504         * config/i386/t-openbsd: Likewise.
2505         * config/i386/t-nto: Remove.
2506         * config/ia64/quadlib.c: Move to ../libgcc/config/ia64.
2507         * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, LIB2FUNCS_EXTRA)
2508         (quadlib.c): Remove.
2509         * config/ia64/t-ia64: Remove comment.
2510         * config/iq2000/lib2extra-funcs.c: Move to
2511         ../libgcc/config/iq2000/lib2funcs.c.
2512         * config/iq2000/t-iq2000: Remove.
2513         * config/m32c/m32c-lib2.c: Move to ../libgcc/config/m32c/lib2funcs.c.
2514         * config/m32c/m32c-lib2-trapv.c: Move to ../libgcc/config/m32c/trapv.c.
2515         * config/m32r/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
2516         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Remove.
2517         * config/m32r/t-m32r (TARGET_LIBGCC2_CFLAGS, LIBGCC)
2518         (INSTALL_LIBGCC): Remove.
2519         * config/m68k/fpgnulib.c: Move to ../libgcc/config/m68k.
2520         * config/m68k/t-floatlib: Remove.
2521         * config/m68k/t-mlibs (LIBGCC, INSTALL_LIBGCC): Remove.
2522         * config/mcore/t-mcore (TARGET_LIBGCC2_CFLAGS): Remove.
2523         Fix typo.
2524         (LIBGCC, INSTALL_LIBGCC): Remove.
2525         * config/mep/mep-lib2.c: Move to ../libgcc/config/mep/lib2funcs.c.
2526         * config/mep/mep-tramp.c: Move to ../libgcc/config/mep/tramp.c.
2527         * config/mep/t-mep (LIB2FUNCS_EXTRA): Remove.
2528         * config/mips/t-elf (TARGET_LIBGCC2_CFLAGS, LIBGCC)
2529         (INSTALL_LIBGCC): Remove.
2530         * config/mips/t-isa3264: Likewise.
2531         * config/mips/t-mips (LIB2_SIDITI_CONV_FUNCS): Remove.
2532         * config/mips/t-r3900 (TARGET_LIBGCC2_CFLAGS, LIBGCC)
2533         (INSTALL_LIBGCC): Remove.
2534         * config/mips/t-sde (LIBGCC, INSTALL_LIBGCC): Remove.
2535         * config/mips/t-sr71k (TARGET_LIBGCC2_CFLAGS, LIBGCC)
2536         (INSTALL_LIBGCC): Remove.
2537         * config/mips/t-vr (TARGET_LIBGCC2_CFLAGS)
2538         (LIB2FUNCS_STATIC_EXTRA): Remove.
2539         * config/mips/vr4120-div.S: Move to ../libgcc/config/mips.
2540         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Remove.
2541         * config/mn10300/t-mn10300 (LIBGCC, INSTALL_LIBGCC): Remove.
2542         * config/pa/fptr.c, config/pa/linux-atomic.c: Move to
2543         ../libgcc/config/pa.
2544         * config/pa/lib2funcs.asm: Move to ../libgcc/config/pa/lib2funcs.S.
2545         * config/pa/quadlib.c: Move to ../libgcc/config/pa.
2546         * config/pa/t-dce-thr (LIBGCC, INSTALL_LIBGCC): Remove.
2547         * config/pa/t-linux, config/pa/t-linux64: Remove.
2548         * config/pa/t-pa-hpux, config/pa/t-pa-hpux10,
2549         config/pa/t-pa-hpux11, config/pa/t-pa64: Remove.
2550         * config/pdp11/t-pdp11 (TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXTRA):
2551         Remove.
2552         * config/picochip/libgccExtras: Move to ../libgcc/config/picochip.
2553         * config/picochip/t-picochip (LIB2FUNCS_EXTRA, RANLIB_FOR_TARGET)
2554         (TARGET_LIBGCC2_CFLAGS, LIBGCC2_DEBUG_CFLAGS): Remove.
2555         * config/rs6000/crtresfpr.asm: Move to
2556         ../libgcc/config/rs6000/crtresfpr.S.
2557         * config/rs6000/crtresgpr.asm: Move to
2558         ../libgcc/config/rs6000/crtresgpr.S.
2559         * config/rs6000/crtresxfpr.asm: Move to
2560         ../libgcc/config/rs6000/crtresxfpr.S.
2561         * config/rs6000/crtresxgpr.asm: Move to
2562         ../libgcc/config/rs6000/crtresxgpr.S.
2563         * config/rs6000/crtsavfpr.asm: Move to
2564         ../libgcc/config/rs6000/crtsavfpr.S.
2565         * config/rs6000/crtsavgpr.asm: Move to
2566         ../libgcc/config/rs6000/crtsavgpr.S.
2567         * config/rs6000/darwin-asm.h: Move to ../libgcc/config/rs6000.
2568         * config/rs6000/darwin-fpsave.asm: Move to
2569         ../libgcc/config/rs6000/darwin-fpsave.S.
2570         * config/rs6000/darwin-gpsave.asm: Move to
2571         ../libgcc/config/rs6000/darwin-gpsave.S.
2572         * config/rs6000/darwin-tramp.asm: Move to
2573         ../libgcc/config/rs6000/darwin-tramp.S.
2574         * config/rs6000/darwin-vecsave.asm: Move to
2575         ../libgcc/config/rs6000/darwin-vecsave.S.
2576         * config/rs6000/darwin-world.asm: Move to
2577         ../libgcc/config/rs6000/darwin-world.S.
2578         * config/rs6000/e500crtres32gpr.asm: Move to
2579         ../libgcc/config/rs6000/e500crtres32gpr.S.
2580         * config/rs6000/e500crtres64gpr.asm: Move to
2581         ../libgcc/config/rs6000/e500crtres64gpr.S.
2582         * config/rs6000/e500crtres64gprctr.asm: Move to
2583         ../libgcc/config/rs6000/e500crtres64gprctr.S.
2584         * config/rs6000/e500crtrest32gpr.asm: Move to
2585         ../libgcc/config/rs6000/e500crtrest32gpr.S.
2586         * config/rs6000/e500crtrest64gpr.asm: Move to
2587         ../libgcc/config/rs6000/e500crtrest64gpr.S.
2588         * config/rs6000/e500crtresx32gpr.asm: Move to
2589         ../libgcc/config/rs6000/e500crtresx32gpr.S.
2590         * config/rs6000/e500crtresx64gpr.asm: Move to
2591         ../libgcc/config/rs6000/e500crtresx64gpr.S.
2592         * config/rs6000/e500crtsav32gpr.asm: Move to
2593         ../libgcc/config/rs6000/e500crtsav32gpr.S.
2594         * config/rs6000/e500crtsav64gpr.asm: Move to
2595         ../libgcc/config/rs6000/e500crtsav64gpr.S.
2596         * config/rs6000/e500crtsav64gprctr.asm: Move to
2597         ../libgcc/config/rs6000/e500crtsav64gprctr.S.
2598         * config/rs6000/e500crtsavg32gpr.asm: Move to
2599         ../libgcc/config/rs6000/e500crtsavg32gpr.S.
2600         * config/rs6000/e500crtsavg64gpr.asm: Move to
2601         ../libgcc/config/rs6000/e500crtsavg64gpr.S.
2602         * config/rs6000/e500crtsavg64gprctr.asm: Move to
2603         ../libgcc/config/rs6000/e500crtsavg64gprctr.S.
2604         * config/rs6000/eabi.asm: Move to ../libgcc/config/rs6000/eabi.S.
2605         * config/rs6000/t-aix43 (LIBGCC, INSTALL_LIBGCC, LIB2FUNCS_EXTRA)
2606         (TARGET_LIBGCC2_CFLAGS): Remove.
2607         * config/rs6000/t-aix52: Likewise.
2608         * config/rs6000/t-darwin: Remove.
2609         * config/rs6000/t-darwin64 (LIB2_SIDITI_CONV_FUNCS)
2610         (LIB2FUNCS_EXTRA): Remove.
2611         * config/rs6000/t-fprules (LIBGCC, INSTALL_LIBGCC): Remove.
2612         * config/rs6000/t-linux64 (TARGET_LIBGCC2_CFLAGS): Remove.
2613         * config/rs6000/t-lynx (LIB2FUNCS_EXTRA, tramp.S, LIBGCC)
2614         (INSTALL_LIBGCC): Remove.
2615         * config/rs6000/t-netbsd (LIB2FUNCS_EXTRA)
2616         (LIB2FUNCS_STATIC_EXTRA, tramp.S, crtsavfpr.S, crtresfpr.S)
2617         (crtsavgpr.S, crtresgpr.S, crtresxfpr.S, crtresxgpr.S, LIBGCC)
2618         (INSTALL_LIBGCC, $(T)crtsavfpr$(objext), $(T)crtresfpr$(objext))
2619         ($(T)crtsavgpr$(objext), $(T)crtresgpr$(objext))
2620         ($(T)crtresxfpr$(objext), $(T)crtresxgpr$(objext)): Remove.
2621         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA)
2622         (LIB2FUNCS_STATIC_EXTRA, eabi.S, tramp.S): Remove.
2623         * config/rs6000/t-spe (LIBGCC, INSTALL_LIBGCC): Remove.
2624         * config/rs6000/t-vxworks: Remove comment.
2625         * config/rs6000/tramp.asm: Move to ../libgcc/config/rs6000/tramp.S.
2626         * config/rx/t-rx (LIBGCC, INSTALL_LIBGCC): Remove.
2627         * config/sh/linux-atomic.asm: Move to
2628         ../libgcc/config/sh/linux-atomic.S.
2629         * config/sh/t-linux (LIB2FUNCS_EXTRA): Remove.
2630         * config/sh/t-netbsd: Remove.
2631         * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS, LIBGCC, INSTALL_LIBGCC):
2632         Remove.
2633         * config/sparc/t-elf (LIBGCC, INSTALL_LIBGCC): Remove.
2634         * config/sparc/t-leon: Likewise.
2635         * config/sparc/t-leon3: Likewise.
2636         * config/sparc/t-linux64: Likewise.
2637         * config/sparc/t-netbsd64: Fix typo.
2638         Remove comment.
2639         * config/spu/divmodti4.c, config/spu/divv2df3.c,
2640         config/spu/float_disf.c, config/spu/float_unsdidf.c,
2641         config/spu/float_unsdisf.c, config/spu/float_unssidf.c,
2642         config/spu/mfc_multi_tag_release.c,
2643         config/spu/mfc_multi_tag_reserve.c, config/spu/mfc_tag_release.c,
2644         config/spu/mfc_tag_reserve.c, config/spu/mfc_tag_table.c,
2645         config/spu/multi3.c: Move to ../libgcc/config/spu.
2646         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXCLUDE)
2647         (LIB2FUNCS_STATIC_EXTRA, LIB2_SIDITI_CONV_FUNCS, LIBGCC)
2648         (INSTALL_LIBGCC): Remove.
2649         * config/stormy16/stormy16-lib2.c: Move to
2650         ../libgcc/config/stormy16/lib2.c.
2651         * config/stormy16/stormy16-lib2-ashlsi3.c: Move to
2652         ../libgcc/config/stormy16/ashlsi3.c.
2653         * config/stormy16/stormy16-lib2-ashrsi3.c: Move to
2654         ../libgcc/config/stormy16/ashrsi3.c.
2655         * config/stormy16/stormy16-lib2-clzhi2.c: Move to
2656         ../libgcc/config/stormy16/clzhi2.c.
2657         * config/stormy16/stormy16-lib2-cmpsi2.c: Move to
2658         ../libgcc/config/stormy16/cmpsi2.c.
2659         * config/stormy16/stormy16-lib2-ctzhi2.c: Move to
2660         ../libgcc/config/stormy16/ctzhi2.c.
2661         * config/stormy16/stormy16-lib2-divsi3.c: Move to
2662         ../libgcc/config/stormy16/divsi3.c.
2663         * config/stormy16/stormy16-lib2-ffshi2.c: Move to
2664         ../libgcc/config/stormy16/ffshi2.c.
2665         * config/stormy16/stormy16-lib2-lshrsi3.c: Move to
2666         ../libgcc/config/stormy16/lshrsi3.c.
2667         * config/stormy16/stormy16-lib2-modsi3.c: Move to
2668         ../libgcc/config/stormy16/modsi3.c.
2669         * config/stormy16/stormy16-lib2-parityhi2.c: Move to
2670         ../libgcc/config/stormy16/parityhi2.c.
2671         * config/stormy16/stormy16-lib2-popcounthi2.c: Move to
2672         ../libgcc/config/stormy16/popcounthi2.c.
2673         * config/stormy16/stormy16-lib2-ucmpsi2.c: Move to
2674         ../libgcc/config/stormy16/ucmpsi2.c.
2675         * config/stormy16/stormy16-lib2-udivmodsi4.c: Move to
2676         ../libgcc/config/stormy16/udivmodsi4.c.
2677         * config/stormy16/stormy16-lib2-udivsi3.c: Move to
2678         ../libgcc/config/stormy16/udivsi3.c.
2679         * config/stormy16/stormy16-lib2-umodsi3.c: Move to
2680         ../libgcc/config/stormy16/umodsi3.c.
2681         * config/stormy16/t-stormy16: Move to ../libgcc/config/t-stormy16.
2682         * config/v850/t-v850 (INSTALL_LIBGCC): Remove.
2683         * config/xtensa/lib2funcs.S: Move to ../libgcc/config/xtensa.
2684         * config/xtensa/t-elf: Remove.
2685         * config/xtensa/t-xtensa (LIB2FUNCS_EXTRA): Remove.
2686         * config.gcc (*-*-freebsd*): Remove t-freebsd, t-freebsd-thread
2687         from tmake_file.
2688         (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu, *-*-knetbsd*-gnu,
2689         *-*-gnu*, *-*-kopensolaris*-gnu): Remove t-linux from tmake_file.
2690         (*-*-netbsd*): Remove t-libgcc-pic from tmake_file.
2691         (*-*-openbsd*): Likewise.
2692         Remove t-openbsd-thread for posix threads.
2693         (alpha*-*-linux*): Remove alpha/t-alpha, alpha/t-ieee from tmake_file.
2694         (alpha*-*-freebsd*): Likewise.
2695         (alpha*-*-netbsd*): Likewise.
2696         (alpha*-*-openbsd*): Likewise.
2697         (alpha64-dec-*vms*): Likewise.
2698         (alpha*-dec-*vms*): Likewise.
2699         (arm*-*-netbsdelf*): Remove arm/t-netbsd from tmake_file.
2700         (arm*-*-linux*): Remove t-linux from tmake_file.
2701         Remove arm/t-bpabi from tmake_file for arm*-*-linux-*eabi.
2702         (arm*-*-uclinux*): Remove arm/t-bpabi from tmake_file for
2703         arm*-*-uclinux*eabi.
2704         (arm*-*-eabi*, arm*-*-symbianelf* ): Remove arm/t-bpabi from
2705         tmake_file for arm*-*-eabi*.
2706         (fr30-*-elf): Remove tmake_file.
2707         (hppa*64*-*-linux*): Remove tmake_file.
2708         (hppa*-*-linux*): Likewise.
2709         (hppa[12]*-*-hpux10*): Remove pa/t-pa-hpux10, pa/t-pa-hpux from
2710         tmake_file.
2711         (hppa*64*-*-hpux11*): Remove pa/t-pa64, pa/t-pa-hpux from tmake_file.
2712         (hppa[12]*-*-hpux11*): Remove pa/t-pa-hpux11, pa/t-pa-hpux from
2713         tmake_file.
2714         (i[34567]86-*-elf*): Remove tmake_file.
2715         (x86_64-*-elf*): Likewise.
2716         (i[34567]86-*-nto-qnx*): Likewise.
2717         (i[34567]86-*-cygwin*): Remove i386/t-cygwin from tmake_file.
2718         (i[34567]86-*-mingw*, x86_64-*-mingw*): Remove i386/t-gthr-win32
2719         from tmake_file if using win32 threads.
2720         (iq2000*-*-elf*): Remove tmake-file.
2721         (microblaze*-linux*): Likewise.
2722         (sh-*-elf*, sh[12346l]*-*-elf*, sh-*-linux*)
2723         (sh[2346lbe]*-*-linux*, sh-*-netbsdelf*, shl*-*-netbsdelf*)
2724         (sh5-*-netbsd*, sh5l*-*-netbsd*, sh64-*-netbsd*)
2725         (sh64l*-*-netbsd*): Remove sh/t-netbsd from tmake_file for
2726         sh5*-*-netbsd*, sh64*-netbsd*, *-*-netbsd.
2727         (xtensa*-*-elf*): Remove tmake_file.
2728
2729 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2730
2731         * Makefile.in (LIB1ASMSRC): Don't export.
2732         (libgcc.mvars): Don't emit LIB1ASMFUNCS, LIB1ASMSRC.
2733         * config/arm/arm.c: Update lib1funcs.asm filename.
2734         * config/arm/linux-eabi.h: Likewise.
2735         * config/arm/bpabi-v6m.S, config/arm/bpabi.S,
2736         config/arm/ieee754-df.S, config/arm/ieee754-sf.S: Move to
2737         ../libgcc/config/arm.
2738         * config/arm/lib1funcs.asm: Move to ../libgcc/config/arm/lib1funcs.S.
2739         * config/arm/t-arm (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2740         * config/arm/t-arm-elf (LIB1ASMFUNCS): Remove.
2741         * config/arm/t-bpabi: Likewise.
2742         * config/arm/t-linux (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2743         * config/arm/t-linux-eabi (LIB1ASMFUNCS): Remove.
2744         * config/arm/t-strongarm-elf: Likewise.
2745         * config/arm/t-symbian: Likewise.
2746         * config/arm/t-vxworks: Likewise.
2747         * config/arm/t-wince-pe: Likewise.
2748         * config/avr/libgcc.S: Move to ../libgcc/config/avr.
2749         * config/avr/t-avr (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2750         * config/bfin/lib1funcs.asm: Move to ../libgcc/config/bfin/lib1funcs.S.
2751         * config/bfin/t-bfin: Remove.
2752         * config/bfin/t-bfin-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2753         * config/bfin/t-bfin-linux: Likewise.
2754         * config/bfin/t-bfin-uclinux: Likewise.
2755         * config/c6x/lib1funcs.asm: Move to ../libgcc/config/c6x/lib1funcs.S.
2756         * config/c6x/t-c6x-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2757         * config/fr30/lib1funcs.asm: Move to ../libgcc/config/fr30/lib1funcs.S.
2758         * config/fr30/t-fr30 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2759         * config/frv/lib1funcs.asm: Move to ../libgcc/config/frv/lib1funcs.S.
2760         * config/frv/t-frv (CROSS_LIBGCC1, LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2761         * config/h8300/fixunssfsi.c: Update lib1funcs.asm filename.
2762         * config/h8300/lib1funcs.asm: Move to
2763         ../libgcc/config/h8300/lib1funcs.S.
2764         * config/h8300/t-h8300 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2765         * config/i386/cygwin.asm: Move to ../libgcc/config/i386/cygwin.S.
2766         * config/i386/t-cygming (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2767         * config/i386/t-interix: Likewise.
2768         * config/ia64/lib1funcs.asm: Move to ../libgcc/config/ia64/lib1funcs.S.
2769         * config/ia64/t-hpux (LIB1ASMFUNCS, LIBGCC1_TEST): Remove.
2770         * config/ia64/t-ia64 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2771         * config/iq2000/t-iq2000 (LIBGCC1, CROSS_LIBGCC1): Remove.
2772         * config/m32c/m32c.c: Update m32c-lib1.S filename.
2773         * config/m32c/m32c-lib1.S: Move to ../libgcc/config/m32c/lib1funcs.S.
2774         * config/m32c/t-m32c (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2775         * config/m32r/t-linux (CROSS_LIBGCC1, LIBGCC1, LIBGCC1_TEST): Remove.
2776         * config/m68k/lb1sf68.asm: Move to ../libgcc/config/m68k/lb1sf68.S.
2777         * config/m68k/t-floatlib (LIB1ASMSRC, LIB1ASMFUNCS): New file.
2778         * config/mcore/lib1.asm: Move to ../libgcc/config/mcore/lib1funcs.S.
2779         * config/mcore/t-mcore (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2780         * config/mep/mep-lib1.asm: Move to ../libgcc/config/mep/lib1funcs.S.
2781         * config/mep/t-mep (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2782         * config/mips/mips16.S: Move to ../libgcc/config/mips.
2783         * config/mips/t-libgcc-mips16: Remove.
2784         * config/mips/t-sr71k (LIBGCC1, CROSS_LIBGCC1): Remove.
2785         * config/pa/milli64.S: Move to ../libgcc/config/pa.
2786         * config/pa/t-linux (LIB1ASMFUNCS, LIB1ASMSRC): Remove.
2787         * config/pa/t-linux64: Likewise.
2788         * config/picochip/libgccExtras/fake_libgcc.asm: Move to
2789         ../libgcc/config/picochip/lib1funcs.S.
2790         * config/picochip/t-picochip (LIB1ASMFUNCS, LIB1ASMSRC): Remove.
2791         * config/sh/lib1funcs.asm: Move to ../libgcc/config/sh/lib1funcs.S.
2792         * config/sh/lib1funcs.h: Move to ../libgcc/config/sh.
2793         * config/sh/sh.h: Update lib1funcs.asm filename.
2794         * config/sh/t-linux (LIB1ASMFUNCS_CACHE): Remove.
2795         * config/sh/t-netbsd: Likewise.
2796         * config/sh/t-sh (LIB1ASMSRC, LIB1ASMFUNCS, LIB1ASMFUNCS_CACHE):
2797         Remove.
2798         * config/sh/t-sh64 (LIB1ASMFUNCS): Remove.
2799         * config/sparc/lb1spc.asm: Move to ../libgcc/config/sparc/lb1spc.S.
2800         * config/sparc/lb1spl.asm: Remove.
2801         * config/sparc/t-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2802         * config/sparc/t-leon: Likewise.
2803         * config/spu/t-spu-elf (LIBGCC1, CROSS_LIBGCC1): Remove.
2804         * config/v850/lib1funcs.asm: Move to ../libgcc/config/v850/lib1funcs.S.
2805         * config/v850/t-v850 (LIB1ASMSRC, LIB1ASMFUNCS): Remove
2806         * config/vax/lib1funcs.asm: Move to ../libgcc/config/vax/lib1funcs.S.
2807         * config/vax/t-linux: Remove.
2808         * config/xtensa/ieee754-df.S, config/xtensa/ieee754-sf.S: Move to
2809         ../libgcc/config/xtensa.
2810         * config/xtensa/lib1funcs.asm: Move to
2811         ../libgcc/config/xtensa/lib1funcs.S.
2812         * config/xtensa/t-xtensa (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2813         * config.gcc (bfin*-rtems*): Remove bfin/t-bfin from tmake_file.
2814         (bfin*-*): Likewise.
2815         (mips64*-*-linux*, mipsisa64*-*-linux*): Remove
2816         mips/t-libgcc-mips16 from tmake_file.
2817         (mips*-*-linux*): Likewise.
2818         (mips*-sde-elf*): Likewise.
2819         (mipsisa32-*-elf*, mipsisa32el-*-elf*, mipsisa32r2-*-elf*)
2820         (mipsisa32r2el-*-elf*, mipsisa64-*-elf*, mipsisa64el-*-elf*)
2821         (mipsisa64r2-*-elf*, mipsisa64r2el-*-elf*): Likewise.
2822         (mipsisa64sb1-*-elf*, mipsisa64sb1el-*-elf*): Likewise.
2823         (mips-*-elf*, mipsel-*-elf*): Likewise.
2824         (mips64-*-elf*, mips64el-*-elf*): Likewise.
2825         (mips64orion-*-elf*, mips64orionel-*-elf*): Likewise.
2826         (mips*-*-rtems*): Likewise.
2827         (mipstx39-*-elf*, mipstx39el-*-elf*): Likewise.
2828         (vax-*-linux*): Remove vax/t-linux from tmake_file.
2829
2830 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2831
2832         * config.gcc (extra_parts): Remove.
2833         (*-*-freebsd*): Remove extra_parts.
2834         (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu, *-*-knetbsd*-gnu,
2835         *-*-gnu*, *-*-kopensolaris*-gnu): Likewise.
2836         (*-*-netbsd*): Remove t-libc-ok, t-netbsd from tmake_file.
2837         Remove extra_parts for *-*-netbsd*1.[7-9]*, *-*-netbsd[2-9]*,
2838         *-*-netbsdelf[2-9]*.
2839         (*-*-openbsd*): Remove t-libc-ok from tmake_file.
2840         (alpha*-*-linux*): Remove extra_parts.
2841         (alpha*-*-freebsd*): Likewise.
2842         (bfin*-linux-uclibc*): Likewise.
2843         (fr30-*-elf): Likewise.
2844         (moxie-*-elf): Likewise.
2845         (moxie-*-uclinux*): Likewise.
2846         (h8300-*-rtems*): Remove h8300/t-elf from tmake_file.
2847         (h8300-*-elf*): Likewise.
2848         (hppa*64*-*-hpux11*): Remove extra_parts.
2849         (i[34567]86-*-elf*): Remove i386/t-i386elf, i386/t-crtstuff from
2850         tmake_file.
2851         (x86_64-*-elf*): Likewise.
2852         (i[34567]86-*-freebsd*): Remove tmake_file.
2853         (x86_64-*-freebsd*): Likewise.
2854         (x86_64-*-netbsd*): Likewise.
2855         (i[34567]86-*-openbsd2.*, i[34567]86-*openbsd3.[0123]): Remove
2856         t-libc-ok from tmake_file.
2857         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
2858         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
2859         i[34567]86-*-kopensolaris*-gnu): Remove i386/t-crtstuff from
2860         tmake_file.
2861         Remove extra_parts.
2862         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
2863         Remove i386/t-crtstuff from tmake_file.
2864         (i[34567]86-*-lynxos*): Likewise.
2865         Remove extra_parts.
2866         (ia64*-*-elf*): Remove extra_parts.
2867         (ia64*-*-freebsd*): Likewise.
2868         (ia64*-*-linux*): Likewise.
2869         (ia64-hp-*vms*): Remove ia64/t-vms from tmake_file.
2870         (m32r-*-elf*): Remove extra_parts.
2871         (m32rle-*-elf*): Likewise.
2872         (m32r-*-rtems*): Likewise.
2873         (m68k-*-elf*, fido-*-elf*): Likewise.
2874         (m68k*-*-openbsd*): Remove t-libc-ok from tmake_file.
2875         (m68k-*-rtems*): Remove extra_parts.
2876         (mep-*-*): Likewise.
2877         (microblaze*-linux*): Likewise.
2878         (mips64*-*-linux*, mipsisa64*-*-linux*): Likewise.
2879         (mips*-*-linux*): Likewise.
2880         (powerpc-*-lynxos*): Likewise.
2881         (s390x-ibm-tpf*): Likewise.
2882         (score-*-elf): Likewise.
2883         Remove tmake_file.
2884         (sh-*-elf*, sh[12346l]*-*-elf*, sh-*-linux*, sh[2346lbe]*-*-linux*,
2885         sh-*-netbsdelf*, shl*-*-netbsdelf*, sh5-*-netbsd*, sh5l*-*-netbsd*,
2886         sh64-*-netbsd*, sh64l*-*-netbsd*): Remove sh/t-elf from tmake_file.
2887         Remove sh/t-superh from tmake_file for sh*-superh-elf.
2888         Remove sh/t-linux64 from tmake_file for sh64*-*-linux*.
2889         (sh-*-rtems*): Remove sh/t-elf from tmake_file.
2890         (sh-wrs-vxworks): Likewise.
2891         (sparc-*-linux*): Remove extra_parts.
2892         (sparc64-*-linux*): Likewise.
2893         (sparc64-*-freebsd*, ultrasparc-*-freebsd*): Likewise.
2894         (xstormy16-*-elf): Likewise.
2895         (xtensa*-*-linux*): Remove xtensa/t-linux from tmake_file.
2896         (am33_2.0-*-linux*): Remove extra_parts.
2897         * configure.ac (extra_parts): Don't substitute.
2898         * configure: Regenerate.
2899         * crtstuff.c: Move to ../libgcc.
2900         * Makefile.in (CRTSTUFF_CFLAGS): Remove.
2901         (EXTRA_PARTS): Remove.
2902         (CRTSTUFF_T_CFLAGS): Remove.
2903         (MOSTLYCLEANFILES): Remove $(EXTRA_PARTS).
2904         (GCC_EXTRA_PARTS): Remove.
2905         (libgcc.mvars): Remove GCC_EXTRA_PARTS, CRTSTUFF_CFLAGS,
2906         CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S.
2907         Emit GCC_CFLAGS, INHIBIT_LIBC_CFLAGS.
2908         ($(T)crtbegin.o, $(T)crtend.o, $(T)crtbeginS.o, $(T)crtendS.o)
2909         ($(T)crtbeginT.o): Remove.
2910         * config/alpha/t-vms (EXTRA_PARTS): Remove.
2911         ($(T)vms-dwarf2.o, $(T)vms-dwarf2eh.o): Remove.
2912         * config/alpha/vms-dwarf2.asm: Move to
2913         ../libgcc/config/alpha/vms-dwarf2.S.
2914         * config/alpha/vms-dwarf2eh.asm: Move to
2915         ../libgcc/config/alpha/vms-dwarf2eh.S.
2916         * config/arm/crti.asm: Move to ../libgcc/config/arm/crti.S.
2917         * config/arm/crtn.asm: Move to ../libgcc/config/arm/crtn.S.
2918         * config/arm/t-arm-elf (EXTRA_MULTILIB_PARTS): Remove.
2919         ($(T)crti.o, $(T)crtn.o): Remove.
2920         * config/arm/t-linux: Remove comment.
2921         * config/arm/t-linux-eabi (EXTRA_MULTILIB_PARTS): Remove.
2922         * config/arm/t-strongarm-elf (EXTRA_MULTILIB_PARTS): Remove.
2923         ($(T)crti.o, $(T)crtn.o): Remove.
2924         * config/arm/t-symbian (EXTRA_MULTILIB_PARTS): Remove.
2925         * config/bfin/crti.s: Move to ../libgcc/config/bfin/crti.S.
2926         * config/bfin/crtn.s: Move to ../libgcc/config/bfin/crtn.S.
2927         * config/bfin/crtlibid.s: Move to ../libgcc/config/bfin/crtlibid.S.
2928         * config/bfin/t-bfin (EXTRA_PARTS): Remove.
2929         ($(T)crti.o, $(T)crtn.o): Remove.
2930         * config/bfin/t-bfin-elf (CRTSTUFF_T_CFLAGS): Remove.
2931         ($(T)crti.o, $(T)crtn.o, $(T)crtlibid.o): Remove
2932         (EXTRA_MULTILIB_PARTS): Remove.
2933         * config/bfin/t-bfin-linux (CRTSTUFF_T_CFLAGS,
2934         EXTRA_MULTILIB_PARTS): Remove.
2935         * config/bfin/t-bfin-uclinux (CRTSTUFF_T_CFLAGS): Remove.
2936         ($(T)crtlibid.o): Remove.
2937         (EXTRA_MULTILIB_PARTS): Remove.
2938         * config/c6x/crti.s: Move to ../libgcc/config/c6x/crti.S.
2939         * config/c6x/crtn.s: Move to ../libgcc/config/c6x/crtn.S.
2940         * config/c6x/t-c6x-elf ($(T)crti.o, $(T)crtn.o): Remove.
2941         (EXTRA_MULTILIB_PARTS): Remove.
2942         (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
2943         * config/c6x/t-c6x-uclinux (CRTSTUFF_T_CFLAGS,
2944         CRTSTUFF_T_CFLAGS_S): Remove.
2945         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Remove.
2946         * config/cris/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
2947         * config/fr30/crti.asm: Move to ../libgcc/config/fr30/crti.S.
2948         * config/fr30/crtn.asm: Move to ../libgcc/config/fr30/crtn.S.
2949         * config/fr30/t-fr30 ($(T)crti.o, $(T)crtn.o): Remove.
2950         * config/frv/frvbegin.c, config/frv/frvend.c: Move to
2951         ../libgcc/config/frv.
2952         * config/frv/t-frv (EXTRA_MULTILIB_PARTS): Remove.
2953         (FRVSTUFF_CFLAGS, $(T)frvbegin$(objext), $(T)frvend$(objext)): Remove.
2954         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove.
2955         (CRTSTUFF_T_CFLAGS): Remove.
2956         * config/h8300/crti.asm: Move to ../libgcc/config/h8300/crti.S.
2957         * config/h8300/crtn.asm: Move to ../libgcc/config/h8300/crtn.S.
2958         * config/h8300/t-elf: Remove.
2959         * config/i386/cygming-crtbegin.c, config/i386/cygming-crtend.c:
2960         Move to ../libgcc/config/i386.
2961         * config/i386/t-crtstuff: Remove.
2962         * config/i386/t-i386elf: Remove.
2963         * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Remove.
2964         * config/i386/t-nto (CRTSTUFF_T_CFLAGS, EXTRA_PARTS): Remove.
2965         * config/ia64/crtbegin.asm: Move to ../libgcc/config/ia64/crtbegin.S.
2966         * config/ia64/crtend.asm: Move to ../libgcc/config/ia64/crtend.S.
2967         * config/ia64/crti.asm: Move to ../libgcc/config/ia64/crti.S.
2968         * config/ia64/crtn.asm: Move to ../libgcc/config/ia64/crtn.S.
2969         * config/ia64/t-vms: Remove.
2970         * config/ia64/vms-crtinit.asm: Move to
2971         ../libgcc/config/ia64/vms-crtinit.S.
2972         * config/m32c/t-m32c (EXTRA_MULTILIB_PARTS): Remove.
2973         * config/m32r/initfini.c: Move to ../libgcc/config/m32r.
2974         * config/m32r/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
2975         * config/m32r/t-m32r (CRTSTUFF_T_CFLAGS): Remove.
2976         ($(T)crtinit.o, $(T)crtfini.o): Remove.
2977         (m32rx, m32r2): Remove.
2978         (EXTRA_MULTILIB_PARTS): Remove.
2979         * config/m68k/crti.s: Move to ../libgcc/config/m68k/crti.S.
2980         * config/m68k/crtn.s: Move to ../libgcc/config/m68k/crtn.S.
2981         * config/m68k/t-crtstuff: Remove.
2982         * config/m68k/t-linux (EXTRA_MULTILIB_PARTS): Remove.
2983         * config/m68k/t-m68kelf: Remove.
2984         * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Remove.
2985         * config/mcore/crti.asm: Move to ../libgcc/config/mcore/crti.S.
2986         * config/mcore/crtn.asm: Move to ../libgcc/config/mcore/crtn.S.
2987         * config/mcore/t-mcore ($(T)crti.o, $(T)crtn.o): Remove.
2988         (EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Remove.
2989         * config/mep/t-mep (CRTSTUFF_CFLAGS): Remove.
2990         (EXTRA_MULTILIB_PARTS): Remove.
2991         * config/microblaze/crti.s: Move to ../libgcc/config/microblaze/crti.S.
2992         * config/microblaze/crtn.s: Move to ../libgcc/config/microblaze/crtn.S.
2993         * config/microblaze/t-microblaze (EXTRA_MULTILIB_PARTS,
2994         EXTRA_PARTS): Remove.
2995         ($(T)crti$(objext), $(T)crtn$(objext)): Remove.
2996         * config/mips/crti.asm: Move to ../libgcc/config/mips/crti.S.
2997         * config/mips/crtn.asm: Move to ../libgcc/config/mips/crtn.S.
2998         * config/mips/t-elf (CRTSTUFF_T_CFLAGS): Remove.
2999         ($(T)crti.o, $(T)crtn.o): Remove.
3000         (EXTRA_MULTILIB_PARTS): Remove.
3001         * config/mips/t-isa3264: Likewise.
3002         * config/mips/t-linux64 (EXTRA_MULTILIB_PARTS): Remove.
3003         * config/mips/t-r3900 (EXTRA_MULTILIB_PARTS): Remove.
3004         (CRTSTUFF_T_CFLAGS): Remove.
3005         * config/mips/t-sde (CRTSTUFF_T_CFLAGS): Remove.
3006         ($(T)crti.o, $(T)crtn.o): Remove.
3007         (EXTRA_MULTILIB_PARTS): Remove.
3008         * config/mips/t-sr71k (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS):
3009         Remove.
3010         ($(T)crti.o, $(T)crtn.o): Remove.
3011         * config/mips/t-st (EXTRA_MULTILIB_PARTS): Remove.
3012         * config/mips/t-vr (CRTSTUFF_T_CFLAGS): Remove.
3013         (EXTRA_MULTILIB_PARTS): Remove.
3014         ($(T)crti.o, $(T)crtn.o): Remove.
3015         * config/mmix/crti.asm: Move to ../libgcc/config/crti.S.
3016         * config/mmix/crtn.asm: Move to ../libgcc/config/crtn.S.
3017         * config/mmix/t-mmix (CRTSTUFF_T_CFLAGS): Remove.
3018         * config/moxie/crti.asm, config/moxie/crtn.asm: Remove.
3019         * config/pa/stublib.c: Move to libgcc/config/pa.
3020         * config/pa/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
3021         * config/pa/t-linux64 (CRTSTUFF_T_CFLAGS_S): Remove.
3022         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS, stublib.c): Remove.
3023         (pthread_default_stacksize_np-stub.o, pthread_mutex_lock-stub.o)
3024         (pthread_mutex_unlock-stub.o, pthread_once-stub.o)
3025         ($(T)libgcc_stub.a): Remove.
3026         * config/pa/t-pa64 (LIBGCCSTUB_OBJS, stublib.c): Remove.
3027         (rfi-stub.o, dfi-stub.o, cxaf-stub.o, jvrc-stub.o)
3028         (pthread_default_stacksize_np-stub.o, pthread_mutex_lock-stub.o)
3029         (pthread_mutex_unlock-stub.o, pthread_once-stub.o)
3030         ($(T)libgcc_stub.a): Remove.
3031         * config/rs6000/eabi-cn.asm: Move to
3032         ../../../libgcc/config/rs6000/eabi-cn.S.
3033         * config/rs6000/eabi-ci.asm: Move to
3034         ../../../libgcc/config/rs6000/eabi-ci.S.
3035         * config/rs6000/sol-ci.asm: Move to
3036         ../../../libgcc/config/rs6000/sol-ci.S.
3037         * config/rs6000/sol-cn.asm: Move to
3038         ../../../libgcc/config/rs6000/sol-cn.S.
3039         * config/rs6000/t-lynx (EXTRA_MULTILIB_PARTS): Remove.
3040         (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
3041         * config/rs6000/t-netbsd (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S):
3042         Remove.
3043         (EXTRA_MULTILIB_PARTS): Remove.
3044         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Remove.
3045         (ecrti.S, ecrtn.S, ncrti.S, ncrtn.S): Remove.
3046         ($(T)ecrti$(objext), $(T)ecrtn$(objext), $(T)ncrti$(objext),
3047         ($(T)ncrtn$(objext)): Remove.
3048         (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
3049         * config/rs6000/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
3050         * config/rx/t-rx (EXTRA_MULTILIB_PARTS): Remove.
3051         * config/score/crti.asm: Move to ../libgcc/config/score/crti.S.
3052         * config/score/crtn.asm: Move to ../libgcc/config/score/crtn.S.
3053         * config/score/t-score-elf: Remove.
3054         * config/sh/crt1.asm: Move to ../libgcc/config/sh/crt1.S.
3055         * config/sh/crti.asm: Move to ../libgcc/config/sh/crti.S.
3056         * config/sh/crtn.asm: Move to ../libgcc/config/sh/crtn.S.
3057         * config/sh/lib1funcs-4-300.asm: Move to
3058         ../../../libgcc/config/sh/lib1funcs-4-300.S.
3059         * config/sh/lib1funcs-Os-4-200.asm: Move to
3060         ../libgcc/config/sh/lib1funcs-Os-4-200.S.
3061         * config/sh/t-elf: Remove.
3062         * config/sh/t-linux (EXTRA_MULTILIB_PARTS): Remove.
3063         * config/sh/t-linux64: Remove.
3064         * config/sh/t-netbsd (EXTRA_MULTILIB_PARTS): Remove.
3065         * config/sh/t-sh ($(T)crt1.o, $(T)crti.o, $(T)crtn.o): Remove.
3066         (IC_EXTRA_PARTS, OPT_EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Remove.
3067         ($(T)ic_invalidate_array_4-100.o)
3068         ($(T)libic_invalidate_array_4-100.a)
3069         ($(T)ic_invalidate_array_4-200.o)
3070         ($(T)libic_invalidate_array_4-200.a, $(T)ic_invalidate_array_4a.o)
3071         ($(T)libic_invalidate_array_4a.a, $(T)sdivsi3_i4i-Os-4-200.o)
3072         ($(T)udivsi3_i4i-Os-4-200.o, $(T)unwind-dw2-Os-4-200.o)
3073         ($(T)libgcc-Os-4-200.a, $(T)div_table-4-300.o)
3074         ($(T)libgcc-4-300.a): Remove.
3075         * config/sh/t-superh: Remove.
3076         * config/sh/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
3077         * config/sparc/t-linux64 (CRTSTUFF_T_CFLAGS): Remove.
3078         * config/spu/cache.S: Move to ../libgcc/config/spu.
3079         * config/spu/cachemgr.c: Move to ../libgcc/config/spu.
3080         * config/spu/t-spu-elf (CRTSTUFF_T_CFLAGS): Remove.
3081         (EXTRA_MULTILIB_PARTS): Remove.
3082         ($(T)cachemgr.o, $(T)cachemgr_nonatomic.o, $(T)libgcc_%.a): Remove.
3083         ($(T)cache8k.o, $(T)cache16k.o, $(T)cache32k.o, $(T)cache32k.o)
3084         ($(T)cache64k.o, $(T)cache128k.o): Remove.
3085         * config/t-freebsd (CRTSTUFF_T_CFLAGS_S): Remove.
3086         * config/t-libc-ok: Remove.
3087         * config/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
3088         * config/t-lynx (CRTSTUFF_T_CFLAGS_S): Remove.
3089         * config/t-netbsd: Remove.
3090         * config/t-svr4 (CRTSTUFF_T_CFLAGS_S): Remove.
3091         * config/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
3092         * config/vms/t-vms (VMS_EXTRA_PARTS): Remove.
3093         ($(T)vcrt0.o, $(T)pcrt0.o): Remove.
3094         * config/vms/vms-ucrt0.c: Move to ../libgcc/config/vms.
3095         * config/xtensa/crti.asm: Move to ../libgcc/config/xtensa/crti.S.
3096         * config/xtensa/crtn.asm: Move to ../libgcc/config/xtensa/crtn.S.
3097         * config/xtensa/t-elf (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
3098         (EXTRA_MULTILIB_PARTS): Remove.
3099         * config/xtensa/t-linux: Remove.
3100         * config/xtensa/t-xtensa ($(T)crti.o, $(T)crtn.o): Remove.
3101
3102 2011-11-02  Uros Bizjak  <ubizjak@gmail.com>
3103
3104         * config/i386/i386.c (bdesc_args) [IX86_BUILTIN_CVTTPD2DQ256]: Use
3105         CODE_FOR_fix_truncv4dfv4si2, not CODE_FOR_fix_truncv4sfv4si2.
3106
3107 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3108
3109         PR translation/45116
3110         * Makefile.in (slibdir): Remove, don't export.
3111         (SHLIB_NM_FLAGS): Remove.
3112         (libgcc.mvars): Don't emit SHLIB_LINK, SHLIB_INSTALL,
3113         SHLIB_DLLDIR, SHLIB_EXT, SHLIB_MKMAP, SHLIB_MKMAP_OPTS,
3114         SHLIB_MAPFILES, SHLIB_NM_FLAGS.
3115         (DRIVER_DEFINES): Test SHLIB instead of SHLIB_LINK.
3116         (gcc.o): Pass SHLIB instead of SHLIB_LINK.
3117         (gccspec.o): Likewise.
3118         (installdirs): Don't create $(DESTDIR)$(slibdir).
3119         * configure.ac (slibdir): Remove.
3120         * configure: Regenerate.
3121         * libgcc-libsystem.ver: Move to ../libgcc/config.
3122         * mkmap-flat.awk, mkmap-symver.awk: Move to ../libgcc.
3123         * config/libgcc-glibc.ver: Move to ../libgcc/config.
3124         * config/t-libunwind (SHLIB_LC): Remove.
3125         * config/t-linux (SHLIB_MAPFILES): Remove.
3126         * config/t-slibgcc-dummy: Rename to config/t-slibgcc.
3127         * config/t-slibgcc-elf-ver: Remove.
3128         * config/t-slibgcc-libgcc, config/t-slibgcc-nolc-override: Move to
3129         ../libgcc/config.
3130         * config/alpha/libgcc-alpha-ldbl.ver, config/alpha/t-linux: Move
3131         to ../libgcc/config/alpha.
3132         * config/alpha/t-vms (shlib_version, SHLIB_EXT, SHLIB_OBJS,
3133         SHLIB_NAME, SHLIB_MULTILIB, SHLIB_INSTALL, SHLIB_SYMVEC,
3134         SHLIB_SYMVECX2, SHLIB_LINK): Remove.
3135         * config/arm/libgcc-bpabi.ver: Move to ../libgcc/config/arm.
3136         * config/arm/t-bpabi (SHLIB_MAPFILES): Remove.
3137         * config/arm/t-netbsd (SHLIB_EXT, SHLIB_NAME, SHLIB_SONAME,
3138         SHLIB_OBJS, SHLIB_LINK, SHLIB_INSTALL): Remove.
3139         * config/arm/t-symbian (SHLIB_LC): Remove.
3140         * config/bfin/libgcc-bfin.ver: Move to
3141         ../libgcc/config/bfin/libgcc-glibc.ver.
3142         * config/bfin/t-bfin-linux (SHLIB_MAPFILES): Remove.
3143         * config/c6x/libgcc-c6xeabi.ver: Move to
3144         ../libgcc/config/c6x/libgcc-eabi.ver.
3145         * config/c6x/t-c6x-elf (SHLIB_MAPFILES): Remove.
3146         * config/cris/libgcc.ver: Move to
3147         ../libgcc/config/cris/libgcc-glibc.ver.
3148         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
3149         * config/frv/libgcc-frv.ver: Move to ../libgcc/config/frv.
3150         * config/frv/t-linux (SHLIB_MAPFILES): Remove.
3151         * config/i386/darwin-libgcc.10.4.ver: Move to
3152         ../libgcc/config/i386/libgcc-darwin.10.4.ver.
3153         * config/i386/darwin-libgcc.10.5.ver: Move to
3154         ../libgcc/config/i386/libgcc-darwin.10.5.ver.
3155         * config/i386/libgcc-glibc.ver: Move to ../libgcc/config/i386.
3156         * config/i386/t-cygming (SHLIB_EXT, SHLIB_IMPLIB, SHLIB_SOVERSION,
3157         SHLIB_SONAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_DIR, SHLIB_SLIBDIR_QUAL)
3158         SHLIB_PTHREAD_CFLAG, SHLIB_PTHREAD_LDFLAG, SHLIB_LINK,
3159         SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MKMAP_OPTS, SHLIB_MAPFILES): Remove.
3160         * config/i386/t-cygwin (SHLIB_LC, SHLIB_EH_EXTENSION,
3161         SHLIB_IMPLIB, SHLIB_SONAME, SHLIB_MKMAP_OPTS): Remove.
3162         * config/i386/t-dlldir, config/i386/t-dlldir-x: Move to
3163         ../libgcc/config/i386.
3164         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Move to
3165         ../libgcc/config/i386.
3166         * config/i386/t-linux: Move to ../libgcc/config/i386.
3167         * config/i386/t-mingw-pthread: Move to ../libgcc/config/i386.
3168         * config/i386/t-mingw-w32 (SHLIB_LC): Remove.
3169         * config/i386/t-mingw-w64: Likewise.
3170         * config/i386/t-mingw32: Remove.
3171         * config/ia64/libgcc-glibc.ver, config/ia64/libgcc-ia64.ver: Move
3172         to ../libgcc/config/ia64.
3173         * config/ia64/t-glibc: Remove.
3174         * config/ia64/t-hpux (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL): Remove.
3175         * config/ia64/t-ia64 (SHLIB_MAPFILES): Remove.
3176         * config/ia64/t-vms (shlib_version, SHLIB_EXT, SHLIB_OBJS,
3177         SHLIB_NAME, SHLIB_MULTILIB, SHLIB_INSTALL, SHLIB_LINK): Remove.
3178         * config/ia64/vms_symvec_libgcc_s.opt: Remove.
3179         * config/m32r/libgcc-glibc.ver: Move to ../libgcc/config/m32r.
3180         * config/m32r/t-linux (SHLIB_MAPFILES): Remove.
3181         * config/m68k/t-slibgcc-elf-ver: Move to ../libgcc/config/m68k.
3182         * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Remove.
3183         * config/pa/t-hpux-shlib: Move to ../libgcc/config/pa/t-slibgcc-hpux.
3184         * config/pa/t-slibgcc-dwarf-ver, config/pa/t-slibgcc-sjsj-ver:
3185         Move to ../libgcc/config/pa.
3186         * config/rs6000/darwin-libgcc.10.4.ver: Move to
3187         ../libgcc/config/rs6000/libgcc-darwin.10.4.ver.
3188         * config/rs6000/darwin-libgcc.10.5.ver: Move to
3189         ../libgcc/config/rs6000/libgcc-darwin.10.5.ver.
3190         * config/rs6000/t-aix43 (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL,
3191         SHLIB_LIBS, SHLIB_MKMAP, SHLIB_NM_FLAGS, AR_FLAGS_FOR_TARGET): Remove.
3192         * config/rs6000/t-aix52: Likewise.
3193         * config/sh/libgcc-excl.ver, config/sh/libgcc-glibc.ver: Move to
3194         ../libgcc/config/sh.
3195         * config/sparc/libgcc-sparc-glibc.ver: Move to
3196         ../libgcc/config/sparc/libgcc-glibc.ver.
3197         * config/sparc/t-linux: Move to ../libgcc/config/sparc.
3198         * config/xtensa/t-linux (SHLIB_MAPFILES): Remove.
3199         * config/xtensa/libgcc-xtensa.ver: Move to
3200         ../libgcc/config/xtensa/libgcc-glibc.ver.
3201         * config.gcc (*-*-freebsd*): Replace t-slibgcc-elf-ver with
3202         t-slibgcc in tmake_file.
3203         Remove t-slibgcc-nolc-override for *-*-freebsd[34],
3204         *-*-freebsd[34].* with pthreads.
3205         (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu,
3206         *-*-knetbsd*-gnu, *-*-gnu*, *-*-kopensolaris*-gnu): Replace
3207         t-slibgcc-elf-ver with t-slibgcc in tmake_file.
3208         (*-*-netbsd*): Likewise.
3209         (*-*-solaris2*): Replace t-slibgcc-dummy with t-slibgcc in tmake_file.
3210         (*-*-*vms*): Add t-slibgcc to tmake_file.
3211         (alpha*-*-linux*): Remove alpha/t-linux from tmake_file.
3212         (alpha*-dec-osf5.1*): Replace t-slibgcc-dummy with t-slibgcc in
3213         tmake_file.
3214         (arm*-*-linux*): Remove t-slibgcc-libgcc from tmake_file for
3215         arm*-*-linux-*eabi.
3216         (bfin*-linux-uclibc*): Replace t-slibgcc-dummy with t-slibgcc in
3217         tmake_file.
3218         (crisv32-*-linux*, cris-*-linux*): Likewise.
3219         (hppa*-*-linux*): Remove t-slibgcc-libgcc, pa/t-slibgcc-sjlj-ver,
3220         pa/t-slibgcc-dwarf-ver from tmake_file.
3221         (hppa[12]*-*-hpux10*): Replace pa/t-hpux-shlib with t-slibgcc in
3222         tmake_file.
3223         Remove pa/t-slibgcc-sjlj-ver, pa/t-slibgcc-dwarf-ver from tmake_file.
3224         (hppa*64*-*-hpux11*): Likewise.
3225         (hppa[12]*-*-hpux11*): Likewise.
3226         (i[34567]86-*-darwin*): Replace t-slibgcc-dummy in t-slibgcc in
3227         tmake_file.
3228         (x86_64-*-darwin*): Likewise.
3229         (i[34567]86-*-cygwin*): Remove tmake_eh_file, tmake_dlldir_file.
3230         Add t-slibgcc to tmake_file.
3231         (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
3232         Remove i386/t-mingw32 from tmake_file unless x86_64-w64-*,
3233         i[34567]86-w64-*.
3234         Remove i386/t-mingw-pthread from tmake_file.
3235         (ia64*-*-linux*): Remove ia64/t-glibc from tmake_file.
3236         (ia64*-*-hpux*): Add t-slibgcc to tmake_file.
3237         (ia64-hp-*vms*): Likewise.
3238         (m32r-*-linux*): Replace t-slibgcc-elf-ver with t-slibgcc in
3239         tmake_file.
3240         (m32rle-*-linux*): Likewise.
3241         (m68k-*-linux*): Remove m68k/t-slibgcc-elf-ver from tmake_file.
3242         (microblaze*-linux*): Remove t-slibgcc-elf-ver,
3243         t-slibgcc-nolc-override from tmake_file.
3244         (mips-sgi-irix6.5*): Replace t-slibgcc-dummy with t-slibgcc in
3245         tmake_file.
3246         (powerpc-*-darwin*): Likewise.
3247         (powerpc64-*-darwin*): Likewise.
3248         (powerpc-*-freebsd*): Remove t-slibgcc-libgcc from tmake_file.
3249         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
3250         (rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*): Add
3251         t-slibgcc to tmake_file.
3252         (rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*): Likewise.
3253         (rs6000-ibm-aix5.2.*, powerpc-ibm-aix5.2.*): Likewise.
3254         (rs6000-ibm-aix5.3.*, powerpc-ibm-aix5.3.*): Likewise.
3255         (rs6000-ibm-aix[6789].*, powerpc-ibm-aix[6789].*): Likewise.
3256         (sparc-*-linux*): Remove sparc/t-linux from tmake_file.
3257         (sparc64-*-linux*): Likewise.
3258         (tic6x-*-uclinux): Replace t-slibgcc-elf-ver with t-slibgcc in
3259         tmake_file.
3260         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu,
3261         x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Remove i386/t-linux
3262         from tmake_file.
3263
3264 2011-11-02  Richard Guenther  <rguenther@suse.de>
3265
3266         PR tree-optimization/50902
3267         * tree-vect-stmts.c (vectorizable_load): Properly convert
3268         an invariant initializer element.
3269
3270 2010-11-02  Richard Guenther  <rguenther@suse.de>
3271
3272         PR tree-optimization/50890
3273         * gimple.h (gimple_fold_call): Remove.
3274         * gimple-fold.c (fold_stmt_1): Move all call related code to ...
3275         (gimple_fold_call): ... here.  Make static.  Update the
3276         cannot-inline flag on direct calls.
3277         * ipa-inline.c (early_inliner): Copy the cannot-inline flag
3278         from the statements to the edges.
3279
3280 2011-11-01  Ian Lance Taylor  <iant@google.com>
3281
3282         * godump.c (struct macro_hash_value): Define.
3283         (macro_hash_hashval): New static function.
3284         (macro_hash_eq, macro_hash_del): New static functions.
3285         (go_define): Use macro_hash_value to store values in macro_hash.
3286         Replace an old value on a redefinition.  Don't print anything to
3287         go_dump_file.
3288         (go_undef): Delete the entry from the hash table.
3289         (go_output_typedef): For an enum, use macro_hash_value, and don't
3290         print anything to go_dump_file.
3291         (go_print_macro): New static function.
3292         (go_finish): Traverse macro_hash with go_print_macro.
3293         (dump_go_spec_init): Update macro_hash creation for macro_hash_value.
3294
3295 2011-11-02  Alan Modra  <amodra@gmail.com>
3296
3297         * config/rs6000/rs6000.c (rs6000_code_end): Declare ATTRIBUTE_UNUSED.
3298
3299 2011-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
3300
3301         PR c++/44277
3302         * doc/invoke.texi: Document -Wzero-as-null-pointer-constant.
3303
3304 2011-11-01  Andrew Stubbs  <ams@codesourcery.com>
3305
3306         * config/arm/bpabi.h (BE8_LINK_SPEC): Recognize generic-armv7 tuning.
3307
3308 2011-11-01  Uros Bizjak  <ubizjak@gmail.com>
3309
3310         * config/i386/i386.md (splitters for int-float conversion): Use
3311         SUBREG_REG on SUBREGs in splitter constraints.
3312
3313 2011-11-01  Jakub Jelinek  <jakub@redhat.com>
3314
3315         * config/i386/i386-protos.h (ix86_expand_adjust_ufix_to_sfix_si): New
3316         prototype.
3317         * config/i386/i386.c (ix86_expand_adjust_ufix_to_sfix_si): New
3318         function.
3319         * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): Use it.
3320         (ssepackfltmode): New mode attr.
3321         (vec_pack_ufix_trunc_<mode>): New expander.
3322
3323 2011-11-01  Uros Bizjak  <ubizjak@gmail.com>
3324
3325         PR target/50940
3326         * config/i386/i386.md (floatsi<mode>2_vector_sse_with_temp splitter):
3327         Compare <ssevecmode>mode to V4SFmode, not V4SImode.
3328
3329 2011-11-01  Peter Bergner  <bergner@vnet.ibm.com>
3330
3331         * config.gcc (powerpc*-*-linux*): Add powerpc*-*-linux*ppc476* variant.
3332         * config/rs6000/476.h: New file.
3333         * config/rs6000/476.opt: Likewise.
3334         * config/rs6000/rs6000.h (TARGET_LINK_STACK): New define.
3335         (SET_TARGET_LINK_STACK): Likewise.
3336         (TARGET_ASM_CODE_END): Define.
3337         * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
3338         TARGET_LINK_STACK for -mtune=476 and -mtune=476fp.
3339         (rs6000_legitimize_tls_address): Emit the link stack preserving GOT
3340         code if TARGET_LINK_STACK.
3341         (rs6000_emit_load_toc_table): Likewise.
3342         (output_function_profiler): Likewise
3343         (macho_branch_islands): Likewise
3344         (machopic_output_stub): Likewise
3345         (get_ppc476_thunk_name): New function.
3346         (rs6000_code_end): Likewise.
3347         * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
3348         Convert to a define_expand.
3349         (load_toc_v4_PIC_1_normal): New define_insn.
3350         (load_toc_v4_PIC_1_476): Likewise.
3351         (load_toc_v4_PIC_1b_normal): Likewise.
3352         (load_toc_v4_PIC_1b_476): Likewise.
3353
3354 2011-11-01  Georg-Johann Lay  <avr@gjlay.de>
3355
3356         PR target/50910
3357         * config/avr/avr.opt (-mbranch-cost=): New option.
3358         * config/avr/avr.h (BRANCH_COST): Define to avr_branch_cost.
3359         * config/avr/avr.c (avr_rtx_costs_1): Adjust [U]DIV/[U]MOD costs.
3360         * config/avr/avr.md (*addqi3.lt0, *addhi3.lt0, *addsi3.lt0): New insns.
3361         (*addhi3_zero_extend1): Remove % in constraint of operand 1.
3362         (*addhi3.sign_extend1, *subhi3.sign_extend2): New insns.
3363
3364 2011-11-01  Tom de Vries  <tom@codesourcery.com>
3365
3366         PR tree-optimization/50908
3367         * tree-ssa-tail-merge.c (update_vuses): Now that edges are removed
3368         before update_vuses, test for 1 predecessor rather than two.
3369         (delete_block_update_dominator_info): New function, part of it factored
3370         out of ...
3371         (replace_block_by): Use delete_block_update_dominator_info.  Call
3372         update_vuses after deleting bb1 and updating dominator info, instead of
3373         before.
3374
3375 2011-11-01  David S. Miller  <davem@davemloft.net>
3376
3377         * config/sparc/sparc.c (vector_init_faligndata): New function.
3378         (sparc_expand_vector_init): Use it for V4HImode on VIS1.
3379
3380         * config/sparc/sparc.c (sparc_expand_vcond): New function.
3381         * config/sparc/sparc-protos.h (sparc_expand_vcond): Declare it.
3382         * config/sparc/sparc.md (vcond<mode><mode>): New VIS3 expander.
3383         (vconduv8qiv8qi): Likewise.
3384
3385 2011-11-01  Alexandre Oliva  <aoliva@redhat.com>
3386
3387         PR debug/50869
3388         * cselib.c (cfa_base_preserved_regno): Initialize.
3389         (cselib_expand_value_rtx_1): Don't expand it.
3390         * var-tracking.c (vt_expand_var_loc_chain): Initialize depth.
3391         Check it's only zero if result is NULL.
3392
3393 2011-11-01  Jakub Jelinek  <jakub@redhat.com>
3394
3395         * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): New
3396         expander.
3397
3398         * config/i386/sse.md (sseintvecmode): Remove duplicate modes.
3399         (sseintvecmodelower): New mode iterator.
3400         (floatv8siv8sf2, floatunsv4siv4sf2): Macroize into...
3401         (float<sseintvecmodelower><mode>2): ... this using VF1 iterator.
3402         (floatunsv4siv4sf2): Macroize into...
3403         (floatuns<sseintvecmodelower><mode>2): ... this using VF1 iterator.
3404
3405 2011-10-31  David S. Miller  <davem@davemloft.net>
3406
3407         * config/sparc/sparc.md (cmask patterns): Allow zero operand.
3408
3409         * dwarf2out.c (cached_next_real_insn): New.
3410         (dwarf2out_end_epilogue): Set it to NULL_RTX.
3411         (dwarf2out_var_location): Remove cached_next_real_insn local static.
3412
3413 2011-10-31  Richard Henderson  <rth@redhat.com>
3414
3415         * config/i386/sse.md (floatv8siv8sf2): Rename from avx_cvtdq2ps256.
3416         (floatv4siv4sf2): Rename from sse2_cvtdq2ps.
3417         (floatunsv4siv4sf2): Rename from sse2_cvtudq2ps.
3418         (fix_truncv8sfv8si2): Rename from avx_cvttps2dq256.
3419         (fix_truncv4sfv4si2): Rename from sse2_cvttps2dq.
3420         (floatv4siv4df2): Rename from avx_cvtdq2pd256.
3421         (fix_truncv4dfv4si2): Rename from avx_cvttpd2dq256.
3422         (vec_unpacku_float_hi_v8si): Update for insn pattern name changes.
3423         * config/i386/i386.md (splitters for int-float conversion): Likewise.
3424         * config/i386/i386.c (ix86_split_convert_uns_si_sse): Likewise.
3425         (bdesc_args): Likewise.
3426         (enum ix86_builtins) [IX86_BUILTIN_CVTUDQ2PS]: Remove.
3427         (ix86_vectorize_builtin_conversion): Remove.
3428         (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
3429
3430 2011-10-31  Martin Jambor  <mjambor@suse.cz>
3431
3432         * ipa-prop.c (mark_modified): Moved up in the file.
3433         (is_parm_modified_before_call): Renamed to
3434         is_parm_modified_before_stmt, moved up in the file.
3435         (load_from_unmodified_param): New function.
3436         (compute_complex_assign_jump_func): Also attempt to create pass
3437         through jump functions for values loaded from (addressable)
3438         parameters.
3439
3440 2011-10-31  Jakub Jelinek  <jakub@redhat.com>
3441
3442         * tree-vect-stmts.c (vectorizable_shift): If op1 is vect_external_def
3443         in a loop and has different type from op0, cast it to op0's type
3444         before the loop first.  For slp give up.  Don't crash if op1_vectype
3445         is NULL.
3446
3447 2011-10-31  Paul Brook  <paul@codesourcery.com>
3448
3449         * cgraphunit.c: Don't mark clones as static constructors.
3450
3451 2011-10-31  David Edelsohn  <dje.gcc@gmail.com>
3452
3453         * gcc-ar: Do not include stdio.h.
3454
3455 2011-10-31  Diego Novillo  <dnovillo@google.com>
3456
3457         * tree-streamer-out.c (pack_ts_base_value_fields): Emit
3458         TYPE_ADDR_SPACE.
3459         * tree-streamer-in.c (unpack_ts_base_value_fields): Read
3460         TYPE_ADDR_SPACE.
3461
3462 2011-10-30  David S. Miller  <davem@davemloft.net>
3463
3464         * config/sparc/sparc.c (vector_init_bshuffle): New function.
3465         (vector_init_fpmerge): New function.
3466         (sparc_expand_vector_init): Use them to improve non-const cases.
3467
3468         * dwarf2out.c (dwarf2out_var_location): When processing several
3469         consecutive location notes, cache the result of next_real_insn().
3470
3471 2011-10-30  Uros Bizjak  <ubizjak@gmail.com>
3472
3473         * config/i386/i386.md (avx2_vec_dup<mode>): Macroize insn from
3474         avx2_vec_dup{v8sf,v4sf} using VF1 mode iterator.
3475         (vec_dupv4sf): Remove expander.
3476         (vec_dupv4sf): Merge from *vec_dupv4sf and *vec_dupv4sf_avx.
3477         (vec_dupv2df): Remove expander.
3478         (vec_dupv2df): Merge from *vec_dupv2df and *vec_dupv2df_sse3.
3479         (*vec_concatv2df): Merge *vec_concatv2df_sse3.
3480         (*vec_dupv4si): Merge *vec_dupv4si_avx.
3481         (*vec_dupv2di): Merge *vec_dupv2di_sse3.
3482
3483 2011-10-30  Dmitry Plotnikov  <dplotnikov@ispras.ru>
3484
3485         * tree-cfg.c (verify_gimple_assign_unary): Allow vector conversions.
3486         * optabs.c (supportable_convert_operation): New function.
3487         * optabs.h (supportable_convert_operation): New prototype.
3488         * tree-vect-stmts.c (vectorizable_conversion): Change condition and
3489         behavior for NONE modifier case.
3490         * tree.h (VECTOR_INTEGER_TYPE_P): New macro.
3491
3492 2011-10-30  Jakub Jelinek  <jakub@redhat.com>
3493
3494         * tree-vectorizer.h (NUM_PATTERNS): Bump to 9.
3495         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): New
3496         function.
3497         (vect_vect_recog_func_ptrs): Add it.
3498
3499 2011-10-30  David S. Miller  <davem@davemloft.net>
3500
3501         * reorg.c (label_before_next_insn): New function.
3502         (relax_delay_slots): Use it instead of prev_label.
3503         * rtl.h (prev_label): Delete declaration.
3504         * emit-rtl.c (prev_label): Remove.
3505
3506 2011-10-30  Revital Eres  <revital.eres@linaro.org>
3507
3508         * modulo-sched.c (generate_prolog_epilog): Mark prolog and epilog
3509         as BB_DISABLE_SCHEDULE.
3510         (mark_loop_unsched): New function.
3511         (sms_schedule): Call it.
3512
3513 2011-10-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3514
3515         PR target/50617
3516         * config/pa/protos.h (attr_length_save_restore_dltp): Delete.
3517         (cmpib_comparison_operator): Likewise.
3518         (following_cal, output_and, output_ior, output_move_double,
3519         output_fp_move_double, output_block_move, output_block_clear,
3520         output_cbranch, output_lbranch, output_bb, output_bvb, output_dbra,
3521         output_movb, output_parallel_movb, output_parallel_addb, output_call,
3522         output_indirect_call, output_millicode_call, output_mul_insn,
3523         output_div_insn, output_mod_insn, singlemove_string,
3524         output_arg_descriptor, output_global_address, print_operand,
3525         legitimize_pic_address, hppa_encode_label, symbolic_expression_p,
3526         fmpyaddoperands, fmpysuboperands, emit_bcond_fp, emit_move_sequence,
3527         emit_hpdiv_const, is_function_label_plus_const, jump_in_call_delay,
3528         hppa_fpstore_bypass_p, attr_length_millicode_call, attr_length_call,
3529         attr_length_indirect_call, return_addr_rtx, function_arg_padding,
3530         insn_refs_are_delayed, get_deferred_plabel, ldil_cint_p, zdepi_cint_p,
3531         output_ascii, compute_frame_size, and_mask_p, cint_ok_for_move,
3532         hppa_expand_prologue, hppa_expand_epilogue, ior_mask_p,
3533         compute_zdepdi_operands, output_64bit_and, output_64bit_ior,
3534         reloc_needed, magic_milli, shadd_constant_p): Consistently prefix
3535         exported functions and variables with "pa_".
3536         * config/pa/predicates.md: Likewise.
3537         * config/pa/pa64-hpux.h: likewise.
3538         * config/pa/som.h: Likewise.
3539         * config/pa/elf.h: Likewise.
3540         * config/pa/pa64-linux.h: Likewise.
3541         * config/pa/pa.md: Likewise.
3542         * config/pa/pa.c: Likewise.
3543         * config/pa/pa-linux.h: Likewise.
3544         * config/pa/pa.h: Likewise.
3545         * config/pa/constraints.md: Likewise.
3546
3547 2011-10-29  Uros Bizjak  <ubizjak@gmail.com>
3548
3549         * config/i386/i386.md (xop_sha<mode>3): Rename from xop_ashl<mode>3.
3550         Update all uses.
3551         (xop_shl<mode>3): Rename from xop_lshl<mode>3.  Update all uses.
3552         * config/i386/i386.c: Update all uses.
3553
3554 2011-10-29  Uros Bizjak  <ubizjak@gmail.com>
3555
3556         * config/i386/i386.md (lshlv16qi3): Remove expander.
3557         (lshrv16qi3): New expander.
3558         (<shift_insn>v16qi3): Macroize expander from ashrv16qi3 and lshrv16qi3
3559         using any_shiftrt code iterator. Cleanup.
3560         (ashlv16qi3): Cleanup.
3561         (ashrv2di3): Ditto.
3562
3563 2011-10-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3564
3565         PR target/50691
3566         * config/pa/pa.c (emit_move_sequence): Legitimize TLS symbol
3567         references.
3568         (pa_legitimate_constant_p): Return false for TLS_MODEL_GLOBAL_DYNAMIC
3569         and TLS_MODEL_LOCAL_DYNAMIC symbol references.
3570
3571 2011-10-29  Georg-Johann Lay  <avr@gjlay.de>
3572
3573         PR target/50887
3574         * config/avr/avr.opt (-maccumulate-args): New option.
3575         * config/avr/avr.h (STARTING_FRAME_OFFSET): Redefine to
3576         avr_starting_frame_offset.
3577         (ACCUMULATE_OUTGOING_ARGS): Define to avr_accumulate_outgoing_args.
3578         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): Remove.
3579         (UNSPECV_WRITE_SP_IRQ_OFF): Remove.
3580         (UNSPECV_WRITE_SP): New constant.
3581         (*addhi3_sp_R): Rewrite to...
3582         (*addhi3_sp): ...this new insn.
3583         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): Combine to...
3584         (movhi_sp_r): ...this new insn.
3585         * config/avr/avr-protos.h (avr_accumulate_outgoing_args): New.
3586         (avr_starting_frame_offset): New.
3587         * config/avr/avr.c (avr_accumulate_outgoing_args): New function.
3588         (avr_starting_frame_offset): New function.
3589         (avr_outgoing_args_size): New static function.
3590         (avr_initial_elimination_offset): Use it.
3591         (avr_simple_epilogue): Use it.
3592         (avr_asm_function_end_prologue): Use it.
3593         (expand_epilogue): Use it.
3594         (expand_prologue): Use it.  Break out code to...
3595         (avr_prologue_setup_frame): ...this new static function.
3596         (avr_can_eliminate): Allow eliminating to frame pointer if there
3597         is one.
3598         (avr_frame_pointer_required_p): Use frame pointer if target has a
3599         nonlocal label.
3600         * config/avr/constraints.md (R): Remove.
3601         (Csp): New constraint.
3602         * config/avr/predicates.md (avr_sp_immediate_operand): Use it.
3603
3604 2011-10-29  Andi Kleen  <ak@linux.intel.com>
3605
3606         * gcc-ar.c (target_machine): Add.
3607
3608 2011-10-29  Anatoly Sokolov  <aesok@post.ru>
3609
3610         * config/cris/cris.c (reg_ok_for_base_p, reg_ok_for_index_p,
3611         cris_constant_index_p, cris_base_p, cris_index_p,
3612         cris_base_or_autoincr_p, cris_bdap_index_p, cris_biap_index_p,
3613         cris_legitimate_address_p): New functions.
3614         (TARGET_LEGITIMATE_ADDRESS_P): Define.
3615         (cris_pic_symbol_type, cris_valid_pic_const): Change arguments type
3616         from rtx to const_rtx.
3617         (cris_print_operand_address, cris_address_cost,
3618         cris_side_effect_mode_ok):  Use
3619         cris_constant_index_p, cris_base_p, cris_base_or_autoincr_p,
3620         cris_biap_index_p and cris_bdap_index_p.
3621         * config/cris/cris.h (CONSTANT_INDEX_P, BASE_P, BASE_OR_AUTOINCR_P,
3622         BDAP_INDEX_P, BIAP_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
3623         REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
3624         (EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_R, EXTRA_CONSTRAINT_T): Use
3625         cris_constant_index_p, cris_base_p, cris_base_or_autoincr_p,
3626         cris_biap_index_p and cris_bdap_index_p.
3627         * config/cris/cris.md (moversideqi movemsideqi peephole2): Use
3628         cris_base_p.
3629         * config/cris/cris-protos.h (cris_constant_index_p, cris_base_p,
3630         cris_base_or_autoincr_p, cris_bdap_index_p, cris_biap_index_p): New
3631         prototype.
3632         (cris_pic_symbol_type, cris_valid_pic_const): Update prototype.
3633
3634 2011-10-21  Andi Kleen  <ak@linux.intel.com>
3635
3636         * ggc-page (PAGE_ALIGN): Add.
3637         (alloc_page, ggc_pch_total_size, ggc_pch_this_base, ggc_pch_read):
3638         Replace ROUND_UP with PAGE_ALIGN.
3639
3640 2011-10-20  Andi Kleen  <ak@linux.intel.com>
3641
3642         * ggc-page (alloc_anon): Add check argument.
3643         (alloc_page): Add fallback to 1 page allocation.
3644         Adjust alloc_anon calls to new argument.
3645
3646 2011-10-18  Andi Kleen  <ak@linux.intel.com>
3647
3648         * ggc-page (release_pages): First free large continuous
3649         chunks in the madvise path.
3650
3651 2011-10-18  Andi Kleen  <ak@linux.intel.com>
3652
3653         * ggc-page.c (alloc_pages): Always round up entry_size.
3654
3655 2011-10-19  Andi Kleen  <ak@linux.intel.com>
3656
3657         * Makefile.in (MOSTLYCLEANFILES): Add gcc-ar/nm/ranlib.
3658         (native): Add gcc-ar, gcc-nm, gcc-ranlib.
3659         (AR_LIBS, gcc-ar, gcc-ar.o, gcc-ranlib, gcc-ranlib.o,
3660         gcc-nm, gcc-nm.o, gcc-ranlib.c, gcc-nm.c): Add.
3661         (install): Depend on install-gcc-ar.
3662         (install-gcc-ar): Add.
3663         (uninstall): Uninstall gcc-ar, gcc-nm, gcc-ranlib.
3664         * gcc-ar.c: Add new file.
3665
3666 2011-10-28  Pat Haugen <pthaugen@us.ibm.com>
3667
3668         * config/rs6000/rs6000.md (define_attr "type"): Add vecdouble.
3669         * config/rs6000/vsx.md (VStype_simple, VStype_mul): Use vecdouble
3670         type for V2DF.
3671         (VStype_div): Use vector types for V2DF/V4SF.
3672         (VStype_sqrt): Use *sqrt types.
3673         (VS_spdp_type): Change type to vecdouble.
3674         (*vsx_fmav2df4, *vsx_nfmsv2df4, vsx_xvcvdpsxws, vsx_xvcvdpuxws,
3675         vsx_xvcvuxdsp, vsx_xvcvsxwdp, vsx_xvcvuxwdp, vsx_xvcvspsxds,
3676         vsx_xvcvspuxds): Likewise.
3677         (*vsx_fms<mode>4): Set type via <VStype_mul>.
3678         (*vsx_eq_<mode>_p, *vsx_gt_<mode>_p, *vsx_ge_<mode>_p): Set type via
3679         <VStype_simple>.
3680         * config/rs6000/power7.md (power7-vecstore): Correct VSU pipe.
3681         (power7-fpcompare, power7-sdiv, power7-ddiv, power7-sqrt,
3682         power7-dsqrt): Correct insn latency.
3683         (power7-vecsimple): Add veccmp type and correct dispatch/VSU values.
3684         (power7-veccmp): Delete.
3685         (power7-vecfloat): Correct latency/dispatch/VSU values.
3686         (define_bypass "power7-vecfloat"): Correct latency and types.
3687         (power7-veccomplex, power7-vecperm): Correct dispatch/VSU values.
3688         (power7-vecdouble, power7-vecfdiv, power7-vecdiv): New.
3689
3690 2011-10-28  Uros Bizjak  <ubizjak@gmail.com>
3691
3692         * config/i386/i386.md (shift_insn): Rename code attribute from
3693         shiftrt_insn.  Also handle ashift RTX.
3694         (shift): Rename code attribute from shiftrt.  Also handle ashift RTX.
3695         (vshift): New code attribute.
3696         (<shift_insn>*): Rename from <shiftrt_insn>*. Update asm templates.
3697         (any_lshift): Move and rename code iterator from ...
3698         * config/i386/sse.md (lshift): ... here.
3699         (lshift_insn): Remove code attribute.
3700         (lshift): Remove code attribute.
3701         (vlshr<mode>3): Use lshiftrt RTX.
3702         (vashr<mode>3, ashrv16qi3, ashrv2di3): Use ashiftrt RTX.
3703         (vashl<mode>3, ashlv16qi3): Use ashift RTX.
3704         (avx2_<lshift>v<mode>): Rename from avx2_<shift_insn>v<mode>.  Use
3705         any_lshift code iterator.  Update asm template.
3706         (<shift_insn><mode>3): Macroize insn from lshr<mode>3 and ashl<mode>3
3707         usign any_lshift code iterator.
3708         * config/i386/mmx.md (mmx_<shift_insn><mode>3): Macroize insn from
3709         mmx_lshr<mode>3 and mmx_ashl<mode>3 usign any_lshift code iterator.
3710         * config/i386/i386.c (bdesc_args) <__builtin_ia32_psll>: Update.
3711
3712 2011-10-28  Georg-Johann Lay  <avr@gjlay.de>
3713
3714         PR target/49313
3715         * config/avr/avr.md (parityhi2): Expand allowing pseudos.
3716         (*parityhi2): New pre-reload insn-and-split to map 16-bit parity
3717         to the libgcc insn.
3718         (*parityqihi2): Same for 8-bit parity.
3719
3720 2011-10-28  Julian Brown  <julian@codesourcery.com>
3721
3722         PR rtl-optimization/47918
3723         * reload1.c (set_initial_label_offsets): Use initial offsets
3724         for labels on the nonlocal_goto_handler_labels chain.
3725
3726 2011-10-28  Iain Sandoe  <iains@gcc.gnu.org>
3727
3728         * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA):
3729         Move darwin-fpsave.asm from here to ... LIB2FUNCS_EXTRA.
3730         (LIB2FUNCS_EXTRA):  Add darwin-gpsave.asm.
3731         (TARGET_LIBGCC2_CFLAGS): Ensure that fPIC and -pipe are inherited from
3732         config/t-darwin.
3733         * config/rs6000/darwin.h (FP_SAVE_INLINE): Adjust to enable.
3734         (GP_SAVE_INLINE): Likewise.
3735         (SAVE_FP_PREFIX,  SAVE_FP_SUFFIX, RESTORE_FP_PREFIX,
3736         RESTORE_FP_SUFFIX): Set to empty strings.
3737         * config/rs6000/rs6000.c (rs6000_savres_strategy): Implement for Darwin.
3738         (debug_stack_info): Print savres_strategy.
3739         (rs6000_savres_routine_name): Implement for Darwin.
3740         (rs6000_make_savres_rtx): Adjust used register for Darwin.
3741         (rs6000_emit_prologue): Implement out-of-line saves for Darwin.
3742         (rs6000_output_function_prologue): Don't emit .extern for Mach-O.
3743         (rs6000_emit_epilogue): Implement out-of-line saves for Darwin.
3744         * config/rs6000/darwin-gpsave.asm: New file.
3745
3746 2011-10-28  Jakub Jelinek  <jakub@redhat.com>
3747
3748         * config/i386/sse.md (VI4SD_AVX2): Removed.
3749         (VI48_AVX2, VI128_128, VI48_128, VI48_256): New mode iterators.
3750         (vashl<mode>3): Use VI12_128 iterator instead of VI124_128.
3751         Add another expander using VI48_128 iterator for
3752         TARGET_AVX2 || TARGET_XOP and another using VI48_256 iterator
3753         for TARGET_AVX2.
3754         (vlshr<mode>3): Likewise.  Change register_operand predicate to
3755         nonimmediate_operand on last operand in the VI12_128 expander.
3756         (vashr<mode>3): Use VI128_128 iterator instead of VI124_128.
3757         (vashrv4si3, vashrv8si3): New expanders.
3758         (avx2_ashrvv8si, avx2_ashrvv4si, avx2_<lshift>vv8si,
3759         avx2_<lshift>vv2di): Removed.
3760         (avx2_ashrv<mode>): New insn with VI4_AVX2 iterator.
3761         (avx2_<lshift>v<mode>): Macroize using VI48_AVX2
3762         iterator.  Simplify pattern.
3763
3764 2010-10-28  Richard Guenther  <rguenther@suse.de>
3765
3766         PR driver/50876
3767         * lto-wrapper.c (get_options_from_collect_gcc_options):
3768         Properly count arguments.
3769         (run_gcc): Use an obstack to collect argv, properly separate
3770         switches and their arguments.
3771
3772 2011-10-28  Jakub Jelinek  <jakub@redhat.com>
3773
3774         * tree-vect-stmts.c (vectorizable_shift): Give up if op1 has different
3775         vector mode from vectype's mode.
3776
3777 2011-10-28  Chung-Lin Tang  <cltang@codesourcery.com>
3778
3779         PR rtl-optimization/49720
3780         * simplify-rtx.c (simplify_relational_operation_1): Detect
3781         infinite recursion condition in "(eq/ne (plus x cst1) cst2)
3782         simplifies to (eq/ne x (cst2 - cst1))" case.
3783
3784 2011-10-27  David S. Miller  <davem@davemloft.net>
3785
3786         * config/sparc/sparc.md (snedi_special): Only match when not VIS3.
3787         (*snedi_zero): Likewise.
3788         (*snedi_zero_trunc): Likewise.
3789         (snedi_special_vis3): New expander.
3790         (*snedi_zero_vis3): New insn.
3791         (*snedi_zero_trunc_vis3): Likewise.
3792         (*sltu_insn_vis3): Likewise.
3793         (*sltu_insn_vis3_trunc): Likewise.
3794         (addxc): Likewise.
3795         (*addxc_trunc_sp64_vis3): Likewise.
3796         * config/sparc/sparc.c (emit_scc_insn): When VIS3 use the
3797         gen_snedi_special_vis3 expander, and try GTU/LTU addx based
3798         sequences on DImode values.
3799
3800         * config/sparc/sparc.md (64-bit vector moves): Use 'e' not 'f'
3801         constraint.
3802
3803         * regcprop.c (copyprop_hardreg_forward_1): Reject the
3804         transformation when we narrow the mode on big endian.
3805
3806 2011-10-27  Jakub Jelinek  <jakub@redhat.com>
3807
3808         * config/i386/sse.md (avx_cvtpd2dq256_2, avx_cvttpd2dq256_2,
3809         vec_pack_sfix_trunc_v4df, vec_pack_sfix_v4df): New expanders.
3810         (*avx_cvtpd2dq256_2, *avx_cvttpd2dq256_2): New insns.
3811
3812         * config/i386/i386.c (ix86_print_operand): Handle 'q' and 'x'
3813         overrides for -masm=intel memory.
3814         * config/i386/sse.md (sse2_cvtdq2pd, sse2_cvtps2pd,
3815         sse4_1_<code>v8qiv8hi2, avx2_<code>v8qiv8si2,
3816         sse4_1_<code>v4hiv4si2, avx2_<code>v4hiv4di2,
3817         sse4_1_<code>v2siv2di2): Use %q1 instead of %1 for -masm=intel.
3818         (sse4_1_<code>v4qiv4si2, avx2_<code>v4qiv4di2,
3819         sse4_1_<code>v2hiv2di2): Use %k1 instead of %1 for -masm=intel.
3820         (sse4_1_<code>v2qiv2di2): Use %w1 instead of %1 for -masm=intel.
3821
3822 2011-10-27  Martin Jambor  <mjambor@suse.cz>
3823
3824         * ipa-prop.c (compute_pass_through_member_ptrs): Rename parm_info
3825         to parm_ainfo.
3826         (ipa_compute_jump_functions_for_edge): Likewise.
3827         (ipa_compute_jump_functions): Likewise.
3828         (ipa_analyze_indirect_call_uses): Likewise.
3829         (ipa_analyze_call_uses): Likewise.
3830         (ipa_analyze_params_uses): Likewise.
3831         (ipa_analyze_node): Likewise.
3832
3833 2011-10-27  Uros Bizjak  <ubizjak@gmail.com>
3834
3835         PR target/50875
3836         * config/i386/sse.md (*avx_unpcklpd256): Remove extra insn
3837         constraints.  Change alternative 1 to "x,m,1".
3838
3839 2011-10-27  Jakub Jelinek  <jakub@redhat.com>
3840
3841         * Makefile.in (build/gencheck.o): Depend on tree.def and
3842         c-family/c-common.def.
3843
3844         * tree-ssa-strlen.c: Include expr.h.
3845         (get_stridx): Don't use c_strlen, instead use string_constant
3846         and compute string length from it.
3847         * Makefile.in (tree-ssa-strlen.o): Depend on $(EXPR_H).
3848
3849 2011-10-27  Eric Botcazou  <ebotcazou@adacore.com>
3850
3851         PR rtl-optimization/46603
3852         PR bootstrap/50879
3853         * reload.c (push_reload): In the out case, restore previous behavior
3854         for subregs that don't have word mode.
3855
3856 2011-10-27  Ian Lance Taylor  <iant@google.com>
3857
3858         * cppdefault.c: Undef NATIVE_SYSTEM_HEADER_DIR if
3859         CROSS_DIRECTORY_STRUCTURE is defined and TARGET_SYSTEM_ROOT is not.
3860         (cpp_include_defaults): Only use NATIVE_SYSTEM_HEADER_DIR if it is
3861         defined.
3862
3863 2011-10-27  Richard Henderson  <rth@redhat.com>
3864
3865         * optabs.c (expand_vec_perm): Use the correct mode for scaling the
3866         selector.  Save the qimode constant selector for later use by the
3867         qimode vec_perm pattern.
3868
3869 2011-10-27  Bernd Schmidt  <bernds@codesourcery.com>
3870
3871         * config/c6x/c6x.c (unit_req_imbalance, res_mii): Cast the first arg
3872         to unit_req_factor to the right enum type.
3873         (get_unit_operand_masks, reshuffle_units, try_rename_operands,
3874         hwloop_optimize): Remove unused variables.
3875
3876 2010-10-27  Richard Guenther  <rguenther@suse.de>
3877
3878         PR middle-end/50731
3879         * tree-vect-generic.c (do_binop): Handle scalar operands.
3880
3881 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
3882
3883         PR target/37191
3884         * config/i386/sse.md (*vec_extract_v4sf_mem): Avoid combining registers
3885         from different units in a single alternative.
3886
3887 2011-10-26  David S. Miller  <davem@davemloft.net>
3888
3889         * config/sparc/sparc.c (emit_scc_insn): Force attempt of v9 sequences
3890         if we're comparing DImode and comparison is other than EQ or NE.
3891
3892         * config/sparc/sparc.c (emit_scc_insn): Do not try v9 sequences until
3893         LEU/LTU/GEU/GTU is attempted.
3894         * config/sparc/sparc.md (*neg_snesi_sign_extend): New 64-bit insn
3895         and split.
3896         (*neg_seqsi_sign_extend): Likewise.
3897         (*sltu_extend_sp64, *neg_sltu_extend_sp64, *sgeu_extend_sp64,
3898         *neg_sgeu_extend_sp64): New insns.
3899
3900         * config/sparc/sparc-protos.h (sparc_expand_conditional_move): Declare.
3901         * config/sparc/sparc.md (mov<I:mode>cc, mov<F:mode>cc): Call it.
3902         (*mov<I:mode>_cc_v9): Normalize to expect operand 0 always in operand 4.
3903         (*mov<I:mode>_cc_reg_sp64): Likewise.
3904         (*movsf_cc_v9): Likewise.
3905         (*movsf_cc_reg_sp64): Likewise.
3906         (*movdf_cc_v9): Likewise.
3907         (*movdf_cc_reg_sp64): Likewise.
3908         (*movtf_cc_hq_v9): Likewise.
3909         (*movtf_cc_reg_hq_sp64): Likewise.
3910         (*movtf_cc_v9): Likewise.
3911         (*movtf_cc_reg_sp64): Likewise.
3912         * config/sparc/sparc.c (sparc_expand_conditional_move): New function.
3913         (sparc_print_operand): Delete 'c' and 'd' handling, no longer used.
3914
3915 2011-10-26  Eric Botcazou  <ebotcazou@adacore.com>
3916
3917         * reload.c (reload_inner_reg_of_subreg): Change type of return value
3918         and type of OUTPUT parameter to bool and adjust.  Document MODE and
3919         OUTPUT parameters.  Use HARD_REGISTER_P.  Reorder final condition
3920         and improve associated comment.
3921         (push_reload): Clarify and update comments about reloading of subregs.
3922         Adjust calls to reload_inner_reg_of_subreg.  Compute the class upfront
3923         for the reloading of subregs in the out case as well.
3924
3925 2011-10-26  Alexandre Oliva  <aoliva@redhat.com>
3926
3927         PR debug/50826
3928         * var-tracking.c (rtx_debug_expr_p): New.
3929         (use_type): Don't use debug exprs to track non-VTA variables.
3930
3931 2011-10-26  Jeff Law  <law@redhat.com>
3932
3933         * doc/invoke.texi (sink-frequency-threshold): Document.
3934         * tree-ssa-sink.c: Include params.h.
3935         (select_best_block): New function.
3936         (statement_sink_location): Use it.
3937         * params.def (SINK_FREQUENCY_THRESHOLD): New PARAM.
3938
3939 2011-10-26  Iain Sandoe  <iains@gcc.gnu.org>
3940
3941         PR target/48108
3942         * config/darwin.c (top level): Amend comments concerning LTO output.
3943         (lto_section_num): New variable.  (darwin_lto_section_e): New GTY.
3944         (LTO_SECTS_SECTION, LTO_INDEX_SECTION): New.
3945         (LTO_NAMES_SECTION): Rename.
3946         (darwin_asm_named_section): Record LTO section counts and switches
3947         in a vec of darwin_lto_section_e.
3948         (darwin_file_start): Remove unused code.
3949         (darwin_file_end): Put an LTO section termination label.  Handle
3950         output of the wrapped LTO sections, index and names table.
3951
3952 2011-10-26  Alan Modra  <amodra@gmail.com>
3953
3954         * config/rs6000/rs6000.c (rs6000_make_savres_rtx): Delete unneeded
3955         declaration.
3956         (rs6000_emit_stack_reset): Only return insn emitted when it adjusts sp.
3957         (rs6000_make_savres_rtx): Rename to rs6000_emit_savres_rtx.  Use
3958         simple_return in pattern, emit instruction, and set jump_label.
3959         (rs6000_emit_prologue): Update for rs6000_emit_savres_rtx.  Use
3960         simple_return rather than return.
3961         (emit_cfa_restores): New function.
3962         (rs6000_emit_epilogue): Emit cfa_restores when flag_shrink_wrap.
3963         Add missing cfa_restores for SAVE_WORLD.  Add missing LR cfa_restore
3964         when using out-of-line gpr restore.  Add missing LR and FP regs
3965         cfa_restores for out-of-line fpr restore.  Consolidate code setting
3966         up cfa_restores.  Formatting.  Use LR_REGNO define.
3967         (rs6000_output_mi_thunk): Use simple_return rather than return.
3968         * config/rs6000/rs6000.md (sibcall*, sibcall_value*): Likewise.
3969         (return_internal*): Likewise.
3970         (any_return, return_pred, return_str): New iterators.
3971         (return, conditional return insns): Provide both return and
3972         simple_return variants.
3973         * config/rs6000/rs6000.h (EARLY_R12, LATE_R12): Define.
3974         (REG_ALLOC_ORDER): Move r12 before call-saved regs when FIXED_R13.
3975         Move r11 and r0 later to suit shrink-wrapping.
3976
3977 2011-10-26  Richard Guenther  <rguenther@suse.de>
3978
3979         * lto-wrapper.c (run_gcc): Properly init/free obstack.
3980
3981 2011-10-26  Jakub Jelinek  <jakub@redhat.com>
3982
3983         * config/i386/i386.md (UNSPEC_VSIBADDR): New.
3984         * config/i386/predicates.md (vsib_address_operand,
3985         vsib_mem_operator): New predicates.
3986         * config/i386/i386.c (ix86_print_operand_address): Handle
3987         UNSPEC_VSIBADDR addresses.
3988         * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>,
3989         avx2_gatherdi<mode>256): Adjust expanders to use MEM with
3990         UNSPEC_VSIBADDR address.
3991         (*avx2_gathersi<mode>, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>256):
3992         Adjust insns to use MEM with UNSPEC_VSIBADDR address.
3993
3994 2011-10-26  Tom de Vries  <tom@codesourcery.com>
3995
3996         PR tree-optimization/50763
3997         * tree-ssa-tail-merge.c (replace_block_by): Update vops if phi_vuse1 or
3998         phi_vuse2 is NULL_TREE only if bb1 dominates or is dominated by bb2.
3999
4000 2011-10-26  Richard Guenther  <rguenther@suse.de>
4001
4002         PR lto/41844
4003         * Makefile.in (lto-wrapper): Depend on and link against opts-common.o.
4004         (lto-wrapper.o): Depend on $(OPTS_H) and $(OPTIONS_H).
4005         * lto-wrapper.c (get_options_from_collect_gcc_options): New function.
4006         (run_gcc): Use it.  Filter out language specific options.
4007
4008 2011-10-26  Andreas Tobler  <andreast@fgznet.ch>
4009
4010         * config/i386/freebsd64.h (LINK_SPEC): Emit the same warning as the
4011         32-bit target does.
4012
4013 2011-10-25  Paolo Carlini  <paolo.carlini@oracle.com>
4014
4015         PR driver/46617
4016         * gcc.c (main): Fix fatal_error string for translation.
4017
4018 2011-10-25  Ian Lance Taylor  <iant@google.com>
4019
4020         * tree-eh.c (do_return_redirection): Remove return_value_p
4021         parameter.  Change all callers.
4022         (lower_try_finally_nofallthru): Remove local return_val.
4023         (lower_try_finally_onedest): Likewise.
4024         (lower_try_finally_copy): Likewise.
4025         (lower_try_finally_switch): Likewise.
4026
4027 2011-10-25  H.J. Lu  <hongjiu.lu@intel.com>
4028
4029         * config/i386/mmx.md (*mmx_maskmovq): Replace :SI with :P and
4030         remove "&& !TARGET_64BIT"
4031         (*mmx_maskmovq_rex): Removed.
4032
4033 2011-10-25  Eric Botcazou  <ebotcazou@adacore.com>
4034
4035         PR rtl-optimization/46603
4036         * reload.c (push_reload): In the out case, reload the subreg as well
4037         as the reg if it has word mode.
4038
4039 2011-10-25  Eric Botcazou  <ebotcazou@adacore.com>
4040
4041         * dwarf2out.c (add_gnat_descriptive_type_attribute): Temporarily
4042         suppress debug info for the parent type.
4043
4044 2011-10-25  Eric Botcazou  <ebotcazou@adacore.com>
4045
4046         * config/ia64/ia64.c (ia64_profile_hook): Fix thinko.
4047
4048 2011-10-25  Richard Henderson  <rth@redhat.com>
4049
4050         * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Remove.
4051         (vec_extract_even<mode>, vec_extract_odd<mode>): Remove.
4052
4053         * config/rs6000/altivec.md (vec_extract_evenv8hi,
4054         vec_extract_evenv16qi, vec_extract_oddv4si,
4055         vec_extract_oddv4sf): Remove.
4056
4057         * config/spu/spu.md (vec_extract_evenv4si, vec_extract_evenv4sf,
4058         vec_extract_evenv8hi, vec_extract_evenv16qi, vec_extract_oddv4si,
4059         vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
4060         vec_interleave_highv4sf, vec_interleave_lowv4sf,
4061         vec_interleave_highv4si, vec_interleave_lowv4si,
4062         vec_interleave_highv8hi, vec_interleave_lowv8hi,
4063         vec_interleave_highv16qi, vec_interleave_lowv16qi): Remove.
4064
4065         * expr.c (expand_expr_real_2) [VEC_EXTRACT_EVEN_EXPR]: Use binop.
4066         [VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR]: Likewise.
4067         [VEC_INTERLEAVE_LOW_EXPR]: Likewise.
4068         * optabs.c (expand_binop): Implement vec_interleave_high_optab,
4069         vec_interleave_low_optab, vec_extract_even_optab,
4070         vec_extract_odd_optab with expand_vec_perm.
4071         (can_vec_perm_for_code_p): New.
4072         * optabs.h: Update.
4073         * tree-vect-data-refs.c (vect_strided_store_supported): Allow for
4074         fallback via can_vec_perm_for_code_p.
4075         (vect_strided_load_supported): Likewise.
4076         * tree-vect-generic.c (expand_vector_operations_1): Never lower
4077         VEC_INTERLEAVE_HIGH_EXPR, VEC_INTERLEAVE_LOW_EXPR,
4078         VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR.
4079
4080         * target.def (vec_perm_const_ok): Change parameters to mode and
4081         array of indicies.
4082         * doc/tm.texi: Rebuild.
4083         * config/i386/i386.c (ix86_vectorize_vec_perm_const_ok): Change
4084         parameters to mode and array of indicies.
4085         * expr.c (expand_expr_real_2) [VEC_PERM_EXPR]: Expand operands here.
4086         * optabs.c (can_vec_perm_p): Rename from can_vec_perm_expr_p.
4087         Change parameters to mode and array of indicies.
4088         (expand_vec_perm_1): Rename from expand_vec_perm_expr_1.
4089         (expand_vec_perm): Rename from expand_vec_perm_expr.  Change
4090         parameters to mode and rtx inputs.  Try lowering to QImode
4091         vec_perm_const before trying fully variable permutation.
4092         * optabs.h: Update decls.
4093         * tree-vect-generic.c (lower_vec_perm): Extract array of indices from
4094         VECTOR_CST to pass to can_vec_perm_p.
4095         * tree-vect-slp.c (vect_get_mask_element): Change mask parameter type
4096         from int pointer to unsigned char pointer.
4097         (vect_transform_slp_perm_load): Update for change to can_vec_perm_p.
4098         * tree-vect-stmts.c (perm_mask_for_reverse): Likewise.
4099
4100         * tree.def (VEC_EXTRACT_EVEN_EXPR): Fix typo in text name.
4101         (VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
4102         VEC_INTERLEAVE_LOW_EXPR): Likewise.
4103
4104 2011-10-25  Mike Stump  <mikestump@comcast.net>
4105
4106         * reload.c (regno_clobbered_p): Fix typo.
4107
4108 2011-10-25  Dodji Seketeli  <dodji@redhat.com>
4109
4110         * input.c (expand_location): Rewrite using linemap_resolve_location
4111         and linemap_expand_location.  Add a comment.
4112
4113 2011-10-25  Jakub Jelinek  <jakub@redhat.com>
4114
4115         PR tree-optimization/50596
4116         * tree-vect-stmts.c (vect_mark_relevant): Only use
4117         FOR_EACH_IMM_USE_FAST if lhs is SSA_NAME.
4118         (vectorizable_store): If is_pattern_stmt_p look through
4119         VIEW_CONVERT_EXPR on lhs.
4120         * tree-vect-patterns.c (check_bool_pattern, adjust_bool_pattern):
4121         Use unsigned type instead of signed.
4122         (vect_recog_bool_pattern): Optimize also stores into bool memory in
4123         addition to casts from bool to integral types.
4124         (vect_mark_pattern_stmts): If pattern_stmt already has vinfo
4125         created, don't create it again.
4126
4127 2011-10-25  Kai Tietz  <ktietz@redhat.com>
4128
4129         * config/i386/i386.c (ix86_frame_pointer_required): Require
4130         frame-pointer, if setjmp is used for 32-bit ms-abi.
4131
4132 2011-10-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
4133
4134         * builtins.c (set_builtin_user_assembler_name): Remove extra
4135         newline added in October 11th, 2011 change.
4136
4137 2011-10-24  David S. Miller  <davem@davemloft.net>
4138
4139         * config/sparc/little-endian.opt: Delete.
4140         * config.gcc: Remove references to config/sparc/little-endian.opt
4141         * doc/invoke.texi: Remove documentation of -mlittl-endian on sparc.
4142         * config/sparc/linux64.h: Delete references to -mlittle-endian.
4143         * config/sparc/netbsd-elf.h: Likewise.
4144         * config/sparc/openbsd64.h: Likewise.
4145         * config/sparc/sparc.h: Likewise.
4146         * config/sparc/sp64-elf.h: Likewise and delete overrides for
4147         BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
4148         * config/sparc/sparc.c (dump_target_flag_bits): Remove reference
4149         to MASK_LITTLE_ENDIAN.
4150         * config/sparc/sparc.opt (Mask(LITTLE_ENDIAN)): Delete.
4151
4152         * config/sparc/sparc.md: Only use F, G, and C constraints in FP insns.
4153         Only use D, Y, and Z constraints in vector insns.
4154
4155         * config/sparc/sparc.md (cpu_feature, enabled): New attributes.
4156         (*movsi_insn_novis3, *movsi_insn_vis3): Consolidate into one pattern
4157         called *movsi_insn.
4158         (*movdi_insn_sp32_v9_novis3, *movdi_insn_sp32_v9_vis3): Consolidate
4159         into *movdi_insn_sp32.
4160         (*movdi_insn_sp64_novis3, *movdi_insn_sp64_vis3): Consolidate into
4161         one pattern called *movdi_insn_sp64.
4162         (*movsf_insn_novis3, *movsf_insn_vis3, *movsf_insn_no_fpu):
4163         Consolidate into one pattern called *movsf_insn.
4164         (*movdf_insn_sp32_no_fpu, *movdf_insn_sp32_v9_novis3,
4165         *movdf_insn_sp32_v9_vis3, *movdf_insn_sp32_v9_no_fpu): Consolidate
4166         into *movdf_insn_sp32.
4167         (*movdf_insn_sp64_novis3, *movdf_insn_sp64_vis3,
4168         *movdf_insn_sp64_no_fpu): Consolidate into one pattern called
4169         *movdf_insn_sp64.
4170         (*zero_extendsidi2_insn_sp64_novis3,
4171         *zero_extendsidi2_insn_sp64_vis3): Consolidate into one pattern
4172         called *zero_extendsidi2_insn_sp64.
4173         (*sign_extendsidi2_insn_novis3, *sign_extendsidi2_insn_vis3):
4174         Consolidate into one pattern named *sign_extendsidi2_insn.
4175         (*mov<VM32:mode>_insn_novis3, *mov<VM32:mode>_insn_vis3):
4176         Consolidate into one pattern named *mov<VM32:mode>_insn.
4177         (*mov<VM64:mode>_insn_sp64_novis3,
4178         *mov<VM64:mode>_insn_sp64_novis3): Consolidate into one pattern
4179         named *mov<VM64:mode>_insn_sp64.
4180         (*mov<VM64:mode>_insn_sp32_novis3,
4181         *mov<VM64:mode>_insn_sp32_vis3): Consolidate into one pattern
4182         named *mov<VM64:mode>_insn_sp32.
4183
4184 2011-10-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4185
4186         * tree-ssa-strlen.c (get_string_length): Change assertion to STPCPY.
4187         (zero_length_string): Change assertion to accept strinfo without
4188         length but with stmt instead.
4189         Set the endptr pointer also if starting a new chain.
4190         (adjust_related_strinfos): Ignore strinfos marked for delayed
4191         length computation.
4192         (handle_builtin_strcpy): Mark earlier strinfo elements also for
4193         delayed length computation.
4194
4195 2011-10-24  Georg-Johann Lay  <avr@gjlay.de>
4196
4197         PR target/50820
4198         Port from 4.6 branch r180379
4199         * doc/invoke.texi (AVR Options): New subsubsection to explain EIND
4200         handling and indirect jump/calls on devices > 128k.
4201
4202 2011-10-24  Anatoly Sokolov  <aesok@post.ru>
4203             Georg-Johann Lay  <avr@gjlay.de>
4204
4205         PR target/49824
4206         * doc/extend.texi (Declaring Attributes of Functions):
4207         Document OS_main and OS_task attributes.
4208         (Specifying Attributes of Variables): Move up
4209         subsection "AVR Variable Attributes" as of alphabetical order.
4210
4211 2011-10-24  Richard Guenther  <rguenther@suse.de>
4212
4213         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Convert constants
4214         to vector element type.
4215         (vectorizable_assignment): Bail out for non-mode-precision operations.
4216         (vectorizable_shift): Likewise.
4217         (vectorizable_operation): Likewise.
4218         (vectorizable_type_demotion): Likewise.
4219         (vectorizable_type_promotion): Likewise.
4220         (vectorizable_store): Handle non-mode-precision stores.
4221         (vectorizable_load): Handle non-mode-precision loads.
4222         (get_vectype_for_scalar_type_and_size): Return a vector type
4223         for non-mode-precision integers.
4224         * tree-vect-loop.c (vectorizable_reduction): Bail out for
4225         non-mode-precision reductions.
4226
4227 2011-10-24  Julian Brown  <julian@codesourcery.com>
4228
4229         * config/m68k/m68k.c (notice_update_cc): Tighten condition for
4230         setting CC_REVERSED for FP comparisons.
4231
4232 2011-10-24  Richard Guenther  <rguenther@suse.de>
4233
4234         PR tree-optimization/50838
4235         * tree-data-ref.c (dr_analyze_indices): Properly canonicalize
4236         a MEM_REF base if we change it.
4237
4238 2011-10-24  Bernd Schmidt  <bernds@codesourcery.com>
4239
4240         PR bootstrap/50836
4241         * rtlanal.c: Swap includes of "hard-reg-set.h" and "rtl.h".
4242
4243         PR rtl-optimization/50833
4244         * function.c (thread_prologue_and_epilogue_insns): Expect the
4245         return insn optimization only if optimize.
4246
4247 2011-10-24  Georg-Johann Lay  <avr@gjlay.de>
4248
4249         * config/avr/avr.c: Break long lines.
4250         Define target hooks on the fly if applicable.
4251         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove first definition
4252         overridden later.
4253         (targetm): Move definition to end of file.
4254         (avr_can_eliminate): Make static on the fly.
4255         (avr_frame_pointer_required_p): Ditto.
4256         (avr_hard_regno_scratch_ok): Ditto.
4257         (avr_builtin_setjmp_frame_value): Make static on the fly.
4258         Indent according to coding rules.
4259         (avr_case_values_threshold): Ditto.
4260         (avr_attribute_table): Move down.
4261
4262 2011-10-24  Ira Rosen  <ira.rosen@linaro.org>
4263
4264         PR tree-optimization/50730
4265         * tree-vect-data-refs.c (vect_analyze_data_refs): Stop basic block
4266         analysis if encountered unsupported data-ref.
4267
4268 2011-10-23  David S. Miller  <davem@davemloft.net>
4269
4270         * config/sparc/sparc.c (sparc_option_override): Remove -mv8plus
4271         cpu adjustment.
4272         * config/sparc/linux64.h (CC1_SPEC): When defaulting to 64-bit,
4273         append -mcpu=v9 when -mv8plus is given.
4274
4275         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): We can move
4276         between float and non-float regs when VIS3.
4277         * config/sparc/sparc.c (eligible_for_restore_insn): We can't
4278         use a restore when the source is a float register.
4279         (sparc_split_regreg_legitimate): When VIS3 allow moves between
4280         float and integer regs.
4281         (sparc_register_move_cost): Adjust to account for VIS3 moves.
4282         (sparc_preferred_reload_class): On 32-bit with VIS3 when moving an
4283         integer reg to a class containing EXTRA_FP_REGS, constrain to FP_REGS.
4284         (sparc_secondary_reload): On 32-bit with VIS3 when moving between
4285         float and integer regs we sometimes need a FP_REGS class
4286         intermediate move to satisfy the reload.  When this happens
4287         specify an extra cost of 2.
4288         (*movsi_insn): Rename to have "_novis3" suffix and add !VIS3 guard.
4289         (*movdi_insn_sp32_v9): Likewise.
4290         (*movdi_insn_sp64): Likewise.
4291         (*movsf_insn): Likewise.
4292         (*movdf_insn_sp32_v9): Likewise.
4293         (*movdf_insn_sp64): Likewise.
4294         (*zero_extendsidi2_insn_sp64): Likewise.
4295         (*sign_extendsidi2_insn): Likewise.
4296         (*movsi_insn_vis3): New insn.
4297         (*movdi_insn_sp32_v9_vis3): New insn.
4298         (*movdi_insn_sp64_vis3): New insn.
4299         (*movsf_insn_vis3): New insn.
4300         (*movdf_insn_sp32_v9_vis3): New insn.
4301         (*movdf_insn_sp64_vis3): New insn.
4302         (*zero_extendsidi2_insn_sp64_vis3): New insn.
4303         (*sign_extendsidi2_insn_vis3): New insn.
4304         (TFmode reg/reg split): Make sure both REG operands are float.
4305         (*mov<VM32:mode>_insn): Add "_novis3" suffix and !VIS3 guard. Remove
4306         easy constant to integer reg alternatives.
4307         (*mov<VM64:mode>_insn_sp64): Likewise.
4308         (*mov<VM64:mode>_insn_sp32_novis3): Likewise.
4309         (*mov<VM32:mode>_insn_vis3): New insn.
4310         (*mov<VM64:mode>_insn_sp64_vis3): New insn.
4311         (*mov<VM64:mode>_insn_sp32_vis3): New insn.
4312         (VM64 reg<-->reg split): New splitter for 32-bit.
4313
4314         * config/sparc/sparc.c (sparc_split_regreg_legitimate): New function.
4315         * config/sparc/sparc-protos.h (sparc_split_regreg_legitimate):
4316         Declare it.
4317         * config/sparc/sparc.md (DImode reg/reg split): Use it.
4318         (DFmode reg/reg split): Likewise.
4319
4320         * config/sparc/sparc.md (*movdi_insn_sp32_v9): Add alternatives for
4321         generating fzero and fone instructions.
4322         (DImode const_int --> reg splitter): Only trigger for integer regs.
4323
4324         * config/sparc/predicates.md (input_operand): Disallow vector
4325         constants other than 0 and -1.
4326         * config/sparc/sparc.c (sparc_preferred_reload_class): Return
4327         NO_REGS for vector constants other than 0 and -1.
4328
4329         * config/sparc/sparc.h (SPARC_FIRST_INT_REG, SPARC_LAST_INT_REG,
4330         SPARC_INT_REG_P): Define.
4331         (HARD_REGNO_NREGS): Use SPARC_INT_REG_P.
4332         (REGNO_OK_FOR_INDEX_P): Likewise.
4333         * config/sparc/sparc.c (gen_df_reg): Likewise.
4334         (eligible_for_return_delay): Likewise.
4335         (eligible_for_sibcall_delay): Likewise.
4336         (sparc_legitimate_address_p): Likewise.
4337         (emit_save_or_restore_regs): Likewise.
4338         (registers_ok_for_ldd_peep): Likewise.
4339         * config/spac/sparc.md (DI mode splitters): Likewise.
4340         (SF mode const splitters): Likewise.
4341         (DF mode splitters): Likewise.
4342         (32-bit DI mode logical op splitters): Likewise.
4343
4344 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
4345
4346         PR c++/50841
4347         Revert:
4348         2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
4349
4350         PR c++/50810
4351         * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
4352
4353 2011-10-23  Uros Bizjak  <ubizjak@gmail.com>
4354
4355         * config/i386/sse.md (avx2_lshl<mode>3): Remove insn pattern.
4356         (VI248_256): Remove mode iterator.
4357         * config/i386/i386.c (ix86_expand_vec_perm): Use gen_ashlv4di3
4358         instead of gen_avx2_lshlv4di3.
4359         (bdesc_args): Use CODE_FOR_ashl{v16hi,v8si,v4di}3 instead of
4360         CODE_FOR_avx2_lshl{v16hi,v8si,v4di}3.
4361
4362 2011-10-23  Uros Bizjak  <ubizjak@gmail.com>
4363
4364         * config/i386/sse.md (sseintprefix): Rename from gthrfirstp.
4365         (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>): Delete expander.
4366         (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>) Merge insn
4367         pattern from *avx2_maskload<ssemodesuffix><avxsizesuffix> and
4368         *avx_maskload<ssemodesuffix><avxsizesuffix> using V48_AVX mode
4369         iterator.  Use sseintprefix mode attribute.
4370         (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>): Delete expander.
4371         (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>) Merge insn
4372         pattern from *avx2_maskstore<ssemodesuffix><avxsizesuffix> and
4373         *avx_maskstore<ssemodesuffix><avxsizesuffix> using V48_AVX mode
4374         iterator.  Use sseintprefix mode attribute.
4375         (*avx2_gathersi<mode>) Use sseintprefix and ssemodesuffix mode
4376         attributes.
4377         (*avx2_gatherdi<mode>): Ditto.
4378         (*avx2_gatherdi<mode>256): Ditto.
4379         (VI48_AVX2): Remove mode iterator.
4380         (gthrlastfp): Remove mode attribute.
4381
4382 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
4383
4384         PR c++/50810
4385         * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
4386
4387 2011-10-23  Tom de Vries  <tom@codesourcery.com>
4388
4389         PR tree-optimization/50763
4390         * tree-ssa-tail-merge.c (same_succ_flush_bb): New function, factored
4391         out of ...
4392         (same_succ_flush_bbs): Use same_succ_flush_bb.
4393         (purge_bbs): Remove argument.  Remove calls to same_succ_flush_bbs,
4394         release_last_vdef and delete_basic_block.
4395         (unlink_virtual_phi): New function.
4396         (update_vuses): Add and use vuse1_phi_args argument.  Set var to
4397         SSA_NAME_VAR of vuse1 or vuse2, and use var.  Handle case that
4398         def_stmt2 is NULL.  Use phi result as phi arg in case vuse1 or vuse2
4399         is NULL_TREE.  Replace uses of vuse1 if vuse2 is NULL_TREE.  Fix code
4400         to limit replacement of uses.  Propagate phi argument for phis with a
4401         single argument.
4402         (replace_block_by): Update vops if phi_vuse1 or phi_vuse2 is NULL_TREE.
4403         Set vuse1_phi_args if vuse1 is a phi defined in bb1.  Add
4404         vuse1_phi_args as argument to call to update_vuses.  Call
4405         release_last_vdef, same_succ_flush_bb, delete_basic_block.  Update
4406         CDI_DOMINATORS info.
4407         (tail_merge_optimize): Remove argument in call to purge_bbs.  Remove
4408         call to free_dominance_info.  Only call calculate_dominance_info once.
4409
4410 2011-10-23  Eric Botcazou  <ebotcazou@adacore.com>
4411
4412         * fold-const.c (invert_tree_comparison): Always invert EQ_EXPR/NE_EXPR.
4413
4414         PR tree-optimization/44683
4415         * tree-ssa-dom.c (record_edge_info): Record simple equivalences only if
4416         we can be sure that there are no signed zeros involved.
4417
4418 2011-10-23  Jan Hubicka  <jh@suse.cz>
4419
4420         * ipa-inline.c (estimate_badness): Scale up and handle overflows.
4421
4422 2011-10-23  Uros Bizjak  <ubizjak@gmail.com>
4423
4424         PR target/50788
4425         * config/i386/sse.md (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>):
4426         Remove (match_dup 0).
4427         (*avx2_maskload<ssemodesuffix><avxsizesuffix>): New insn pattern.
4428         (*avx_maskload<ssemodesuffix><avxsizesuffix>): Ditto.
4429         (*avx2_maskstore<ssemodesuffix><avxsizesuffix>): Ditto.
4430         (*avx_maskstore<ssemodesuffix><avxsizesuffix>): Ditto.
4431         (*avx2_maskmov<ssemodesuffix><avxsizesuffix>): Remove insn pattern.
4432         (*avx_maskmov<ssemodesuffix><avxsizesuffix>): Ditto.
4433
4434 2011-10-23  Ira Rosen  <ira.rosen@linaro.org>
4435
4436         PR tree-optimization/50819
4437         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Remove
4438         the last argument.
4439         * tree-vect-loop.c (vect_analyze_loop_2): Update call to
4440         vect_analyze_data_ref_dependences.
4441         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Remove
4442         the last argument.  Check load-after-store dependence for unknown
4443         dependencies in basic blocks.
4444         (vect_analyze_data_ref_dependences): Update call to
4445         vect_analyze_data_ref_dependences.
4446         * tree-vect-patterns.c (vect_recog_widen_shift_pattern): Fix typo.
4447         * tree-vect-slp.c (vect_bb_vectorizable_with_dependencies): Remove.
4448         (vect_slp_analyze_bb_1): Update call to
4449         vect_analyze_data_ref_dependences.  Don't call
4450         vect_bb_vectorizable_with_dependencies.
4451
4452 2011-10-22  David S. Miller  <davem@davemloft.net>
4453
4454         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS,
4455         SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
4456         * config/sparc/sparc.c (TARGET_SECONDARY_RELOAD): Redefine.
4457         (sparc_secondary_reload): New function.
4458
4459         * config/sparc/sparc.h (sparc_costs): Remove extern decl.
4460         (struct processor_costs): Move from here..
4461         * config/sparc/sparc.c (struct processor_costs): To here.
4462         (sparc_costs): Mark static.
4463
4464         * config/sparc/sparc.c (short_branch, reg_unused_after): Delete.
4465         * config/sparc/sparc-protos.h (short_branch, reg_unused_after):
4466         Get rid of declarations.
4467
4468 2011-10-21  Paul Brook  <paul@codesourcery.com>
4469
4470         * config/c6x/c6x.c (c6x_asm_emit_except_personality,
4471         c6x_asm_init_sections): New functions.
4472         (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): Define.
4473
4474 2011-10-21  Jakub Jelinek  <jakub@redhat.com>
4475
4476         PR target/50813
4477         * config/i386/i386.c (expand_vec_perm_even_odd_1): Handle
4478         V4DImode and V8SImode for !TARGET_AVX2.
4479
4480 2011-10-21  Bernd Schmidt  <bernds@codesourcery.com>
4481
4482         PR bootstrap/50825
4483         * sched-deps.c (add_dependence): If not doing predication, promote
4484         REG_DEP_CONTROL to REG_DEP_ANTI.
4485
4486 2011-10-21  Georg-Johann Lay  <avr@gjlay.de>
4487
4488         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Pass address of X
4489         instead of X to avr_legitimize_reload_address.
4490         * config/avr/avr-protos.h (avr_legitimize_reload_address): Change
4491         first argument's type from rtx to rtx*.
4492         * config/avr/avr.c (avr_legitimize_reload_address): Ditto.
4493         Pass PX to push_reload instead of &X.  Change log messages for
4494         better distinction.
4495
4496 2011-10-21  Roland Stigge  <stigge@antcom.de>
4497
4498         PR translation/47064
4499         * params.def: Fix typo "compilatoin" -> "compilation".
4500
4501 2011-10-21  H.J. Lu  <hongjiu.lu@intel.com>
4502             Kirill Yukhin  <kirill.yukhin@intel.com>
4503
4504         PR target/50740
4505         * config/i386/driver-i386.c (host_detect_local_cpu): Do cpuid 7 only
4506         if max_level allows that.
4507
4508 2011-10-21  Bernd Schmidt  <bernds@codesourcery.com>
4509
4510         * reg-notes.def (DEP_CONTROL): New.
4511         * sched-ebb.c (add_deps_for_risky_insns): Add a REG_DEP_CONTROL when
4512         not doing speculation.
4513         * rtlanal.c (record_hard_reg_sets, find_all_hard_reg_sets,
4514         record_hard_reg_uses_1, record_hard_reg_uses): New functions.
4515         * function.c (record_hard_reg_sets, record_hard_reg_uses,
4516         record_hard_reg_uses_1): Remove; move to rtlanal.c.
4517         * lists.c (copy_INSN_LIST, concat_INSN_LIST): New functions.
4518         * haifa-sched.c: Swap includes of "rtl.h" and "hard-reg-set.h".
4519         (MUST_RECOMPUTE_SPEC_P): New macro.
4520         (real_insn_for_shadow): New function.
4521         (cond_clobbered_p, recompute_todo_spec, check_clobbered_conditions,
4522         toggle_cancelled_flags): New static functions.
4523         (schedule_insn): Relax an assert to only check for empty hard back
4524         dependencies.  Skip cancelled dependencies.  Call
4525         check_clobbered_conditions.
4526         (copy_insn_list): Remove function, renamed moved to lists.c.
4527         (save_backtrack_point): Use new spelling copy_INSN_LIST.
4528         (unschedule_insns_until): Ensure TODO_SPEC is reset properly.
4529         (restore_last_backtrack_point): Likewise.  Call toggle_cancelled_flags.
4530         (estimate_insn_tick): Ignore cancelled dependencies.
4531         (haifa_speculate_insn): Move declaration.
4532         (try_ready): Move code into recompute_todo_spec and call it.  Tweak
4533         some asserts.  Ensure predicated patterns are restored if necessary.
4534         Dump DEP_CONTROL flag.
4535         (haifa_change_pattern): Merge with sched_change_pattern.
4536         (sched_change_pattern): Remove function.
4537         * sched-deps.c (NON_FLUSH_JUMP_KIND, NON_FLUSH_JUMP): Remove.  All
4538         uses changed to simply not test NON_FLUSH_JUMP_P.
4539         (ds_to_dk, dk_to_ds, dump_dep, ds_to_dt, dump_ds, check_dep): Handle
4540         REG_DEP_CONTROL.
4541         (dep_spec_p): If DO_PREDICATION, REG_DEP_CONTROL is speculative.
4542         (reg_pending_control_uses, control_dependency_cache): New static
4543         variables.
4544         (sched_get_reverse_condition_uncached): New function.
4545         (sd_find_dep_between): Remove pointless assert.  Look in
4546         control_dependency_cache.
4547         (ask_dependency_caches, set_dependency_caches, sd_delete_dep,
4548         extend_dependency_caches, sched_deps_finish): Handle REG_DEP_CONTROL
4549         and control_dependency_cache.
4550         (sd_unresolve_dep): Use dep_spec_p.
4551         (add_dependence): Now a wrapper around add_dependence_1, handling
4552         REG_DEP_CONTROL specially.
4553         (flush_pending_lists): Clear pending_jump_insns.
4554         (sched_analyze_1): Handle pending_jump_insns like a memory flush.
4555         (sched_analyze_2): Unconditionally add to pending memory flushes,
4556         keep previous behaviour but apply it to pending_jump_insns instead.
4557         (sched_analyze_insn): Defer adding jump reg dependencies using
4558         reg_pending_control_uses; add them to the control_uses list.  Handle
4559         pending_jump_insns and control_uses when adding dependence lists.
4560         (deps_analyze_insn): Update INSN_COND_DEPS.
4561         (deps_analyze_insn): Add jumps to pending_jump_insns rather than
4562         last_pending_memory_flush.
4563         (init_deps): Initialize pending_jump_insns.
4564         (free_deps): Free control_uses.
4565         (remove_from_deps): Remove from pending_jump_insns.
4566         (init_deps_global): Allocate reg_pending_control_uses).
4567         (finish_deps_global): Free it.
4568         (add_dependence_1): Renamed from add_dependence.  Handle
4569         REG_DEP_CONTROL.
4570         * rtl.h (record_hard_reg_uses, find_all_hard_reg_sets): Declare.
4571         (copy_INSN_LIST, concat_INSN_LIST): Declare.
4572         * sched-int.h (struct deps_reg): Add control_uses.
4573         (struct deps_desc): Add pending_jump_insns.
4574         (struct _haifa_deps_insn_data): Add cond_deps.
4575         (struct _haifa_insn_data): Add must_recompute_spec and predicated_pat.
4576         (INSN_COND_DEPS, PREDICATED_PAT): New macros.
4577         (BITS_PER_DEP_WEAK): Adjust for two extra bits in the word.
4578         (DEP_CONTROL): New macro.
4579         (DEP_TYPES): Include it.
4580         (HARD_DEP): Adjust definition.
4581         (DEP_CANCELLED): New macro.
4582         (enum SCHED_FLAGS): Add DO_PREDICATION.
4583         (sched_get_reverse_condition_uncached, real_insn_for_shadow): Declare.
4584         * sched-rgn.c (concat_INSN_LIST): Remove function.
4585         (deps_join): Handle pending_jump_insns.
4586         (free_pending_lists): Likewise.
4587         * config/c6x/c6x.c (c6x_set_sched_flags): Set DO_PREDICATION for final
4588         schedule.
4589
4590 2011-10-21  Georg-Johann Lay  <avr@gjlay.de>
4591
4592         PR target/50820
4593         * config/avr/libgcc.S (__EIND__): New define to 0x3C.
4594         (__tablejump__): Consistently use EIND for indirect jump/call.
4595         (__tablejump_elpm__): Ditto.
4596
4597 2011-10-21  Bernd Schmidt  <bernds@codesourcery.com>
4598
4599         * config/c6x/c6x.md (attr "op_pattern"): New.
4600         (load_sdata_pic, mov<mode>_insn for QIHIM and SISFVM): Set it.
4601         * config/c6x/c6x-mult.md.in (mulhi3_VARIANT_, mulhisi3_insn_VARIANT_):
4602         Likewise.
4603         * config/c6x/c6x-mult.md: Regenerate.
4604         * config/c6x/c6x.c: Include "regrename.h".
4605         (unit_req_table): New typedef.
4606         (unit_reqs): Use it for the declaration.
4607         (unit_req_factor, get_unit_reqs, merge_unit_reqs, unit_req_imbalance,
4608         get_unit_operand_masks, try_rename_operands, reshuffle_units): New
4609         static functions.
4610         (count_unit_reqs): New arg reqs.  All callers changed.  Use
4611         get_unit_reqs, and don't merge here.
4612         (res_mii): New arg reqs.  All callers changed.  Rewrite to use a loop
4613         using unit_req_factor.
4614         (hwloop_optimize): Call reshuffle_units.  Call merge_unit_reqs after
4615         count_unit_reqs.
4616         (c6x_reorg): Add reg notes problem, and call df_analyze.
4617         * Makefile.in ($(out_object_file)): Depend on regrename.h.
4618
4619 2011-10-21  Kai Tietz  <ktietz@redhat.com>
4620
4621         * fold-const.c (simple_operand_p_2): Handle integral
4622         casts from boolean-operands.
4623
4624 2011-10-21  Jan Hubicka  <jh@suse.cz>
4625
4626         * cgraph.c (dump_cgraph_node): Dump alias flag.
4627         * cgraphunit.c (handle_alias_pairs): Handle weakrefs with
4628         no destination.
4629         (get_alias_symbol): New function.
4630         (output_weakrefs): Output also weakrefs with no destinatoin.
4631         (lto_output_node): Output weakref alias flag when at function boundary.
4632
4633 2011-10-21  Andrew Stubbs  <ams@codesourcery.com>
4634
4635         PR target/50809
4636         * config/arm/driver-arm.c (vendors): Make static.
4637
4638 2011-10-21  Uros Bizjak  <ubizjak@gmail.com>
4639
4640         * config/i386/i386.c (ix86_emit_swdivsf): Force b into register.
4641         (ix86_emit_swsqrtsf): Force a into register.
4642
4643 2011-10-20  Mike Stump  <mikestump@comcast.net>
4644
4645         * regcprop.c (copyprop_hardreg_forward_1): Update recog_data
4646         after validate_change wipes it out.
4647
4648 2011-10-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4649
4650         * config/spu/spu.md ("vec_permv16qi"): Reduce selector modulo 32
4651         before using the shufb instruction.
4652
4653 2011-10-20  Kirill Yukhin  <kirill.yukhin@intel.com>
4654
4655         PR target/50766
4656         * config/i386/i386.md (bmi_bextr_<mode>): Update register/
4657         memory operand order.
4658         (bmi2_bzhi_<mode>3): Ditto.
4659         (bmi2_pdep_<mode>3): Ditto.
4660         (bmi2_pext_<mode>3): Ditto.
4661
4662 2011-10-20  Richard Henderson  <rth@redhat.com>
4663
4664         * target.def (vec_perm_const_ok): Rename from builtin_vec_perm_ok.
4665         * optabs.c (can_vec_perm_expr_p): Update to match.
4666         (expand_vec_perm_expr): Likewise.
4667         * config/i386/i386.c (TARGET_VECTORIZE_VEC_PERM_CONST_OK): Rename
4668         from TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK.
4669         * doc/tm.texi.in: Likewise.
4670
4671 2011-10-20  Sergey Ostanevich  <sergos.gnu@gmail.com>
4672
4673         PR target/50572
4674         * config/i386/i386.c (processor_target_table): Change Atom
4675         align_loops_max_skip to 15.
4676
4677 2011-10-20  Richard Henderson  <rth@redhat.com>
4678
4679         * target.def (builtin_vec_perm): Remove.
4680         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
4681
4682         * config/i386/i386.c (ix86_expand_vec_perm_builtin): Remove.
4683         (IX86_BUILTIN_VEC_PERM_*): Remove.
4684         (bdesc_args): Remove vec_perm builtins
4685         (ix86_expand_builtin): Likewise.
4686         (ix86_expand_vec_perm_const_1): Rename from
4687         ix86_expand_vec_perm_builtin_1.
4688         (extract_vec_perm_cst): Merge into...
4689         (ix86_vectorize_vec_perm_const_ok): ... here.  Rename from
4690         ix86_vectorize_builtin_vec_perm_ok.
4691         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
4692
4693         * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): Remove.
4694         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
4695
4696         * config/spu/spu.c (spu_builtin_vec_perm): Remove.
4697         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
4698
4699 2011-10-20  Uros Bizjak  <ubizjak@gmail.com>
4700
4701         PR target/47989
4702         * config/i386/i386.h (RECIP_MASK_DEFAULT): New define.
4703         * config/i386/i386.op (recip_mask): Initialize with RECIP_MASK_DEFAULT.
4704         * doc/invoke.texi (ix86 Options, -mrecip): Document that GCC
4705         implements vectorized single float division and vectorized sqrtf(x)
4706         with reciprocal sequence with additional Newton-Raphson step with
4707         -ffast-math.
4708
4709 2011-10-20  Dodji Seketeli  <dodji@redhat.com>
4710
4711         * ggc-zone.c (ggc_internal_alloc_zone_stat): Rename
4712         ggc_alloced_size_order_for_request into ggc_round_alloc_size like
4713         it was done in ggc-page.c.
4714
4715         PR other/50659
4716         * doc/cppopts.texi: Use @smallexample/@end smallexample in
4717         documentation for -fdebug-cpp instead of @quotation/@end quotation
4718         that is not supported by contrib/texi2pod.pl.
4719
4720 2011-10-19  Jan Hubicka  <jh@suse.cz>
4721
4722         * ipa-inline.c (inline_small_functions): Always update all calles after
4723         inlining.
4724
4725 2011-10-19  Jan Hubicka  <jh@suse.cz>
4726
4727         PR bootstrap/50709
4728         * ipa-inline.c (inline_small_functions): Fix checking code to not make
4729         effect on fibheap stability.
4730
4731 2011-10-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
4732
4733         * config/m68k/t-linux (M68K_MLIB_CPU): Add ColdFire CPUs.
4734
4735 2011-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4736
4737         PR target/50106
4738         * config/arm/arm.c (thumb_unexpanded_epilogue): Handle return
4739         reg size from 1-3.
4740
4741 2011-10-20  Richard Guenther  <rguenther@suse.de>
4742
4743         * tree-ssa-loop-im.c (stmt_cost): Add WIDEN_*, FMA_EXPR
4744         and rotates to the set of expensive operations.
4745
4746 2011-10-19  David S. Miller  <davem@davemloft.net>
4747
4748         * config/sparc/sparc.c (sparc_expand_move): Use can_create_pseudo_p.
4749         (sparc_emit_set_const32): Likewise.
4750         (sparc_emit_set_const64_longway): Likewise.
4751         (sparc_emit_set_const64): Likewise.
4752         (sparc_legitimize_pic_address): Likewise.
4753         (memory_ok_for_ldd): Likewise.
4754
4755 2011-10-20  Dehao Chen  <dehao@google.com>
4756
4757         * profile.c (compute_branch_probabilities): Compute and dump the
4758         overlap between the static estimation and the instrumentation profile.
4759         (OVERLAP_BASE): New macro.
4760         (compute_frequency_overlap): New function
4761
4762 2011-10-19  Jakub Jelinek  <jakub@redhat.com>
4763
4764         * config/i386/i386.c (expand_vec_perm_vpshufb2_vpermq_even_odd): Use
4765         d->op1 instead of d->op0 for the second vpshufb.
4766         (expand_vec_perm_even_odd_1): For V8SImode fix vpshufd immediates.
4767         (ix86_expand_vec_perm_const): If mask indicates two operands are
4768         needed, but both are the same and expanding them as d.op0 == d.op1
4769         failed, retry with d.op0 != d.op1.
4770         (ix86_expand_vec_perm_builtin): Likewise.  Handle sorry printing
4771         also for d.nelt == 32.
4772
4773         PR middle-end/50754
4774         * cfgexpand.c (expand_debug_expr): Handle WIDEN_LSHIFT_EXPR, ignore
4775         VEC_PERM_EXPR.
4776
4777 2011-10-19  Bernd Schmidt  <bernds@codesourcery.com>
4778
4779         * regrename.h: New file.
4780         * regrename.c: Include it.  Also include "emit-rtl.h".
4781         (struct du_head, struct du_chain, du_head_p DEF_VEC and
4782         DEF_VEC_ALLOC_P): Move to regrename.h.
4783         (do_replace): Remove declaration.
4784         (insn_rr): New variable.
4785         (cur_operand): New static variable.
4786         (regrename_chain_from_id): Renamed from chain_from_id and no longer
4787         static.  All callers changed.
4788         (record_operand_use): New static function.
4789         (scan_rtx_reg): Use it.
4790         (find_best_rename_reg): New function, broken out of rename_chains.
4791         (rename_chains): Use it.  Don't update chain regno and nregs here, ...
4792         (regrename_do_replace): ... do it here instead.  Renamed from
4793         do_replace, and no longer static.  All callers changed.
4794         (regrename_analyze): No longer static.  New arg bb_mask.
4795         All callers changed.  If bb_mask is nonzero, use it to limit the
4796         number of basic blocks we analyze.  If we failed to analyze a block,
4797         clear insn operand data.
4798         (record_out_operands): New arg insn_info.  Update cur_operand if it is
4799         nonnull.
4800         (build_def_use): If insn_rr is nonnull, pass an insn_info to
4801         record_out_operands, and update cur_operand here as well.
4802         (regrename_init, regrename_finish): New functions.
4803         (regrename_optimize): Use them.
4804         * Makefile.in (regrename.o): Adjust dependencies.
4805
4806 2011-10-19  Tom de Vries  <tom@codesourcery.com>
4807
4808         PR tree-optimization/50769
4809         * tree-ssa-tail-merge.c (replace_block_by): Calculate phi_vuse2
4810         unconditionally.  Handle case that phi_vuse2 is not an SSA_NAME.  Add
4811         dummy argument .MEM to phi when increasing number of arguments of phi by
4812         redirecting edges to the block with phi.
4813
4814 2011-10-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4815
4816         PR bootstrap/50777
4817         * configure.ac: Save and restore CXXFLAGS around
4818         gcc_AC_CHECK_DECLS uses.
4819         Check for madvise() declaration with g++ if --enable-build-with-cxx.
4820         * configure: Regenerate.
4821         * config.in: Regenerate.
4822         * ggc-page.c (USING_MADVISE): Also check HAVE_DECL_MADVISE.
4823
4824 2011-10-19  Alexandre Oliva  <aoliva@redhat.com>
4825
4826         PR debug/49310
4827         * var-tracking.c (loc_exp_dep, onepart_aux): New structs.
4828         (variable_part): Replace offset with union.
4829         (enum onepart_enum, onepart_enum_t): New.
4830         (variable_def): Drop cur_loc_changed, add onepart.
4831         (value_chain_def, const_value_chain): Remove.
4832         (VAR_PART_OFFSET, VAR_LOC_1PAUX): New macros, with checking.
4833         (VAR_LOC_DEP_LST, VAR_LOC_DEP_LSTP): New macros.
4834         (VAR_LOC_FROM, VAR_LOC_DEPTH, VAR_LOC_DEP_VEC): Likewise.
4835         (value_chain_pool, value_chains): Remove.
4836         (dropped_values): New.
4837         (struct parm_reg): Only if HAVE_window_save.
4838         (vt_stack_adjustments): Don't record register arguments.
4839         (dv_as_rtx): New.
4840         (dv_onepart_p): Return a onepart_enum_t.
4841         (onepart_pool): New.
4842         (dv_pool): Remove.
4843         (dv_from_rtx): New.
4844         (variable_htab_free): Release onepart aux data.  Reset flags.
4845         (value_chain_htab_hash, value_chain_htab_eq): Remove.
4846         (unshare_variable): Use onepart field.  Propagate onepart aux
4847         data or offset.  Drop cur_loc_changed.
4848         (val_store): Cope with NULL insn.  Rephrase dump output.  Check
4849         for unsuitable locs.  Add FIXME on using cselib locs.
4850         (val_reset): Remove FIXME of unfounded concerns.
4851         (val_resolve): Check for unsuitable locs.  Add FIXME on using
4852         cselib locs.
4853         (variable_union): Use onepart field, adjust access to offset.
4854         (NO_LOC_P): New.
4855         (VALUE_CHANGED, DECL_CHANGED): Update doc.
4856         (set_dv_changed): Clear NO_LOC_P when changed.
4857         (find_loc_in_1pdv): Use onepart field.
4858         (intersect_loc_chains): Likewise.
4859         (unsuitable_loc): New.
4860         (loc_cmp): Keep ENTRY_VALUEs at the end of the loc list.
4861         (add_value_chain, add_value_chains): Remove.
4862         (add_cselib_value_chains, remove_value_chain): Likewise.
4863         (remove_value_chains, remove_cselib_value_chains): Likewise.
4864         (canonicalize_loc_order_check): Use onepart.  Drop cur_loc_changed.
4865         (canonicalize_values_star, canonicalize_vars_star): Use onepart.
4866         (variable_merge_over_cur): Likewise.  Adjust access to offset.
4867         Drop cur_loc_changed.
4868         (variable_merge_over_src): Use onepart field.
4869         (remove_duplicate_values): Likewise.
4870         (variable_post_merge_new_vals): Likewise.
4871         (find_mem_expr_in_1pdv): Likewise.
4872         (dataflow_set_preserve_mem_locs): Likewise.  Drop cur_loc_changed
4873         and value chains.
4874         (dataflow_set_remove_mem_locs): Likewise.  Use VAR_LOC_FROM.
4875         (variable_different_p): Use onepart field.  Move onepart test out
4876         of the loop.
4877         (argument_reg_set): Drop.
4878         (add_uses, add_stores): Preserve but do not record in dynamic
4879         tables equivalences for ENTRY_VALUEs and CFA_based addresses.
4880         Avoid unsuitable address expressions.
4881         (EXPR_DEPTH): Unlimit.
4882         (EXPR_USE_DEPTH): Repurpose PARAM_MAX_VARTRACK_EXPR_DEPTH.
4883         (prepare_call_arguments): Use DECL_RTL_IF_SET.
4884         (dump_var): Adjust access to offset.
4885         (variable_from_dropped, recover_dropped_1paux): New.
4886         (variable_was_changed): Drop cur_loc_changed.  Use onepart.
4887         Preserve onepart aux in empty_var.  Recover empty_var and onepart
4888         aux from dropped_values.
4889         (find_variable_location_part): Special-case onepart.  Adjust
4890         access to offset.
4891         (set_slot_part): Use onepart.  Drop cur_loc_changed.  Adjust
4892         access to offset.  Initialize onepaux.  Drop value chains.
4893         (delete_slot_part): Drop value chains.  Use VAR_LOC_FROM.
4894         (VEC (variable, heap), VEC (rtx, stack)): Define.
4895         (expand_loc_callback_data): Drop dummy, cur_loc_changed,
4896         ignore_cur_loc.  Add expanding, pending, depth.
4897         (loc_exp_dep_alloc, loc_exp_dep_clear): New.
4898         (loc_exp_dep_insert, loc_exp_dep_set): New.
4899         (notify_dependents_of_resolved_value): New.
4900         (update_depth, vt_expand_var_loc_chain): New.
4901         (vt_expand_loc_callback): Revamped.
4902         (resolve_expansions_pending_recursion): New.
4903         (INIT_ELCD, FINI_ELCD): New.
4904         (vt_expand_loc): Use the new macros above.  Drop ignore_cur_loc
4905         parameter, adjust all callers.
4906         (vt_expand_loc_dummy): Drop.
4907         (vt_expand_1pvar): New.
4908         (emit_note_insn_var_location): Operate on non-debug decls only.
4909         Revamp multi-part cur_loc recomputation and one-part expansion.
4910         Drop cur_loc_changed.  Adjust access to offset.
4911         (VEC (variable, heap)): Drop.
4912         (changed_variables_stack, changed_values_stack): Drop.
4913         (check_changed_vars_0, check_changed_vars_1): Remove.
4914         (check_changed_vars_2, check_changed_vars_3): Remove.
4915         (values_to_stack, remove_value_from_changed_variables): New.
4916         (notify_dependents_of_changed_value, process_changed_values): New.
4917         (emit_notes_for_changes): Revamp onepart updates.
4918         (emit_notes_for_differences_1): Use onepart.  Drop cur_loc_changed
4919         and value chains.  Propagate onepaux.  Recover empty_var and onepaux
4920         from dropped_values.
4921         (emit_notes_for_differences_2): Drop value chains.
4922         (emit_notes_in_bb): Adjust.
4923         (vt_emit_notes): Drop value chains, changed_variables_stack.
4924         Initialize and release dropped_values.
4925         (create_entry_value): Revamp.
4926         (vt_add_function_parameter): Use new interface.
4927         (note_register_arguments): Remove.
4928         (vt_initialize): Drop value chains and register arguments.
4929         (vt_finalize): Drop value chains.  Release windowed_parm_regs only
4930         if HAVE_window_save.
4931         * rtl.h: Document various pass-local uses of RTL flags.
4932         * tree.h (DECL_RTL_KNOWN_SET): New.
4933         * doc/invoke.texi (param max-vartrack-expr-depth): Update
4934         description and default.
4935
4936 2011-10-19  Georg-Johann Lay  <avr@gjlay.de>
4937
4938         PR target/50447
4939         * config/avr/avr.md (cc): New alternative out_plus_noclobber.
4940         (adjust_len): Ditto.
4941         (addhi3): Don't pipe through short; use gen_int_mode instead.
4942         Prior to reload, expand to gen_addhi3_clobber.
4943         (*addhi3): Use avr_out_plus_noclobber if applicable, use
4944         out_plus_noclobber in cc and adjust_len attribute.
4945         (addhi3_clobber): 2 new RTL peepholes.
4946         (addhi3_clobber): New insn.
4947         * config/avr/avr-protos.h: (avr_out_plus_noclobber): New prototype.
4948         * config/avr/avr.c (avr_out_plus_noclobber): New function.
4949         (notice_update_cc): Handle CC_OUT_PLUS_NOCLOBBER.
4950         (avr_out_plus_1): Tweak if only MSB is +/-1 and other bytes are 0.
4951         Set cc0 to set_zn for adiw on 16-bit values.
4952         (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS_NOCLOBBER.
4953         (expand_epilogue): No need to add 0 to frame_pointer_rtx.
4954
4955 2011-10-19  Richard Guenther  <rguenther@suse.de>
4956
4957         PR middle-end/50780
4958         * tree-ssa-forwprop.c (forward_propagate_into_cond): Verify
4959         the condition is properly gimple before using it.
4960         * tree-eh (stmt_could_throw_1_p): Properly extract the
4961         operation type from comparisons.
4962
4963 2011-10-19  Roland Stigge  <stigge@antcom.de>
4964
4965         PR translation/48638
4966         * plugin.c (add_new_plugin): Fix typo in fatal_error message.
4967
4968 2011-10-19  Roland Stigge  <stigge@antcom.de>
4969
4970         PR translation/49517
4971         * config/rx/rx.c (rx_print_operand): Fix typo in warning message.
4972
4973 2011-10-19  Richard Guenther  <rguenther@suse.de>
4974
4975         PR middle-end/50768
4976         * gimple-fold.c (gimplify_and_update_call_from_tree): Rewrite.
4977
4978 2011-10-19  Andrey Belevantsev  <abel@ispras.ru>
4979
4980         PR rtl-optimization/50340
4981         * sel-sched-ir.c (update_target_availability): LHS register
4982         availability is not known if the unavailable LHS of the other
4983         expression is a different register.
4984
4985 2011-10-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4986
4987         PR target/50310
4988         * config/spu/spu.c (spu_emit_vector_compare): Support unordered
4989         floating-point comparisons.
4990
4991 2011-10-19  Jan Hubicka  <jh@suse.cz>
4992
4993         * cgraphunit.c (handle_alias_pairs): Also handle wekref with
4994         destination declared.
4995         (output_weakrefs): New function.
4996         * varpool.c (varpool_create_variable_alias): Handle external aliases.
4997
4998 2011-10-19  Jakub Jelinek  <jakub@redhat.com>
4999
5000         * dwarf2out.c (loc_descriptor): For SUBREG pass SUBREG_REG's mode as
5001         second argument instead of mode.
5002
5003 2011-10-18  Jakub Jelinek  <jakub@redhat.com>
5004
5005         * config/i386/i386.c (ix86_expand_vec_perm): In merge_two use
5006         mode SUBREG of operands[0] as target.
5007         (valid_perm_using_mode_p): Don't ignore higher bits of d->perm.
5008         (expand_vec_pshufb): For V8SImode vmode emit avx2_permvarv8si.
5009         (expand_vec_perm_1): Handle identity and some broadcast
5010         permutations.
5011         (expand_vec_perm_interleave2): Handle also 32-byte modes, using
5012         vperm2[fi]128 or vpunpck[lh]* followed by single insn permutation.
5013         For d->testing_p return true earlier to avoid creating more GC
5014         garbage.
5015         (expand_vec_perm_vpermq_perm_1): New function.
5016         (expand_vec_perm_vpshufb2_vpermq): For d->testing_p return true
5017         earlier to avoid creating more GC garbage.  Fix handling of
5018         V16HImode.  Avoid some SUBREGs in SET_DEST.
5019         (expand_vec_perm_broadcast_1): Return false for 32-byte integer
5020         vector modes.
5021         (expand_vec_perm_vpshufb4_vpermq2): New function.
5022         (ix86_expand_vec_perm_builtin_1): Call expand_vec_perm_vpermq_perm_1
5023         and expand_vec_perm_vpshufb4_vpermq2.
5024
5025 2011-10-18  Andrew Stubbs  <ams@codesourcery.com>
5026
5027         * config/arm/driver-arm.c (host_detect_local_cpu): Close the file
5028         before exiting.
5029
5030 2011-10-18  Andrew Stubbs  <ams@codesourcery.com>
5031
5032         PR tree-optimization/50717
5033         * tree-ssa-math-opts.c (is_widening_mult_p): Remove the 'type'
5034         parameter.  Calculate 'type' from stmt.
5035         (convert_mult_to_widen): Update call the is_widening_mult_p.
5036         (convert_plusminus_to_widen): Likewise.
5037
5038 2011-10-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5039
5040         * config/spu/spu.c (struct machine_function): New data structure.
5041         (spu_init_machine_status): New function.
5042         (spu_option_override): Install it.
5043         (get_pic_reg): Set and use cfun->machine->pic_reg.
5044         (spu_split_immediate): Do not set crtl->uses_pic_offset_table.
5045         (need_to_save_reg): Use cfun->machine->pic_reg instead of
5046         checking crtl->uses_pic_offset_table.
5047         (spu_expand_prologue): Likewise.
5048
5049 2011-10-18  Jakub Jelinek  <jakub@redhat.com>
5050
5051         PR tree-optimization/50735
5052         * function.c (gimplify_parameters): Use create_tmp_var instead of
5053         create_tmp_reg.  If parm is not TREE_ADDRESSABLE and type is complex
5054         or vector type, set DECL_GIMPLE_REG_P.
5055
5056 2011-10-18  Andrew Stubbs  <ams@codesourcery.com>
5057
5058         * config.host (arm*-*-linux*): Add driver-arm.o and x-arm.
5059         * config/arm/arm.opt: Add 'native' processor_type and
5060         arm_arch enum values.
5061         * config/arm/arm.h (host_detect_local_cpu): New prototype.
5062         (EXTRA_SPEC_FUNCTIONS): New define.
5063         (MCPU_MTUNE_NATIVE_SPECS): New define.
5064         (DRIVER_SELF_SPECS): New define.
5065         * config/arm/driver-arm.c: New file.
5066         * config/arm/x-arm: New file.
5067         * doc/invoke.texi (ARM Options): Document -mcpu=native,
5068         -mtune=native and -march=native.
5069
5070 2011-10-18  Alexander Monakov  <amonakov@ispras.ru>
5071
5072         PR rtl-optimization/50205
5073         * sel-sched.c (count_occurrences_1): Simplify on the assumption that
5074         p->x is a register.  Forbid substitution when the same register is
5075         found in a different mode.
5076         (count_occurrences_equiv): Assert that 'what' is a register.
5077
5078 2011-10-18  Richard Guenther  <rguenther@suse.de>
5079
5080         PR tree-optimization/50767
5081         * tree-ssa-pre.c (create_expression_by_pieces): Update the
5082         folded statement.
5083
5084 2011-10-18  Julian Brown  <julian@codesourcery.com>
5085
5086         * config/arm/arm.c (arm_block_move_unaligned_straight)
5087         (arm_adjust_block_mem, arm_block_move_unaligned_loop)
5088         (arm_movmemqi_unaligned): New.
5089         (arm_gen_movmemqi): Support unaligned block copies.
5090
5091 2011-10-18  Ira Rosen  <ira.rosen@linaro.org>
5092
5093         * doc/md.texi (vec_widen_ushiftl_hi, vec_widen_ushiftl_lo,
5094         vec_widen_sshiftl_hi, vec_widen_sshiftl_lo): Document.
5095         * tree-pretty-print.c (dump_generic_node): Handle WIDEN_LSHIFT_EXPR,
5096         VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
5097         (op_code_prio): Likewise.
5098         (op_symbol_code): Handle WIDEN_LSHIFT_EXPR.
5099         * optabs.c (optab_for_tree_code): Handle
5100         VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
5101         (init-optabs): Initialize optab codes for vec_widen_u/sshiftl_hi/lo.
5102         * optabs.h (enum optab_index): Add OTI_vec_widen_u/sshiftl_hi/lo.
5103         * genopinit.c (optabs): Initialize the new optabs.
5104         * expr.c (expand_expr_real_2): Handle
5105         VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
5106         * gimple-pretty-print.c (dump_binary_rhs): Likewise.
5107         * tree-vectorizer.h (NUM_PATTERNS): Increase to 8.
5108         * tree.def (WIDEN_LSHIFT_EXPR, VEC_WIDEN_LSHIFT_HI_EXPR,
5109         VEC_WIDEN_LSHIFT_LO_EXPR): New.
5110         * cfgexpand.c (expand_debug_expr): Handle new tree codes.
5111         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
5112         vect_recog_widen_shift_pattern.
5113         (vect_handle_widen_mult_by_const): Rename...
5114         (vect_handle_widen_op_by_const): ...to this.  Handle shifts.
5115         Add a new argument, update documentation.
5116         (vect_recog_widen_mult_pattern): Assume that only second
5117         operand can be constant.  Update call to
5118         vect_handle_widen_op_by_const.
5119         (vect_recog_over_widening_pattern): Fix typo.
5120         (vect_recog_widen_shift_pattern): New.
5121         * tree-vect-stmts.c (vectorizable_type_promotion): Handle
5122         widening shifts.
5123         (supportable_widening_operation): Likewise.
5124         * tree-inline.c (estimate_operator_cost): Handle new tree codes.
5125         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
5126         * tree-cfg.c (verify_gimple_assign_binary): Likewise.
5127         * config/arm/neon.md (neon_vec_<US>shiftl_<mode>): New.
5128         (vec_widen_<US>shiftl_lo_<mode>, neon_vec_<US>shiftl_hi_<mode>,
5129         vec_widen_<US>shiftl_hi_<mode>, neon_vec_<US>shift_left_<mode>):
5130         Likewise.
5131         * config/arm/predicates.md (const_neon_scalar_shift_amount_operand):
5132         New.
5133         * config/arm/iterators.md (V_innermode): New.
5134         * tree-vect-slp.c (vect_build_slp_tree): Require same shift operand
5135         for widening shift.
5136
5137 2011-10-18  Richard Guenther  <rguenther@suse.de>
5138
5139         * tree-ssa-alias.h (struct pt_solution): Remove
5140         vars_contains_restrict member.
5141         (pt_solutions_same_restrict_base): Remove.
5142         (pt_solution_set): Adjust.
5143         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Remove
5144         vars_contains_restrict handling.
5145         (dump_points_to_solution): Likewise.
5146         (ptr_derefs_may_alias_p): Do not call pt_solutions_same_restrict_base.
5147         * tree-ssa-structalias.c (struct variable_info): Remove is_restrict_var
5148         field.
5149         (new_var_info): Do not initialize it.
5150         (ipa_escaped_pt): Adjust.
5151         (make_constraint_from_restrict): Make the tag global.
5152         (make_constraint_from_global_restrict): New function.
5153         (make_constraint_from_heapvar): Remove.
5154         (create_variable_info_for): Do not make restrict vars point
5155         to NONLOCAL.
5156         (intra_create_variable_infos): Likewise.
5157         (find_what_var_points_to): Remove vars_contains_restrict handling.
5158         (pt_solution_set): Adjust.
5159         (pt_solution_ior_into): Likewise.
5160         (pt_solutions_same_restrict_base): Remove.
5161         (compute_points_to_sets): Do not test is_restrict_var.
5162         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
5163         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
5164
5165 2011-10-18  Tom de Vries  <tom@codesourcery.com>
5166
5167         PR tree-optimization/50672
5168         * tree-ssa-dce.c (mark_virtual_operand_for_renaming): New function,
5169         factored out of ...
5170         (mark_virtual_phi_result_for_renaming): Use
5171         mark_virtual_operand_for_renaming.
5172         * tree-flow.h (mark_virtual_operand_for_renaming): Declare.
5173         * tree-ssa-tail-merge.c (release_last_vdef): New function.
5174         (purge_bbs): Add update_vops parameter.  Call release_last_vdef for each
5175         deleted basic block.
5176         (tail_merge_optimize): Add argument to call to purge_bbs.
5177
5178 2011-10-18  Richard Guenther  <rguenther@suse.de>
5179
5180         PR middle-end/50716
5181         * expr.c (get_object_or_type_alignment): New function.
5182         (expand_assignment): Use it.
5183         (expand_expr_real_1): Likewise.
5184
5185 2011-10-18  Dodji Seketeli  <dodji@redhat.com>
5186
5187         PR bootstrap/50760
5188         * input.c (dump_line_table_statistics): Use long, not size_t.
5189
5190 2011-10-17  Eric Botcazou  <ebotcazou@adacore.com>
5191
5192         * config/sparc/sparc.md (in_call_delay): Fix formatting issues.
5193
5194 2011-10-17  Simon Baldwin  <simonb@google.com>
5195             Ian Lance Taylor  <iant@google.com>
5196
5197         * configure.ac: Add --with-native-system-header-dir.  Set and
5198         substitute NATIVE_SYSTEM_HEADER_DIR.  Use native_system_header
5199         when setting target_header_dir.
5200         * config.gcc: Always set native_system_header_dir.
5201         (*-*-gnu*): Set native_system_header_dir.  Don't use t-gnu.
5202         (i[34567]86-pc-msdosdjgpp*): Set native_system_header_dir.  Don't
5203         use i386/t-djgpp.
5204         (i[34567]86-*-mingw* | x86_64-*-mingw*): Set
5205         native_system_header_dir.
5206         (spu-*-elf*): Set native_system_header_dir.
5207         * Makefile.in (NATIVE_SYSTEM_HEADER_DIR): Set to
5208         @NATIVE_SYSTEM_HEADER_DIR@.
5209         (PREPROCESSOR_DEFINES): Define NATIVE_SYSTEM_HEADER_DIR.
5210         * cppdefault.c (STANDARD_INCLUDE_DIR): Don't define.
5211         (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
5212         STANDARD_INCLUDE_COMPONENT.
5213         (cpp_include_defaults): Don't use SYSTEM_INCLUDE_DIR.  Rename
5214         STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
5215         * system.h: Poison SYSTEM_INCLUDE_DIR, STANDARD_INCLUDE_DIR, and
5216         STANDARD_INCLUDE_COMPONENT.
5217         * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Remove.
5218         * config/i386/t-mingw-w32: Likewise.
5219         * config/i386/t-mingw-w64: Likewise.
5220         * config/spu/t-spu-elf: Likewise.
5221         * config/i386/t-djgpp: Remove.
5222         * config/t-gnu: Remove.
5223         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Don't define.
5224         (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
5225         STANDARD_INCLUDE_COMPONENT.
5226         * config/i386/djgpp.h (STANDARD_INCLUDE_DIR): Don't define.
5227         * config/spu/spu-elf.h: Likewise.
5228         * config/vms/xm-vms.h: Likewise.
5229         * config/gnu.h: Likewise.
5230         * config/openbsd.h (INCLUDE_DEFAULTS): Change STANDARD_INCLUDE_DIR
5231         and STANDARD_INCLUDE_COMPONENT to NATIVE_SYSTEM_HEADER_DIR and
5232         NATIVE_SYSTME_HEADER_COMPONENT.
5233         * doc/install.texi (Configuration): Document
5234         --with-native-system-header-dir.  Mention it in the documentation
5235         for --with-sysroot and --with-build-sysroot.
5236         * doc/tm.texi.in (Driver): Don't document SYSTEM_INCLUDE_DIR or
5237         STANDARD_INCLUDE_DIR.  Rename STANDARD_INCLUDE_COMPONENT to
5238         NATIVE_SYSTEM_HEADER_COMPONENT.  Rename uses of
5239         STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
5240         * doc/fragments.texi (Target Fragment): Don't document
5241         NATIVE_SYSTEM_HEADER_DIR.
5242         * configure, doc/tm.texi: Rebuild.
5243
5244 2011-10-17  Richard Henderson  <rth@redhat.com>
5245
5246         * config/sparc/sparc.md: Use register_or_zero_operand where rJ
5247         is the constraint.
5248
5249         * config/sparc/sparc.md (vec_perm_constv8qi, vec_perm<mode>): New
5250         patterns.
5251         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): New function.
5252         * config/sparc/sparc-protos.h (sparc_expand_vec_perm_bmask): Declare.
5253
5254 2011-10-17  David S. Miller  <davem@davemloft.net>
5255
5256         * config/sparc/sparc-modes.def: Add single entry vector modes for
5257         DImode and SImode.
5258         * config/sparc/sparc.md (V32, V32I, V64, V64I, V64N8): Delete
5259         mode iterators.
5260         (mov<V32:mode>): Revert back to plain SFmode pattern.
5261         (*movsf_insn): Likewise.
5262         (mov<V64:mode>): Revert back to plain DFmode pattern.
5263         (*movdf_insn_sp32): Likewise.
5264         (*movdf_insn_sp32_v9): Likewise.
5265         (*movdf_insn_sp64): Likewise.
5266         (V64 mode splitters) Likewise.
5267         (addsi3): Remove VIS alternatives.
5268         (subsi3): Likewise.
5269         (and<V64I:mode>3): Revert to DImode only pattern.
5270         (and<V64I:mode>3_sp32): Likewise.
5271         (*and<V64I:mode>3_sp64): Likewise.
5272         (and<V32I:mode>3): Likewise.
5273         (*and_not_<V64I:mode>_sp32): Likewise.
5274         (*and_not_<V64I:mode>_sp64): Likewise.
5275         (*and_not_<V32I:mode>): Likewise.
5276         (ior<V64I:mode>3): Likewise.
5277         (*ior<V64I:mode>3_sp32): Likewise.
5278         (*ior<V64I:mode>3_sp64): Likewise.
5279         (ior<V32I:mode>3): Likewise.
5280         (*or_not_<V64I:mode>_sp32): Likewise.
5281         (*or_not_<V64I:mode>_sp64): Likewise.
5282         (*or_not_<V32I:mode>): Likewise.
5283         (xor<V64I:mode>3): Likewise.
5284         (*xor<V64I:mode>3_sp32): Likewise.
5285         (*xor<V64I:mode>3_sp64): Likewise.
5286         (xor<V32I:mode>3): Likewise.
5287         (V64I mode splitters): Likewise.
5288         (*xor_not_<V64I:mode>_sp32): Likewise.
5289         (*xor_not_<V64I:mode>_sp64): Likewise.
5290         (*xor_not_<V32I:mode>): Likewise.
5291         (one_cmpl<V64I:mode>2): Likewise.
5292         (*one_cmpl<V64I:mode>2_sp32): Likewise.
5293         (*one_cmpl<V64I:mode>2_sp64): Likewise.
5294         (one_cmpl<V32I:mode>2): Likewise.
5295         (VM32, VM64, VMALL): New mode iterators.
5296         (vbits, vconstr, vfptype): New mode attributes.
5297         (mov<VMALL:mode>): New expander.
5298         (*mov<VM32:mode>_insn): New insn.
5299         (*mov<VM64:mode>_insn_sp64): New insn.
5300         (*mov<VM64:mode>_insn_sp32): New insn, and associated splitter
5301         specifically for the register to memory case.
5302         (vec_init<mode>): New expander.
5303         (VADDSUB): New mode iterator.
5304         (<plusminus_insn>v2si3, <plusminus_insn>v2hi3): Remove and replace
5305         with...
5306         (<plusminus_insn><mode>3): New consolidated pattern.
5307         (VL): New mode iterator for logical operations.
5308         (vlsuf): New more attribute.
5309         (vlop): New code iterator.
5310         (vlinsn, vlninsn): New code attributes.
5311         (<code><mode>3): New insn to non-negated vector logical ops.
5312         (*not_<code><mode>3): Likewise for negated variants.
5313         (*nand<mode>_vis): New insn.
5314         (vlnotop): New code iterator.
5315         (*<code>_not1<mode>_vis, *<code>_not2<mode>_vis): New insns.
5316         (one_cmpl<mode>2): New insn.
5317         (faligndata<V64I:mode>_vis): Rewrite to use VM64 iterator.
5318         (bshuffle<VM64:mode>_vis): Likewise.
5319         (v<vis3_shift_patname><mode>3): Use GCM mode iterator.
5320         (fp<plusminus_insn>64_vis): Use V1DI mode.
5321         (VASS mode iterator): Use V1SI not SI mode.
5322         * config/sparc/sparc.c (sparc_vis_init_builtins): Account for
5323         single-entry vector mode changes.
5324         (sparc_expand_builtin): Likewise.
5325         (sparc_expand_vector_init): New function.
5326         * config/sparc/sparc-protos.h (sparc_expand_vector_init): Declare.
5327
5328 2011-10-17  Kai Tietz  <ktietz@redhat.com>
5329
5330         * fold-const.c (simple_operand_p_2): New function.
5331         (fold_truthop): Rename to
5332         (fold_truth_andor_1): function name.
5333         Additionally remove branching creation for logical and/or.
5334         (fold_truth_andor): Handle branching creation for logical and/or here.
5335
5336 2011-10-17  Andi Kleen  <ak@linux.intel.com>
5337
5338         * ggc-page.c (USING_MADVISE): Adjust ifdef to check for USING_MMAP.
5339
5340 2011-10-17  Georg-Johann Lay  <avr@gjlay.de>
5341
5342         * config/avr/avr.h (ASSEMBLER_DIALECT): Remove.
5343         * config/avr/avr.md (mcu_have_movw, mcu_mega): Remove attributes.
5344         (adjust_len): Add alternative "call".
5345         (isa, enabled): New insn attributes.
5346         (length): Use match_test with AVR_HAVE_JMP_CALL instead of
5347         mcu_mega attribute.
5348         (*sbrx_branch<mode>): Ditto.
5349         (*sbrx_and_branch<mode>): Ditto.
5350         (*sbix_branch): Ditto.
5351         (*sbix_branch_bit7): Ditto.
5352         (*sbix_branch_tmp): Ditto.
5353         (*sbix_branch_tmp_bit7): Ditto.
5354         (jump): Ditto.
5355         (negsi2): Use attribute "isa" instead of assembler dialect.
5356         (extendhisi2): Ditto.
5357         (call_insn, call_value_insn): Set adjust_len attribute.
5358         (indirect_jump): Indent to coding rules.
5359         (call_prologue_saves): Use isa attribute instead of mcu_mega.
5360         (epilogue_restores): Ditto.  Fix setting of SP as described in the
5361         RTX pattern.
5362         (*indirect_jump): Fusion of *jcindirect_jump, *njcindirect_jump
5363         and *indirect_jump_avr6.
5364         (*tablejump): Fusion of *tablejump_rjmp and *tablejump_lib.
5365         (*jcindirect_jump, *njcindirect_jump, *indirect_jump_avr6): Remove.
5366         (*tablejump_rjmp, *tablejump_lib): Remove.
5367         * config/avr/avr.c (adjust_insn_length): Handle ADJUST_LEN_CALL.
5368
5369 2011-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
5370
5371         PR c++/50757
5372         * doc/invoke.texi ([Wnonnull]): Update.
5373
5374 2011-10-17  Richard Henderson  <rth@redhat.com>
5375
5376         PR 50746
5377         * optabs.c (expand_vec_perm_expr): Fix indexing error.
5378
5379 2011-10-17  Sergio Durigan Junior  <sergiodj@redhat.com>
5380
5381         * configure.ac: Display `yes' if the SystemTap header has been found.
5382         * configure: Regenerate.
5383
5384 2011-10-08  Andi Kleen  <ak@linux.intel.com>
5385
5386         PR other/50636
5387         * config.in, configure: Regenerate.
5388         * configure.ac (madvise): Add to AC_CHECK_FUNCS.
5389         * ggc-page.c (USING_MADVISE): Add.
5390         (page_entry): Add discarded field.
5391         (alloc_page): Check for discarded pages.
5392         (release_pages): Add USING_MADVISE branch.
5393
5394 2011-10-17  Richard Guenther  <rguenther@suse.de>
5395
5396         PR tree-optimization/50729
5397         * tree-vrp.c (extract_range_from_unary_expr_1): Remove redundant test.
5398         (simplify_conversion_using_ranges): Properly test the
5399         intermediate result.
5400
5401 2011-10-15  Tom Tromey  <tromey@redhat.com>
5402             Dodji Seketeli  <dodji@redhat.com>
5403
5404         * ggc.h (ggc_round_alloc_size): Declare new public entry point.
5405         * ggc-none.c (ggc_round_alloc_size): New public stub function.
5406         * ggc-page.c (ggc_alloced_size_order_for_request): New static
5407         function.  Factorized from ggc_internal_alloc_stat.
5408         (ggc_round_alloc_size): New public function.  Uses
5409         ggc_alloced_size_order_for_request.
5410         (ggc_internal_alloc_stat): Use ggc_alloced_size_order_for_request.
5411         * ggc-zone.c (ggc_round_alloc_size): New public function extracted
5412         from ggc_internal_alloc_zone_stat.
5413         (ggc_internal_alloc_zone_stat): Use ggc_round_alloc_size.
5414         * toplev.c (general_init): Initialize
5415         line_table->alloced_size_for_request.
5416
5417 2011-10-15  Tom Tromey  <tromey@redhat.com>
5418             Dodji Seketeli  <dodji@redhat.com>
5419
5420         * input.c (ONE_K, ONE_M, SCALE, STAT_LABEL, FORMAT_AMOUNT): New macros.
5421         (num_expanded_macros_counter, num_macro_tokens_counter): Declare
5422         new counters.
5423         (dump_line_table_statistics): Define new function.
5424         * input.h (dump_line_table_statistics): Declare new function.
5425         * toplev.c (dump_memory_report): Call dump_line_table_statistics.
5426
5427 2011-10-15  Tom Tromey  <tromey@redhat.com>
5428             Dodji Seketeli  <dodji@redhat.com>
5429
5430         * doc/cppopts.texi: Document -fdebug-cpp.
5431         * doc/invoke.texi: Add -fdebug-cpp to the list of preprocessor options.
5432
5433 2011-10-15  Tom Tromey  <tromey@redhat.com>
5434             Dodji Seketeli  <dodji@redhat.com>
5435
5436         * gcc/diagnostic.h (diagnostic_report_current_module): Add a
5437         location parameter.
5438         * diagnostic.c (diagnostic_report_current_module): Add a location
5439         parameter to the function definition.  Use it instead of
5440         input_location.  Resolve the virtual location rather than just
5441         looking up its map and risking to touch a resulting macro map.
5442         (default_diagnostic_starter): Pass the relevant diagnostic
5443         location to diagnostic_report_current_module.
5444         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): New.
5445         (virt_loc_aware_diagnostic_finalizer): Likewise.
5446         (diagnostic_report_current_function): Pass the
5447         relevant location to diagnostic_report_current_module.
5448         * tree-diagnostic.h (virt_loc_aware_diagnostic_finalizer): Declare
5449         new function.
5450         * toplev.c (general_init): By default, use the new
5451         virt_loc_aware_diagnostic_finalizer as diagnostic finalizer.
5452         * Makefile.in: Add vec.h dependency to tree-diagnostic.c.
5453
5454 2011-10-15  Tom Tromey  <tromey@redhat.com>
5455             Dodji Seketeli  <dodji@redhat.com>
5456
5457         * doc/cppopts.texi (-ftrack-macro-expansion): Document new option.
5458         * doc/invoke.texi (-ftrack-macro-expansion): Add this to the list of
5459         preprocessor related options.
5460
5461 2011-10-15  Tom Tromey  <tromey@redhat>
5462             Dodji Seketeli  <dodji@redhat.com>
5463
5464         * input.h (struct expanded_location): Move to libcpp/line-map.h.
5465         (LOCATION_COLUMN): New accessor
5466         (in_system_header_at): Use linemap_location_in_system_header_p.
5467         * diagnostic.c (diagnostic_report_current_module): Adjust to avoid
5468         touching the internals of struct line_map.  Use the public API instead.
5469         (diagnostic_report_diagnostic): Don't use relational operator '<'
5470         on virtual locations.  Use linemap_location_before_p instead.
5471         * input.c (expand_location): Adjust to expand to the tokens'
5472         spelling location when macro location tracking is on.
5473
5474
5475 2011-10-08  Andi Kleen  <ak@linux.intel.com>
5476
5477         * ggc-page.c (GGC_QUIRE_SIZE): Increase to 512
5478
5479 2011-10-13  Andi Kleen  <ak@linux.intel.com>
5480
5481         * toplev.c (compile_file): Rename __gnu_slim_lto to __gnu_lto_slim.
5482
5483 2011-10-16  Ira Rosen  <ira.rosen@linaro.org>
5484
5485         PR tree-optimization/50727
5486         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Add
5487         DEF_STMT to the list of statements to be replaced by the
5488         pattern statements.
5489
5490 2011-10-16  Eric Botcazou  <ebotcazou@adacore.com>
5491
5492         PR rtl-optimization/50615
5493         * combine.c (distribute_notes) <REG_ARGS_SIZE>: Skip if I3 is a no-op.
5494
5495 2011-10-16  Jakub Jelinek  <jakub@redhat.com>
5496
5497         PR tree-optimization/50596
5498         * tree-vectorizer.h (NUM_PATTERNS): Increase to 7.
5499         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
5500         vect_recog_bool_pattern.
5501         (check_bool_pattern, adjust_bool_pattern_cast,
5502         adjust_bool_pattern, vect_recog_bool_pattern): New functions.
5503
5504 2011-10-16  Ira Rosen  <ira.rosen@linaro.org>
5505
5506         * tree-vect-stmts.c (vectorizable_load): For SLP without permutation
5507         treat the first load of the node as the first element in its
5508         interleaving chain.
5509         * tree-vect-slp.c (vect_get_and_check_slp_defs): Swap the operands if
5510         necessary and possible.
5511         (vect_build_slp_tree): Add new argument.  Allow load groups of any size
5512         in basic blocks.  Keep all the loads for further permutation check.
5513         Use the new argument to determine if there is a permutation.  Update
5514         the recursive calls.
5515         (vect_supported_load_permutation_p): Allow subchains of interleaving
5516         chains in basic block vectorization.
5517         (vect_analyze_slp_instance): Update the call to vect_build_slp_tree.
5518         Check load permutation based on the new parameter.
5519         (vect_schedule_slp_instance): Don't start from the first element in
5520         interleaving chain unless the loads are permuted.
5521
5522 2011-10-15  Jan Hubicka  <jh@suse.cz>
5523
5524         PR target/48668
5525         PR target/50689
5526         * cgraphunit.c (cgraph_expand_function): Expand thunks and alises
5527         after function body.
5528
5529 2011-10-15  Richard Henderson  <rth@redhat.com>
5530
5531         * tree-vect-slp.c: Include langhooks.h.
5532         (vect_create_mask_and_perm): Emit VEC_PERM_EXPR, not a builtin.
5533         (vect_transform_slp_perm_load): Use can_vec_perm_expr_p.  Simplify
5534         mask creation for VEC_PERM_EXPR.
5535         * tree-vect-stmts.c (perm_mask_for_reverse): Return the mask,
5536         not the builtin.
5537         (reverse_vec_elements): Emit VEC_PERM_EXPR not a builtin.
5538         * Makefile.in (tree-vect-slp.o): Update dependency.
5539         * optabs.c (can_vec_perm_expr_p): Allow NULL as unknown constant.
5540
5541 2011-10-15  Alan Modra  <amodra@gmail.com>
5542
5543         PR bootstrap/50738
5544         * ifcvt.c (dead_or_predicable): Revert accidental commit with
5545         HAVE_simple_return test.
5546
5547 2011-10-15  Alan Modra  <amodra@gmail.com>
5548
5549         * ifcvt.c (dead_or_predicable): Disable if-conversion when
5550         doing so is likely to kill a shrink-wrapping opportunity.
5551
5552         PR rtl-optimization/49941
5553         * jump.c (mark_jump_label_1): Set JUMP_LABEL for simple_return jumps.
5554
5555         * rtl.h (set_return_jump_label): Declare.
5556         * function.c (set_return_jump_label): New function, extracted..
5557         (thread_prologue_and_epilogue_insns): ..from here.  Use it in
5558         another instance to set return jump_label.
5559         * cfgrtl.c (force_nonfallthru_and_redirect): Use set_return_jump_label.
5560         * reorg.c (find_end_label): Likewise.
5561
5562 2011-10-14  David S. Miller  <davem@davemloft.net>
5563
5564         * config/sparc/sol2.h: Protect -m{cpu,tune}=native handling
5565         with a more complete cpp test.
5566         * config/sparc/linux64.h: Likewise.
5567         * config/sparc/linux.h: Likewise.
5568         * config/sparc/sparc.opt (sparc_debug): New target variable.
5569         (mdebug): New target option.
5570         * config/sparc/sparc.h (MASK_DEBUG_OPTIONS, MASK_DEBUG_ALL,
5571         TARGET_DEBUG_OPTIONS): New defines.
5572         * config/sparc/sparc.c (debug_target_flag_bits,
5573         debug_target_flags): New functions.
5574         (sparc_option_override): Add name strings back to cpu_table[].
5575         Parse -mdebug string.  When TARGET_DEBUG_OPTIONS is true, print
5576         out the target flags before and after override processing as well
5577         as the selected cpu.  If MASK_V8PLUS, make sure that the selected
5578         cpu is at least v9.
5579
5580 2011-10-15  Oleg Endo  <oleg.endo@t-online.de>
5581
5582         PR target/49263
5583         * config/sh/sh.h (ZERO_EXTRACT_ANDMASK): New macro.
5584         * config/sh/sh.c (sh_rtx_costs): Add test instruction case.
5585         * config/sh/sh.md (tstsi_t): Name existing insn.  Make inner
5586         and instruction commutative.
5587         (tsthi_t, tstqi_t, tstqi_t_zero, tstsi_t_and_not,
5588         tstsi_t_zero_extract_eq, tstsi_t_zero_extract_xor,
5589         tstsi_t_zero_extract_subreg_xor_little,
5590         tstsi_t_zero_extract_subreg_xor_big): New insns.
5591         (*movsicc_t_false, *movsicc_t_true): Replace space with tab in
5592         asm output.
5593         (*andsi_compact): Reorder alternatives so that K08 is considered first.
5594
5595 2011-10-14  Eric Botcazou  <ebotcazou@adacore.com>
5596
5597         PR target/50354
5598         * config/sparc/linux64.h (TARGET_DEFAULT): Only override if the default
5599         processor is at least V9 and TARGET_64BIT_DEFAULT is defined.
5600
5601 2011-10-14  Gerald Pfeifer  <gerald@pfeifer.com>
5602
5603         * invoke.texi (AVR Options): Avoid \leq{}.
5604
5605 2011-10-14  Kai Tietz  <ktietz@redhat.com>
5606
5607         * gimplify.c (gimplify_expr): Take care that for bitwise-binary
5608         transformation the operands have compatible types.
5609
5610 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
5611
5612         * config/i386/sse.md (vec_widen_smult_hi_v8hi,
5613         vec_widen_smult_lo_v8hi, vec_widen_umult_hi_v8hi,
5614         vec_widen_umult_lo_v8hi): Macroize using VI2_AVX2
5615         mode iterator and any_extend code iterator.
5616         (vec_widen_<s>mult_hi_v8si, vec_widen_<s>mult_lo_v8si): New expanders.
5617         (vec_widen_smult_hi_v4si, vec_widen_smult_lo_v4si): Enable
5618         also for TARGET_SSE4_1 using pmuldq insn.
5619         (sdot_prodv8hi): Macroize using VI2_AVX2 iterator.
5620         (sse2_sse4_1): New code attr.
5621         (udot_prodv4si): Macroize using any_extend code iterator.
5622         (<s>dot_prodv8si): New expander.
5623
5624 2011-10-14  Yakovlev Vladimir  <vladimir.b.yakovlev@intel.com>
5625
5626         * config/i386/i386.c (atom_cost): Changed cost for loading
5627         QImode using movzbl.
5628
5629 2011-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
5630
5631         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo in my
5632         change on October 11th, 2011.
5633
5634 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
5635
5636         * config/i386/sse.md (vec_interleave_high<mode>,
5637         vec_interleave_low<mode>): Add AVX2 expanders for VI_256 modes.
5638         * config/i386/i386.c (expand_vec_perm_interleave3): New function.
5639         (ix86_expand_vec_perm_builtin_1): Call it.
5640
5641 2011-10-14  Georg-Johann Lay  <avr@gjlay.de>
5642
5643         Fix thinko from r179765
5644         * config/avr/avr.c (avr_option_override): Don't override
5645         flag_omit_frame_pointer if not actually needed.
5646
5647 2011-10-14  Georg-Johann Lay  <avr@gjlay.de>
5648
5649         PR target/46278
5650         * doc/invoke.texi (AVR Options): Document -mstrict-X.
5651
5652         * config/avr/avr.opt (-mstrict-X): New option.
5653         (avr_strict_X): New variable reflecting -mstrict-X.
5654         * config/avr/avr.c (avr_reg_ok_for_addr_p): Add parameter
5655         outer_code and pass it down to avr_regno_mode_code_ok_for_base_p.
5656         (avr_legitimate_address_p): Pass outer_code to
5657         avr_reg_ok_for_addr_p and use that function in case PLUS.
5658         (avr_mode_code_base_reg_class): Depend on avr_strict_X.
5659         (avr_regno_mode_code_ok_for_base_p): Ditto, and depend on outer_code.
5660         (avr_option_override): Disable -fcaller-saves if -mstrict-X is on.
5661
5662 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
5663
5664         * config/i386/sse.md (neg<mode>2): Use VI_AVX2 iterator instead
5665         of VI_128.
5666
5667         * config/i386/sse.md (mulv2di3): Macroize using VI8_AVX2 iterator.
5668         (ashl<mode>3): Use VI248_AVX2 iterator instead of VI248_128.
5669         Use <sseinsnmode> instead of TI in mode attr.
5670
5671 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
5672
5673         * config/arm/linux-atomic-64bit.c: New (based on linux-atomic.c).
5674         * config/arm/linux-atomic.c: Change comment to point to 64bit version.
5675         (SYNC_LOCK_RELEASE): Instantiate 64bit version.
5676         * config/arm/t-linux-eabi: Pull in linux-atomic-64bit.c.
5677
5678 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
5679
5680         * config/arm/arm.c (arm_output_ldrex): Support ldrexd.
5681         (arm_output_strex): Support strexd.
5682         (arm_output_it): New helper to output it in Thumb2 mode only.
5683         (arm_output_sync_loop): Support DI mode.  Change comment to
5684         not support const_int.
5685         (arm_expand_sync): Support DI mode.
5686         * config/arm/arm.h (TARGET_HAVE_LDREXBHD): Split into LDREXBH
5687         and LDREXD.
5688         * config/arm/iterators.md (NARROW): move from sync.md.
5689         (QHSD): New iterator for all current ARM integer modes.
5690         (SIDI): New iterator for SI and DI modes only.
5691         * config/arm/sync.md (sync_predtab): New mode_attr.
5692         (sync_compare_and_swapsi): Fold into sync_compare_and_swap<mode>.
5693         (sync_lock_test_and_setsi): Fold into sync_lock_test_and_setsi<mode>.
5694         (sync_<sync_optab>si): Fold into sync_<sync_optab><mode>.
5695         (sync_nandsi): Fold into sync_nand<mode>.
5696         (sync_new_<sync_optab>si): Fold into sync_new_<sync_optab><mode>.
5697         (sync_new_nandsi): Fold into sync_new_nand<mode>.
5698         (sync_old_<sync_optab>si): Fold into sync_old_<sync_optab><mode>.
5699         (sync_old_nandsi): Fold into sync_old_nand<mode>.
5700         (sync_compare_and_swap<mode>): Support SI & DI.
5701         (sync_lock_test_and_set<mode>): Likewise.
5702         (sync_<sync_optab><mode>): Likewise.
5703         (sync_nand<mode>): Likewise.
5704         (sync_new_<sync_optab><mode>): Likewise.
5705         (sync_new_nand<mode>): Likewise.
5706         (sync_old_<sync_optab><mode>): Likewise.
5707         (sync_old_nand<mode>): Likewise.
5708         (arm_sync_compare_and_swapsi): Turn into iterator on SI & DI.
5709         (arm_sync_lock_test_and_setsi): Likewise.
5710         (arm_sync_new_<sync_optab>si): Likewise.
5711         (arm_sync_new_nandsi): Likewise.
5712         (arm_sync_old_<sync_optab>si): Likewise.
5713         (arm_sync_old_nandsi): Likewise.
5714         (arm_sync_compare_and_swap<mode> NARROW): use sync_predtab, fix indent.
5715         (arm_sync_lock_test_and_setsi<mode> NARROW): Likewise.
5716         (arm_sync_new_<sync_optab><mode> NARROW): Likewise.
5717         (arm_sync_new_nand<mode> NARROW): Likewise.
5718         (arm_sync_old_<sync_optab><mode> NARROW): Likewise.
5719         (arm_sync_old_nand<mode> NARROW): Likewise.
5720
5721 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
5722
5723         PR target/48126
5724         * config/arm/arm.c (arm_output_sync_loop): Move label before barrier.
5725
5726 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
5727
5728         * config/arm/arm.h (TARGET_HAVE_DMB_MCR): MCR Not available in Thumb1.
5729
5730 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
5731
5732         * doc/invoke.texi ([Wformat-zero-length]): Tidy.
5733
5734 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
5735
5736         * gimple.c (walk_stmt_load_store_addr_ops): Call visit_addr also
5737         on COND_EXPR/VEC_COND_EXPR comparison operands if they are ADDR_EXPRs.
5738
5739 2011-10-14  Richard Guenther  <rguenther@suse.de>
5740
5741         PR tree-optimization/50723
5742         * ipa-split.c (split_function): Use GSI_CONTINUE_LINKING.
5743
5744 2011-10-14  Nicola Pero  <nicola.pero@meta-innovation.com>
5745
5746         * gengtype.c (files_rules): Added rules for objc/objc-map.h and
5747         objc/objc-map.c.
5748
5749 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
5750
5751         PR c++/17212
5752         * doc/invoke.texi ([Wformat-zero-length]): Update.
5753
5754 2011-10-14  Iain Sandoe  <iains@gcc.gnu.org>
5755
5756         PR bootstrap/50699
5757         * config/darwin.c (darwin_patch_builtin): Adjust argument type. Only
5758         build for powerpc targets.  (darwin_patch_builtins): Only build for
5759         powerpc targets.
5760
5761 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
5762
5763         * config/i386/sse.md (*avx_cvtdq2pd256_2): Rename to...
5764         (avx_cvtdq2pd256_2): ... this.
5765         (sseunpackfltmode): New mode attr.
5766         (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi,
5767         vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): Macroize
5768         using VI2_AVX2 iterator.
5769         (vec_unpacku_float_hi_v8si, vec_unpacku_float_lo_v8si): New expanders.
5770
5771 2011-10-13  David S. Miller  <davem@davemloft.net>
5772
5773         * config/sparc/sparc.md (plusminus): New code iterator.
5774         (plusminus_insn): New code attr.
5775         (addv2si3, subv2si3, addv4hi3, subv4hi3, addv2hi3, subv2hi3): Merge
5776         using plusminus and plusminus_insn.
5777         (fpadd64_vis, fpsub64_vis): Likewise.
5778
5779 2011-10-13  Richard Henderson  <rth@redhat.com>
5780
5781         * doc/md.texi (vec_perm): Document fallback to byte permutation.
5782         * genopinit.c (optabs): Add vec_perm_const.
5783         * optabs.c (can_vec_perm_expr_p): Rename from expand_vec_perm_expr_p.
5784         Reject non-vector modes.  Allow fallback to byte permutation.
5785         (expand_vec_perm_expr_1): Split out from ...
5786         (expand_vec_perm_expr): ... here.  Allow fallback to byte permutation.
5787         * optabs.h (DOI_vec_perm_const, vec_perm_const_optab): New.
5788         * tree-vect-generic.c (lower_vec_perm): Update for name change.
5789
5790 2011-10-13  Richard Henderson  <rth@redhat.com>
5791
5792         * config/rs6000/altivec.md (vec_permv16qi): New pattern.
5793
5794         * config/rs6000/spu.md (vec_permv16qi): New pattern.
5795
5796         * config/i386/i386.c (ix86_expand_vec_perm_const): New.
5797         * config/i386/i386-protos.h: Update.
5798         * config/i386/sse.md (VEC_PERM_CONST): New mode iterator.
5799         (vec_perm_const<VEC_PERM_CONST>): New expander.
5800
5801         * optabs.c (expand_vector_broadcast): New.
5802         (expand_binop): Expand scalar shifts of vectors to vector shifts
5803         of vectors, if the former isn't supported.
5804         * tree-vect-generic.c (expand_vector_operations_1): Don't do that
5805         here; always simplify to scalar shift of vector if possible.
5806
5807         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix mode
5808         test for vector splat.
5809
5810 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
5811
5812         * config/i386/sse.md (vec_set<mode>): Change V_128 iterator mode to V.
5813
5814 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
5815             Richard Guenther  <rguenther@suse.de>
5816
5817         * tree-ssa.c (maybe_optimize_var): Drop TREE_ADDRESSABLE from vector
5818         or complex vars even if their DECL_UID is in not_reg_needs bitmap.
5819
5820 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
5821
5822         * config/i386/sse.md (reduc_umin_v8hi): New pattern.
5823         * config/i386/i386.c (ix86_build_const_vector): Handle
5824         also V32QI, V16QI, V16HI and V8HI modes.
5825         (emit_reduc_half): New function.
5826         (ix86_expand_reduc): Use phminposuw insn for V8HImode UMIN.
5827         Use emit_reduc_half helper function.
5828
5829 2011-10-13  Lawrence Crowl  <crowl@google.com>
5830             Diego Novillo  <dnovillo@google.com>
5831
5832         * lto-streamer-in.c (input_struct_function_base): Factor out of ...
5833         (input_function): ... here.
5834         * lto-streamer-out.c (output_struct_function_base): Factor out of ...
5835         (output_function): ... here.
5836
5837 2011-10-13  Gabriel Charette  <gchare@google.com>
5838             Diego Novillo  <dnovillo@google.com>
5839
5840         * streamer-hooks.h (struct streamer_hooks): Add hooks
5841         input_location and output_location.
5842         * lto-streamer-in.c (lto_input_location): Use
5843         streamer_hooks.input_location, if set.
5844         * lto-streamer-out.c (lto_output_location): Use
5845         streamer_hooks.output_location, if set.
5846
5847 2011-10-13  Eric Botcazou  <ebotcazou@adacore.com>
5848
5849         * doc/invoke.texi (SPARC options): Document -mfix-at697f.
5850         * config/sparc/sparc.opt (mfix-at697f): New option.
5851         * config/sparc/sparc.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5852         (sparc_reorg): New function.
5853
5854 2011-10-13  Richard Guenther  <rguenther@suse.de>
5855
5856         PR tree-optimization/50712
5857         * ipa-split.c (split_function): Always re-gimplify parameters
5858         when they are not gimple vals before passing them.  Properly
5859         check for type compatibility.
5860
5861 2011-10-13  Tom de Vries  <tom@codesourcery.com>
5862
5863         * function.c (gimplify_parameters): Set number of arguments of call to
5864         BUILT_IN_ALLOCA_WITH_ALIGN to 2.
5865
5866 2011-10-13  Tom de Vries  <tom@codesourcery.com>
5867
5868         * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_READONLY_P
5869         for static const strings.
5870         * varasm.c (build_constant_desc): Generate the memory location of the
5871         constant using gen_const_mem.
5872
5873 2011-10-13  Richard Guenther  <rguenther@suse.de>
5874
5875         PR tree-optimization/50698
5876         * tree-data-ref.c (split_constant_offset_1): Also process
5877         offsets of &MEM.
5878
5879 2011-10-12  David S. Miller  <davem@davemloft.net>
5880
5881         * config/sparc/sparc.md (UNSPEC_FPMERGE): Delete.
5882         (UNSPEC_MUL16AU, UNSPEC_MUL8, UNSPEC_MUL8SU, UNSPEC_MULDSU): New
5883         unspecs.
5884         (fpmerge_vis): Remove inaccurate comment, represent using vec_select
5885         of a vec_concat.
5886         (vec_interleave_lowv8qi, vec_interleave_highv8qi): New insns.
5887         (fmul8x16_vis, fmul8x16au_vis, fmul8sux16_vis, fmuld8sux16_vis):
5888         Reimplement as unspecs and remove inaccurate comments.
5889         (vis3_shift_patname): New code attr.
5890         (<vis3_shift_insn><vbits>_vis): Rename to
5891         "v<vis3_shift_patname><mode>3".
5892         (vis3_addsub_ss_patname): New code attr.
5893         (<vis3_addsub_ss_insn><vbits>_vis): Rename to
5894         "<vis3_addsub_ss_patname><mode>3".
5895         * config/sparc/sparc.c (sparc_vis_init_builtins): Update to
5896         accommodate pattern name changes.
5897
5898         * config/sparc/sparc.h: Do not force TARGET_VIS3 and TARGET_FMAF
5899         to zero when assembler lacks support for such instructions.
5900         * config/sparc/sparc.c (sparc_option_override): Clear MASK_VIS3
5901         and MASK_FMAF in defaults when assembler lacks necessary support.
5902
5903 2011-10-12  Jakub Jelinek  <jakub@redhat.com>
5904
5905         * config/i386/sse.md (vec_unpacks_lo_<mode>,
5906         vec_unpacks_hi_<mode>, vec_unpacku_lo_<mode>,
5907         vec_unpacku_hi_<mode>): Change VI124_128 mode to VI124_AVX2.
5908         * config/i386/i386.c (ix86_expand_sse_unpack): Handle
5909         V32QImode, V16HImode and V8SImode for TARGET_AVX2.
5910
5911         * config/i386/sse.md (vec_avx2): New mode_attr.
5912         (mulv16qi3): Macroize to cover also mulv32qi3 for TARGET_AVX2 into ...
5913         (mul<mode>3): ... this.
5914
5915         * config/i386/i386.md (UNSPEC_VPERMDI): Remove.
5916         * config/i386/i386.c (ix86_expand_vec_perm): Handle
5917         V16QImode and V32QImode for TARGET_AVX2.
5918         (MAX_VECT_LEN): Increase to 32.
5919         (expand_vec_perm_blend): Add support for 32-byte integer
5920         vectors with TARGET_AVX2.
5921         (valid_perm_using_mode_p): New function.
5922         (expand_vec_perm_pshufb): Add support for 32-byte integer
5923         vectors with TARGET_AVX2.
5924         (expand_vec_perm_vpshufb2_vpermq): New function.
5925         (expand_vec_perm_vpshufb2_vpermq_even_odd): New function.
5926         (expand_vec_perm_even_odd_1): Handle 32-byte integer vectors
5927         with TARGET_AVX2.
5928         (ix86_expand_vec_perm_builtin_1): Try expand_vec_perm_vpshufb2_vpermq
5929         and expand_vec_perm_vpshufb2_vpermq_even_odd.
5930         * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Add for TARGET_AVX2
5931         32-byte integer vector modes.
5932         (vec_pack_trunc_<mode>): Use VI248_AVX2 instead of VI248_128.
5933         (avx2_interleave_highv32qi, avx2_interleave_lowv32qi): Remove pasto.
5934         (avx2_pshufdv3, avx2_pshuflwv3, avx2_pshufhwv3): Generate
5935         4 new operands.
5936         (avx2_pshufd_1, avx2_pshuflw_1, avx2_pshufhw_1): Don't use
5937         match_dup, instead add 4 new operands and require they have
5938         right cross-lane values.
5939         (avx2_permv4di): Change into define_expand.
5940         (avx2_permv4di_1): New instruction.
5941         (avx2_permv2ti): Use nonimmediate_operand instead of register_operand
5942         for "xm" constrained operand.
5943         (VEC_PERM_AVX2): Add V32QI and V16QI for TARGET_AVX2.
5944
5945         * config/i386/sse.md (avx2_gathersi<mode>,
5946         avx2_gatherdi<mode>, avx2_gatherdi<mode>256): Add clobber of
5947         match_scratch, change memory_operand to register_operand,
5948         add (mem:BLK (scratch)) use.
5949         (*avx2_gathersi<mode>, *avx2_gatherdi<mode>,
5950         *avx2_gatherdi<mode>256): Add clobber of match_scratch,
5951         add earlyclobber to the output operand and match_scratch,
5952         add (mem:BLK (scratch)) use, change the other mem to match_operand.
5953         Use %p6 instead of %c6 in the pattern.
5954         * config/i386/i386.c (ix86_expand_builtin): Adjust for
5955         operand 2 being a Pmode register_operand instead of memory_operand.
5956
5957 2011-10-12  Kai Tietz  <ktietz@redhat.com>
5958
5959         * config/i386/i386.md (simple_return): Disable if TARGET_SEH is active.
5960
5961 2011-10-12  Steve Ellcey  <sje@cup.hp.com>
5962
5963         * config/ia64/ia64.c (ia64_init_builtins): Fix unbalanced parentheses.
5964
5965 2011-10-12  Richard Guenther  <rguenther@suse.de>
5966
5967         * tree-ssa-alias.c (maybe_skip_until): Cache also at the point
5968         of the first store we visit in a basic-block.
5969         (get_continuation_for_phi): Search for a candidate VUSE that
5970         might dominates all others.  Do pairwise disambiguation against
5971         that candidate.
5972
5973 2011-10-12  Paul Koning  <pkoning@gcc.gnu.org>
5974
5975         PR tree-optimization/50189
5976         * tree-vrp.c (extract_range_from_assert): Use the type of
5977         the variable, not the limit.
5978
5979 2011-10-12  Richard Guenther  <rguenther@suse.de>
5980
5981         PR tree-optimization/50700
5982         * tree-object-size.c (addr_object_size): Simplify and treat
5983         MEM_REF bases consistently.
5984
5985 2011-10-12  Bernd Schmidt  <bernds@codesourcery.com>
5986
5987         * function.c (prepare_shrink_wrap, bb_active_p): New function.
5988         (thread_prologue_and_epilogue_insns): Use bb_active_p.  Call
5989         prepare_shrink_wrap, then recompute bb_active_p for the last block.
5990
5991 2011-10-12  Joseph Myers  <joseph@codesourcery.com>
5992
5993         PR c/50565
5994         * convert.c (convert_to_integer): Do not narrow operands of
5995         pointer subtraction.
5996
5997 2011-10-12  Nick Clifton  <nickc@redhat.com>
5998
5999         * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): New macro.  Used to
6000         emit a .eabi_attribute assembler directive, possibly with a
6001         comment attached.
6002         * config/arm/arm.c (arm_file_start): Use the new macro.
6003         * config/arm/arm-c.c (arm_output_c_attributes): Likewise.
6004
6005 2011-10-12  Georg-Johann Lay  <avr@gjlay.de>
6006
6007         PR target/49939
6008         * config/avr/avr.md (*movqi): Rename to movqi_insn.
6009         (*call_insn): Rename to call_insn.
6010         (*call_value_insn): Rename to call_value_insn.
6011         * config/avr/avr.c (avr_2word_insn_p): New static function.
6012         (jump_over_one_insn_p): Use it.
6013
6014 2011-10-12  Richard Sandiford  <richard.sandiford@linaro.org>
6015
6016         * expr.h (copy_blkmode_to_reg): Declare.
6017         * expr.c (copy_blkmode_to_reg): New function.
6018         (expand_assignment): Don't expand register RESULT_DECLs before
6019         the lhs.  Use copy_blkmode_to_reg to copy BLKmode values into a
6020         RESULT_DECL register.
6021         (expand_expr_real_1): Handle BLKmode decls when looking for promotion.
6022         * stmt.c (expand_return): Move BLKmode-to-register code into
6023         copy_blkmode_to_reg.
6024
6025 2011-10-11  Eric Botcazou  <ebotcazou@adacore.com>
6026
6027         PR target/49965
6028         * config/sparc/sparc.md (mov<I:mode>cc): Do not save comparison code.
6029         (mov<F:mode>cc): Likewise.
6030
6031 2011-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6032
6033         * tree-ssa-address.c (copy_ref_info): Remove copy of TREE_THIS_NOTRAP.
6034
6035 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
6036
6037         * tree.h (built_in_decls): Delete old interface with two parallel
6038         arrays to hold standard builtin declarations, and replace it with
6039         a function based interface that can support creating builtins on
6040         the fly in the future.  Change all uses, and poison the old
6041         names.  Make sure 0 is not a legitimate builtin index.
6042         (implicit_built_in_decls): Ditto.
6043         (built_in_info): Ditto.
6044         (BUILTIN_VALID_P): Ditto.
6045         (builtin_decl_explicit): Ditto.
6046         (builtin_decl_implicit): Ditto.
6047         (set_builtin_decl): Ditto.
6048         (set_builtin_decl_implicit_p): Ditto.
6049         (builtin_decl_explicit_p): Ditto.
6050         (builtin_decl_implicit_p): Ditto.
6051         * tree-complex.c (expand_complex_libcall): Ditto.
6052         * tree-loop-distribution.c (generate_memset_zero): Ditto.
6053         * tree-ssa-strlen.c (get_string_length): Ditto.
6054         (handle_builtin_strcpy): Ditto.
6055         (handle_builtin_strcat): Ditto.
6056         * tree.c (iterative_hash_expr): Ditto.
6057         (local_define_builtin): Ditto.
6058         (build_common_builtin_nodes): Ditto.
6059         * builtins.c (built_in_decls): Ditto.
6060         (implicit_built_in_decls): Ditto.
6061         (built_in_info): Ditto
6062         (expand_builtin_classify_type): Ditto.
6063         (mathfn_built_in_1): Ditto.
6064         (expand_builtin_cexpi): Ditto.
6065         (expand_builtin_mempcpy_args): Ditto.
6066         (expand_builtin_stpcpy): Ditto.
6067         (gimplify_va_arg_expr): Ditto.
6068         (expand_builtin_sync_operation): Ditto.
6069         (build_builtin_expect_predicate): Ditto.
6070         (fold_builtin_memory_op): Ditto.
6071         (fold_builtin_strcpy): Ditto.
6072         (fold_builtin_stpcpy): Ditto.
6073         (fold_builtin_strncpy): Ditto.
6074         (fold_builtin_interclass_mathfn): Ditto.
6075         (fold_builtin_classify): Ditto.
6076         (fold_builtin_2): Ditto.
6077         (fold_builtin_strstr): Ditto.
6078         (fold_builtin_strrchr): Ditto.
6079         (fold_builtin_strpbrk): Ditto.
6080         (fold_builtin_strcat): Ditto.
6081         (fold_builtin_strncat): Ditto.
6082         (fold_builtin_strcspn): Ditto.
6083         (fold_builtin_fputs): Ditto.
6084         (fold_builtin_sprintf): Ditto.
6085         (fold_builtin_snprintf): Ditto.
6086         (expand_builtin_memory_chk): Ditto.
6087         (fold_builtin_memory_chk): Ditto.
6088         (fold_builtin_stxcpy_chk): Ditto.
6089         (fold_builtin_strncpy_chk): Ditto.
6090         (fold_builtin_strcat_chk): Ditto.
6091         (fold_builtin_strncat_chk): Ditto.
6092         (fold_builtin_sprintf_chk_1): Ditto.
6093         (fold_builtin_snprintf_chk_1): Ditto.
6094         (fold_builtin_printf): Ditto.
6095         (fold_builtin_fprintf): Ditto.
6096         (fold_call_stmt): Ditto.
6097         (set_builtin_user_assembler_name): Ditto.
6098         * tree-emutls.c (emutls_common_1): Ditto.
6099         * omp-low.c (scan_omp): Ditto.
6100         (lower_rec_input_clauses): Ditto.
6101         (lower_reduction_clauses): Ditto.
6102         (expand_parallel_call): Ditto.
6103         (expand_task_call): Ditto.
6104         (maybe_catch_exception): Ditto.
6105         (optimize_omp_library_calls): Ditto.
6106         (expand_omp_for_generic): Ditto.
6107         (expand_omp_for_static_nochunk): Ditto.
6108         (expand_omp_for_static_chunk): Ditto.
6109         (expand_omp_sections): Ditto.
6110         (expand_omp_atomic_fetch_op): Ditto.
6111         (expand_omp_atomic_pipeline): Ditto.
6112         (expand_omp_atomic_mutex): Ditto.
6113         (lower_omp_single_simple): Ditto.
6114         (lower_omp_single_copy): Ditto.
6115         (lower_omp_master): Ditto.
6116         (lower_omp_ordered): Ditto.
6117         (lower_omp_critical): Ditto.
6118         * tree-ssa-ccp.c (optimize_stdarg_builtin): Ditto.
6119         * builtins.c (DEF_BUILTIN_STUB): Ditto.
6120         (BUILT_IN_NONE): Ditto.
6121         * tree-ssa-math-opts.c (execute_optimize_bswap): Ditto.
6122         * gimple-low.c (lower_function_body): Ditto.
6123         (lower_builtin_setjmp): Ditto.
6124         * c-decl.c (merge_decls): Ditto.
6125         * tree-eh.c (lower_resx): Ditto.
6126         (lower_resx): Ditto.
6127         (lower_eh_dispatch): Ditto.
6128         * function (gimplify_parameters): Ditto.
6129         * c-typeck.c (build_function_call_vec): Ditto.
6130         * gimplify.c (build_stack_save_restore): Ditto.
6131         (gimplify_vla_decl): Ditto.
6132         (gimplify_modify_expr_to_memcpy): Ditto.
6133         (gimplify_modify_expr_to_memset): Ditto.
6134         (gimplify_variable_sized_compare): Ditto.
6135         (gimplify_function_tree): Ditto.
6136         * calls.c (emit_call_1): Ditto.
6137         * tree-ssa-forprop.c (simplify_builtin_call): Ditto.
6138         * tree-nested.c (convert_nl_goto_reference): Ditto.
6139         (convert_tramp_reference_op): Ditto.
6140         (finalize_nesting_tree_1): Ditto.
6141         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
6142         (tree_ssa_prefetch_arrays): Ditto.
6143         * tree-streamer-in.c (streamer_get_builtin_tree): Ditto.
6144         * system.h (built_in_decls): Ditto.
6145         (implicit_built_in_decls): Ditto.
6146         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
6147         * config/sparc/sparc.c (sparc_gimplify_va_arg): Ditto.
6148         * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
6149         (ix86_veclibabi_svml): Ditto.
6150         (ix86_veclibabi_acml): Ditto.
6151         * config/vms/vms.c (vms_patch_builtins): Ditto.
6152         * config/ia64/ia64.c (ia64_init_builtins): Ditto.
6153         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Ditto.
6154         (rs6000_builtin_vectorized_libmass): Ditto.
6155         (rs6000_init_builtins): Ditto.
6156         * config/darwin.c (darwin_override_options): Ditto.
6157         (darwin_patch_builtin): Ditto.
6158         (darwin_rename_builtins): Ditto.
6159         * config/pa/pa.c (pa_init_builtins): Ditto.
6160
6161 2011-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6162
6163         * tree.h (copy_ref_info): Expose existing function.
6164         * tree-ssa-loop-ivopts.c (copy_ref_info): Move function to...
6165         * tree-ssa-address.c (copy_ref_info): ...here, and remove static token.
6166
6167 2011-10-11  Georg-Johann Lay  <avr@gjlay.de>
6168
6169         * config/avr/avr-protos.h (avr_mode_code_base_reg_class): New
6170         prototype.
6171         (avr_regno_mode_code_ok_for_base_p): New prototype.
6172         * config/avr/avr.h (BASE_REG_CLASS): Remove.
6173         (REGNO_OK_FOR_BASE_P): Remove.
6174         (REG_OK_FOR_BASE_NOSTRICT_P): Remove.
6175         (REG_OK_FOR_BASE_STRICT_P): Remove.
6176         (MODE_CODE_BASE_REG_CLASS): New define.
6177         (REGNO_MODE_CODE_OK_FOR_BASE_P): New define.
6178         * config/avr/avr.c (avr_mode_code_base_reg_class): New function.
6179         (avr_regno_mode_code_ok_for_base_p): New function.
6180         (avr_reg_ok_for_addr_p): New static function.
6181         (avr_legitimate_address_p): Use it.  Beautify.
6182
6183 2011-10-11  Georg-Johann Lay  <avr@gjlay.de>
6184
6185         PR target/50447
6186         * config/avr/avr.md (cc): Add out_plus attribute alternative.
6187         (addsi3): Use it.  Adapt avr_out_plus to new prototype.  Use
6188         avr_out_plus for all CONST_INT addends.
6189         * config/avr/avr-protos.h (avr_out_plus): Change prototype.
6190         * config/avr/avr.c (notice_update_cc): Call avr_out_plus on
6191         CC_OUT_PLUS.
6192         (avr_out_plus_1): Change prototype and report effect on cc0.
6193         (avr_out_plus): Ditto.
6194         (adjust_insn_length): Adapt call to avr_out_plus to new prototype.
6195
6196 2011-10-11  H.J. Lu  <hongjiu.lu@intel.com>
6197
6198         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove
6199         the extra break.
6200
6201 2011-10-11  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
6202
6203         * doc/invoke.texi: Document new warning.
6204         * common.opt (Wvector-operation-performance): Define new warning.
6205         * tree-vect-generic.c (expand_vector_piecewise): Warn about expanded
6206         vector operation.
6207         (exapnd_vector_parallel): Warn about expanded vector operation.
6208         (lower_vec_shuffle): Warn about expanded vector operation.
6209         * c-typeck.c (c_build_vec_perm_expr): Store correct location
6210         when creating VEC_PERM_EXPR.
6211
6212 2011-10-11  Richard Guenther  <rguenther@suse.de>
6213
6214         PR tree-optimization/50204
6215         * tree-ssa-alias.c (get_continuation_for_phi_1): Split out
6216         two argument handling from ...
6217         (get_continuation_for_phi): ... here.  Handle arbitrary number
6218         of PHI args.
6219
6220 2011-10-11  Richard Sandiford  <richard.sandiford@linaro.org>
6221
6222         * modulo-sched.c: Fix comment typo.  Mention the possibility
6223         of using scheduling windows of II+1 cycles.
6224
6225 2011-10-11  Tristan Gingold  <gingold@adacore.com>
6226
6227         * doc/invoke.texi (C Dialect Options): Document
6228         -fallow-parameterless-variadic-functions.
6229         * c-parser.c (c_parser_parms_list_declarator): Handle it.
6230
6231 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
6232
6233         * config/avr/avr.c (avr_option_override): Set flag_omit_frame_pointer
6234         to 0 if frame pointer is needed for unwinding.
6235
6236 2011-10-10  Uros Bizjak  <ubizjak@gmail.com>
6237
6238         PR bootstrap/50665
6239         * optabs.h (DOI_vec_perm): Rename from OTI_vec_perm.  Move from enum
6240         optab_index to enum direct_optab_index.
6241         (vec_perm_optab): Update.
6242
6243 2011-10-10  Anatoly Sokolov  <aesok@post.ru>
6244
6245         * config/cris/cris.c (cris_preferred_reload_class): New function.
6246         (TARGET_PREFERRED_RELOAD_CLASS): Define.
6247         * config/cris/cris.h (PREFERRED_RELOAD_CLASS): Remove.
6248
6249 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
6250
6251         * config/avr/avr.md (*tablejump_rjmp): Change insn condition to
6252         !AVR_HAVE_JMP_CALL.
6253         (*tablejump_lib): Change insn condition to AVR_HAVE_JMP_CALL.
6254         (*tablejump_enh, *tablejump): Remove insns.
6255         * config/avr/libgcc.S (__tablejump__): Use RET instead of EIND +
6256         EIJMP for indirect jump.  Use LPM Z+ where available.
6257
6258 2011-10-10  Richard Henderson  <rth@redhat.com>
6259
6260         * doc/md.texi (vec_perm_const): Fix typo in cindex.
6261
6262 2011-10-10  Kirill Yukhin  <kirill.yukhin@intel.com>
6263             Yakovlev Vladimir  <vladimir.b.yakovlev@intel.com>
6264
6265         * config/i386/sse.md (fma_fnmsub_<mode>): Fix a typo.
6266
6267 2011-10-10  Richard Guenther  <rguenther@suse.de>
6268
6269         PR middle-end/50389
6270         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
6271         mark symbols for renaming.  Append the VUSE to all statements
6272         that possibly can have one.
6273
6274 2011-10-10  Richard Guenther  <rguenther@suse.de>
6275
6276         * ipa-split.c (pass_split_functions): Add verification TODOs.
6277         (pass_feedback_split_functions): Likewise.
6278
6279 2011-10-10  Richard Guenther  <rguenther@suse.de>
6280
6281         PR middle-end/50195
6282         * fold-const.c (fold_binary_loc): Canonicalize x*x to pow (x, 2)
6283         only when optimizing.
6284
6285 2011-10-10  Nick Clifton  <nickc@redhat.com>
6286
6287         PR middle-end/49801
6288         * compare-elim.c (find_comparisons_in_bb): Use df_get_live_in and
6289         df_get_live_out instead of accessing the bitmaps directly.
6290         (execute_compare_elim_after_reload): Remove calls to df_set_flags,
6291         df_live_add_problem and df_analyze.
6292
6293 2011-10-10  Michael Matz  <matz@suse.de>
6294
6295         PR middle-end/50638
6296         * tree-emutls.c (gen_emutls_addr): Call add_referenced_var.
6297
6298 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
6299
6300         * modulo-sched.c (ps_reg_move_info): Add num_consecutive_stages.
6301         (SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES): Delete.
6302         (node_sched_params): Remove first_reg_move and nreg_moves.
6303         (ps_num_consecutive_stages, extend_node_sched_params): New functions.
6304         (update_node_sched_params): Move up file.
6305         (print_node_sched_params): Print the stage.  Don't dump info related
6306         to first_reg_move and nreg_moves.
6307         (set_columns_for_row): New function.
6308         (set_columns_for_ps): Move up file and use set_columns_for_row.
6309         (schedule_reg_move): New function.
6310         (schedule_reg_moves): Call extend_node_sched_params and
6311         schedule_reg_move.  Extend size of uses bitmap.  Initialize
6312         num_consecutive_stages.  Return false if a move could not be
6313         scheduled.
6314         (apply_reg_moves): Don't emit moves here.
6315         (permute_partial_schedule): Handle register moves.
6316         (duplicate_insns_of_cycles): Remove for_prolog.  Emit moves according
6317         to the same stage-count test as ddg nodes.
6318         (generate_prolog_epilog): Update calls accordingly.
6319         (sms_schedule): Allow move-scheduling to add a new first stage.
6320
6321 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
6322
6323         * modulo-sched.c (ps_insn): Adjust comment.
6324         (ps_reg_move_info): New structure.
6325         (partial_schedule): Add reg_moves field.
6326         (SCHED_PARAMS): Use node_sched_param_vec instead of node_sched_params.
6327         (node_sched_params): Turn first_reg_move into an identifier.
6328         (ps_reg_move): New function.
6329         (ps_rtl_insn): Cope with register moves.
6330         (ps_first_note): Adjust comment and assert that the instruction
6331         isn't a register move.
6332         (node_sched_params): Replace with...
6333         (node_sched_param_vec): ...this vector.
6334         (set_node_sched_params): Adjust accordingly.
6335         (print_node_sched_params): Take a partial schedule instead of a ddg.
6336         Use ps_rtl_insn and ps_reg_move.
6337         (generate_reg_moves): Rename to...
6338         (schedule_reg_moves): ...this.  Remove rescan parameter.  Record each
6339         move in the partial schedule, but don't emit it here.  Don't perform
6340         register substitutions here either.
6341         (apply_reg_moves): New function.
6342         (duplicate_insns_of_cycles): Use register indices directly,
6343         rather than finding instructions using PREV_INSN.  Use ps_reg_move.
6344         (sms_schedule): Call schedule_reg_moves before committing to
6345         a partial schedule.   Try the next ii if the schedule fails.
6346         Use apply_reg_moves instead of generate_reg_moves.  Adjust
6347         call to print_node_sched_params.  Free node_sched_param_vec
6348         instead of node_sched_params.
6349         (create_partial_schedule): Initialize reg_moves.
6350         (free_partial_schedule): Free reg_moves.
6351
6352 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
6353
6354         * modulo-sched.c (ps_insn): Replace node field with an identifier.
6355         (SCHED_ASAP): Replace with..
6356         (NODE_ASAP): ...this macro.
6357         (SCHED_PARAMS): New macro.
6358         (SCHED_TIME, SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES, SCHED_ROW)
6359         (SCHED_STAGE, SCHED_COLUMN): Redefine using SCHED_PARAMS.
6360         (node_sched_params): Remove asap.
6361         (ps_rtl_insn, ps_first_note): New functions.
6362         (set_node_sched_params): Use XCNEWVEC.  Don't copy across the
6363         asap values.
6364         (print_node_sched_params): Use SCHED_PARAMS and NODE_ASAP.
6365         (generate_reg_moves): Pass ids to the SCHED_* macros.
6366         (update_node_sched_params): Take a ps insn identifier rather than
6367         a node as parameter.  Use ps_rtl_insn.
6368         (set_columns_for_ps): Update for above field and SCHED_* macro changes.
6369         (permute_partial_schedule): Use ps_rtl_insn and ps_first_note.
6370         (optimize_sc): Update for above field and SCHED_* macro changes.
6371         Update calls to try_scheduling_node_in_cycle and
6372         update_node_sched_params.
6373         (duplicate_insns_of_cycles): Adjust for above field and SCHED_*
6374         macro changes.  Use ps_rtl_insn and ps_first_note.
6375         (sms_schedule): Pass ids to the SCHED_* macros.
6376         (get_sched_window): Adjust for above field and SCHED_* macro changes.
6377         Use NODE_ASAP instead of SCHED_ASAP.
6378         (try_scheduling_node_in_cycle): Remove node parameter.  Update
6379         call to ps_add_node_check_conflicts.  Pass ids to the SCHED_* macros.
6380         (sms_schedule_by_order): Update call to try_scheduling_node_in_cycle.
6381         (ps_insert_empty_row): Adjust for above field changes.
6382         (compute_split_row): Use ids rather than nodes.
6383         (verify_partial_schedule): Adjust for above field changes.
6384         (print_partial_schedule): Use ps_rtl_insn.
6385         (create_ps_insn): Take an id rather than a node.
6386         (ps_insn_find_column): Adjust for above field changes.
6387         Use ps_rtl_insn.
6388         (ps_insn_advance_column): Adjust for above field changes.
6389         (add_node_to_ps): Remove node parameter.  Update call to
6390         create_ps_insn.
6391         (ps_has_conflicts): Use ps_rtl_insn.
6392         (ps_add_node_check_conflicts): Replace node parameter than an id.
6393
6394 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
6395
6396         * modulo-sched.c (undo_replace_buff_elem): Delete.
6397         (generate_reg_moves): Don't build and return an undo list.
6398         (free_undo_replace_buff): Delete.
6399         (sms_schedule): Adjust call to generate_reg_moves.
6400         Don't call free_undo_replace_buff.
6401
6402 2011-10-10  Matthias Klose <doko@ubuntu.com>
6403
6404         * common/config/m32c: Remove empty directory.
6405
6406 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
6407
6408         * config/avr/avr.md (*mulhi3_enh): Treat squaring smarter.
6409
6410 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
6411
6412         PR target/50652
6413         * config/avr/avr-mcus.def (AVR_MCU): Set .data_section_start of
6414         atmega164a to 0x100.
6415
6416 2011-10-09  Eric Botcazou  <ebotcazou@adacore.com>
6417
6418         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Do not make
6419         the replacement if the conversion to the LHS type is not useless.
6420
6421 2011-10-09  Ira Rosen  <ira.rosen@linaro.org>
6422
6423         PR tree-optimization/50635
6424         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add
6425         DEF_STMT to the list of statements to be replaced by the
6426         pattern statements.
6427         (vect_handle_widen_mult_by_const): Don't check TYPE_OUT.
6428
6429 2011-10-09  Anatoly Sokolov  <aesok@post.ru>
6430
6431         * system.h: Commit forgotten hunk in previous patch.
6432         (OUTPUT_ADDR_CONST_EXTRA): Poison.
6433
6434 2011-10-08  Nicola Pero  <nicola.pero@meta-innovation.com>
6435
6436         PR libobjc/50428
6437         * doc/objc.texi (Garbage Collection): Updated example to protect
6438         +initialize against execution in subclasses.
6439
6440 2011-10-07  Richard Henderson  <rth@redhat.com>
6441
6442         * doc/extend.texi (__builtin_shuffle): Improve the description to
6443         include the modulus of the selector.  Mention OpenCL.
6444         * doc/md.texi (vec_perm, vec_perm_const): Document named patterns.
6445
6446         * tree.def (VEC_PERM_EXPR): Rename from VEC_SHUFFLE_EXPR.
6447         * genopinit.c (optabs): Rename vshuffle to vec_perm.
6448         * c-typeck.c (c_build_vec_perm_expr): Rename from
6449         c_build_vec_shuffle_expr.  Update for name changes.
6450         * optabs.c (expand_vec_perm_expr_p): Rename from
6451         expand_vec_shuffle_expr_p.
6452         (expand_vec_perm_expr): Rename from expand_vec_shuffle_expr.
6453         * optabs.h (OTI_vec_perm): Rename from DOI_vshuffle.
6454         (vec_perm_optab): Rename from vshuffle_optab.
6455         * expr.c, gimple-pretty-print.c, gimple.c, gimplify.c,
6456         c-tree.h, c-parser.c, tree-cfg.c, tree-inline.c, tree-pretty-print.c,
6457         tree-ssa-operands.c, tree-vect-generic.c: Update for name changes.
6458
6459         * config/i386/i386.c (ix86_expand_vec_perm): Rename from
6460         ix86_expand_vshuffle.
6461         * config/i386/i386-protos.h: Update.
6462         * config/i386/sse.md (VEC_PERM_AVX2): Rename from VSHUFFLE_AVX2.
6463         (vec_perm<VEC_PERM_AVX2>): Rename from vshuffle<VSHUFFLE_AVX2>.
6464
6465 2011-10-07  Richard Henderson  <rth@redhat.com>
6466
6467         * config/i386/predicates.md (avx2_pblendw_operand): New.
6468         * config/i386/sse.md (sse4_1_pblendw): Un-macroize.
6469         (avx2_pblendw, *avx2_pblendw): New expander and insn.
6470
6471 2011-10-07  Richard Henderson  <rth@redhat.com>
6472
6473         * config/i386/i386.c (bdesc_args): Update code for
6474         __builtin_ia32_palignr256.  Change type of __builtin_ia32_pslldqi256,
6475         and __builtin_ia32_psrldqi256 to V4DI_FTYPE_V4DI_INT_CONVERT.
6476         (ix86_expand_args_builtin): Handle V4DI_FTYPE_V4DI_INT_CONVERT.
6477         * config/i386/sse.md (mode iterator V16): Add V2TI.
6478         (mode iterator SSESCALARMODE): Use V2TI not V4DI.
6479         (mode attr ssse3_avx2): Add V2TI.
6480         (avx2_lshrqv4di3, avx2_lshlqv4di3): Remove.
6481
6482 2011-10-07  David S. Miller  <davem@davemloft.net>
6483
6484         PR 50655
6485         * configure.ac: Add .register directives to VIS3 test.
6486         * configure: Regenerate.
6487
6488 2011-10-07  Richard Henderson  <rth@redhat.com>
6489
6490         * config.gcc (x86_64-*): Add core-avx-i, core-avx2 for with_cpu.
6491
6492 2011-10-07  Richard Henderson  <rth@redhat.com>
6493
6494         PR 49752
6495         * fold-const.c (fold_checksum_tree): Remove out-of-date assert.
6496
6497 2011-10-07  Andrew Stubbs  <ams@codesourcery.com>
6498
6499         * config/arm/predicates.md (shift_amount_operand): Remove constant
6500         range check.
6501         (shift_operator): Check range of constants for all shift operators.
6502
6503 2011-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6504
6505         * config/s390/s390.c (s390_emit_tls_call_insn): Remove assertion.
6506         Load GOT pointer for non-pic builds.
6507         (s390_load_got): Replace pic_offset_table_rtx with hardcoded r12.
6508         (s390_emit_call): Likewise.
6509
6510 2011-10-07  Tom de Vries  <tom@codesourcery.com>
6511
6512         PR middle-end/50527
6513         * tree.c (build_common_builtin_nodes): Add local_define_builtin for
6514         BUILT_IN_ALLOCA_WITH_ALIGN.  Mark that BUILT_IN_ALLOCA_WITH_ALIGN can
6515         throw.
6516         * builtins.c (expand_builtin_alloca): Handle BUILT_IN_ALLOCA_WITH_ALIGN
6517         arglist.  Set align for BUILT_IN_ALLOCA_WITH_ALIGN.
6518         (expand_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
6519         (is_inexpensive_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
6520         * tree-ssa-ccp.c (evaluate_stmt): Set align for
6521         BUILT_IN_ALLOCA_WITH_ALIGN.
6522         (fold_builtin_alloca_for_var): Rename to ...
6523         (fold_builtin_alloca_with_align): Set DECL_ALIGN from 2nd
6524         BUILT_IN_ALLOCA_WITH_ALIGN argument.
6525         (ccp_fold_stmt): Try folding BUILT_IN_ALLOCA_WITH_ALIGN using
6526         fold_builtin_alloca_with_align.
6527         (optimize_stack_restore): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
6528         * builtins.def (BUILT_IN_ALLOCA_WITH_ALIGN): Declare using
6529         DEF_BUILTIN_STUB.
6530         * ipa-pure-const.c (special_builtin_state): Handle
6531         BUILT_IN_ALLOCA_WITH_ALIGN.
6532         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1)
6533         (call_may_clobber_ref_p_1): Same.
6534         * function.c (gimplify_parameters): Lower vla to
6535         BUILT_IN_ALLOCA_WITH_ALIGN.
6536         * gimplify.c (gimplify_vla_decl): Same.
6537         * cfgexpand.c (expand_call_stmt): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
6538         * tree-mudflap.c (mf_xform_statements): Same.
6539         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
6540         (mark_all_reaching_defs_necessary_1, propagate_necessity): Same.
6541         * varasm.c (incorporeal_function_p): Same.
6542         * tree-object-size.c (alloc_object_size): Same.
6543         * gimple.c (gimple_build_call_from_tree): Same.
6544
6545 2011-10-07  Bernd Schmidt  <bernds@codesourcery.com>
6546
6547         * function.c (frame_required_for_rtx): Remove function.
6548         (requires_stack_frame_p): New arg set_up_by_prologue.  All callers
6549         changed.  Compute a set of mentioned registers and compare against
6550         the new arg rather than calling frame_required_for_rtx.
6551         (thread_prologue_and_epilogue_insns): Compute the set_up_by_prologue
6552         reg set.  Convert the unconverted_simple_returns mechanism to store
6553         jump insns rather than their basic blocks.  Also check the
6554         orig_entry_edge destination for new blocks.
6555
6556 2011-10-07  Jakub Jelinek  <jakub@redhat.com>
6557
6558         PR tree-optimization/50650
6559         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Don't
6560         call vect_is_simple_cond here, instead fail if cond_expr isn't
6561         COMPARISON_CLASS_P or if get_vectype_for_scalar_type returns NULL
6562         for cond_expr's first operand.
6563         * tree-vect-stmts.c (vect_is_simple_cond): Static again.
6564         * tree-vectorizer.h (vect_is_simple_cond): Remove prototype.
6565
6566 2011-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6567
6568         * config/s390/s390.md (DWH, dwh): New mode macros.
6569         ("umulsidi3"): Extend to support "umulditi3" as well.
6570
6571 2011-10-07  Uros Bizjak  <ubizjak@gmail.com>
6572             H.J. Lu  <hongjiu.lu@intel.com>
6573
6574         PR target/50603
6575         * config/i386/i386.c (ix86_fixup_binary_operands): Force src2 of
6576         integer PLUS RTX to a register to improve address combine.
6577
6578 2011-10-06  Richard Henderson  <rth@redhat.com>
6579
6580         * combine-stack-adjust.c (maybe_move_args_size_note): Add after
6581         parameter; use it to decide whether to merge two notes.
6582         (combine_stack_adjustments_for_block): Use maybe_move_args_size_note
6583         for the deallocation case as well.
6584
6585 2011-10-06  Anatoly Sokolov  <aesok@post.ru>
6586
6587         * system.h (OUTPUT_ADDR_CONST_EXTRA): Poison.
6588         * doc/tm.texi.in (OUTPUT_ADDR_CONST_EXTRA): Remove documentation.
6589         * doc/tm.texi: Regenerate.
6590         * target.def (output_addr_const_extra): Use
6591         hook_bool_FILEptr_rtx_false.
6592         * targhooks.c (default_asm_output_addr_const_extra): Remove.
6593         * targhooks.h (default_asm_output_addr_const_extra): Remove.
6594         * hooks.c (hook_bool_FILEptr_rtx_false): New functions.
6595         * hooks.h (hook_bool_FILEptr_rtx_false): Declare.
6596
6597 2011-10-06  David S. Miller  <davem@davemloft.net>
6598
6599         * config/sparc/sparc.md (popcount<mode>2, clz<mode>2): Split up into...
6600         (popcountdi2, popcountsi2, clzdi2, clzsi2): Explicit expanders, in the
6601         SI mode 64-bit code gen case explicitly zero-extend and truncate.
6602         (*popcount<mode>_sp64): Split up into...
6603         (*popcountdi_sp64, *popcountsi_64): Explicit instantiations, and in the
6604         SImode case use truncate.
6605         (*clzsi_sp64): Rewrite to use truncate, and let the expander emit the
6606         subtract so the compiler can optimize it.
6607         (SIDI): Remove unused mode iterator.
6608
6609 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
6610
6611         * function.c (thread_prologue_and_epilogue_insns): Emit split prologue
6612         on the orig_entry_edge. Don't account for it in prologue_clobbered.
6613
6614 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
6615
6616         PR tree-optimization/50596
6617         * tree-vectorizer.h (vect_is_simple_cond): New prototype.
6618         (NUM_PATTERNS): Change to 6.
6619         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): New
6620         function.
6621         (vect_vect_recog_func_ptrs): Add vect_recog_mixed_size_cond_pattern.
6622         (vect_mark_pattern_stmts): Don't create stmt_vinfo for def_stmt
6623         if it already has one, and don't set STMT_VINFO_VECTYPE in it
6624         if it is already set.
6625         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Handle
6626         COND_EXPR in pattern stmts.
6627         (vect_is_simple_cond): No longer static.
6628
6629 2001-10-06  Richard Henderson  <rth@redhat.com>
6630
6631         * config/i386/i386.c (ix86_expand_vshuffle): Add AVX2 support.
6632         * config/i386/sse.md (sseshuffint): Remove.
6633         (sseintvecmode): Support V16HI, V8HI, V32QI, V16QI.
6634         (VSHUFFLE_AVX2): New mode iterator.
6635         (vshuffle<mode>): Use it.
6636         (avx_vec_concat<V_256>): Rename from *vec_concat<V_256>_avx.
6637
6638         * config/i386/i386.c (ix86_expand_sse_movcc): Use correct mode
6639         for vector_all_ones_operand.
6640         (ix86_expand_int_vcond): Distinguish between comparison mode
6641         and data mode.  Allow them to differ.
6642         (ix86_expand_vshuffle): Don't force data mode to match maskmode.
6643
6644 2001-10-06  Richard Henderson  <rth@redhat.com>
6645
6646         * optabs.c (expand_vec_shuffle_expr): Use the proper mode for the
6647         mask operand.  Tidy the code.
6648
6649 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
6650
6651         * tree-vect-patterns.c (vect_pattern_recog_1): Use
6652         vect_recog_func_ptr typedef for the first argument.
6653         (vect_pattern_recog): Rename vect_recog_func_ptr variable
6654         to vect_recog_func, use vect_recog_func_ptr typedef for it.
6655
6656         PR tree-optimization/49279
6657         * tree-ssa-structalias.c (find_func_aliases): Don't handle
6658         CAST_RESTRICT.
6659         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Allow
6660         restrict propagation.
6661         * tree-ssa.c (useless_type_conversion_p): Don't return false
6662         if TYPE_RESTRICT differs.
6663
6664 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
6665
6666         * function.c (thread_prologue_and_epilogue_insns): Build a vector
6667         of unconverted simple return blocks rather than trying to
6668         recompute them later based on bb_flags bitmap tests.
6669
6670 2011-10-06  Michael Matz  <matz@suse.de>
6671
6672         * tree-flow.h (get_var_ann): Don't declare.
6673         * tree-flow-inline.h (get_var_ann): Remove.
6674         (set_is_used): Use var_ann, not get_var_ann.
6675         * tree-dfa.c (add_referenced_var): Inline body of get_var_ann.
6676         * tree-profile.c (gimple_gen_edge_profiler): Call
6677         find_referenced_var_in.
6678         (gimple_gen_interval_profiler): Ditto.
6679         (gimple_gen_pow2_profiler): Ditto.
6680         (gimple_gen_one_value_profiler): Ditto.
6681         (gimple_gen_average_profiler): Ditto.
6682         (gimple_gen_ior_profiler): Ditto.
6683         (gimple_gen_ic_profiler): Ditto plus call add_referenced_var.
6684         (gimple_gen_ic_func_profiler): Call add_referenced_var.
6685         * tree-mudflap.c (execute_mudflap_function_ops): Call
6686         add_referenced_var.
6687
6688 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
6689
6690         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): For lhs
6691         don't set SSA_NAME_DEF_STMT that has been already set by
6692         gimple_build_assign_with_ops.
6693         (vect_recog_pow_pattern, vect_recog_widen_sum_pattern,
6694         vect_operation_fits_smaller_type, vect_recog_over_widening_pattern):
6695         Likewise.
6696
6697         * tree.h (avoid_folding_inline_builtin): New prototype.
6698         * builtins.c (avoid_folding_inline_builtin): No longer static.
6699         * gimple-fold.c (gimple_fold_builtin): Give up if
6700         avoid_folding_inline_builtin returns true.
6701
6702 2011-10-06  Richard Guenther  <rguenther@suse.de>
6703
6704         * tree-vect-generic.c (vector_element): Look at previous
6705         generated results.
6706
6707 2011-10-06  David Edelsohn  <dje.gcc@gmail.com>
6708
6709         PR target/39950
6710         * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Define
6711         __powerpc__, __PPC__, __unix__.
6712
6713 2011-10-06  Michael Matz  <matz@suse.de>
6714
6715         * i386/i386.opt (recip_mask, recip_mask_explicit,
6716         x_recip_mask_explicit): New variables and cl_target member.
6717         (mrecip=): New option.
6718         * i386/i386.h (RECIP_MASK_DIV, RECIP_MASK_SQRT, RECIP_MASK_VEC_DIV,
6719         RECIP_MASK_VEC_SQRT, RECIP_MASK_ALL, RECIP_MASK_NONE): New bitmasks.
6720         (TARGET_RECIP_DIV, TARGET_RECIP_SQRT, TARGET_RECIP_VEC_DIV,
6721         TARGET_RECIP_VEC_SQRT): New tests.
6722         * i386/i386.md (divsf3): Check TARGET_RECIP_DIV.
6723         (sqrt<mode>2): Check TARGET_RECIP_SQRT.
6724         * i386/sse.md (div<mode>3): Check TARGET_RECIP_VEC_DIV.
6725         (sqrt<mode>2): Check TARGET_RECIP_VEC_SQRT.
6726         * i386/i386.c (ix86_option_override_internal): Set recip_mask
6727         for -mrecip and -mrecip=options.
6728         (ix86_function_specific_save): Save recip_mask_explicit.
6729         (ix86_function_specific_restore): Restore recip_mask_explicit.
6730
6731         * doc/invoke.texi (ix86 Options): Document the new option.
6732
6733 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
6734
6735         PR target/49049
6736         * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
6737
6738 2011-10-06  Ulrich Weigand  <ulrich.weigand@linaro.org>
6739
6740         PR target/50305
6741         * config/arm/arm.c (arm_legitimize_reload_address): Recognize
6742         output of a previous pass through legitimize_reload_address.
6743         Do not attempt to optimize addresses if the base register is
6744         equivalent to a constant.
6745
6746 2011-10-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6747
6748         * function.c (thread_prologue_and_epilogue_insns): Mark
6749         last_bb_active as possibly unused.  It is unused for targets which
6750         do neither have "return" nor "simple_return" expanders.
6751
6752 2011-10-06  Richard Guenther  <rguenther@suse.de>
6753
6754         * fold-const.c (fold_ternary_loc): Also fold non-constant
6755         vector CONSTRUCTORs.  Make more efficient.
6756         * tree-ssa-dom.c (cprop_operand): Don't handle virtual operands.
6757         (cprop_into_stmt): Don't propagate into virtual operands.
6758         (optimize_stmt): Really dump original statement.
6759
6760 2011-10-06  Nick Clifton  <nickc@redhat.com>
6761
6762         * config/rx/rx.md (smin3): Revert previous delta.
6763
6764 2011-10-06  Richard Guenther  <rguenther@suse.de>
6765
6766         PR tree-optimization/38884
6767         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial
6768         reads from aggregate SSA names.
6769
6770 2011-10-05  Jakub Jelinek  <jakub@redhat.com>
6771
6772         * tree-vect-patterns.c (vect_pattern_recog_1): Add stmts_to_replace
6773         argument, truncate it at the beginning instead of allocating there
6774         and freeing at the end.
6775         (vect_pattern_recog): Allocate stmts_to_replace here and free at end,
6776         pass its address to vect_pattern_recog_1.
6777
6778 2011-10-05  David S. Miller  <davem@davemloft.net>
6779
6780         * config/sparc/sparc.opt (POPC): New option.
6781         * doc/invoke.texi: Document it.
6782         * config/sparc/sparc.c (sparc_option_override): Enable MASK_POPC by
6783         default on Niagara-2 and later.
6784         * config/sparc/sparc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
6785         * config/sparc/sparc.md (SIDI): New mode iterator.
6786         (ffsdi2): Delete commented out pattern and comments.
6787         (popcount<mode>2, clz<mode>2): New expanders.
6788         (*popcount<mode>_sp64, popcountsi_v8plus, popcountdi_v8plus,
6789         *clzdi_sp64, clzdi_v8plus, *clzsi_sp64, clzsi_v8plus): New insns.
6790
6791 2011-10-06  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
6792
6793         PR middle-end/50607
6794         * c-tree.h (c_expr_t): New typedef for struct c_expr.
6795         (C_EXPR_APPEND): New macro.
6796         * c-parser.c (c_parser_get_builtin_args): Preserve
6797         original_tree_code of c_expr structure.
6798         (c_parser_postfix_expression): Adjust to the new function.
6799
6800 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
6801
6802         * function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap
6803         if profiling after the prologue.
6804
6805 2011-10-05  Jakub Jelinek  <jakub@redhat.com>
6806
6807         PR tree-optimization/50613
6808         * tree-ssa-strlen.c (find_equal_ptrs): If CASE_CONVERT
6809         operand is ADDR_EXPR, fallthru into ADDR_EXPR handling,
6810         and if it is neither that not SSA_NAME, give up.
6811
6812 2011-10-05  Richard Henderson  <rth@redhat.com>
6813
6814         * tree-vect-generic.c (vector_element): Never fail.  Use
6815         build_zero_cst.  Tidy up type references.
6816         (lower_vec_shuffle): Never fail.  Mask shuffle indicies.  Reduce
6817         code duplication.  Do update_stmt here ...
6818         (expand_vector_operations_1): ... not here.
6819
6820         * config/i386/i386.c (ix86_expand_vshuffle): Never fail.  Handle
6821         TARGET_XOP.  Fix pshufb constant vector creation.  Reduce code
6822         duplication.  Handle V2DI without SSE4.1.
6823         * config/i386/i386-protos.h (ix86_expand_vshuffle): Update decl.
6824         * config/i386/i386.md (vshuffle<V_128>): Remove assert for ok.
6825
6826 2011-10-05  Uros Bizjak  <ubizjak@gmail.com>
6827
6828         * config/i386/i386.c (distance_non_agu_define): Simplify calculation
6829         of "found".  Simplify return value calculation.
6830         (distance_agu_use): Ditto.
6831
6832 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
6833
6834         PR bootstrap/50621
6835         * config/i386/i386.c (ix86_add_cfa_restore_note): Omit notes only
6836         if the function was not shrink-wrapped.
6837         (ix86_expand_epilogue): Ensure queued cfa_adjust notes are attached
6838         to an insn.
6839         * function.c (thread_prologue_and_epilogue_insns): Make sure the
6840         shrink_wrapped flag is set even if there is no dump file.
6841
6842 2011-10-05  DJ Delorie  <dj@redhat.com>
6843             Nick Clifton  <nickc@redhat.com>
6844
6845         * config/rx/rx.opt (mpid): Define.
6846         * config/rx/t-rx (MULTILIB_OPTIONS): Add -mpid
6847         (MULTILIB_DIRNAMES): Add pid.
6848         * config/rx/rx.c (rx_gp_base_regnum_val, rx_pid_base_regnum_val)
6849         (rx_num_interrupt_regs): New variable.
6850         (rx_gp_base_regnum): New function.  Returns the number of the
6851         small data area register.
6852         (rx_pid_base_regnum): New function.  Returns the number of the pid
6853         base register.
6854         (rx_decl_for_addr): New function.  Returns the symbolic part of a MEM.
6855         (rx_pid_data_operand): New function.  Returns whether an object is
6856         in the position independent data area.
6857         (rx_legitimize_address): New function.  Puts undecided PID
6858         objects in the PID data area.
6859         (rx_is_legitimate_address): Add support for PID operands.
6860         (rx_print_operand_address): Likewise.
6861         (rx_print_operand): Likewise.
6862         (rx_maybe_pidify_operand): New function.  Determine if an operand
6863         is suitable for PID addressing.
6864         (rx_gen_move_template): Add PID support.
6865         (rx_conditional_register_usage): Likewise.
6866         (rx_option_override): Initialise rx_num_interrupt_regs.
6867         (rx_is_legitimate_constant): Add support for PID constants.
6868         (TARGET_LEGITIMIZE_ADDRESS): Define.
6869         * config/rx/constraints.md (Rpid): Define.
6870         (Rpda): Define.
6871         * config/rx/rx.md (UNSPEC_PID_ADDR): Define.
6872         (tablejump): Add PID support.
6873         (mov<>): Likewise.
6874         (mov<>_internal): Likewise.
6875         (addsi3): Convert to an expander.  Add PID support.
6876         (pid_addr): New pattern.
6877         * config/rx/rx.h (CPP_SPEC): Define.
6878         (ASM_SPEC): Pass -mpid and -mint-register on to assembler.
6879         (CASE_VECTOR_PC_RELATIVE): Define.
6880         (JUMP_TABLES_IN_TEXT_SECTION): Enable for PID mode.
6881         * config/rx/rx-protos.h (rx_maybe_pidify_operand): Prototype.
6882         * doc/invoke.texi (RX Options): Document -mpid command line option.
6883
6884 2011-10-05  Richard Guenther  <rguenther@suse.de>
6885
6886         PR tree-optimization/38885
6887         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial reads
6888         from constants.
6889
6890 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
6891
6892         * doc/invoke.texi (-fshrink-wrap): Document.
6893         * opts.c (default_options_table): Add it.
6894         * common.opt (fshrink-wrap): Add.
6895         * function.c (emit_return_into_block): Remove useless declaration.
6896         (record_hard_reg_uses_1, record_hard_reg_uses, frame_required_for_rtx,
6897         requires_stack_frame_p, gen_return_pattern): New static functions.
6898         (emit_return_into_block): New arg simple_p.  All callers changed.
6899         Use gen_return_pattern.
6900         (thread_prologue_and_epilogue_insns): Implement shrink-wrapping.
6901         * config/i386/i386.md (return): Expand into a simple_return.
6902         (simple_return): New expander):
6903         (simple_return_internal, simple_return_internal_long,
6904         simple_return_pop_internal_long, simple_return_indirect_internal):
6905         Renamed from return_internal, return_internal_long,
6906         return_pop_internal_long and return_indirect_internal; changed to use
6907         simple_return.
6908         * config/i386/i386.c (ix86_expand_epilogue): Adjust to expand
6909         simple returns.
6910         (ix86_pad_returns): Likewise.
6911         * function.h (struct rtl_data): Add member shrink_wrapped.
6912         * cfgcleanup.c (outgoing_edges_match): If shrink-wrapped, edges that
6913         are not jumps or sibcalls can't be compared.
6914
6915 2011-10-05  Richard Guenther  <rguenther@suse.de>
6916
6917         * tree-ssa-sccvn.c (vn_get_expr_for): Handle CONSTRUCTOR of
6918         vector type.
6919         (simplify_unary_expression): Handle BIT_FIELD_REFs.
6920         (try_to_simplify): Handle BIT_FIELD_REFs.
6921
6922 2011-10-05  Georg-Johann Lay  <avr@gjlay.de>
6923
6924         * config/avr/avr-protos.h (avr_out_addto_sp): New prototype.
6925         * config/avr/avr.c (avr_out_addto_sp): New function.
6926         (adjust_insn_length): Handle ADJUST_LEN_ADDTO_SP.
6927         * config/avr/avr.md (adjust_len): Add "addto_sp".
6928         (*movhi_sp): Remove insn.
6929         (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): Merge to *addhi3_sp_R.
6930
6931 2011-10-05  Richard Guenther  <rguenther@suse.de>
6932
6933         * gimple-fold.c (gimple_fold_stmt_to_constant_1): For ternary ops
6934         with an embedded expression valueize and fold that as well.
6935         * tree-ssa-sccvn.c (try_to_simplify): Also allow SSA name
6936         results from gimple_fold_stmt_to_constant_1.
6937
6938 2011-10-05  Nick Clifton  <nickc@redhat.com>
6939
6940         * config/rx/rx.md (tablejump): Add missing label.
6941         (adddi3_internal): Mark operand 0 as early-clobbered.
6942         (smaxsi3): Revert previous delta.
6943         (adc_internal): Fix whitespace in generated asm.
6944         (adc_flags): Likewise.
6945
6946 2011-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6947
6948         * expmed.c (expand_mult_highpart_optab): Replace optab_handler
6949         with the new widening_optab_handler.
6950
6951 2011-10-05  Richard Guenther  <rguenther@suse.de>
6952
6953         PR tree-optimization/50609
6954         * gimple-fold.c (fold_array_ctor_reference): Also handle
6955         vector typed constructors.
6956         (fold_ctor_reference): Dispatch to fold_array_ctor_reference
6957         for vector typed constructors.
6958
6959 2011-10-05  Uros Bizjak  <ubizjak@gmail.com>
6960
6961         * config/i386/i386.c (ix86_emit_binop): New static function.
6962         (ix86_split_lea_for_addr): Use ix86_emit_binop to emit add and shl
6963         instructions.
6964         (x86_output_mi_thunk): Use ix86_emit_binop to emit add instructions.
6965
6966 2011-10-04  David S. Miller  <davem@davemloft.net>
6967
6968         * config/sparc/sparc.md (UNSPEC_FHADD, UNSPEC_FHSUB,
6969         UNSPEC_XMUL): New unspecs.
6970         (muldi3_v8plus): Use output_v8plus_mult.
6971         (*naddsf3, *nadddf3, *nmulsf3, *nmuldf3, *nmuldf3_extend):
6972         New VIS 3.0 combiner patterns.
6973         (fhaddsf_vis, fhadddf_vis, fhsubsf_vis, fhsubdf_vis,
6974         fnhaddsf_vis, fnhaddf_vis, umulxhi_vis, *umulxhi_sp64,
6975         umulxhi_v8plus, xmulx_vis, *xmulx_sp64, xmulx_v8plus,
6976         xmulxhi_vis, *xmulxhi_sp64, xmulxhi_v8plus): New VIS 3.0
6977         builtins patterns.
6978         * config/sparc/sparc.c (sparc_vis_init_builtins): Emit new builtins.
6979         (output_v8plus_mult): New function.
6980         * config/sparc/sparc-protos.h: Declare it.
6981         * config/sparc/visintrin.h (__vis_fhadds, __vis_fhaddd,
6982         __vis_fhsubs, __vis_fhsubd, __vis_fnhadds, __vis_fnhaddd,
6983         __vis_umulxhi, __vis_xmulx, __vis_xmulxhi): New intrinsics.
6984         * doc/extend.texi: Document new builtins.
6985
6986 2011-10-04  Richard Henderson  <rth@redhat.com>
6987
6988         * c-typeck.c (c_build_vec_shuffle_expr): Fix uninitialized variable.
6989         Avoid save_expr unless two_arguments.
6990
6991 2011-10-04  Ozkan Sezer  <sezeroz@gmail.com>
6992
6993         * config/i386/mingw-w64.h (CPP_SPEC): Rename _REENTRANCE to _REENTRANT.
6994         * config/i386/mingw32.h (CPP_SPEC): Likewise.
6995
6996 2011-10-04  David S. Miller  <davem@davemloft.net>
6997
6998         * config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc
6999         under Linux.
7000
7001 2011-10-04  Jakub Jelinek  <jakub@redhat.com>
7002
7003         PR tree-optimization/50604
7004         * builtins.c (fold_builtin_strcpy, fold_builtin_stpcpy,
7005         fold_builtin_strncpy, fold_builtin_stxcpy_chk): Ensure
7006         last argument to memcpy has size_type_node type instead of ssizetype.
7007         * tree-ssa-strlen.c (handle_builtin_memcpy): Use size_type_node
7008         instead of TREE_TYPE (len) as type for newlen.
7009
7010         PR tree-optimization/50522
7011         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Don't test
7012         TYPE_RESTRICT.
7013         (ptr_derefs_may_alias_p): Call pt_solutions_same_restrict_base
7014         unconditionally.
7015
7016         * fold-const.c (fold_unary_loc): Don't optimize
7017         POINTER_PLUS_EXPR casted to TYPE_RESTRICT pointer by
7018         casting the inner pointer if it isn't TYPE_RESTRICT.
7019         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't through
7020         casts from non-TYPE_RESTRICT pointer to TYPE_RESTRICT pointer.
7021
7022 2011-10-04  Joseph Myers  <joseph@codesourcery.com>
7023
7024         * config.gcc (i[34567]86-*-elf*, x86_64-*-elf*): Use i386/t-crtstuff.
7025
7026 2011-10-04  Jan Hubicka  <jh@suse.cz>
7027
7028         * lto-streamer.h (lto_input_toplevel_asms): Add order_base parameter.
7029         * lto-streamer-in.c (lto_input_toplevel_asms): Stream in order.
7030         * lto-streamer-out.c (lto_output_toplevel_asms): Stream out order.
7031         * lto-cgraph.c (order_base): New static var.
7032         (lto_output_node): Stream in order.
7033         (lto_output_varpool_node): Stream out order.
7034         (input_node): Stream in order.
7035         (input_varpool_node): Stream out order.
7036         (input_cgraph_1): Initialize order base; update call of
7037         lto_input_toplevel_asms.
7038
7039 2011-10-04  Georg-Johann Lay  <avr@gjlay.de>
7040
7041         PR target/50566
7042         * config/avr/avr-protos.h (avr_legitimize_reload_address): New
7043         prototype.
7044         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Copy worker code
7045         from here...
7046         * config/avr/avr.c (avr_legitimize_reload_address) ...to this new
7047         function.  Log if avr_log.legitimize_reload_address.
7048
7049 2011-10-04  Eric Botcazou  <ebotcazou@adacore.com>
7050
7051         * config/sparc/sparc.c (sparc_fold_builtin): Use a sequence of tests.
7052
7053 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7054
7055         * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
7056         variables.  Fix second operand of DR.  Swap inputs for sdiv_qrnnd.
7057
7058 2011-10-03  David S. Miller  <davem@davemloft.net>
7059
7060         * config/sparc/sparc.md (fpack16_vis, fpackfix_vis, fpack32_vis): Make
7061         GSR_REG an input operand to UNSPEC instead of a parallel USE.
7062         (faligndata<V64I:mode>_vis): Likewise and use DI mode.
7063         (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis, alignaddrldi_vis):
7064         Reference GSR_REG in DI mode, simplify convoluted expressions by using
7065         zero_extract.
7066         (bshuffle<V64I:mode>_vis): Reference GSR_REG in DI mode.
7067
7068 2011-10-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
7069
7070         * tree-eh.c (remove_unreachable_handlers): Obvious cleanup.
7071
7072 2011-10-03  Jakub Jelinek  <jakub@redhat.com>
7073             Ian Lance Taylor  <iant@google.com>
7074
7075         * godump.c (go_output_typedef): Support printing enum values that
7076         don't fit in a signed HOST_WIDE_INT.
7077
7078 2011-10-03  Anatoly Sokolov  <aesok@post.ru>
7079
7080         * config/cris/cris.c (cris_output_addr_const_extra): Make static.
7081         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
7082         * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
7083         * config/cris/cris-protos.h (cris_output_addr_const_extra): Remove.
7084
7085 2011-10-03  Anatoly Sokolov  <aesok@post.ru>
7086
7087         * config/m68k/m68k.c (m68k_output_addr_const_extra): Make static.
7088         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
7089         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
7090         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Remove.
7091
7092 2011-10-03  Steve Ellcey  <sje@cup.hp.com>
7093
7094         PR target/49967
7095         * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
7096         (gcc_cv_ld_static_option): Ditto.
7097         (gcc_cv_ld_dynamic_option): Ditto.
7098         * configure: Regenerate.
7099
7100 2011-10-03  David S. Miller  <davem@davemloft.net>
7101
7102         * config/sparc/sparc.md (bmask<P:mode>_vis): Split into explicit 'di'
7103         and 'si' patterns which describe the GSR changes explicitly in the
7104         RTL using zero_extract.
7105         (bshuffle<V64I:mode>_vis): Put the GSR use inside of the unspec.
7106
7107         * config/sparc/sparc.md (bshuffle<V64I:mode>_vis): Don't wrap
7108         GSR_REG in a USE, since it's now a true arg to the UNSPEC.
7109
7110 2011-10-03  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
7111
7112         * optabs.c (expand_vec_shuffle_expr_p): New function. Checks
7113         if given expression can be expanded by the target.
7114         (expand_vec_shuffle_expr): New function. Expand VEC_SHUFFLE_EXPR
7115         using target vector instructions.
7116         * optabs.h: New optab vshuffle.
7117         (expand_vec_shuffle_expr_p): New prototype.
7118         (expand_vec_shuffle_expr): New prototype.
7119         (vshuffle_optab): New optab.
7120         * genopinit.c: Adjust to support vecshuffle.
7121         * c-tree.h (c_build_vec_shuffle_expr): New prototype.
7122         * expr.c (expand_expr_real_2): Adjust.
7123         * c-typeck.c: (c_build_vec_shuffle_expr): Build a VEC_SHUFFLE_EXPR
7124         recognizing the cases of two and three arguments.
7125         (convert_arguments) (build_binary_op)
7126         (scalar_to_vector) (build_array_ref): Spurious whitespace.
7127         * gimplify.c (gimplify_exp): Adjusted to support VEC_SHUFFLE_EXPR.
7128         * tree.def: New tree code VEC_SHUFFLE_EXPR.
7129         * tree-inline.c (estimate_operator_cost): Recognize VEC_SHUFFLE_EXPR.
7130         * tree-vect-generic.c (vector_element): New function. Returns an
7131         element of the vector at the given position.
7132         (lower_vec_shuffle): Checks if VEC_SHUFLLE_EXPR is supported
7133         by the backend or expand an expression piecewise.
7134         (expand_vector_operations_1): Adjusted.
7135         (gate_expand_vector_operations_noop): New gate function.
7136         * Makefile.in (tree-vect-generic.o): New include.
7137         * gimple.c (get_gimple_rhs_num_ops): Adjust.
7138         * tree-cfg.c (verify_gimple_assign_trenary): Verify VEC_SHUFFLE_EXPR.
7139         * passes.c: Move veclower down.
7140         * tree-pretty-print.c (dump_generic_node): Recognize
7141         VEC_SHUFFLE_EXPR as valid expression.
7142         * c-parser.c (c_parser_get_builtin_args): Helper function for the
7143         builtins with variable number of arguments.
7144         (c_parser_postfix_expression): Use a new helper function for
7145         RID_CHOOSE_EXPR, RID_BUILTIN_COMPLEX and RID_BUILTIN_SHUFFLE.
7146         * tree-ssa-operands: Adjust.
7147         * c-family/c-common.c: New __builtin_shuffle keyword.
7148         * c-family/c-common.h: New __builtin_shuffle keyword.
7149         * gcc/doc/extend.texi: Adjust.
7150
7151         * gcc/config/i386/sse.md: (sseshuffint) New mode_attr.  Correspondence
7152         between the vector and the type of the mask when shuffling.
7153         (vecshuffle<mode>): New expansion.
7154         * gcc/config/i386/i386-protos.h (ix86_expand_vshuffle): New prototype.
7155         * gcc/config/i386/i386.c (ix86_expand_vshuffle): New function.
7156         (ix86_vectorize_builtin_vec_perm_ok): Adjust.
7157
7158 2011-10-03  Jakub Jelinek  <jakub@redhat.com>
7159
7160         PR tree-optimization/50587
7161         * tree-ssa-reassoc.c (init_range_entry): Stop iterating when
7162         arg0 is not a SSA_NAME.
7163
7164 2011-10-03  Richard Sandiford  <rdsandiford@googlemail.com>
7165
7166         * ipa-inline-analysis.c (MAX_TIME): Update comment.
7167
7168 2011-10-02  Richard Henderson  <rth@redhat.com>
7169             David S. Miller  <davem@davemloft.net>
7170
7171         * config/sparc/sparc.md (ashlsi3, *ashldi3_sp64): Remove
7172         conditional insn type setting, we always emit a shift.
7173         (*ashlsi3_extend, *lshrsi3_extend0): New patterns.
7174         (*lshrsi3_extend): Rename to *lshrsi3_extend1.
7175         * config/sparc/predicates.md (const_one_operand): Delete.
7176
7177 2011-10-02  Gerald Pfeifer  <gerald@pfeifer.com>
7178
7179         * invoke.texi (SPARC Options): Refer to GNU/Linux.
7180
7181 2011-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
7182
7183         * config/mips/mips.c (mips_frame_barrier): New function.
7184         (mips_expand_prologue): Call it after allocating stack space.
7185         (mips_deallocate_stack): New function.
7186         (mips_expand_epilogue): Call mips_frame_barrier and
7187         mips_deallocate_stack.
7188
7189 2011-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
7190
7191         PR target/49696
7192         * config/mips/sync.md (sync_<optab>_12): Allow zero operands.
7193         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
7194         (sync_old_nand_12, sync_new_nand_12, test_and_set_12): Likewise.
7195
7196 2011-10-02  Jan Hubicka  <jh@suse.cz>
7197
7198         * cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
7199
7200         * cgraphunit.c (ipa_passes): Remove unrechable nodes.
7201         * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
7202         * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
7203         functions are reachable when address is taken.
7204         * tree-sra.c (modify_function): Free dominance info.
7205
7206 2011-10-02  Jan Hubicka  <jh@suse.cz>
7207
7208         * ipa-inline-analysis.c (inline_summary_alloc): Bounds check.
7209
7210         * ipa-inline-analysis.c (reset_inline_edge_summary): New function.
7211         (reset_inline_summary): New function.
7212         (compute_inline_parameters, inline_node_removal_hook,
7213         inline_edge_removal_hook): Use it.
7214         (inline_free_summary): Reset holders correctly.
7215         (inline_generate_summary): Free summary before computing it.
7216
7217 2011-10-02  Paolo Carlini  <paolo.carlini@oracle.com>
7218
7219         PR preprocessor/36819
7220         * incpath.c (merge_include_chains): Call free_path on
7221         heads[QUOTE] and tails[QUOTE].
7222
7223 2011-10-02  Jan Hubicka  <jh@suse.cz>
7224
7225         PR lto/47247
7226         * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
7227         when resolution is already availbale from plugin.
7228         (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
7229         * cgraph.c (ld_plugin_symbol_resolution): Add
7230         prevailing_def_ironly_exp.
7231         * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
7232         * ipa.c (varpool_externally_visible_p): IRONLY variables are never
7233         externally visible.
7234         * varasm.c (resolution_to_local_definition_p): Add
7235         LDPR_PREVAILING_DEF_IRONLY_EXP.
7236         (resolution_local_p): Likewise.
7237
7238 2011-10-01  David S. Miller  <davem@davemloft.net>
7239
7240         * config/sparc/sparc.opt (VIS3): New option.
7241         * doc/invoke.texi: Document it.
7242         * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
7243         not capable of such instructions.
7244         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
7245         to 0x300 when TARGET_VIS3.
7246         * config/sparc/sparc-modes.def: Create 16-byte vector modes.
7247         * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
7248         UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
7249         (V64N8, VASS): New mode iterators.
7250         (vis3_shift, vis3_addsub_ss): New code iterators.
7251         (vbits, vconstr): New mode attributes.
7252         (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
7253         (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
7254         fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
7255         fmean16_vis, fpadd64_vis, fpsub64_vis,
7256         <vis3_addsub_ss_insn><vbits>_vis, fucmp<code>8<P:mode>_vis): New
7257         VIS 3.0 instruction patterns.
7258         * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
7259         default when targetting capable cpus.  TARGET_VIS3 implies
7260         TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is disabled.
7261         (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
7262         (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
7263         is ignored.
7264         * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
7265         __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
7266         __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
7267         __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
7268         __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
7269         __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
7270         __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
7271         __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
7272         * doc/extend.texi: Document new VIS 3.0 builtins.
7273
7274 2011-10-01  Eric Botcazou  <ebotcazou@adacore.com>
7275
7276         * ira-color.c (assign_hard_reg): Fix typo.
7277
7278 2011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
7279
7280         * doc/extend.texi: Add missing ','.
7281
7282 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
7283
7284         * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
7285         Enable -fmodulo-sched at -O2 and above.
7286         * config/c6x/c6x.md (doloop_end): New expander.
7287         (mvilc, sploop, spkernel, loop_end): New patterns.
7288         (loop_end with memory destination splitter): New.
7289         * config/c6x/c6x.c: Include "hw-doloop.h".
7290         (enum unitreqs): New.
7291         (unit_req_table): New typedef.
7292         (unit_reqs): New static variable.
7293         (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
7294         res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
7295         hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
7296         hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
7297         (struct c6x_sched_context): New member last_scheduled_iter0.
7298         (init_sched_state): Initialize it.
7299         (c6x_variable_issue): Update it.
7300         (sploop_max_uid_iter0): New static variable.
7301         (c6x_sched_reorder_1): Be careful about issuing sploop.
7302         (c6x_reorg): Call c6x_hwlooops before the final schedule.
7303
7304 2011-09-30  Georg-Johann Lay  <avr@gjlay.de>
7305
7306         PR target/50566
7307         * config/avr/avr-protos.h (avr_log_t): New field address_cost.
7308         * config/avr/avr.c (avr_address_cost): Use it.
7309         * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
7310         (avr_log_vadump): Unknown %-codes finish printing.
7311
7312 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
7313
7314         PR inline-asm/50571
7315         * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
7316         input constraints allow mem and not reg, pass true instead of
7317         false as second argument to maybe_fold_reference.
7318
7319         PR tree-optimization/46309
7320         * fold-const.c (make_range, merge_ranges): Remove prototypes.
7321         (make_range_step): New function.
7322         (make_range): Use it.
7323         * tree.h (make_range_step): New prototypes.
7324         * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
7325         * tree-ssa-reassoc.c: Include diagnostic-core.h.
7326         (struct range_entry): New type.
7327         (init_range_entry, range_entry_cmp, update_range_test,
7328         optimize_range_tests): New functions.
7329         (reassociate_bb): Call optimize_range_tests.
7330
7331 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
7332             Richard Guenther  <rguenther@suse.de>
7333
7334         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
7335         BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
7336         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise.  Fix
7337         handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
7338         (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
7339         BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
7340
7341 2011-09-30  Jan Beulich  <jbeulich@suse.com>
7342
7343         * lto-cgraph.c (output_cgraph): Remove processing of
7344         'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
7345         (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
7346         lto_input_toplevel_asms() instead.
7347         * lto-section-in.c (lto_section_name): Add "asm" entry.
7348         * lto-streamer-in.c (lto_input_toplevel_asms): New.
7349         * lto-streamer-out.c (lto_output_toplevel_asms): New.
7350         * lto-streamer.h (LTO_minor_version): Bump.
7351         (enum lto_section_type): Add LTO_section_asm.
7352         (struct lto_asm_header): New.
7353         (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
7354         * tree-streamer.h (streamer_write_string_cst): Declare.
7355         * tree-streamer-out.c (write_string_cst): Rename to
7356         streamer_write_string_cst and make global. Handle incoming string
7357         being NULL.
7358         (streamer_write_tree_header): Adjust call to renamed function.
7359
7360 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
7361
7362         * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
7363         modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
7364         modulo_last_stage): New static variables.
7365         (set_modulo_params, discard_delay_pairs_above): New functions.
7366         (struct delay_pair): New member stages.
7367         (htab_i2_traverse, htab_i1_traverse): New static functions.
7368         (record_delay_slot_pair): New arg stages.  All callers changed.
7369         Record it.
7370         (pair_delay): Take stages into account.
7371         (add_delay_dependencies): Don't do so for stage pairs.
7372         (struct sched_block_state): New member modulo_epilogue.
7373         (save_backtrack_point): Don't set SHADOW_P for stage pairs.
7374         (unschedule_insns_until): Decrease modulo_insns_scheduled.
7375         Set HARD_DEP without using or.
7376         (resolve_dependencies): New static function.
7377         (prune_ready_list): New arg modulo_epilogue_p.  All callers changed.
7378         If it is true, allow only insns with INSN_EXACT_TICK set.
7379         (schedule_block): Return bool, always true for normal scheduling,
7380         true or false depending on modulo scheduling success otherwise.
7381         Add bookkeeping for modulo scheduling, and call resolve_dependencies
7382         on everything left over after a modulo schedule.
7383         (haifa_sched_init): Remove check_cfg call.  Clear modulo_ii.
7384         * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
7385         declarations.
7386         (set_modulo_params, discard_delay_pairs_above): Declare.
7387         * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
7388         * doc/invoke.texi (--param): Document it.
7389
7390         * sched-ebb.c (schedule_ebb): No longer static.  Remove declaration.
7391         New arg modulo_scheduling.  All callers changed.  Move note handling
7392         code here from schedule_ebbs.
7393         (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
7394         out of schedule_ebbs.
7395         (schedule_ebbs): Call them.  Remove note handling code moved to
7396         schedule_ebb.
7397         * sched-int.h (schedule_ebb, schedule_ebbs_init,
7398         schedule_ebbs_finish): Declare.
7399
7400 2011-09-30  Richard Guenther  <rguenther@suse.de>
7401
7402         PR middle-end/50574
7403         * tree-cfg.c (verify_gimple_comparison): Compare component
7404         mode sizes for vector comparisons.
7405
7406 2011-09-30  Revital Eres  <revital.eres@linaro.org>
7407
7408         * ddg.c (autoinc_var_is_used_p): New function.
7409         (create_ddg_dep_from_intra_loop_link,
7410         add_cross_iteration_register_deps): Call it.
7411         * ddg.h (autoinc_var_is_used_p): Declare.
7412         * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
7413         (sms_schedule): Handle instructions with REG_INC.
7414
7415 2011-09-30  Revital Eres  <revital.eres@linaro.org>
7416
7417         * modulo-sched.c (generate_reg_moves): Skip instructions that
7418         do not set a register and verify no regmoves are created for
7419         !single_set instructions.
7420
7421 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
7422
7423         * hw-doloop.c (scan_loop): Compute register usage only for non-debug
7424         insns.
7425
7426 2011-09-30  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7427
7428         PR target/50099
7429         * config/arm/iterators.md (qhs_zextenddi_cstr): New.
7430         (qhs_zextenddi_op): New.
7431         * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
7432         * config/arm/predicates.md ("arm_extendqisi_mem_op"):
7433         Distinguish between ARM and Thumb2 states.
7434
7435 2011-09-30  David S. Miller  <davem@davemloft.net>
7436
7437         * config/sparc/sparc.opt (VIS2): New option.
7438         * doc/invoke.texi: Document it.
7439         * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
7440         UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
7441         UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
7442         (define_attr type): New insn type 'edgen'.
7443         (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
7444         edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
7445         edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
7446         patterns.
7447         * niagara.md: Handle edgen.
7448         * niagara2.md: Likewise.
7449         * ultra1_2.md: Likewise.
7450         * ultra3.md: Likewise.
7451         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
7452         to 0x200 when TARGET_VIS2.
7453         * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
7454         default when targetting capable cpus.  TARGET_VIS2 implies
7455         TARGET_VIS, clear and it when TARGET_FPU is disabled.
7456         (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
7457         (sparc_expand_builtin): Fix predicate indexing when builtin returns
7458         void.
7459         (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
7460         * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
7461         __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
7462         __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
7463         __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
7464         * doc/extend.texi: Document new VIS 2.0 builtins.
7465
7466 2011-09-29  Nick Clifton  <nickc@redhat.com>
7467             Bernd Schmidt  <bernds@codesourcery.com>
7468
7469         * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header file.
7470         * config/frv/frvend.c: Likewise.
7471         * config/frv/frv.c (frv_function_prologue): Move misplaced
7472         CALL_ARG_LOCATION notes back to their proper locations.
7473
7474 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
7475
7476         PR target/50566
7477         * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
7478         * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
7479         from avr_rtx_costs.
7480         (avr_legitimate_address_p): Use avr_edump to print log information
7481         filtered by avr_log.
7482         (extra_constraint_Q): Ditto.
7483         (avr_legitimize_address): Ditto.
7484         (avr_rtx_costs): Ditto.  Rewrite as wrapper for avr_rtx_costs_1.
7485         (final_prescan_insn): Use avr_log.rtx_costs as filter.
7486
7487 2011-09-29  Richard Sandiford  <richard.sandiford@linaro.org>
7488
7489         * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
7490         * config/arm/arm.h (MODES_TIEABLE_P): Use it.
7491         * config/arm/arm.c (arm_modes_tieable_p): New function.  Allow
7492         NEON vector and structure modes to be tied.
7493
7494 2011-09-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7495
7496         * graphite-scop-detection.c (make_close_phi_nodes_unique):  New
7497         forward declaration.
7498         (remove_duplicate_close_phi): Detect and repair creation of
7499         duplicate close-phis for a containing loop.
7500
7501 2011-09-27   Andi Kleen <ak@linux.intel.com>
7502
7503         * gcc.c (get_local_tick). Rename to get_random_number.  Read from
7504         /dev/urandom.  Add getpid call.
7505         (compare_debug_dump_opt_spec_function): Drop getpid call.
7506
7507 2011-09-26   Andi Kleen <ak@linux.intel.com>
7508
7509         * toplev.c (init_local_tick): Try reading random seed
7510         from /dev/urandom.
7511
7512 2011-09-26   Andi Kleen <ak@linux.intel.com>
7513
7514         * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
7515         * lto-streamer.c (lto_get_section_name): Remove crc32_string.
7516         Handle numerical random seed.
7517         * lto-streamer.h (lto_file_decl_data): Change id to
7518         unsigned HOST_WIDE_INT.
7519         * toplev.c (random_seed): Add.
7520         (init_random_seed): Change for numerical random seed.
7521         (get_random_seed): Return as HOST_WIDE_INT.
7522         (set_random_seed): Crc32 existing string.
7523         * toplev.h (get_random_seed): Change to numercal return.
7524         * tree.c (get_file_function_name): Remove CRC. Handle
7525         numerical random seed.
7526
7527 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
7528
7529         PR target/50566
7530         * config.gcc (extra_objs): Add avr-log.o for $target in:
7531         avr-*-rtems*, avr-*-*.
7532         * config/avr/t-avr (avr-log.o): New rule to compile...
7533         * config/avr/avr-log.c: ...this new file.
7534         * config/avr/avr.opt (mlog=): New option.
7535         * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
7536         (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
7537         (avr_log_set_avr_log): New prototype.
7538         (avr_log_t): New typedef.
7539         (avr_log): New declaration.
7540         * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
7541
7542 2011-09-29  Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
7543
7544         * expr.c (do_store_flag): Expand vector comparison by
7545         building an appropriate VEC_COND_EXPR.
7546         * c-typeck.c (build_binary_op): Typecheck vector comparisons.
7547         (c_objc_common_truthvalue_conversion): Adjust.
7548         * tree-vect-generic.c (do_compare): Helper function.
7549         (expand_vector_comparison): Check if hardware supports
7550         vector comparison of the given type or expand vector piecewise.
7551         (expand_vector_operation): Treat comparison as binary
7552         operation of vector type.
7553         (expand_vector_operations_1): Adjust.
7554
7555 2011-09-29  Richard Guenther  <rguenther@suse.de>
7556
7557         * tree.c (build_opaque_vector_type): Make opaque vectors
7558         variant types of the corresponding non-opaque type.  Make
7559         sure to share opaque vector types properly.
7560
7561 2011-09-29  David S. Miller  <davem@davemloft.net>
7562
7563         * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
7564         UNSPEC_ARRAY32): New unspec.
7565         (define_attr type): New type 'array'.
7566         (array{8,16,32}<P:mode>_vis): New patterns.
7567         * config/sparc/ultra1_2.md: Add reservations for 'array'.
7568         * config/sparc/ultra3.md: Likewise.
7569         * config/sparc/niagara.md: Likewise.
7570         * config/sparc/niagara2.md: Likewise.
7571         * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
7572         array builtins.
7573         * config/sparc/visintrin.h (__vis_array8, __vis_array16,
7574         __vis_array32): New.
7575         * doc/extend.texi: Document new VIS builtins.
7576
7577         * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
7578         (VIS pixel-compare insn): Just use <gcond:name>.
7579
7580         * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
7581         code iterator used, so just use <code>.  There are two mode iterators
7582         so explicitly use <GCM:gcm_name>.
7583
7584 2011-09-29  Iain Sandoe  <iains@gcc.gnu.org>
7585
7586         * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
7587         Darwin >= 9.
7588
7589 2011-09-28  David S. Miller  <davem@davemloft.net>
7590
7591         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
7592         UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
7593         (UNSPEC_FCMP): New unspec.
7594         (gcond): New code iterator.
7595         (gcond_name): New code attr.
7596         (GCM): New mode iterator.
7597         (gcm_name): New mode attr.
7598         (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
7599
7600 2011-09-28  Oleg Endo  <oleg.endo@t-online.de>
7601
7602         PR target/49486
7603         * config/sh/sh.md (negdi2): Move expansion into split to
7604         allow more combination options.  Add T_REG clobber.
7605         (abssi2): New expander.
7606         (*negdi2, *abssi2, *negabssi2): New insns.
7607         (cneg): Change from insn to insn_and_split.  Rename to
7608         negsi_cond.  Add alternative for non-SH4.
7609
7610 2011-09-28  Richard Sandiford  <richard.sandiford@linaro.org>
7611
7612         * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
7613         (neon_move_hi_quad_<mode>): Likewise.
7614         (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
7615
7616 2011-09-28  Nick Clifton  <nickc@redhat.com>
7617
7618         * config/rx/predicates.md (rx_minmax_operand): New predicate.
7619         Accepts immediates and a restricted subset of MEMs.
7620         * config/rx/rx.md (int_modes): New iterator.
7621         (smaxsi3, sminsi3): Delete and replace with...
7622         (smax<int_mode>3, smin<int_mode>3): New patterns.
7623         (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
7624
7625 2011-09-28  Richard Guenther  <rguenther@suse.de>
7626
7627         PR middle-end/50460
7628         * fold-const.c (try_move_mult_to_index): Handle &a.array the
7629         same as &a.array[0].
7630
7631 2011-09-28  Kai Tietz  <ktietz@redhat.com>
7632
7633         * configure.ac: Add test for new section attribute
7634         specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
7635         * config.in: Regenerated.
7636         * configure: Regenerated.
7637         * config/i386/winnt.c (i386_pe_asm_named_section): Emit
7638         new section flag "e" for excluded sections, if supported.
7639         Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
7640
7641 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
7642
7643         * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
7644         throughout file.
7645
7646 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
7647
7648         * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
7649         throughout file.
7650
7651 2011-09-27  Sriraman Tallam  <tmsriram@google.com>
7652
7653         * output.h (SECTION_EXCLUDE): New macro.
7654         * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
7655
7656 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
7657
7658         * fwprop.c (forward_propagate_and_simplify): After checking
7659         reg/subreg combinations, check whether the modes are the same.
7660
7661 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
7662             Richard Sandiford  <rdsandiford@googlemail.com>
7663
7664         * config/mips/mips.c (mips_add_cfa_restore): New function.
7665         (mips16e_save_restore_reg): Use it.
7666         (mips_restore_reg): Likewise.  Split double FPRs for
7667         REG_CFA_RESTORE notes.
7668
7669 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
7670
7671         PR middle-end/50386
7672         PR middle-end/50326
7673         * tree-sra.c (build_ref_for_model): Use the type of the field as
7674         the type of the COMPONENT_REF.
7675
7676 2011-09-27  Jeff Law  <law@redhat.com>
7677
7678         * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument.  Scale
7679         non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
7680         (find_if_case_1): Use the probability of the THEN clause when
7681         determining if speculation is profitable.
7682         (find_if_case_2): Similarly for the ELSE clause.
7683
7684 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
7685
7686         * common.opt: Add -foptimize-strlen option.
7687         * Makefile.in (OBJS): Add tree-ssa-strlen.o.
7688         (tree-sssa-strlen.o): Add dependencies.
7689         * opts.c (default_options_table): Enable -foptimize-strlen
7690         by default at -O2 if not -Os.
7691         * passes.c (init_optimization_passes): Add pass_strlen
7692         after pass_object_sizes.
7693         * timevar.def (TV_TREE_STRLEN): New timevar.
7694         * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
7695         * tree-pass.h (pass_strlen): Declare.
7696         * tree-ssa-strlen.c: New file.
7697         * c-decl.c (merge_decls): If compatible stpcpy prototype
7698         is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
7699
7700 2011-09-27  Tom de Vries  <tom@codesourcery.com>
7701
7702         PR middle-end/43864
7703         * tree-ssa-tail-merge.c: New file.
7704         (struct same_succ_def): Define.
7705         (same_succ, const_same_succ): New typedef.
7706         (struct bb_cluster_def): Define.
7707         (bb_cluster, const_bb_cluster): New typedef.
7708         (struct aux_bb_info): Define.
7709         (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
7710         (gvn_uses_equal): New function.
7711         (same_succ_print, same_succ_print_traverse, update_dep_bb)
7712         (stmt_update_dep_bb, local_def, same_succ_hash)
7713         (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
7714         (same_succ_reset): New function.
7715         (same_succ_htab, same_succ_edge_flags)
7716         (deleted_bbs, deleted_bb_preds): New var.
7717         (debug_same_succ): New function.
7718         (worklist): New var.
7719         (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
7720         (init_worklist, delete_worklist, delete_basic_block_same_succ)
7721         (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
7722         (print_cluster, debug_cluster, update_rep_bb)
7723         (add_bb_to_cluster, new_cluster, delete_cluster): New function.
7724         (all_clusters): New var.
7725         (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
7726         (merge_clusters, set_cluster): New function.
7727         (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
7728         (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
7729         (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
7730         (find_clusters_1, find_clusters): New function.
7731         (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
7732         (update_bbs): New var.
7733         (apply_clusters): New function.
7734         (update_debug_stmt, update_debug_stmts): New function.
7735         (tail_merge_optimize): New function.
7736         tree-pass.h (tail_merge_optimize): Declare.
7737         * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
7738         * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
7739         (tree-ssa-tail-merge.o): New rule.
7740         * opts.c (default_options_table): Set OPT_ftree_tail_merge by
7741         default at OPT_LEVELS_2_PLUS.
7742         * tree-ssa-sccvn.c (vn_valueize): Move to ...
7743         * tree-ssa-sccvn.h (vn_valueize): Here.
7744         * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
7745         * common.opt (ftree-tail-merge): New switch.
7746         * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
7747         (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
7748         * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
7749         (-ftree-tail-merge, max-tail-merge-comparisons)
7750         (max-tail-merge-iterations): New item.
7751
7752 2011-09-27  Jan Hubicka  <jh@suse.cz>
7753
7754         * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
7755
7756 2011-09-27  Jan Hubicka  <jh@suse.cz>
7757
7758         * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
7759         parameters passed by reference; handle loads from non-SSA scalars
7760         and update comments.
7761
7762 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
7763
7764         PR rtl-optimization/50249
7765         * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
7766         instead of opnum and type.  All callers changed.  Remove useless
7767         declaration.
7768         Search forward for other reloads of the same type for the same operand
7769         using the same register; if any are found, return false.
7770         (reload_regs_reach_end_p): Same argument changes; all callers changed.
7771
7772 2011-09-27  Andi Kleen  <ak@linux.intel.com>
7773             Jan Hubicka  <jh@suse.cz>
7774
7775         * doc/invoke.texi (ffat-lto-objects): Document.
7776         * toplev.c (compile_file): Do not output assembly when doing slim lto;
7777         Output __gnu_slim_lto when doing slim lto.
7778         * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
7779         (cgraph_optimize): Return early when doing slim lto.
7780         * opts.c (finish_options): Complain about lack of linker plugin
7781         when doing slim lto.
7782         * common.opt (ffat-lto-objects): New.
7783
7784 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
7785
7786         * ipa-inline-analysis.c (predicate_probability): Avoid comparison
7787         between signed and unsigned.
7788
7789 2011-09-27  Ira Rosen  <ira.rosen@linaro.org>
7790
7791         * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
7792         vectorization.
7793         (vectorizable_type_promotion): Likewise.
7794         (vect_analyze_stmt): Call vectorizable_type_demotion and
7795         vectorizable_type_promotion for basic blocks.
7796         (supportable_widening_operation): Don't assume loop vectorization.
7797         * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
7798         basic blocks.  Update vectorization factor for basic block
7799         vectorization.
7800         (vect_analyze_slp_instance): Allow multiple types for basic block
7801         vectorization.  Recheck unrolling factor after construction of SLP
7802         instance.
7803
7804 2011-09-27  Richard Guenther  <rguenther@suse.de>
7805
7806         * tree-object-size.c (compute_object_sizes): Fix dumping of
7807         folded statement.
7808
7809 2011-09-27  Richard Guenther  <rguenther@suse.de>
7810
7811         PR tree-optimization/50363
7812         * tree-ssa-pre.c (create_expression_by_pieces): Handle
7813         pointer conversions in POINTER_PLUS_EXPRs properly.
7814
7815 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
7816
7817         * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
7818         (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
7819         (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
7820         (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
7821         that produce subreg moves.  Define using VQX iterators.
7822
7823 2011-09-27  Georg-Johann Lay  <avr@gjlay.de>
7824
7825         * config/avr/avr.md (ashrqi3): Split alternative "n"
7826         into its remaining parts C03, C04, C05, C06, C07 and describe
7827         impact in CC by attribute "cc" appropriately.
7828         * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
7829         by digging RTX.
7830
7831 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
7832
7833         * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
7834         from 3 x MAX_MACHINE_MODE.
7835         (CONSTM1_RTX): Define.
7836         * emit-rtl.c (const_tiny_rtx): Change into array of
7837         4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
7838         (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
7839         CONSTM1_RTX.
7840         (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
7841         MODE_VECTOR_INT modes.
7842         * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
7843         Optimize if one operand is CONSTM1_RTX.
7844         * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
7845         into mask | x.
7846
7847 2011-09-26  David S. Miller  <davem@davemloft.net>
7848
7849         * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
7850         (fcmp{le,ne,gt,eq}{16,32}): Likewise.
7851         * config/sparc/visintrin.h: Update edge and pixel-compare
7852         intrinsics to return 'long' instead of 'int'.
7853         * doc/extend.texi: Update documentation to match.
7854         * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
7855         flat, allow any instruction.  Otherwise, when V9 allow parallels
7856         which consist only of sets to registers outside of %o0 to %o5.
7857         (sparc_vis_init_builtins): Update VIS builtin types for edge
7858         and pixel-compare.
7859
7860         * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
7861         is enabled, mark %gsr as global.
7862         * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
7863         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
7864
7865         * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
7866         which will now define __VIS and __VIS__ when -mvis is enabled.
7867         * config/sparc/t-sparc: Likewise.
7868         * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
7869         and add t-sparc to tmake_file for all sparc targets.
7870         * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
7871         * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
7872
7873         * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
7874         builtins for VIS vector addition and subtraction.
7875         * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
7876         __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
7877         __vis_fpsub32, __vis_fpsub32s): New.
7878         * doc/extend.texi: Document new VIS intrinsics.
7879
7880 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
7881
7882         * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
7883         * config/avr/avr.c (avr_out_compare): Print shorter sequence for
7884         EQ/NE comparisons against +/-1 in the case of unused-after,
7885         non-ld-regs target.
7886
7887 2011-09-26  Jakub Jelinek  <jakub@redhat.com>
7888
7889         * gimple-fold.c (gimplify_and_update_call_from_tree): Set
7890         gctx.into_ssa after push_gimplify_context.
7891
7892         * gimple.c (gimple_build_call_valist): New function.
7893         * gimple.h (gimple_build_call_valist): New prototype.
7894         * tree-ssa-propagate.c (finish_update_gimple_call): New function.
7895         (update_gimple_call): Likewise.
7896         (update_call_from_tree): Use finish_update_gimple_call.
7897         * tree-ssa-propagate.h (update_gimple_call): New prototype.
7898
7899 2011-09-26  Richard Guenther  <rguenther@suse.de>
7900
7901         PR tree-optimization/50472
7902         * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
7903         volatile references.
7904
7905 2011-09-26  Bingfeng Mei <bmei@broadcom.com>
7906
7907         * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
7908         * target.def: (addr_space_subset_p): Likewise.
7909
7910 2011-09-26  Tom de Vries  <tom@codesourcery.com>
7911
7912         * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
7913         * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
7914         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
7915         of new var.
7916
7917 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
7918
7919         PR target/50465
7920         * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
7921         * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
7922         output_reload_insisf.
7923         (adjust_len): Set default to "no".
7924         Remove alternative "yes".  Add alternatives: "mov8", "mov16",
7925         "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
7926         "lshrhi", "ashlsi, "ashrsi", "lshrsi".
7927         (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
7928         *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
7929         *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
7930         *lshrsi3_const): Set attribute "adjust_len".
7931         * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
7932         (output_movsisf): Don't pass insn to output_reload_insisf.
7933         (adjust_insn_length): Handle new alternatives to adjust_len.
7934         Remove handling of ADJUST_LEN_YES.  Clean-up code.
7935
7936 2011-09-26  Eric Botcazou  <ebotcazou@adacore.com>
7937
7938         * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
7939         may_trap_p to detect loads that may trap of fault.
7940
7941 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
7942
7943         * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
7944         * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
7945         (*reload_inhi): Use it.  Adapt call to output_reload_inhi to new
7946         prototype.
7947         (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
7948         * config/avr/avr.c: Rename output_reload_insisf_1 to
7949         output_reload_in_const.
7950         (avr_popcount_each_byte): Handle SFmode, too.
7951         (output_reload_in_const): Change so it can handle HI loads, too.
7952         Use avr_popcount_each_byte to work out if scratch register must be
7953         created on the fly.
7954         (output_reload_inhi): Rewrite using output_reload_in_const and...
7955         (output_movhi): ...use it to print constants' loads.
7956         (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
7957
7958 2011-09-25  David S. Miller  <davem@davemloft.net>
7959
7960         * config/sparc/constraints.md (C, P, Z): New constraints for
7961         const_doube, const_int, and const_vector "all ones" values.
7962         Make unused constraint letters comment match reality.
7963         * config/sparc/predicates.md (const_all_ones_operand,
7964         register_or_zero_or_all_ones_operand): New predicates.
7965         * config/sparc/sparc.c (sparc_expand_move): Allow all ones
7966         as well as zero constants when VIS.
7967         (sparc_legitimate_constant_p): Likewise.
7968         * config/sparc/sparc.md (movsi_insn): Add fones alternative.
7969         (movsf_insn): Likewise
7970         (movdi_insn_sp64): Add fone alternative.
7971         (movdf_insn_sp32_v9): Likewise.
7972         (movdf_insn_sp64): Likewise.
7973
7974         * configure.ac: Add feature check to make sure the assembler
7975         supports the FMAF, HPC, and VIS 3.0 instructions found on
7976         Niagara-3 and later cpus.
7977         * configure: Rebuild.
7978         * config.in: Likewise.
7979         * config/sparc/sparc.opt: New option '-mfmaf'.
7980         * config/sparc/sparc.md: Add float fused multiply-add patterns.
7981         * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
7982         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
7983         * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
7984         ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
7985         * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
7986         by default for Niagara-3 and later.  Turn it off if TARGET_FPU is
7987         disabled.
7988         (sparc_rtx_costs): Handle 'FMA'.
7989         * doc/invoke.texi: Document -mfmaf.
7990
7991 2011-09-25  Jakub Jelinek  <jakub@redhat.com>
7992
7993         * tree-ssa-structalias.c (intra_create_variable_infos): Treat
7994         TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
7995         DECL_BY_REFERENCE parameters.
7996
7997 2011-09-25  Eric Botcazou  <ebotcazou@adacore.com>
7998
7999         * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
8000         if there is no outgoing edge.
8001
8002         * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
8003         integral types.
8004
8005 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
8006
8007         * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
8008         of vect_analyze_bb here.
8009         (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
8010
8011 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
8012
8013         * tree-data-ref.c (dr_analyze_innermost): Add new argument.
8014         Allow not simple iv if analyzing basic block.
8015         (create_data_ref): Update call to dr_analyze_innermost.
8016         (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
8017         * tree-loop-distribution.c (generate_memset_zero): Likewise.
8018         * tree-predcom.c (find_looparound_phi): Likewise.
8019         * tree-data-ref.h (dr_analyze_innermost): Add new argument.
8020
8021 2011-09-24  David S. Miller  <davem@davemloft.net>
8022
8023         * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
8024         (SPARC_GSR_REG): Define.
8025         (FIXED_REGISTERS): Mark GSR as fixed.
8026         (CALL_USED_REGISTERS): Mark GSR as call used.
8027         (HARD_REGNO_NREGS): GSR is always 1 register.
8028         (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
8029         (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
8030         (REGISTER_NAMES): Add "%gsr".
8031         * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
8032         (UNSPEC_WRGSR): New unspec.
8033         (GSR_REG): New constant.
8034         (type): Add new insn type 'gsr'.
8035         (fpack16_vis, fpackfix_vis, fpack32_vis,
8036         faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
8037         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
8038         rdgsr_v8plus): New expanders and insns.
8039         (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
8040         using patterns which show that this is a plus in addition to a
8041         modification of GSR_REG, instead of an unspec.
8042         * config/sparc/ultra1_2.md: Handle 'gsr'.
8043         * config/sparc/ultra3.md: Likewise.
8044         * config/sparc/niagara.md: Likewise.
8045         * config/sparc/niagara2.md: Likewise.
8046         * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
8047         end of table.
8048         (sparc_option_override): Make -mvis imply -mv8plus.
8049         (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
8050         for %gsr.
8051         (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
8052         __builtin_vis_read_gsr.
8053         (sparc_expand_buildin): Handle builtins that take one argument and
8054         return void.
8055         (sparc_fold_builtin): Never fold writes to %gsr.
8056         * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
8057         * doc/extend.texi: Document new VIS intrinsics.
8058
8059 2011-09-23  Jan Hubicka  <jh@suse.cz>
8060
8061         * ipa-inline-transform.c (inline_call): Add comment.
8062         * ipa-inline.h (inline_param_summary): New structure and vector.
8063         (struct inline_edge_summary): Add param field.
8064         * ipa-inline-analysis.c (CHANGED): New constant.
8065         (add_clause): Handle CHANGED and NOT_CONSTANT.
8066         (predicate_probability): New function.
8067         (dump_condition): Dump CHANGED predicate.
8068         (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
8069         of unknown function wide invariant.
8070         (evaluate_conditions_for_edge): Handle change probabilities.
8071         (inline_edge_duplication_hook): Copy param summaries.
8072         (inline_edge_removal_hook): Free param summaries.
8073         (dump_inline_edge_summary): Fix dumping of indirect edges and callee
8074         sizes; dump param summaries.
8075         (will_be_nonconstant_predicate): Use CHANGED predicate.
8076         (record_modified_bb_info): New structure.
8077         (record_modified): New function.
8078         (param_change_prob): New function.
8079         (estimate_function_body_sizes): Compute param summaries.
8080         (estimate_edge_size_and_time): Add probability argument.
8081         (estimate_node_size_and_time): Add inline_param_summary argument;
8082         handle predicate probabilities.
8083         (remap_predicate): Fix formating.
8084         (remap_edge_change_prob): New function.
8085         (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
8086         (remap_edge_predicates): ... this one.
8087         (inline_merge_summary): Remap edge summaries; handle predicate
8088         probabilities; remove param summaries after we are done.
8089         (do_estimate_edge_time): Update.
8090         (do_estimate_edge_growth): Update.
8091         (read_inline_edge_summary): Read param info.
8092         (inline_read_summary): Fix formating.
8093         (write_inline_edge_summary): Write param summaries.
8094
8095 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
8096
8097         * config/i386/i386.c (ix86_print_operand): Handle %~.
8098         (ix86_print_operand_punct_valid_p): Return true also for '~'.
8099         * config/i386/sse.md (i128): New mode_attr.
8100         (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
8101         avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
8102         *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
8103         vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
8104         patterns, use "<sseinsnmode>" for "mode" attribute.
8105         (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
8106         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
8107         %~128 in the patterns, use "OI" for "mode" attribute.
8108
8109 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
8110
8111         PR target/50447
8112         * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
8113         "tstsi", "compare".
8114         (*cmpqi_sign_extend): Use s8_operand.
8115         (*cmphi, *cmpsi): Rewrite using avr_out_compare.
8116         * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
8117         prototypes.
8118         (out_tsthi, out_tstsi): Remove prototypes.
8119         (avr_out_tsthi, avr_out_tstsi): New prototypes.
8120         * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
8121         (avr_asm_len): Negative length now sets *plen to -length.
8122         (compare_sign_p): Return bool instead of int.
8123         (compare_diff_p, compare_eq_p): Ditto and make static.
8124         (avr_out_tsthi): New function.
8125         (avr_out_tstsi): New function.
8126         (avr_out_compare): New function.
8127         (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
8128         ADJUST_LEN_COMPARE.
8129
8130 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
8131
8132         PR target/50447
8133         * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
8134         (addsi3): Rewrite using QI scratch register.  Adjust text
8135         peepholes using plus:SI.
8136         (*addsi3_zero_extend.hi): New insn.
8137         (*subsi3_zero_extend.hi): New insn.
8138         (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
8139         (*subsi3_zero_extend): Ditto.
8140         (subsi3): Change predicate #2 to register_operand.
8141         * config/avr/avr-protos.h (avr_out_plus): New prototype.
8142         (avr_out_plus_1): New static function.
8143         (avr_out_plus): New function.
8144         (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
8145
8146 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
8147
8148         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
8149         GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
8150
8151 2011-09-23  Ian Lance Taylor  <iant@google.com>
8152
8153         * godump.c (go_define): Treat a single character in single quotes,
8154         or a string, as an operand.
8155
8156 2011-09-23  Martin Jambor  <mjambor@suse.cz>
8157
8158         * ipa-prop.h (jump_func_type): Updated comments.
8159         (ipa_known_type_data): New type.
8160         (ipa_jump_func): Use it to describe known type jump functions.
8161         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
8162         reflect the new known type jump function contents.
8163         (compute_known_type_jump_func): Likewise.
8164         (combine_known_type_and_ancestor_jfs): Likewise.
8165         (try_make_edge_direct_virtual_call): Likewise.
8166         (ipa_write_jump_function): Likewise.
8167         (ipa_read_jump_function): Likewise.
8168         * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
8169         (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
8170         (propagate_accross_jump_function): Likewise.
8171
8172 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
8173
8174         PR target/50446
8175         * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
8176         (rotlqi3_4): Turn insn into expander.
8177         (*rotlqi3): New insn.
8178         (rotlhi3, rotlsi3): Support rotate left/right by 1.
8179         (*rotlhi2.1, *rotlhi2.15): New insns.
8180         (*rotlsi2.1, *rotlsi2.31): New insns.
8181         * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
8182
8183 2011-09-23  Bin Cheng  <bin.cheng@arm.com>
8184
8185         * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
8186
8187 2011-09-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
8188
8189         * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
8190
8191 2011-09-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8192
8193         * reload.c (find_reloads): Set operand_mode to Pmode for address
8194         operands consisting of just a CONST_INT.
8195
8196 2011-09-22  Uros Bizjak  <ubizjak@gmail.com>
8197
8198         PR target/50482
8199         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
8200         blendv, force op_true to register if it doesn't satisfy
8201         nonimmediate_operand predicate.
8202
8203 2011-09-22  Richard Sandiford  <rdsandiford@googlemail.com>
8204
8205         PR middle-end/50113
8206         PR middle-end/50061
8207         * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
8208         get the locate.where_pad value for register-only arguments.
8209         * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
8210         (arm_pad_reg_upward): Handle null types.
8211
8212 2011-09-22  Jan Hubicka  <jh@suse.cz>
8213
8214         * ipa-inline-analysis.c: Fix overly long lines.
8215
8216 2011-09-22  Jan Hubicka  <jh@suse.cz>
8217
8218         * ipa-inline-transform.c (inline_call): Always update jump functions
8219         after inlining.
8220         * ipa-inline.c (ipa_inline): Likewise; do not call
8221         ipa_create_all_structures_for_iinln.
8222         (ipa_inline): Always free jump functions.
8223         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
8224         (remap_edge_predicates): Fix pasto.
8225         (inline_merge_summary): Remove nlined edge predicate; remove hack.
8226         (inline_analyze_function): Always initialize jump functions.
8227         (inline_generate_summary): Likewise.
8228         (inline_write_summary): Always write jump functions when ipa-cp
8229         is not doing that.
8230         (inline_read_summary): Always read jump functions when ipa-cp
8231         is not doing that.
8232         * ipa-prop.c (iinlining_processed_edges): Remove.
8233         (update_indirect_edges_after_inlining): Do not use
8234         iinlining_processed_edges; instead set param_index to -1.
8235         (propagate_info_to_inlined_callees): Only try to indirect inlining
8236         when asked to do so; update jump functions of indirect calls, too;
8237         remove jump functions of the inlined edge.
8238         (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
8239         (ipa_create_all_structures_for_iinln): Remove.
8240         (ipa_free_all_structures_after_iinln): Do not free
8241         iinlining_processed_edges.
8242         * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
8243
8244 2011-09-22  Richard Sandiford  <richard.sandiford@linaro.org>
8245
8246         * config/arm/predicates.md (expandable_comparison_operator): New
8247         predicate, extracted from...
8248         (arm_comparison_operator): ...here.
8249         * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
8250         (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
8251         (movdfcc): Use expandable_comparison_operator.
8252
8253 2011-09-22  Georg-Johann Lay  <avr@gjlay.de>
8254
8255         PR target/50447
8256         PR target/50465
8257         * config/avr/avr-protos.h (avr_out_bitop): New prototype.
8258         (avr_popcount_each_byte): New prototype.
8259         * config/avr/avr.c (avr_popcount): New static function.
8260         (avr_popcount_each_byte): New function.
8261         (avr_out_bitop): New function.
8262         (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
8263         avr_out_bitop.  Cleanup code.
8264         * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
8265         (Ca4, Co4, Cx4): New constraints.
8266         * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
8267         alternative.
8268         (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
8269         (andsi3, iorsi3, xorsi3): Ditto.
8270         (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
8271
8272 2011-09-22  Ira Rosen  <ira.rosen@linaro.org>
8273
8274         PR tree-optimization/50451
8275         * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
8276         constant operands in reduction.
8277         (vect_get_slp_defs): Don't create vector operand for NULL scalar
8278         operand.
8279
8280 2011-09-22  David S. Miller  <davem@davemloft.net>
8281
8282         * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
8283         fpack16, fpack32, fpackfix as const.
8284
8285         * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
8286         I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
8287         constants.  Use them everywhere.
8288
8289 2011-09-22  Oleg Endo  <oleg.endo@t-online.de>
8290
8291         * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
8292         Added AND special case.  Adapted comments.
8293         (sh_rtx_costs): Added XOR and IOR case.
8294
8295 2011-09-21  Jan Hubicka  <jh@suse.cz>
8296
8297         * ipa-inline-analsis.c (compute_inline_parameters): Set
8298         cfun and current_function_decl.
8299
8300 2011-09-21  Jan Hubicka  <jh@suse.cz>
8301
8302         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
8303         handled components in parameter of builtin_constant_p.
8304         (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
8305
8306 2011-09-21  Jan Hubicka  <jh@suse.cz>
8307
8308         * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
8309         * ipa-inline.h (estimate_edge_time): Fix pasto.
8310         * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
8311
8312 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
8313
8314         * config/i386/i386.c (ix86_expand_sse_movcc): Use
8315         blendvps, blendvpd and pblendvb if possible.
8316
8317 2011-09-21  Uros Bizjak  <ubizjak@gmail.com>
8318
8319         PR target/50464
8320         * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
8321         operand 1 predicate to register_operand and operand 2 predicate
8322         to nonimmediate_operand.
8323         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
8324         xop_pcmov, force op_true to register.  Also, force op_false to
8325         register if it doesn't satisfy nonimmediate_operand predicate.
8326
8327 2011-09-21  Kirill Yukhin  <kirill.yukhin@intel.com>
8328
8329         * config/i386/bmi2intrin.h (_mulx_u64): New.
8330         (_mulx_u32): Ditto.
8331
8332 2011-09-21  Jan Hubicka  <jh@suse.cz>
8333
8334         PR tree-optimization/50433
8335         * ipa-inline-analysis.c (eliminated_by_inlining_prob):
8336         Use get_base_address.
8337
8338 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
8339
8340         * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
8341         nonimmediate_operand instead of register_operand predicate for operands
8342         1 and 2, force them into registers if expanding them as comparison.
8343         (<code><mode>3 umaxmin:VI124_128 expander): Similarly.  For UMAX
8344         V8HImode force into register just operand 1.
8345
8346 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
8347
8348         PR target/45099
8349         * config/avr/avr.c (avr_function_arg_advance): Change error to
8350         warning if a fixed register is needed as function argument.
8351
8352 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
8353
8354         PR target/50449
8355         PR target/50465
8356         * config/avr/avr.md (adjust_len): New insn attribute.
8357         (*reload_insi, *reload_insf): Use it.
8358         (*movsi, *movsf): Use new interface of output_movsisf.
8359         * config/avr/avr-protos.h (output_movsisf): Change prototype.
8360         * config/avr/avr.c (output_movsisf): Ditto.
8361         (adjust_insn_length): Use insn attribute "adjust_len" to adjust
8362         lengths of insns *reload_insi, *reload_insf.
8363         (output_reload_insisf_1): New static function.
8364         (output_reload_insisf): Use it.
8365
8366 2011-09-21  David S. Miller  <davem@davemloft.net>
8367
8368         * config/sparc/sparc.c (def_builtin): Change from macro into function.
8369         (def_builtin_const): New.
8370         (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
8371         other than alignaddr and falignaddr.
8372
8373         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
8374         UNSPEC_FCMPEQ): New unspec codes.
8375         (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
8376         fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
8377         * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
8378         new pixel compare VIS patterns.
8379         * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
8380         __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
8381         __vis_fcmpeq16, __vis_fcmpeq32): New.
8382         * doc/extend.texi: Document new pixel compare VIS intrinsics.
8383
8384 2011-09-21  Tom de Vries  <tom@codesourcery.com>
8385
8386         * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
8387
8388 2011-09-20  David S. Miller  <davem@davemloft.net>
8389
8390         * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
8391         (aligneddrl<P:mode>_vis): New pattern.
8392         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
8393         edge32l_vis): Adjust to take Pmode arguments, and return SImode.
8394         * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
8395         alignaddrl insn, and adjust edge operations for updated types.
8396         * config/sparc/visintrin.h: Likewise.
8397         * doc/extend.texi: Make typing in VIS documentation match reality.
8398
8399 2011-09-20  Terry Guo  <terry.guo@arm.com>
8400
8401         * config/arm/arm-arches.def: Add armv6s-m.
8402         * config/arm/arm-tables.opt: Regenerate.
8403
8404 2011-09-20  Wei Guozhi  <carrot@google.com>
8405
8406         PR rtl-optimization/49452
8407         * postreload.c (reload_combine): Invalidate use information when across
8408         volatile insn.
8409
8410 2011-09-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
8411
8412         * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
8413         Remove maintenance overhead.
8414         (haifa_sched_init, sched_finish): Update.
8415
8416 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
8417
8418         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
8419         to calculate unit, prefix_rep and prefix_data16 attributes.
8420         (*mov<mode>_internal): Ditto for unit attribute.
8421         (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
8422         (*movv2sf_internal): Ditto.
8423         * config/i386/sse.md (VI1248_256): Remove mode iterator.
8424         (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
8425         (*avx2_eq<mode>3): Ditto.
8426         (avx2_gt<mode>3): Ditto.
8427
8428 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
8429
8430         * config/i386/i386.md (maxmin): New code iterator.
8431         * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
8432         from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
8433         code iterator.
8434         (*avx2_<maxmin:code><mode>3): Macroize isn from
8435         *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
8436         maxmin code iterator.
8437         (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
8438         (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
8439         <umaxmin:code>v16qi3.
8440
8441 2011-09-19  Alan Modra  <amodra@gmail.com>
8442             Michael Meissner  <meissner@linux.vnet.ibm.com>
8443
8444         PR target/50341
8445         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
8446         split the load of the indirect function's TOC from the call to
8447         prevent the compiler from moving the load of the new TOC above
8448         code that references the current function's TOC.
8449         (call_indirect_aix<ptrsize>_internal): Ditto.
8450         (call_indirect_aix<ptrsize>_nor11): Ditto.
8451         (call_indirect_aix<ptrsize>_internal2): Ditto.
8452         (call_value_indirect_aix<ptrsize>): Ditto.
8453         (call_value_indirect_aix<ptrsize>_internal): Ditto.
8454         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
8455         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
8456
8457 2011-09-19  Jakub Jelinek  <jakub@redhat.com>
8458
8459         * config/i386/sse.md (*sse4_1_extractps): Change into
8460         define_insn_and_split, add =x 0 n and =x x n alternatives
8461         and split them after reload.
8462
8463 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
8464
8465         * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
8466
8467 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
8468
8469         * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
8470
8471 2011-09-19  Ira Rosen  <ira.rosen@linaro.org>
8472
8473         PR tree-optimization/50413
8474         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
8475         a basic block if one of its data-refs can't be analyzed.
8476
8477 2011-09-19  Paul Brook  <paul@codesourcery.com>
8478
8479         * config/arm/predicates.md (shift_amount_operand): Check constant
8480         shift count is in range.
8481         (const_shift_operand): Remove.
8482
8483 2011-09-18  Eric Botcazou  <ebotcazou@adacore.com>
8484             Iain Sandoe  <developer@sandoe-acoustics.co.uk>
8485
8486         PR target/50091
8487         * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
8488         * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
8489
8490 2011-09-18  H.J. Lu  <hongjiu.lu@intel.com>
8491
8492         * config/i386/bmiintrin.h: Remove tmp.
8493         * config/i386/tbmintrin.h: Likewise.
8494
8495 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
8496
8497         PR tree-optimization/50414
8498         * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
8499         MIN_EXPR.
8500
8501 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
8502
8503         PR tree-optimization/50412
8504         * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
8505         acceses that require epilogue loop if vectorizing outer loop.
8506
8507 2011-09-17  David S. Miller  <davem@davemloft.net>
8508
8509         * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
8510         UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
8511         New unspecs.
8512         (define_attr type): New type 'edge'.
8513         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
8514         edge32l_vis): New patterns.
8515         * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
8516         * config/sparc/ultra3.md: Likewise.
8517         * config/sparc/niagara.md: Likewise.
8518         * config/sparc/niagara2.md: Likewise.
8519         * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
8520         builtins for VIS edge instructions.
8521         * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
8522         (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
8523         intrinsics.
8524         (__v8qi, __v4qi): Make unsigned.
8525         (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
8526         __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
8527         __vis_fpack32): Fix types.
8528         * doc/extend.texi: Document new 'edge' VIS intrinsics.
8529
8530         * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
8531         divide costs.
8532         (niagara3_costs): New.
8533         (sparc_option_override): Use it.
8534         * gcc/config/sparc/niagara2.md: Adjust with more accurate
8535         Niagara-3 reservations.
8536
8537 2011-09-17  Jakub Jelinek  <jakub@redhat.com>
8538
8539         * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
8540         (sse2_avx, sseinsnmode): Add V2TI.
8541         (REDUC_SMINMAX_MODE): New mode iterator.
8542         (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
8543         reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
8544         (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
8545         (sse2_lshrv1ti3): Rename to...
8546         (<sse2_avx2>_lshr<mode>3): ... this.  Use VIMAX_AVX2 mode
8547         iterator.  Move before umaxmin expanders.
8548         * config/i386/i386.h (VALID_AVX256_REG_MODE,
8549         SSE_REG_MODE_P): Accept V2TImode.
8550         * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
8551         V16HImode, V8SImode and V4DImode.
8552
8553         * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
8554         and V4DImode.
8555         (ix86_build_signbit_mask): Likewise.
8556         (ix86_expand_int_vcond): Likewise.  Handle V16HImode and V32QImode.
8557         (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
8558         instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
8559         * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
8560         (<code><mode>3) ... this.
8561         (avx2_<code><mode>3 smaxmin expand): Rename to...
8562         (<code><mode>3) ... this.
8563         (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
8564         (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
8565         VI8_AVX2 mode iterator.
8566         (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
8567         VI8_AVX2 mode iterator.
8568         (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
8569         New expanders.
8570
8571 2011-09-17  Richard Sandiford  <rdsandiford@googlemail.com>
8572
8573         * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
8574         throughout file.
8575
8576 2011-09-16  David S. Miller  <davem@davemloft.net>
8577
8578         * config/sparc/visintrin.h: New file.
8579         * config.gcc: Add it to extra_headers on sparc.
8580
8581 2011-09-16  Jakub Jelinek  <jakub@redhat.com>
8582
8583         * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
8584         (ix86_expand_reduc): ... this.  Handle also V8SFmode and V4DFmode.
8585         * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
8586         reduc_smin_v4sf): Adjust callers.
8587         (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
8588         New expanders.
8589
8590         * config/i386/sse.md (vec_extract_hi_<mode>,
8591         vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
8592         vextracti128 instead of vextractf128 for -mavx2 and
8593         integer vectors.  For V4DFmode fix up mode attribute.
8594         (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
8595         (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
8596         instead of V8SF mode attribute.
8597         (avx2_extracti128): Change into define_expand.
8598         * config/i386/i386.c (ix86_expand_vector_extract): Handle
8599         32-byte vector modes if TARGET_AVX.
8600
8601 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
8602
8603         * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
8604         (umulqi3_highpart, smulqi3_highpart): Ditto.
8605         (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
8606         (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
8607         (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
8608
8609 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
8610
8611         PR target/50358
8612         * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
8613         (*maddqi4, *maddqi4.const): New insns.
8614         (*msubqi4, *msubqi4.const): New insns.
8615         * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
8616         PLUS:QI and MINUS:QI.  Increase costs of multiply-add/-sub for
8617         HImode by 1 in the case of multiplying with a CONST_INT.
8618         Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
8619
8620 2011-09-15   Jan Hubicka  <jh@suse.cz>
8621
8622         PR lto/50430
8623         * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
8624         error_mark_node in the DECL_INITIAL of vtable.
8625
8626 2011-09-15   Diego Novillo  <dnovillo@google.com>
8627
8628         * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
8629         @SYSROOT_CFLAGS_FOR_TARGET@.
8630         * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
8631         * configure: Regenerate.
8632         (site.exp): Add definition of TEST_ALWAYS_FLAGS.
8633         Remove setting of GCC_UNDER_TEST.
8634
8635 2011-09-15  Uros Bizjak  <ubizjak@gmail.com>
8636
8637         * config/i386/i386.c (output_fp_compare): Return %v prefixed
8638         instruction mnemonics for TARGET_AVX.
8639
8640         * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
8641         "type" attribute calculation.
8642         (*movdf_internal): Ditto.
8643         (*movsf_internal): Ditto.
8644
8645 2011-09-15  James Greenhalgh  <james.greenhalgh@arm.com>
8646
8647         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
8648
8649 2011-09-15  Jason Merrill  <jason@redhat.com>
8650
8651         PR c++/50361
8652         * expr.c (count_type_elements): Handle NULLPTR_TYPE.
8653
8654 2011-09-15  Jan Hubicka  <jh@suse.cz>
8655
8656         * ipa-inline-analysis.c (add_condition): Add conditions parameter;
8657         simplify obviously true clauses.
8658         (and_predicates, or_predicates): Add conditions parameter.
8659         (inline_duplication_hoook): Update.
8660         (mark_modified): New function.
8661         (unmodified_parm): New function.
8662         (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
8663         set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
8664         Use unmodified_parm.
8665         (estimate_function_body_sizes): Update.
8666         (remap_predicate): Update.
8667
8668 2011-09-15  Ira Rosen  <ira.rosen@linaro.org>
8669
8670         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
8671         read-after-read dependencies in basic block SLP.
8672
8673 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
8674
8675         * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
8676         throughout file.
8677
8678 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
8679
8680         * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
8681         throughout file.
8682
8683 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
8684
8685         * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
8686         throughout file.
8687
8688 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
8689
8690         * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
8691         throughout file.
8692         * config/rs6000/constraints.md: Likewise.
8693
8694 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
8695
8696         * config/microblaze/microblaze.md: Use match_test rather than
8697         eq/ne symbol_ref throughout file.
8698
8699 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
8700
8701         * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
8702         throughout file.
8703
8704 2011-09-14  Tom de Vries  <tom@codesourcery.com>
8705
8706         PR middle-end/50251
8707         * explow.c (emit_stack_restore): Set crtl->need_drap if
8708         stack_restore is emitted.
8709
8710 2011-09-14  Julian Brown  <julian@codesourcery.com>
8711
8712         * config/arm/arm.c (arm_override_options): Add unaligned_access
8713         support.
8714         (arm_file_start): Emit attribute for unaligned access as appropriate.
8715         * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
8716         (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
8717         (insv, extzv): Add unaligned-access support.
8718         (extv): Change to expander. Likewise.
8719         (extzv_t1, extv_regsi): Add helpers.
8720         (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
8721         (unaligned_storesi, unaligned_storehi): New.
8722         (*extv_reg): New (previous extv implementation).
8723         * config/arm/arm.opt (munaligned_access): Add option.
8724         * config/arm/constraints.md (Uw): New constraint.
8725         * expmed.c (store_bit_field_1): Adjust bitfield numbering according
8726         to size of access, not size of unit, when BITS_BIG_ENDIAN !=
8727         BYTES_BIG_ENDIAN. Don't use bitfield accesses for
8728         volatile accesses when -fstrict-volatile-bitfields is in effect.
8729         (extract_bit_field_1): Likewise.
8730
8731 2011-09-14  Richard Sandiford  <richard.sandiford@linaro.org>
8732
8733         * simplify-rtx.c (simplify_subreg): Check that the inner mode is
8734         a scalar integer before applying integer-only optimisations to
8735         inner arithmetic.
8736
8737 2011-09-14  Bernd Schmidt  <bernds@codesourcery.com>
8738
8739         * config/mips/mips.c (mips_expand_epilogue): Generate a
8740         simple_return only if the return address is in r31.
8741
8742 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
8743
8744         * cfgcleanup.c (try_head_merge_bb): If get_condition returns
8745         NULL for a jump that is a cc0 insn, pick the previous insn for
8746         move_before.
8747
8748 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
8749
8750         * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
8751         throughout file.
8752
8753 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
8754
8755         * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
8756         throughout file.
8757
8758 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
8759
8760         * config/mn10300/mn10300.md: Use match_test rather than eq/ne
8761         symbol_ref throughout file.
8762
8763 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
8764
8765         * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
8766         throughout file.
8767
8768 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
8769
8770         * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
8771         throughout file.
8772
8773 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
8774
8775         * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
8776         throughout file.
8777         * config/arm/neon.md: Likewise.
8778         * config/arm/vfp.md: Likewise.
8779         * config/arm/thumb2.md: Likewise.
8780         * config/arm/cortex-m4.md: Likewise.
8781
8782 2011-09-13  Sevak Sargsyan <sevak.sargsyan@ispras.ru>
8783
8784         * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
8785         define_insn patterns for combine.
8786
8787 2011-09-13  Giuseppe Scrivano  <gscrivano@gnu.org>
8788
8789         * reorg.c: Always define make_return_insns.
8790
8791 2011-09-13  Jan Hubicka  <jh@suse.cz>
8792
8793         PR other/49533
8794         * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
8795
8796 2011-09-13  Jan Hubicka  <jh@suse.cz>
8797
8798         PR other/49533
8799         * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
8800
8801 2011-09-13  Paul Brook  <paul@codesourcery.com>
8802
8803         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
8804         (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
8805         * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
8806         * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
8807         * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
8808         * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
8809         * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
8810         * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
8811         enabling unwind tables.
8812         (c6x_debug_unwind_info): New function.
8813         (TARGET_ARM_EABI_UNWINDER): Define.
8814         (TARGET_DEBUG_UNWIND_INFO): Define.
8815         * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
8816         (TARGET_EXTRA_CFI_SECTION): Remove.
8817         * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
8818         * ginclude/unwind-arm-common.h: New file.
8819
8820 2011-09-13  Georg-Johann Lay  <avr@gjlay.de>
8821
8822         PR target/50358
8823         * config/avr/predicates.md (const_1_to_6_operand): New predicate.
8824         * config/avr/avr.md: (extend_s): New code attribute.
8825         (mul_r_d): New code attribute.
8826         (*maddqihi4, *umaddqihi4): New insns.
8827         (*msubqihi4, *umsubqihi4): New insns.
8828         (*usmaddqihi4, *sumaddqihi4): New insns.
8829         (*usmsubqihi4, *susubdqihi4): New insns.
8830         (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
8831         (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
8832         (*umsubqihi4.uconst.ashift): New insn-and-split.
8833         (*msubqihi4.sconst.ashift): New insn-and-split.
8834         (*sumaddqihi4.uconst): New insn-and-split.
8835         (*sumsubqihi4.uconst): New insn-and-split.
8836         * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
8837         PLUS:HI and MINUS:HI.
8838
8839 2011-09-13  Revital Eres  <revital.eres@linaro.org>
8840
8841         modulo-sched.c (remove_node_from_ps): Return void instead of bool.
8842         (optimize_sc): Adjust call to remove_node_from_ps.
8843         (sms_schedule): Add print info.
8844
8845 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
8846
8847         * rtl.c (copy_rtx): Do not handle frame_related, jump or call
8848         flags specially.
8849
8850 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
8851
8852         PR bootstrap/50010
8853         * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
8854         NOTE_INSN_CFI notes, with the exception of
8855         NOTE_INSN_SWITCH_TEXT_SECTIONS.
8856
8857 2011-09-12  Bernd Schmidt  <bernds@codesourcery.com>
8858             Richard Sandiford  <rdsandiford@googlemail.com>
8859
8860         * config/mips/mips.c (mips_epilogue): New structure.
8861         (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
8862         restoring registers.
8863         (mips_epilogue_emit_cfa_restores): New function.
8864         (mips_epilogue_set_cfa): Likewise.
8865         (mips_restore_reg): Queue REG_CFA_RESTORE notes.  When restoring
8866         the current CFA register from the stack, redefine the CFA in terms
8867         of the stack pointer.
8868         (mips_expand_epilogue): Set up mips_epilogue.  Attach CFA information
8869         to the epilogue instructions.
8870
8871 2011-09-12  Richard Sandiford  <rdsandiford@googlemail.com>
8872
8873         * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
8874         argument.
8875         (mips16e_build_save_restore): Update accordingly.
8876
8877 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
8878
8879         PR rtl-optimization/50212
8880         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
8881         Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
8882
8883         PR debug/50299
8884         * calls.c (load_register_parameters): Use use_reg_mode instead
8885         of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
8886         entry.
8887         (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
8888         for stack CALL_INSN_FUNCTION_USAGE uses.
8889         * expr.h (use_reg_mode): New prototype.
8890         (use_reg): Changed into inline around use_reg_mode.
8891         * expr.c (use_reg): Renamed to...
8892         (use_reg_mode): ... this.  Added MODE argument, set EXPR_LIST
8893         mode to that mode instead of VOIDmode.
8894         * var-tracking.c (prepare_call_arguments): Don't track parameters
8895         whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
8896         to it using lowpart_subreg.  Convert VALUE and REG/MEM to the
8897         EXPR_LIST mode.
8898
8899 2011-09-12  Georg-Johann Lay  <avr@gjlay.de>
8900
8901         PR target/43746
8902         * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
8903         (progmem_section): New Variable.
8904         (avr_asm_init_sections): Initialize it.
8905         (TARGET_ASM_SELECT_SECTION): Define to...
8906         (avr_asm_select_section): ... this new Function.
8907         (avr_replace_prefix): New Function.
8908         (avr_asm_function_rodata_section): Use it.
8909         (avr_insert_attributes): Don't add section attribute for PROGMEM.
8910         (avr_section_type_flags): Use avr_progmem_p instead of section
8911         name to detect if object is in PROGMEM.
8912         (avr_asm_named_section): Set section name prefix for objects in
8913         PROGMEM.
8914
8915 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
8916
8917         PR bootstrap/50352
8918         * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
8919         sprintf format string.
8920
8921 2011-09-12  Richard Guenther  <rguenther@suse.de>
8922
8923         PR tree-optimization/50343
8924         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
8925         that the reduction is over an SSA name before checking its definition.
8926
8927 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
8928
8929         * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
8930         throughout file.
8931
8932 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
8933
8934         * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
8935         throughout file.
8936         * config/mips/sb1.md: Likewise.
8937         * config/mips/predicates.md: Replace (match_test "!...")
8938         with (not (match_test "..."))
8939         * config/mips/constraints.md: Likewise.
8940
8941 2011-09-09  Andrew Stubbs  <ams@codesourcery.com>
8942
8943         * config/arm/arm-cores.def (generic-armv7-a): New architecture.
8944         * config/arm/arm-tables.opt: Regenerate.
8945         * config/arm/arm-tune.md: Regenerate.
8946         * config/arm/arm.c (arm_file_start): Output .arch directive when
8947         user passes -mcpu=generic-*.
8948         (arm_issue_rate): Add genericv7a support.
8949         * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
8950         (ASM_CPU_SPEC): New define.
8951         * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
8952         * config/arm/semi.h (ASM_SPEC): Likewise.
8953         * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
8954         and -mtune=generic-*.
8955
8956 2011-09-09  Richard Guenther  <rguenther@suse.de>
8957
8958         PR tree-optimization/50328
8959         * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
8960         constant or default-def operand.
8961
8962 2011-09-09  Richard Guenther  <rguenther@suse.de>
8963
8964         * tree-ssa-pre.c (create_expression_by_pieces): Fold the
8965         last statement.
8966
8967 2011-09-09  Richard Guenther  <rguenther@suse.de>
8968
8969         * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
8970         instead of a statement.
8971         * gimple-fold.c (fold_stmt_inplace): Likewise.
8972         * sese.c (graphite_copy_stmts_from_block): Adjust.
8973         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
8974         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
8975         fold_stmt.
8976         (forward_propagate_addr_into_variable_array_index): Likewise.
8977         (forward_propagate_addr_expr_1): adjust.
8978         (associate_plusminus): Likewise.
8979         (ssa_forward_propagate_and_combine): Likewise.
8980         * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
8981         (execute_cse_reciprocals): Likewise.
8982         * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
8983
8984 2011-09-09  Nick Clifton  <nickc@redhat.com>
8985
8986         * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
8987         Return a positive value to indicate that the bits at the
8988         bottom of the register should be cleared.
8989
8990 2011-09-09  Richard Guenther  <rguenther@suse.de>
8991
8992         * tree-ssa-operands.c (swap_tree_operands): Always adjust
8993         existing operand positions.
8994
8995 2011-09-09  Richard Guenther  <rguenther@suse.de>
8996
8997         PR middle-end/50333
8998         * tree-data-ref.c (split_constant_offset): Do not try to handle
8999         ternary ops.
9000
9001 2011-09-08  Andrew Stubbs  <ams@codesourcery.com>
9002
9003         PR tree-optimization/50318
9004         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
9005         typo in use of mult_rhs1 and mult_rhs2.
9006
9007 2011-09-08  Uros Bizjak  <ubizjak@gmail.com>
9008
9009         * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
9010         (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
9011
9012 2011-09-08  Bernd Schmidt  <bernds@codesourcery.com>
9013
9014         * config/arm/arm.md (push_multi): Emit predicates.
9015         (push_fp_multi): Likewise.
9016         * config/arm/arm.c (vfp_output_fstmd): Likewise.
9017
9018 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
9019
9020         PR c++/33255 - Support -Wunused-local-typedefs warning
9021         * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
9022         (pushdecl): Use the new record_locally_defined_typedef.
9023         (store_parm_decls): Allocate cfun->language.
9024         (finish_function): Use the new maybe_warn_unused_local_typedefs,
9025         and free cfun->language.
9026         (c_push_function_context): Allocate cfun->language here only if needed.
9027         (c_pop_function_context): Likewise, mark cfun->language
9028         for collection only when it should be done.
9029         * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
9030         * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
9031         maybe_record_local_typedef_use.
9032         * doc/invoke.texi: Update documentation for
9033         -Wunused-local-typedefs.
9034
9035 2011-09-08  Enkovich Ilya  <ilya.enkovich@intel.com>
9036
9037         * config/i386/i386-protos.h (ix86_lea_outperforms): New.
9038         (ix86_avoid_lea_for_add): Likewise.
9039         (ix86_avoid_lea_for_addr): Likewise.
9040         (ix86_split_lea_for_addr): Likewise.
9041
9042         * config/i386/i386.c (LEA_MAX_STALL): New.
9043         (increase_distance): Likewise.
9044         (insn_defines_reg): Likewise.
9045         (insn_uses_reg_mem): Likewise.
9046         (distance_non_agu_define_in_bb): Likewise.
9047         (distance_agu_use_in_bb): Likewise.
9048         (ix86_lea_outperforms): Likewise.
9049         (ix86_ok_to_clobber_flags): Likewise.
9050         (ix86_avoid_lea_for_add): Likewise.
9051         (ix86_avoid_lea_for_addr): Likewise.
9052         (ix86_split_lea_for_addr): Likewise.
9053         (distance_non_agu_define): Search in pred BBs added.
9054         (distance_agu_use): Search in succ BBs added.
9055         (IX86_LEA_PRIORITY): Value changed from 2 to 0.
9056         (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
9057         (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
9058
9059         * config/i386/i386.md: Split added to transform non destructive
9060         add into move and add.
9061         (lea_1): transformed into insn_and_split to avoid AGU stalls.
9062         (lea<mode>_2): Likewise.
9063
9064 2011-09-08  Martin Jambor  <mjambor@suse.cz>
9065
9066         PR tree-optimization/50287
9067         * ipa-split.c (split_function): Do not create SSA names for
9068         non-gimple-registers.
9069
9070 2011-09-08  Richard Guenther  <rguenther@suse.de>
9071
9072         PR tree-optimization/19831
9073         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
9074         skip builtins with vdefs that do not really store something.
9075         (propagate_necessity): For calls to free that we can associate
9076         with an allocation function do not mark the freed pointer
9077         definition necessary.
9078         (eliminate_unnecessary_stmts): Remove a call to free if
9079         the associated call to an allocation function is not necessary.
9080
9081 2011-09-08  Richard Guenther  <rguenther@suse.de>
9082
9083         PR tree-optimization/19831
9084         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
9085         allocation functions as necessary.
9086
9087 2011-09-08  Iain Sandoe  <iains@gcc.gnu.org>
9088
9089         * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
9090         cut from ...
9091         (darwin_default_min_version): Amended to provide defaults
9092         for the cross directory case.
9093         (darwin_driver_init): call darwin_default_min_version unconditionally.
9094         * config/darwin.h (DEF_MIN_OSX_VERSION): New.
9095         * config/darwin9.h: Likewise.
9096         * config/darwin10.h: Likewise.
9097         * config/rs6000/darwin7.h: Likewise.
9098
9099 2011-09-08  Jakub Jelinek  <jakub@redhat.com>
9100
9101         PR target/50310
9102         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
9103         code early if TARGET_AVX.
9104         (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
9105
9106 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
9107
9108         * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
9109         duplicates.
9110
9111         PR target/50310
9112         * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
9113         "mode" attribute computation.
9114
9115 2011-09-07  Bernd Schmidt  <bernds@codesourcery.com>
9116
9117         * regrename.c (struct du_head): Make nregs signed.
9118         (closed_chains): Remove.
9119         (create_new_chain): Return the new chain.
9120         (chain_from_id): New static function.
9121         (dump_def_use_chain): Change argument to be an int, indicating
9122         the first ID to print.  All callers changed.
9123         (merge_overlapping_regs): Use chain_from_id.  Assert that
9124         chains don't conflict with themselves.
9125         (rename_chains): Take no argument.  Iterate over id_to_chain
9126         rather to find chains to rename.  Clear tick before the main loop.
9127         (struct incoming_reg_info): New struct.
9128         (struct bb_rename_info): New struct.
9129         (init_rename_info, set_incoming_from_chain, merge_chains): New
9130         static functions.
9131         (regrename_analyze): New static function, broken out of
9132         regrename_optimize.  Record and make use of open chain information
9133         at basic block boundaries, and merge chains where possible.
9134         (scan_rtx_reg): Make this_nregs signed.  Don't update
9135         closed_chains.
9136         (build_def_use): Return a bool to indicate success.  All callers
9137         changed.  Don't initialize global data here.
9138         (regrename_optimize): Move most code out of here into
9139         regrename_analyze.
9140         * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
9141         range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
9142         static inline functions.
9143         * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
9144
9145         * bb-reorder.c (insert_section_boundary_note): Don't check
9146         optimize_function_for_speed_p.
9147         (gate_handle_partition_blocks): Do it here instead.
9148         (gate_handle_reorder_blocks): Move preliminary checks here ...
9149         (rest_of_handle_reorder_blocks): ... from here.
9150
9151 2011-09-07  Martin Jambor  <mjambor@suse.cz>
9152
9153         PR middle-end/50301
9154         * ipa-cp.c (find_more_values_for_callers_subset): Check jump
9155         function index bounds.
9156         (perhaps_add_new_callers): Likewise.
9157
9158 2011-09-07  Martin Jambor  <mjambor@suse.cz>
9159
9160         PR tree-optimization/49911
9161         * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
9162         enumerations to the corresponding plain integer type.
9163
9164 2011-09-07  Richard Guenther  <rguenther@suse.de>
9165
9166         PR tree-optimization/50319
9167         * tree-if-conv.c (set_bb_predicate): Assert we only set
9168         canonical predicates.
9169         (add_to_predicate_list): Simplify.  Allow TRUTH_NOT_EXPR
9170         around canonical predicates.
9171         (predicate_bbs): Do not re-gimplify already canonical
9172         predicates.  Properly unshare them though.
9173         (find_phi_replacement_condition): Simplify.
9174
9175 2011-09-07  Richard Sandiford  <richard.sandiford@linaro.org>
9176
9177         PR target/49030
9178         * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
9179         * config/arm/arm.c (maybe_get_arm_condition_code): New function,
9180         reusing the old code from get_arm_condition_code.  Return ARM_NV
9181         for invalid comparison codes.
9182         (get_arm_condition_code): Redefine in terms of
9183         maybe_get_arm_condition_code.
9184         * config/arm/predicates.md (arm_comparison_operator): Use
9185         maybe_get_arm_condition_code.
9186
9187 2011-09-07  Richard Guenther  <rguenther@suse.de>
9188
9189         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
9190         Canonicalize negated predicates by swapping edges.
9191         (forward_propagate_into_cond): Likewise.
9192
9193 2011-09-07  Richard Guenther  <rguenther@suse.de>
9194
9195         PR tree-optimization/50213
9196         * tree-flow.h (simple_iv_increment_p): Declare.
9197         * tree-ssa-dom.c (simple_iv_increment_p): Export.  Also handle
9198         POINTER_PLUS_EXPR.
9199         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
9200         not propagate simple IV counter increments.
9201
9202 2011-09-07  Eric Botcazou  <ebotcazou@adacore.com>
9203             Iain Sandoe  <iains@gcc.gnu.org>
9204
9205         * config/rs6000/rs6000.c (compute_save_world_info): Test
9206         cfun->has_nonlocal_label to determine if the out-of-line save
9207         world call may be used.
9208
9209 2011-09-07  Nick Clifton  <nickc@redhat.com>
9210
9211         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
9212         label on the parallel part of the insn.
9213
9214 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
9215
9216         PR debug/50191
9217         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
9218         avoid_constant_pool_reference first instead of last.
9219
9220 2011-09-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
9221
9222         * doc/configfiles.texi (Configuration Files): Update documentation
9223         about tm_p.h and remove FIXME comment.
9224
9225 2011-09-06  Uros Bizjak  <ubizjak@gmail.com>
9226
9227         * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
9228         (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
9229
9230 2011-09-06  Iain Sandoe  <iains@gcc.gnu.org>
9231
9232         * config/darwin10.h Remove duplicate LIB_SPEC.
9233
9234 2011-09-06  Enkovich Ilya  <ilya.enkovich@intel.com>
9235
9236         PR middle-end/44382
9237         * target.def (reassociation_width): New hook.
9238
9239         * doc/tm.texi.in (reassociation_width): Likewise.
9240
9241         * doc/tm.texi (reassociation_width): Likewise.
9242
9243         * doc/invoke.texi (tree-reassoc-width): New param documented.
9244
9245         * hooks.h (hook_int_uint_mode_1): New default hook.
9246
9247         * hooks.c (hook_int_uint_mode_1): Likewise.
9248
9249         * config/i386/i386.h (ix86_tune_indices): Add
9250         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
9251
9252         (TARGET_REASSOC_INT_TO_PARALLEL): New.
9253         (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
9254
9255         * config/i386/i386.c (initial_ix86_tune_features): Add
9256         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
9257
9258         (ix86_reassociation_width): New function.
9259
9260         * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
9261
9262         * tree-ssa-reassoc.c (get_required_cycles): New function.
9263         (get_reassociation_width): Likewise.
9264         (swap_ops_for_binary_stmt): Likewise.
9265         (rewrite_expr_tree_parallel): Likewise.
9266
9267         (rewrite_expr_tree): Refactored.  Part of code moved into
9268         swap_ops_for_binary_stmt.
9269
9270         (reassociate_bb): Now checks reassociation width to be used and
9271         call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
9272
9273 2011-09-06  Richard Guenther  <rguenther@suse.de>
9274
9275         PR tree-optimization/47025
9276         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
9277         uses nothing.
9278         (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
9279         BUILT_IN_FREE.
9280         (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
9281         definitely points to.
9282         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9283         BUILT_IN_VA_START doesn't let its va_list argument escape.
9284         * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
9285         not make any previous stores necessary.
9286
9287 2011-09-06  Martin Jambor  <mjambor@suse.cz>
9288
9289         * ipa-inline.h (struct inline_summary): Move versionable flag...
9290         * cgraph.h (struct cgraph_local_info): ...here
9291         * ipa-cp.c (determine_versionability): Use the new versionable flag.
9292         (determine_versionability): Likewise.
9293         (ipcp_versionable_function_p): Likewise.
9294         (ipcp_generate_summary): Likewise.
9295         * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
9296         versionable flag.
9297         (compute_inline_parameters): Do not clear the versionable flag.
9298         (inline_read_section): Do not stream the versionable flag.
9299         (inline_write_summary): Likewise.
9300         * lto-cgraph.c (lto_output_node): Stream the versionable flag.
9301         (input_overwrite_node): Likewise.
9302
9303 2011-09-06  Richard Guenther  <rguenther@suse.de>
9304
9305         PR tree-optimization/48149
9306         * tree-ssa-sccvn.c (vn_get_expr_for): Simplify.  Fix tuplification bug.
9307         (vn_valueize): Move earlier.
9308         (valueize_expr): Use vn_valueize.
9309         (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
9310         operands.
9311         (simplify_unary_expression): Simplify.
9312
9313 2011-09-06  Richard Guenther  <rguenther@suse.de>
9314
9315         PR tree-optimization/48317
9316         * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
9317         trailing array.
9318         (sizeof_vn_nary_op): New inline function.
9319         (vn_nary_op_lookup_pieces): Adjust.
9320         (vn_nary_op_insert_pieces): Likewise.
9321         * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
9322         (init_vn_nary_op_from_pieces): Adjust signature.  Deal with
9323         any number of operands.
9324         (vn_nary_length_from_stmt): New function.
9325         (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
9326         (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
9327         sized temporary.
9328         (vn_nary_op_lookup): Likewise.
9329         (vn_nary_op_lookup_stmt): Likewise.
9330         (vn_nary_op_insert_into): Likewise.
9331         (vn_nary_op_insert_stmt): Likewise.
9332         (visit_use): Handle CONSTRUCTOR as nary.
9333         * tree-ssa-pre.c (phi_translate_1): Adjust.
9334         (create_expression_by_pieces): Likewise.
9335         (compute_avail): Likewise.
9336
9337 2011-09-06  Ira Rosen  <ira.rosen@linaro.org>
9338
9339          * config/arm/arm.c (arm_preferred_simd_mode): Check
9340         TARGET_NEON_VECTORIZE_DOUBLE instead of
9341         TARGET_NEON_VECTORIZE_QUAD.
9342         (arm_autovectorize_vector_sizes): Likewise.
9343         * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
9344         mask of mvectorize-with-neon-double.  Add RejectNegative.
9345         (mvectorize-with-neon-double): New.
9346
9347 2011-09-06  Richard Guenther  <rguenther@suse.de>
9348
9349         * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
9350
9351 2011-09-06  Tom de Vries  <tom@codesourcery.com>
9352
9353         * recog.c (asm_labels_ok): New function.
9354         (check_asm_operands): Use asm_labels_ok.
9355
9356 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
9357
9358         PR target/49606
9359         * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
9360         (PMODE_INSN): New macro.
9361         * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
9362         (mips_got_load, mips_expand_synci_loop): Likewise.
9363         (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
9364         cprestore patterns.
9365         (mips_emit_loadgp): Use PMODE_INSN.  Handle SImode and DImode
9366         copygp_mips16 patterns.
9367         (mips_expand_prologue): Handle SImode and DImode potential_cprestore
9368         and use_cprestore patterns.
9369         (mips_override_options): Check for incompatible -mabi and -mlong
9370         combinations.
9371         * config/mips/mips.md (unspec_got<mode>): Rename to...
9372         (unspec_got_<mode>): ...this.
9373         (copygp_mips16): Use the Pmode iterator.
9374         (potential_cprestore, cprestore, use_cprestore): Likewise.
9375         (clear_cache, indirect_jump): Use PMODE_INSN.
9376         (indirect_jump<mode>): Rename to...
9377         (indirect_jump_<mode>): ...this.
9378         (tablejump): Use PMODE_INSN.
9379         (tablejump<mode>): Rename to...
9380         (tablejump_<mode>): ...this.
9381         (exception_receiver): Handle restore_gp_si and restore_gp_di.
9382         (restore_gp): Use the Pmode iterator.
9383         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
9384         PMODE_INSN.
9385
9386 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
9387
9388         * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
9389         Fix the type of the BIT_AND_EXPR.
9390
9391 2011-09-05  David S. Miller  <davem@davemloft.net>
9392
9393         * config.host: Add driver-sparc.o and sparc/x-sparc on
9394         native sparc*-*-linux* builds.
9395         * config/sparc/driver-sparc.c: Correct Linux strings.
9396         * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
9397         * config/sparc/linux64.h: Likewise.
9398         * doc/invoke.texi: Document that Linux also supports
9399         -mcpu=native and -mtune=native on sparc.
9400
9401         * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
9402         PROCESSOR_NIAGARA4): New.
9403         * config/sparc/sparc.opt: Handle new processor types.
9404         * config/sparc/sparc.md: Add to "cpu" attribute.
9405         * config/sparc/sparc.h (TARGET_CPU_niagara3,
9406         TARGET_CPU_niagara4): New, treat as niagara2.
9407         * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
9408         * config/sparc/sol2.h: Likewise.
9409         * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
9410         * config/sparc/sparc.c (sparc_option_override): Add
9411         niagara3 and niagara4 handling.
9412         (sparc32_initialize_trampoline): Likewise.
9413         (sparc64_initialize_trampoline): Likewise.
9414         (sparc_use_sched_lookahead): Likewise.
9415         (sparc_issue_rate): Likewise.
9416         (sparc_register_move_cost): Likewise.
9417         * config/sparc/driver-sparc.c (cpu_names): Use niagara3
9418         and niagara4 as appropriate.
9419         * doc/invoke.texi: Document new processor types.
9420         * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
9421         and --with-tune options.
9422
9423         * config/sparc/sol2-64.h: Move ...
9424         * config/sparc/default-64.h: ... to here.  Update comment.
9425         * config.gcc: Update Solaris sparc to use default-64.h, also
9426         prefix this header into the list on sparc64-*-linux.
9427         * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
9428         TARGET_64BIT_DEFAULT is defined.  Remove commented out reference
9429         to MASK_HARD_QUAD.
9430
9431 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
9432
9433         PR target/50289
9434         * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
9435         that contain global register variable.
9436
9437 2011-09-05  Richard Guenther  <rguenther@suse.de>
9438
9439         * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
9440
9441 2011-09-05  Richard Guenther  <rguenther@suse.de>
9442
9443         * stor-layout.c (layout_type): Use size_binop for array size
9444         calculations.
9445
9446 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
9447
9448         * config/avr/avr.h (progmem_section): Remove Declaration.
9449         * config/avr/avr.c (progmem_section): Make static and rename to
9450         progmem_swtable_section.
9451         (avr_output_addr_vec_elt): No need to switch sections.
9452         (avr_asm_init_sections): Use output_section_asm_op as section
9453         callback for progmem_swtable_section.
9454         (avr_output_progmem_section_asm_op): Remove Function.
9455         (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
9456         (avr_asm_function_rodata_section): New static Function.
9457         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
9458         alignment 2**1 for jump tables.
9459
9460 2011-09-04  Jan Hubicka  <jh@suse.cz>
9461
9462         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
9463         parameter is SSA name.
9464
9465 2011-09-04  Richard Guenther  <rguenther@suse.de>
9466
9467         Revert
9468         2011-08-31  Richard Guenther  <rguenther@suse.de>
9469
9470         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
9471         special-casing.
9472
9473 2011-09-04  Iain Sandoe  <iains@gcc.gnu.org>
9474
9475         PR debug/49901
9476         * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
9477
9478 2011-09-04  Jakub Jelinek  <jakub@redhat.com>
9479             Ira Rosen  <ira.rosen@linaro.org>
9480
9481         PR tree-optimization/50208
9482         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
9483         argument.  Check that def_stmt is inside the loop.
9484         (vect_recog_widen_mult_pattern): Update calls to
9485         vect_handle_widen_mult_by_cons.
9486         (vect_operation_fits_smaller_type): Check that def_stmt is
9487         inside the loop.
9488
9489 2011-09-04  Ira Rosen  <ira.rosen@linaro.org>
9490
9491         * tree-vectorizer.c (vect_print_dump_info): Print line
9492         number when dumping to a file.
9493         (vectorize_loops): Add new messages to dump file.
9494
9495 2011-09-03  Martin Jambor  <mjambor@suse.cz>
9496
9497         * ipa-prop.h (ipa_jump_func_t): New typedef.
9498         (struct ipa_edge_args): Removed field argument_count, field
9499         jump_functions turned into a vector.
9500         (ipa_set_cs_argument_count): Removed.
9501         (ipa_get_cs_argument_count): Updated to work on vectors.
9502         (ipa_get_ith_jump_func): Likewise.
9503         * ipa-prop.c (ipa_count_arguments): Removed.
9504         (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
9505         jump functions.  Update caller.
9506         (compute_pass_through_member_ptrs): Likewise.
9507         (compute_cst_member_ptr_arguments): Likewise.
9508         (ipa_compute_jump_functions_for_edge): Get number of arguments from
9509         the statement, allocate vector.
9510         (ipa_compute_jump_functions): Do not call ipa_count_arguments.
9511         (duplicate_ipa_jump_func_array): Removed.
9512         (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
9513         (ipa_read_node_info): Allocate vector.
9514
9515 2011-09-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9516
9517         PR middle-end/50232
9518         * config/pa/pa.md (return): Define "return" insn pattern.
9519         (epilogue): Use it when no epilogue is needed.
9520         * config/pa/pa.c (pa_can_use_return_insn): New function.
9521         * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
9522
9523 2011-09-03  Eric Botcazou  <ebotcazou@adacore.com>
9524
9525         * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
9526         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
9527         Force at least BITS_PER_UNIT alignment on the new variable.
9528
9529 2011-09-02  Gary Funck <gary@intrepid.com>
9530
9531         * opts.c (print_specific_help): Fix off-by-one compare in
9532         assertion check.
9533         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
9534         CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
9535         Increase by +5 to allow for more languages.
9536         * optc-gen.awk: Generate #if that ensures that the number of
9537         languages is within the implementation-defined limit.
9538
9539 2011-09-02  Michael Matz  <matz@suse.de>
9540
9541         PR middle-end/50260
9542         * ipa-split.c (split_function): Call add_referenced_var.
9543
9544         * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
9545         (cond_if_else_store_replacement_1): Ditto.
9546         * tree-ssa-pre.c (get_representative_for): Ditto.
9547         (create_expression_by_pieces): Ditto.
9548         (insert_into_preds_of_block): Ditto.
9549         * tree-sra.c (create_access_replacement): Ditto.
9550         (get_replaced_param_substitute): Ditto.
9551
9552 2011-09-02  Bernd Schmidt  <bernds@codesourcery.com>
9553
9554         * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
9555         automata_options.
9556         (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
9557         (l1w, s1w, l2w, s2w): Define in the main automaton.
9558         (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
9559         units.
9560         * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
9561         (c6x_unit_names): Add the new units.
9562         (c6x_unit_codes): New static array.
9563         (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
9564         UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
9565         UNIT_QID_SIDE_OFFSET): New macros.
9566         (RESERVATION_S2): Adjust value.
9567         (c6x_option_override): Compute c6x_unit_codes.
9568         (assign_reservations): Take the unit_mask of the last instruction
9569         into account.  Detect floating point reservations by looking for
9570         the new units.  Don't assign reservations if the field is already
9571         nonzero.
9572         (struct c6x_sched_context): Add member prev_cycle_state_ctx.
9573         (init_sched_state): Initialize it.
9574         (c6x_clear_sched_context): Free it.
9575         (insn_set_clock): Clear reservation.
9576         (prev_cycle_state): New static variable.
9577         (c6x_init_sched_context): Save it.
9578         (c6x_sched_init): Allocate space for it and clear it.
9579         (c6x_sched_dfa_pre_cycle_insn): New static function.
9580         (c6x_dfa_new_cycle): Save state at the start of a new cycle.
9581         (c6x_variable_issue): Only record units in the unit_mask that
9582         were not set at the start of the cycle.
9583         (c6x_variable_issue): Compute and store the unit_mask from the
9584         current state.
9585         (reorg_split_calls): Ensure the new information remains correct.
9586         (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
9587         TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
9588         * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
9589         * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
9590         Add special reservations.
9591         * config/c6x/c6x-sched.md: Regenerate.
9592
9593 2011-09-02  Martin Jambor  <mjambor@suse.cz>
9594
9595         * ipa-prop.h (ipa_node_params): Removed fields
9596         called_with_var_arguments and node_versionable.
9597         (ipa_set_called_with_variable_arg): Removed.
9598         (ipa_is_called_with_var_arguments): Likewise.
9599         * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
9600         (determine_versionability): Do not check for type attributes and va
9601         builtins.  Record versionability into inline summary.
9602         (initialize_node_lattices): Do not check
9603         ipa_is_called_with_var_arguments.
9604         (propagate_constants_accross_call): Likewise, ignore arguments we do
9605         not have PARM_DECLs for, set variable flag for parameters that were
9606         not passed a value.
9607         (create_specialized_node): Dump info that we cannot change signature.
9608         * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
9609         number of arguments.
9610         (ipa_make_edge_direct_to_target): Likewise.
9611         (ipa_update_after_lto_read): Likewise.
9612         (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
9613         * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
9614         they were remapped.
9615
9616 2011-09-02  Richard Guenther  <rguenther@suse.de>
9617
9618         PR tree-optimization/27460
9619         PR middle-end/29269
9620         * doc/md.texi (vcond): Document.
9621         * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
9622         optab with two modes.
9623         * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
9624         (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
9625         (vcond_optab): Adjust.
9626         (vcondu_optab): Likewise.
9627         (expand_vec_cond_expr_p): Adjust prototype.
9628         * optabs.c (get_vcond_icode): Adjust.
9629         (expand_vec_cond_expr_p): Likewise.
9630         (expand_vec_cond_expr): Likewise.
9631         * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
9632         vector type.
9633         (vectorizable_condition): Allow differing types for comparison
9634         and result.
9635         * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
9636         for the comparison.
9637         * config/i386/sse.md (vcond<mode>): Split to
9638         vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
9639         vcond<V_128:mode><VI124_128:mode> and
9640         vcondu<V_128:mode><VI124_128:mode>.
9641         (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
9642         (vconduv2di): Likewise.
9643         * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
9644         (vcondu<mode>): Likewise.
9645         * config/ia64/vect.md (vcond<mode>): Likewise.
9646         (vcondu<mode>): Likewise.
9647         (vcondv2sf): Likewise.
9648         * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
9649         * config/rs6000/paired.md (vcondv2sf): Likewise.
9650         * config/rs6000/vector.md (vcond<mode>): Likewise.
9651         (vcondu<mode>): Likewise.
9652         * config/spu/spu.md (vcond<mode>): Likewise.
9653         (vcondu<mode>): Likewise.
9654
9655 2011-09-02  Richard Guenther  <rguenther@suse.de>
9656
9657         * pretty-print.h (pp_unsigned_wide_integer): New.
9658         * tree-pretty-print.c (dump_generic_node): Print unsigned
9659         host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
9660
9661 2011-09-02  Richard Sandiford  <richard.sandiford@linaro.org>
9662
9663         PR target/49987
9664         * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
9665         valid CONST_VECTOR operands.
9666         (rs6000_expand_vector_init): Likewise.
9667
9668 2011-09-02  Martin Jambor  <mjambor@suse.cz>
9669
9670         * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
9671         * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
9672         BINFO_VTABLE.  Parameter delta removed, all callers updated.
9673         * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
9674         BINFO_VTABLE.
9675         * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
9676         all calls.
9677         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
9678         handling of thunk_delta.
9679         * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
9680         (devirtualization_time_bonus): Do not handle thunk deltas.
9681         (ipcp_discover_new_direct_edges): Likewise.
9682         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
9683         (try_make_edge_direct_simple_call): Likewise.
9684         (try_make_edge_direct_virtual_call): Likewise.
9685         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
9686         parameter set as unused.
9687         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
9688         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
9689         parameter set as unused.
9690         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
9691         (input_edge_opt_summary): Likewise.
9692         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
9693         BINFO_VIRTUALS at all.
9694         * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
9695
9696 2011-09-02  Richard Guenther  <rguenther@suse.de>
9697
9698         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
9699         (ccp_fold_stmt): Continue replacing args when folding alloca fails.
9700
9701 2011-08-31  Richard Guenther  <rguenther@suse.de>
9702
9703         * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
9704         handling here, from ...
9705         (expand_expr_real_1): ... here.
9706         * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
9707         and VEC_COND_EXPR.
9708         * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
9709         a GIMPLE_TERNARY_RHS.
9710         * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
9711         and VEC_COND_EXPR here ...
9712         (verify_gimple_assign_single): ... not here.
9713         * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
9714         * tree-object-size.c (cond_expr_object_size): Adjust.
9715         (collect_object_sizes_for): Likewise.
9716         * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
9717         * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
9718         (ssa_forward_propagate_and_combine): Adjust.
9719         * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
9720         as ternary.
9721         * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
9722         * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
9723         * tree-vect-stmt.c (vectorizable_condition): Likewise.
9724         * tree-vrp.c (extract_range_from_cond_expr): Likewise.
9725         (extract_range_from_assignment): Likewise.
9726
9727 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
9728
9729         * config/i386/i386.md: Use (match_test ...) for attribute tests.
9730         * config/i386/mmx.md: Likewise.
9731         * config/i386/sse.md: Likewise.
9732         * config/i386/predicates.md (call_insn_operand): Use
9733         (not (match_test "...")) instead of (match_test "!...")
9734         * config/i386/constraints.md (w): Likewise.
9735
9736 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
9737
9738         * doc/md.texi: Describe the use of match_tests in attribute tests.
9739         * rtl.def (MATCH_TEST): Update commentary.
9740         * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
9741         (write_test_expr, walk_attr_value): Handle MATCH_TEST.
9742
9743 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
9744
9745         * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
9746         (attr_string): Use copy_md_ptr_loc.
9747
9748 2011-08-31  Martin Jambor  <mjambor@suse.cz>
9749
9750         PR middle-end/49886
9751         * ipa-inline-analysis.c (compute_inline_parameters): Set
9752         can_change_signature of noes with typde attributes.
9753         * ipa-split.c (split_function): Do not skip any arguments if
9754         can_change_signature is set.
9755
9756 2011-08-31  Martin Jambor  <mjambor@suse.cz>
9757
9758         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
9759         check removed.
9760
9761 2011-08-31  Richard Guenther  <rguenther@suse.de>
9762
9763         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
9764         special-casing.
9765
9766 2011-08-31  Marc Glisse  <marc.glisse@inria.fr>
9767
9768         * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
9769
9770 2011-08-31  Tom de Vries  <tom@codesourcery.com>
9771
9772         PR middle-end/43513
9773         * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
9774         * tree-ssa-ccp.c (params.h): Include.
9775         (fold_builtin_alloca_for_var): New function.
9776         (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
9777
9778 2011-08-30  Uros Bizjak  <ubizjak@gmail.com>
9779
9780         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
9781         Handle FMA option.
9782
9783 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
9784
9785         * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
9786         b3 and b4 unsigned.
9787
9788 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
9789
9790         * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
9791         when code is SET.
9792
9793 2011-08-30  Richard Guenther  <rguenther@suse.de>
9794
9795         PR middle-end/48571
9796         * gimple.h (maybe_fold_offset_to_address): Remove.
9797         (maybe_fold_offset_to_reference): Likewise.
9798         (maybe_fold_stmt_addition): Likewise.
9799         (may_propagate_address_into_dereference): Likewise.
9800         * tree-inline.c (remap_gimple_op_r): Do not reconstruct
9801         array references.
9802         * gimple-fold.c (canonicalize_constructor_val): Likewise.
9803         Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
9804         addresses instead.
9805         (may_propagate_address_into_dereference): Remove.
9806         (maybe_fold_offset_to_array_ref): Likewise.
9807         (maybe_fold_offset_to_reference): Likewise.
9808         (maybe_fold_offset_to_address): Likewise.
9809         (maybe_fold_stmt_addition): Likewise.
9810         (fold_gimple_assign): Do not reconstruct array references but
9811         instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
9812         MEM_REF addresses.
9813         (gimple_fold_stmt_to_constant_1): Likewise.
9814         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
9815         * gimplify.c (gimplify_conversion): Likewise.
9816         (gimplify_expr): Likewise.
9817
9818 2011-08-30  Ilya Tocar  <ilya.tocar@intel.com>
9819
9820         * config/i386/fmaintrin.h: New.
9821         * config.gcc: Add fmaintrin.h.
9822         * config/i386/i386.c
9823         (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
9824         <IX86_BUILTIN_VFMADDSD3>: Likewise.
9825         * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
9826         (*fmai_fmadd_<mode>): Likewise.
9827         (*fmai_fmsub_<mode>): Likewise.
9828         (*fmai_fnmadd_<mode>): Likewise.
9829         (*fmai_fnmsub_<mode>): Likewise.
9830         * config/i386/immintrin.h: Add fmaintrin.h.
9831
9832 2011-08-30  Bernd Schmidt  <bernds@codesourcery.com>
9833
9834         * genautomata.c (NO_COMB_OPTION): New macro.
9835         (no_comb_flag): New static variable.
9836         (gen_automata_option): Handle NO_COMB_OPTION.
9837         (comb_vect_p): False if no_comb_flag.
9838         (add_vect): Move computation of min/max values.  Return early if
9839         no_comb_flag.
9840         * doc/md.texi (automata_option): Document no-comb-vect.
9841
9842         * config/i386/i386.c (get_pc_thunk_name): Change prefix to
9843         "__x86.get_pc_thunk".
9844
9845         * bb-reorder.c (insert_section_boundary_note): Only do it if
9846         we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
9847
9848 2011-08-30  Christian Bruel  <christian.bruel@st.com>
9849
9850         * coverage.c (coverage_init): Check flag_branch_probabilities instead of
9851         flag_profile_use.
9852
9853 2011-08-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
9854
9855         * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
9856         to off.  Document switch.
9857         * doc/invoke.texi (-msave-toc-indirect): Ditto.
9858
9859 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
9860
9861         * gthr-posix.h (__gthread_active_p): Do not use preprocessor
9862         conditionals and comments inside macro arguments.
9863
9864 2011-08-29  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
9865             Richard Guenther  <rguenther@suse.de>
9866
9867         * tree.h (constant_boolean_node): Adjust prototype.
9868         * fold-const.c (fold_convert_loc): Move aggregate conversion
9869         leeway down.
9870         (constant_boolean_node): Make value parameter boolean, add
9871         vector type handling.
9872         (fold_unary_loc): Use constant_boolean_node.
9873         (fold_binary_loc): Preserve types properly when folding
9874         COMPLEX_EXPR <__real x, __imag x>.
9875         * gimplify.c (gimplify_expr): Handle vector comparison.
9876         * tree.def (EQ_EXPR, ...): Document behavior on vector typed
9877         comparison.
9878         * tree-cfg.c (verify_gimple_comparison): Verify vector typed
9879         comparisons.
9880
9881 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
9882
9883         PR middle-end/48722
9884         * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
9885         reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
9886         (verify_rtl_sharing): Likewise and verify_rtx_sharing
9887         in there too.
9888         (unshare_all_rtl_in_chain): For CALL_INSNs
9889         copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
9890
9891 2011-08-29  Richard Guenther  <rguenther@suse.de>
9892
9893         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
9894         on the built ADDR_EXPR.
9895
9896 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
9897
9898         PR debug/50215
9899         * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
9900         before adding ENTRY_VALUE to val->locs.
9901
9902 2011-08-28  Mikael Pettersson  <mikpe@it.uu.se>
9903
9904         PR bootstrap/50218
9905         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
9906         comp.
9907
9908 2011-08-27  Bernd Schmidt  <bernds@codesourcery.com>
9909
9910         * doc/rtl.texi (simple_return): Document.
9911         (parallel, PATTERN): Here too.
9912         * doc/md.texi (return): Mention it's allowed to expand to simple_return
9913         in some cases.
9914         (simple_return): Document standard pattern.
9915         * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
9916         * final.c (final_scan_insn): Use ANY_RETURN_P on body.
9917         * reorg.c (function_return_label, function_simple_return_label):
9918         New static variables, replacing...
9919         (end_of_function_label): ... this.
9920         (simplejump_or_return_p): New static function.
9921         (optimize_skip, steal_delay_list_from_fallthrough,
9922         fill_slots_from_thread): Use it.
9923         (relax_delay_slots): Likewise.  Use ANY_RETURN_P on body.
9924         (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
9925         (find_end_label): Take a new arg which is one of the two return
9926         rtxs.  Depending on which, set either function_return_label or
9927         function_simple_return_label.  All callers changed.
9928         (make_return_insns): Make both kinds.
9929         (dbr_schedule): Adjust for two kinds of end labels.
9930         * function.c (emit_return_into_block): Set JUMP_LABEL properly.
9931         * genemit.c (gen_exp): Handle SIMPLE_RETURN.
9932         (gen_expand, gen_split): Use ANY_RETURN_P.
9933         * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
9934         * rtl.def (SIMPLE_RETURN): New code.
9935         * ifcvt.c (find_if_case_1): Be more careful about
9936         redirecting jumps to the EXIT_BLOCK.
9937         * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
9938         returnjump_p_1): Handle SIMPLE_RETURNs.
9939         * print-rtl.c (print_rtx): Likewise.
9940         * rtl.c (copy_rtx): Likewise.
9941         * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
9942         * combine.c (simplify_set): Likewise.
9943         * resource.c (find_dead_or_set_registers, mark_set_resources):
9944         Likewise.
9945         * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
9946         copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
9947         (init_emit_regs): Initialize simple_return_rtx.
9948         * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
9949         force_nonfallthru_and_redirect.
9950         * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
9951         (GR_SIMPLE_RETURN): New enum value.
9952         (simple_return_rtx): New macro.
9953         * basic-block.h (force_nonfallthru_and_redirect): Adjust
9954         declaration.
9955         * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
9956         argument.  All callers changed.  Be careful about what kinds of
9957         returnjumps to generate.
9958         * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
9959         ix86_pad_short_function): Likewise.
9960         * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
9961         of return.
9962         * config/mips/mips.md (any_return): New code_iterator.
9963         (optab): Add cases for return and simple_return.
9964         (return): Expand to a simple_return.
9965         (simple_return): New pattern.
9966         (*<optab>, *<optab>_internal for any_return): New patterns.
9967         (return_internal): Remove.
9968         * config/mips/mips.c (mips_expand_epilogue): Make the last insn
9969         a simple_return_internal.
9970
9971 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
9972
9973         * config/i386/sse.md (*absneg<mode>2): Fix split condition.
9974         (vec_extract_lo_<mode>): Prevent both operands in memory.
9975         (vec_extract_lo_v16hi): Ditto.
9976         (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
9977
9978 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
9979
9980         * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
9981         (*sse2_mulv4si3): Ditto.
9982         (mulv2di3): Ditto.
9983         * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
9984         notes to REG_EQUAL.
9985
9986 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
9987
9988         PR target/50202
9989         * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
9990         when all outputs are unused.
9991         (sse4_2_pcmpistr): Ditto.
9992
9993 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
9994
9995         * config/i386/i386.md (round<mode>2): New expander.
9996         * config/i386/i386.c (enum ix86_builtins): Add
9997         IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
9998         (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
9999         descriptions.
10000         (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
10001         (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
10002
10003 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
10004
10005         PR middle-end/50083
10006         * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
10007         only when TARGET_C99_FUNCTIONS.
10008         <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
10009         <BUILT_IN_RINT{,F,L}>: Ditto.
10010
10011 2011-08-26  Michael Matz  <matz@suse.de>
10012             Jakub Jelinek  <jakub@redhat.com>
10013
10014         PR lto/50165
10015         * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
10016         don't call strlen twice, use memcpy.
10017
10018 2011-08-26  H.J. Lu  <hongjiu.lu@intel.com>
10019
10020         * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
10021         * config/i386/bmiintrin.h: Likewise.
10022         * config/i386/lzcntintrin.h: Likewise.
10023
10024         * config/i386/immintrin.h: Include <lzcntintrin.h>,
10025         <bmiintrin.h> and <bmi2intrin.h>.
10026
10027 2011-08-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10028
10029         PR target/50166
10030         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
10031         * configure: Regenerate.
10032
10033 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
10034
10035         PR c/50179
10036         * c-typeck.c (c_process_expr_stmt): Skip over nops and
10037         call mark_exp_read even if exprv is ADDR_EXPR.
10038
10039 2011-08-26  Richard Sandiford  <richard.sandiford@linaro.org>
10040
10041         * df-problems.c (df_note_bb_compute): Pass uses rather than defs
10042         to df_set_dead_notes_for_mw.
10043
10044 2011-08-26  Richard Guenther  <rguenther@suse.de>
10045
10046         * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
10047
10048 2011-08-26  Zdenek Dvorak  <ook@ucw.cz>
10049             Tom de Vries  <tom@codesourcery.com>
10050
10051         * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
10052         (struct ivopts_data): Add loop_single_exit_p field.
10053         (niter_for_exit): Change parameter desc_p into return value.  Return
10054         desc if desc->may_be_zero.  Free desc if unused.
10055         (niter_for_single_dom_exit): Change return type.
10056         (find_induction_variables): Handle changed return type of
10057         niter_for_single_dom_exit.  Dump may_be_zero.
10058         (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
10059         (set_use_iv_cost): Add and handle comp parameter.
10060         (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
10061         comp argument to set_use_iv_cost.
10062         (strip_wrap_conserving_type_conversions, expr_equal_p)
10063         (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
10064         (may_eliminate_iv): Add comp parameter.  Handle new return type of
10065         niter_for_exit.  Use loop_single_exit_p.  Use iv_elimination_compare_lt.
10066         (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
10067         and may_eliminate_iv.
10068         (rewrite_use_compare): Move call to iv_elimination_compare to ...
10069         (may_eliminate_iv): Here.
10070         (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
10071
10072 2011-08-26  Tom de Vries  <tom@codesourcery.com>
10073
10074         * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
10075         accessing TREE_TYPE.
10076
10077 2011-08-26  Jiangning Liu  <jiangning.liu@arm.com>
10078
10079         * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
10080         (*ior_scc_scc_cmp): Likewise
10081         (*and_scc_scc): Likewise.
10082         (*and_scc_scc_cmp): Likewise.
10083         (*and_scc_scc_nodom): Likewise.
10084         (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
10085
10086 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
10087
10088         * rtlanal.c (nonzero_bits1): Handle CLRSB.
10089
10090 2011-08-26  Richard Guenther  <rguenther@suse.de>
10091
10092         * expr.c (string_constant): Handle &MEM_REF.
10093
10094 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
10095
10096         * config/arm/arm.c (struct four_ints): New type.
10097         (count_insns_for_constant): Delete function.
10098         (find_best_start): Delete function.
10099         (optimal_immediate_sequence): New function.
10100         (optimal_immediate_sequence_1): New function.
10101         (arm_gen_constant): Move constant splitting code to
10102         optimal_immediate_sequence.
10103         Rewrite constant negation/invertion code.
10104
10105 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
10106
10107         * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
10108         * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
10109         Remove prototype. Remove static function type.
10110         * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
10111         Add arch attribute.
10112         * config/arm/constraints.md (Pj, PJ): New constraints.
10113
10114 2011-08-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10115
10116         * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
10117         ("cortex_a9_multiply_long"): New and use above.  Handle all
10118         long multiply cases.
10119         ("cortex_a9_multiply"): Handle smmul and smmulr.
10120         ("cortex_a9_mac"): Handle smmla.
10121
10122 2011-08-25  Richard Henderson  <rth@redhat.com>
10123
10124         PR 50132
10125         PR 49864
10126         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
10127         non-constant stack adjutment.
10128         * expr.c (find_args_size_adjust): Break out from ...
10129         (fixup_args_size_notes): ... here.
10130         * rtl.h (find_args_size_adjust): Declare.
10131
10132 2011-08-25  Uros Bizjak  <ubizjak@gmail.com>
10133
10134         * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
10135         sse4 and sse4_noavx.
10136         (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
10137         (*pushdf_rex64): Change Y2 register constraint to x.
10138         (*movdf_internal_rex64): Ditto.
10139         (*zero_extendsidi2_rex64): Ditto.
10140         (*movdi_internal): Change Y2 register constraint to x
10141         and update "isa" attribute.
10142         (*pushdf): Ditto.
10143         (*movdf internal): Ditto.
10144         (zero_extendsidi2_1): Ditto.
10145         (*truncdfdf_mixed): Ditto.
10146         (*truncxfdf2_mixed): Ditto.
10147         * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
10148         register constraint to x.
10149         (*movv2sf_internal_rex64): Ditto.
10150         (*mov<mode>_internal): Change Y2 register constraint to x
10151         and add "isa" attribute.
10152         (*movv2sf_internal): Ditto.
10153         (*vec_extractv2si_1): Ditto.
10154         * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
10155         constraints to x and update "isa" attribute.
10156         (*vec_interleave_highv2df): Change Y3 registerconstraint
10157         to x and update "isa" attribute.
10158         (*vec_interleave_lowv2df): Ditto.
10159         (*vec_concatv2df): Change Y2 register constraint to x and
10160         update "isa" attribute.
10161         (sse2_loadld): Ditto.
10162         (*vec_extractv2di_1): Ditto.
10163         (*vec_dupv4si): Ditto.
10164         (*vec_dupv2di): Ditto.
10165         (*vec_concatv4si): Ditto.
10166         (vec_concatv2di): Ditto.
10167         * config/i386/constraints.md (Y2): Remove.
10168         (Y3): Ditto.
10169         (Y4): Ditto.
10170
10171 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
10172
10173         * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
10174         dump_def_use_chain): Don't declare.
10175         (mark_conflict, create_new_chain): Move before users.
10176         (regrename_optimize): Move to near end of file.
10177
10178 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
10179
10180         * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
10181         (secondary_input_reload_class): Remove Prototype.
10182         * config/avr/avr.c (byte_immediate_operand): Remove Function.
10183         * config/avr/avr.md (setmemhi): Use u8_operand.
10184         (strlenhi): Use const0_rtx for comparison.
10185         * config/avr/avr.h (avr_reg_order): Remove Declaration.
10186
10187 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
10188
10189         * config/avr/avr.c (reg_class_tab): Make local to
10190         avr_regno_reg_class.  Return smallest register class available.
10191
10192 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
10193
10194         * config/avr/avr.c (STR_PREFIX_P): New Define.
10195         (avr_asm_declare_function_name): Use it.
10196         (avr_asm_named_section): Use it.
10197         (avr_section_type_flags): Use it.
10198
10199 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
10200
10201         * doc/md.texi (automata_option): Document collapse-ndfa.
10202         * genautomata.c (COLLAPSE_OPTION): New macro.
10203         (collapse_flag): New static variable.
10204         (struct description): New member normal_decls_num.
10205         (struct automaton): New members advance_ainsn and collapse_ainsn.
10206         (gen_automata_option): Check for COLLAPSE_OPTION.
10207         (collapse_ndfa_insn_decl): New static variable.
10208         (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
10209         (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
10210         (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
10211         necessary.  Use normal_decls_num rather than decls_num, remove
10212         test for special decls.
10213         (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
10214         (make_automaton); Likewise.  Use the new advance_cycle_insn member
10215         of struct automaton.
10216         (create_composed_state): Disallow advance-cycle arcs if collapse_flag
10217         is set.
10218         (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
10219         transition.  Create the necessary transitions for it.
10220         (create_ainsns): Return void.  Take an automaton_t argument, and
10221         update its ainsn_list, advance_ainsn and collapse_ainsn members.  All
10222         callers changed.
10223         (COLLAPSE_NDFA_VALUE_NAME): New macro.
10224         (output_tables): Output code to define it.
10225         (output_internal_insn_code_evaluation): Output code to accept
10226         const0_rtx as collapse-ndfa transition.
10227         (output_default_latencies, output_print_reservation_func,
10228         output_print_description): Reorganize loops to use normal_decls_num
10229         as loop bound; remove special case for advance_cycle_insn_decl.
10230         (initiate_automaton_gen): Handle COLLAPSE_OPTION.
10231         (check_automata_insn_issues): Check for collapse_ainsn.
10232         (expand_automate): Allocate sufficient space.  Initialize
10233         normal_decls_num.
10234
10235 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
10236
10237         * config/avr/avr.md: Fix indentation from r177991.
10238
10239 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
10240
10241         * regrename.c (struct du_head): Remove member terminated.
10242         (create_new_chain): Don't initialize it.
10243         (scan_rtx_reg): Don't set or test it, test the open_chains_set
10244         bitmap instead.
10245         (tick, this_tick): New global variables, moved out of
10246         regrename_optimize.
10247         (current_id, open_chains, closed_chains, open_chains_set,
10248         live_in_chains, live_hard_regs): Reorder declarations.
10249         (dump_def_use_chain): Move function earlier in the file.
10250         (rename_chains): New static function, broken out of
10251         regrename_optimize.
10252         (regrename_optimize): Use it.  Remove #if 0'ed code.
10253
10254 2011-08-25  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10255
10256         * varasm.c: (default_binds_local_p_1): Commentary typo fix.
10257
10258 2011-08-24  H.J. Lu  <hongjiu.lu@intel.com>
10259
10260         PR target/50172
10261         * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
10262
10263 2011-08-24  Richard Guenther  <rguenther@suse.de>
10264
10265         * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
10266         ref in the basic-block case.  Move stripping array-refs
10267         to the place we create an access-function for it.  Remove
10268         bogus stripping down a MEM_REF to its base.
10269
10270 2011-08-24  Richard Guenther  <rguenther@suse.de>
10271
10272         * fold-const.c (fold_comparison): Fold &a < &a + 4 even
10273         with -fno-strict-overflow.
10274
10275 2011-08-24  Richard Guenther  <rguenther@suse.de>
10276
10277         * tree-vectorizer.c (vect_print_dump_info): Avoid the
10278         file and location clutter when dumping to dump files.
10279
10280 2011-08-24  Simon Baldwin  <simonb@google.com>
10281
10282         * gengtype-state.c (write_state): Remove timestamped header line.
10283
10284 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
10285
10286         * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
10287         (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
10288         (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
10289         (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
10290         (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
10291         (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
10292         (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
10293         rules.
10294         (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
10295
10296 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
10297
10298         * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
10299
10300 2011-08-24  Richard Guenther  <rguenther@suse.de>
10301
10302         PR tree-optimization/50067
10303         * tree-data-ref.c (dr_analyze_indices): Do not add an access
10304         function for a MEM_REF base that has no evolution in the loop
10305         nest or that is not analyzable.
10306
10307 2011-08-23  Vladimir Makarov  <vmakarov@redhat.com>
10308
10309         * ira.c (ira_init_register_move_cost): Check small subclasses
10310         through ira_reg_class_max_nregs and ira_available_class_regs.
10311
10312 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
10313
10314         * config/i386/constraints.md (Yp): New register constraint.
10315         * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
10316         Yp register constraint.
10317         (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
10318         (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
10319         (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
10320
10321 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
10322
10323         * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
10324
10325 2011-08-23  Mark Heffernan  <meheff@google.com>
10326
10327         PR middle-end/38509
10328         * common.opt (Wfree-nonheap-object): New option.
10329         * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
10330         * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
10331         to warning.
10332         (expand_builtin): Make warning conditional.
10333
10334 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
10335
10336         * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
10337         (length_immediate): Handle imulx, ishiftx and rotatex.
10338         (imm_disp): Ditto.
10339         (isa): Add bmi2.
10340         (enabled): Handle bmi2.
10341         (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
10342         (*umul<mode><dwi>3): Ditto.  Add imulx BMI2 alternative.
10343         (*bmi2_umulditi3_1): New insn pattern.
10344         (*bmi2_umulsidi3_1): Ditto.
10345         (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
10346         (*bmi2_ashl<mode>3_1): New insn pattern.
10347         (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
10348         (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
10349         (*bmi2_ashlsi3_1_zext): New insn pattern.
10350         (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
10351         (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
10352         (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
10353         (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
10354         (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
10355         flags dependency.
10356         (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
10357         (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
10358         (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
10359         flags dependency.
10360         (*bmi2_rorx<mode>3_1): New insn pattern.
10361         (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
10362         (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
10363         (*rotatert<mode>3_1 splitter): Ditto.
10364         (*bmi2_rorxsi3_1_zext): New insn pattern.
10365         (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
10366         (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
10367         (*rotatertsi3_1_zext splitter): Ditto.
10368
10369 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
10370
10371         * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
10372         (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
10373         (ix86_handle_option): Handle OPT_mbmi2 case.
10374         * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
10375         (x86_64-*-*): Likewise.
10376         * config/i386/bmi2intrin.h: New file.
10377         * config/i386/cpuid.h (bit_BMI2): New.
10378         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
10379         BMI2 feature.
10380         * config/i386/i386-c.c (ix86_target_macros_internal):
10381         Conditionally define __BMI2__.
10382         * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
10383         Handle BMI2 option.
10384         (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
10385         (print_reg): New code.
10386         (ix86_print_operand): Likewise.
10387         (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
10388         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
10389         IX86_BUILTIN_PEXT64.
10390         (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
10391         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
10392         IX86_BUILTIN_PEXT64.
10393         * config/i386/i386.h (TARGET_BMI2): New.
10394         * config/i386/i386.md (UNSPEC_PDEP): New.
10395         (UNSPEC_PEXT): Likewise.
10396         (*bmi2_bzhi_<mode>3): Likewise.
10397         (*bmi2_pdep_<mode>3): Likewise.
10398         (*bmi2_pext_<mode>3): Likewise.
10399         * config/i386/i386.opt (mbmi2): New.
10400         * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
10401         is defined.
10402         * doc/extend.texi: Document BMI2 built-in functions.
10403         * doc/invoke.texi: Document -mbmi2.
10404
10405 2011-08-23  Jakub Jelinek  <jakub@redhat.com>
10406
10407         PR middle-end/50161
10408         * simplify-rtx.c (simplify_const_unary_operation): If
10409         op is CONST_INT, don't look at op_mode, but use instead mode.
10410         * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
10411         CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
10412         operation and TRUNCATE/ZERO_EXTEND if needed.
10413         * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
10414         Document that operand mode must be same as operation mode,
10415         or VOIDmode.
10416         * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
10417         *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
10418         *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
10419         *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
10420         use the mode of operand for the operation and add truncate
10421         or zero_extend around if needed.
10422         * config/c6x/c6x.md (ctzdi2): Likewise.
10423         * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
10424
10425 2011-08-12  Michael Matz  <matz@suse.de>
10426
10427         * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
10428         (gimple_expand_cfg): Merge alignment info for coalesced pointer
10429         SSA names.
10430
10431 2011-08-23  Richard Guenther  <rguenther@suse.de>
10432
10433         * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
10434         * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
10435         * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
10436         from ...
10437         * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
10438         (mem_refs_may_alias_p): Adjust.
10439         * tree-data-ref.h (dr_may_alias_p): Adjust.
10440         * tree-data-ref.c: Include tree-affine.h.
10441         (dr_analyze_indices): Do nothing for the non-loop case.
10442         (dr_may_alias_p): Distinguish loop and non-loop case.  Disambiguate
10443         more cases in the non-loop case.
10444         * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
10445         calls to dr_may_alias_p.
10446         (write_alias_graph_to_ascii_ecc): Likewise.
10447         (write_alias_graph_to_ascii_dot): Likewise.
10448         (build_alias_set_optimal_p): Likewise.
10449
10450 2011-08-23  Richard Guenther  <rguenther@suse.de>
10451
10452         PR tree-optimization/50162
10453         * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
10454
10455 2011-08-23  Richard Guenther  <rguenther@suse.de>
10456
10457         * tree-data-ref.c (dr_analyze_indices): Add comments, handle
10458         REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
10459         (create_data_ref): Also dump access functions for the created data-ref.
10460
10461 2011-08-22  Uros Bizjak  <ubizjak@gmail.com>
10462             Kirill Yukhin  <kirill.yukhin@intel.com>
10463
10464         PR target/50155
10465         * config/i386/sse.md (VI_AVX2): New.
10466         (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
10467         (*<plusminus_insn><mode>3): Ditto.
10468         (<sse2_avx2>_andnot<mode>3): Ditto.
10469         (*andnot<mode>3): Fix order of cond operands.
10470         Add asserts for correct TARGET_xxx.
10471         (*<any_logic:code><mode>3): Ditto.
10472
10473 2011-08-22  Anatoly Sokolov  <aesok@post.ru>
10474
10475         * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
10476         * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
10477         * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
10478         regclass argument type to reg_class_t. Change 'max' and 'v' vars
10479         and return types to unsigned char. Use reg_class_contents instead
10480         of class_contents.
10481         (TARGET_CLASS_MAX_NREGS): Define.
10482
10483 2011-08-22  Bernd Schmidt  <bernds@codesourcery.com>
10484
10485         * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
10486         to make computed_jump_p return true.
10487
10488 2011-08-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10489
10490         * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
10491         (PICFLAG_FOR_TARGET): Substitute.
10492         * aclocal.m4: Regenerate.
10493         * configure: Regenerate.
10494
10495 2011-08-22  Dodji Seketeli  <dodji@redhat.com>
10496
10497         * c-family/c-pch.c (c_common_read_pch): Re-set line table right
10498         after reading in the pch.
10499
10500 2011-08-22  H.J. Lu  <hongjiu.lu@intel.com>
10501
10502         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
10503         * configure: Regenerated.
10504
10505 2011-08-22  Jakub Jelinek  <jakub@redhat.com>
10506
10507         PR tree-optimization/50133
10508         * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
10509         from stmt instead of some statement around gsi.
10510
10511         PR middle-end/50141
10512         * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
10513         innerdecl is a VAR_DECL.
10514
10515 2011-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
10516
10517         * config/i386/avx2intrin.h: New file.
10518         * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
10519         PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
10520         V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
10521         V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
10522         V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
10523         V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
10524         V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
10525         V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
10526         V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
10527         V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
10528         V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
10529         V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
10530         V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
10531         V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
10532         V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
10533         V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
10534         V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
10535         V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
10536         VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
10537         VOID_FTYPE_PV8SI_V8SI_V8SI,
10538         V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
10539         V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
10540         V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
10541         V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
10542         V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
10543         V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
10544         V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
10545         V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
10546         V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
10547         V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
10548         V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
10549         V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
10550         V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
10551         V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
10552         V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
10553         V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
10554         V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
10555         V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
10556         V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
10557         V4DI_FTYPE_V4DI_INT_CONVERT,
10558         V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
10559         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
10560         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
10561         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
10562         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
10563         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
10564         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
10565         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
10566         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
10567         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
10568         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
10569         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
10570         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
10571         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
10572         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
10573         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
10574         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
10575         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
10576         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
10577         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
10578         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
10579         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
10580         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
10581         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
10582         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
10583         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
10584         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
10585         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
10586         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
10587         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
10588         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
10589         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
10590         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
10591         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
10592         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
10593         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
10594         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
10595         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
10596         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
10597         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
10598         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
10599         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
10600         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
10601         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
10602         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
10603         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
10604         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
10605         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
10606         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
10607         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
10608         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
10609         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
10610         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
10611         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
10612         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
10613         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
10614         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
10615         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
10616         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
10617         IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
10618         IX86_BUILTIN_VBROADCASTSS_PS256,
10619         IX86_BUILTIN_VBROADCASTSD_PD256,
10620         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
10621         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
10622         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
10623         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
10624         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
10625         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
10626         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
10627         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
10628         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
10629         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
10630         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
10631         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
10632         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
10633         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
10634         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
10635         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
10636         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
10637         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
10638         IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
10639         IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
10640         IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
10641         IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
10642         IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
10643         IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
10644         IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
10645         IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
10646         (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
10647         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
10648         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
10649         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
10650         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
10651         (bdesc_args): Add  IX86_BUILTIN_MPSADBW256,
10652         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
10653         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
10654         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
10655         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
10656         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
10657         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
10658         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
10659         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
10660         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
10661         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
10662         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
10663         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
10664         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
10665         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
10666         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
10667         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
10668         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
10669         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
10670         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
10671         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
10672         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
10673         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
10674         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
10675         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
10676         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
10677         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
10678         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
10679         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
10680         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
10681         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
10682         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
10683         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
10684         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
10685         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
10686         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
10687         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
10688         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
10689         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
10690         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
10691         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
10692         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
10693         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
10694         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
10695         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
10696         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
10697         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
10698         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
10699         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
10700         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
10701         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
10702         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
10703         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
10704         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
10705         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
10706         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
10707         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
10708         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
10709         IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
10710         IX86_BUILTIN_VBROADCASTSD_PD256,
10711         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
10712         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
10713         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
10714         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
10715         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
10716         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
10717         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
10718         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
10719         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
10720         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
10721         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
10722         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
10723         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
10724         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
10725         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
10726         IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
10727         IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
10728         IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
10729         IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
10730         IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
10731         IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
10732         IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
10733         IX86_BUILTIN_GATHERDIV8SI.
10734         (ix86_preferred_simd_mode): Support AVX2 modes.
10735         (ix86_expand_args_builtin): Support AVX2 builtins.
10736         (ix86_expand_special_args_builtin): Likewise.
10737         (ix86_expand_builtin): Likewise.
10738         * config/i386/i386.md (UNSPEC_VPERMSI): New.
10739         (UNSPEC_VPERMDF): Likewise.
10740         (UNSPEC_VPERMSF): Likewise.
10741         (UNSPEC_VPERMDI): Likewise.
10742         (UNSPEC_VPERMTI): Likewise.
10743         (UNSPEC_GATHER): Likewise.
10744         (ssemodesuffix): Extend.
10745         * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
10746         is defined.
10747         * config/i386/predicates.md (const1248_operand): New.
10748         * config/i386/sse.md (VI1_AVX2): New mode iterator.
10749         (VI2_AVX2): Likewise.
10750         (VI4_AVX2): Likewise.
10751         (VI8_AVX2): Likewise.
10752         (VIMAX_AVX2): Likewise.
10753         (SSESCALARMODE): Likewise.
10754         (VI12_AVX2): Likewise.
10755         (VI24_AVX2): Likewise.
10756         (VI124_AVX2): Likewise.
10757         (VI248_AVX2): Likewise.
10758         (VI48_AVX2): Likewise.
10759         (VI4SD_AVX2): Likewise.
10760         (V48_AVX2): Likewise.
10761         (AVX256MODE2P): Likewise.
10762         (AVXMODE48P_DI): Likewise.
10763         (sse2_avx2): New mode attribute.
10764         (ssse3_avx2): Likewise.
10765         (sse4_1_avx2): Likewise.
10766         (avx_avx2): Likewise.
10767         (ssebytemode): Likewise.
10768         (AVXTOSSEMODE): Likewise.
10769         (AVXMODE48P_DI): Likewise.
10770         (gthrfirstp): Likewise.
10771         (gthrlastp): Likewise.
10772         (lshift): New code_iterator
10773         (lshift): New code attribute.
10774         (lshift): Likewise.
10775         (ssescalarmodesuffix): Update.
10776         (sseunpackmode): Likewise.
10777         (ssepackmode): Likewise.
10778         (avx2_vec_dupv4sf): New insn pattern.
10779         (avx2_vec_dupv8sf): Likewise.
10780         (avx2_interleave_highv4di): Likewise.
10781         (avx2_interleave_lowv4di): Likewise.
10782         (avx2_umulv4siv4di3): Likewise
10783         (*avx2_umulv4siv4di3): Likewise
10784         (avx2_pmaddwd): Likewise.
10785         (*avx2_pmaddwd): Likewise.
10786         (avx2_lshrqv4di3): Likewise.
10787         (avx2_lshlqv4di3): Likewise.
10788         (avx2_lshl<mode>3): Likewise.
10789         (avx2_<umaxmin:code><mode>3): Likewise.
10790         (*avx2_<umaxmin:code><mode>3): Likewise.
10791         (avx2_<smaxmin:code><mode>3): Likewise.
10792         (*avx2_<smaxmin:code><mode>3): Likewise.
10793         (avx2_eq<mode>3): Likewise.
10794         (*avx2_eq<mode>3): Likewise.
10795         (avx2_gt<mode>3): Likewise.
10796         (avx2_interleave_highv32qi): New.
10797         (avx2_interleave_lowv32qi): Likewise.
10798         (avx2_interleave_highv16hi): Likewise.
10799         (avx2_interleave_lowv16hi): Likewise.
10800         (avx2_interleave_highv8si): Likewise.
10801         (avx2_interleave_lowv8si): Likewise.
10802         (avx2_pshufd): Likewise.
10803         (avx2_pshufd_1): Likewise.
10804         (avx2_pshuflwv3): Likewise.
10805         (avx2_pshuflw_1): Likewise.
10806         (avx2_pshufhwv3): Likewise.
10807         (avx2_pshufhw_1): Likewise.
10808         (avx2_uavgv32qi3): Likewise.
10809         (*avx2_uavgv32qi3): Likewise.
10810         (avx2_uavgv16hi3): Likewise.
10811         (*avx2_uavgv16hi3): Likewise.
10812         (avx2_pmovmskb): Likewise.
10813         (avx2_phaddwv16hi3): Likewise.
10814         (avx2_phadddv8si3): Likewise.
10815         (avx2_phaddswv16hi3): Likewise.
10816         (avx2_phsubwv16hi3): Likewise.
10817         (avx2_phsubdv8si3): Likewise.
10818         (avx2_phsubswv16hi3): Likewise.
10819         (avx2_pmaddubsw256): Likewise.
10820         (avx2_umulhrswv16hi3): Likewise.
10821         (*avx2_umulhrswv16hi3): Likewise.
10822         (avx2_packusdw): Likewise.
10823         (avx2_pblendd<mode>): Likewise.
10824         (avx2_<code>v16qiv16hi2): Likewise.
10825         (avx2_<code>v8qiv8si2): Likewise.
10826         (avx2_<code>v8hiv8si2): Likewise.
10827         (avx2_<code>v4qiv4di2): Likewise.
10828         (avx2_<code>v4hiv4di2): Likewise.
10829         (avx2_<code>v4siv4di2): Likewise.
10830         (avx2_pbroadcast<mode>): Likewise.
10831         (avx2_permvarv8si): Likewise.
10832         (avx2_permv4df): Likewise.
10833         (avx2_permvarv8sf): Likewise.
10834         (avx2_permv4di): Likewise.
10835         (avx2_permv2ti): Likewise.
10836         (avx2_vec_dupv4df): Likewise.
10837         (avx2_vbroadcasti128_<mode>): Likewise.
10838         (avx2_vec_set_lo_v4di): Likewise.
10839         (avx2_vec_set_hi_v4di): Likewise.
10840         (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
10841         (avx2_extracti128): Likewise.
10842         (avx2_inserti128): Likewise.
10843         (avx2_ashrvv8si): Likewise.
10844         (avx2_ashrvv4si): Likewise.
10845         (avx2_<lshift>vv8si): Likewise.
10846         (avx2_<lshift>v<mode>): Likewise.
10847         (avx2_<lshift>vv2di): Likewise.
10848         (avx2_gathersi<mode>): Likewise.
10849         (*avx2_gathersi<mode>): Likewise.
10850         (avx2_gatherdi<mode>): Likewise.
10851         (*avx2_gatherdi<mode>): Likewise.
10852         (avx2_gatherdi<mode>256): Likewise.
10853         (*avx2_gatherdi<mode>256): Likewise.
10854         (<plusminus_insn><mode>3): Use VI mode iterator.
10855         (*<plusminus_insn><mode>3): Use VI mode iterator.
10856         (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
10857         sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
10858         (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
10859         *sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
10860         (mul<mode>3): Rename from mulv8hi3.  Use VI2_AVX2 mode iterator.
10861         (*mul<mode>3): Rename from *mulv8hi3.  Use VI2_AVX2 mode iterator.
10862         (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
10863         Use VI2_AVX2 mode iterator.
10864         (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
10865         Use VI2_AVX2 mode iterator.
10866         (mul<mode>3): Rename from mulv4si3.  Use VI4_AVX2 mode iterator.
10867         (*mul<mode>3): Rename from *mulv4si3.  Use VI4_AVX2 mode iterator.
10868         (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
10869         Use VI4_AVX2 mode iterator.
10870         (ashr<mode>3): Use VI24_AVX2 mode iterator.
10871         (lshr<mode>3): Use VI248_AVX2 mode iterator.
10872         (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
10873         Use VIMAX_AVX2 mode iterator.
10874         (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
10875         Use VI mode iterator.
10876         (*andnot<mode>3): Update for AVX2.
10877         (*<any_logic:code><mode>3): Likewise.
10878         (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
10879         Use VI1_AVX mode iterator.
10880         (<sse2_avx2>_packssdw):  Rename from sse2_packssdw.
10881         Use VI2_AVX mode iterator.
10882         (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
10883         Use VI1_AVX mode iterator.
10884         (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
10885         Use VI8_AVX2 mode iterator.
10886         (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
10887         Use VI1_AVX2 mode iterator.
10888         (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
10889         Use VI124_AVX2 mode iterator.
10890         (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
10891         Use SSESCALARMODE mode iterator.
10892         (abs<mode>2): Use VI124_AVX2 mode iterator.
10893         (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
10894         Use VI8_AVX2 mode iterator.
10895         (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
10896         Use VI1_AVX2 mode iterator.
10897         (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
10898         Use VI1_AVX2 mode iterator.
10899         (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
10900         Use VI2_AVX2 mode iterator.
10901         (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
10902         avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
10903         (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
10904         avx_maskstore<ssemodesuffix><avxsizesuffix>.
10905         Use V48_AVX2 mode iterator.
10906         * doc/extend.texi: Document AVX2 built-in functions.
10907         * doc/invoke.texi: Document -mavx2.
10908
10909 2011-08-22  Matthias Klose <doko@debian.org>
10910
10911         Revert:
10912         2011-07-11  Arthur Loiret  <aloiret@debian.org>
10913                     Matthias Klose <doko@debian.org>
10914         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
10915         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
10916         convention.
10917         * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
10918
10919 2011-08-22  Mikael Pettersson  <mikpe@it.uu.se>
10920
10921         PR bootstrap/50146
10922         * ira-color.c (assign_hard_reg): Move saved_nregs declaration
10923         to #ifndef HONOR_REG_ALLOC_ORDER block.
10924
10925 2011-08-21  Richard Henderson  <rth@redhat.com>
10926
10927         * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
10928         * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
10929         * resource.c (next_insn_no_annul): Likewise.
10930         (mark_set_resources): Likewise.
10931         * reorg.c (delete_from_delay_slot): Likewise.
10932         (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
10933         (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
10934
10935 2011-08-21  Uros Bizjak  <ubizjak@gmail.com>
10936
10937         * config/i386/i386.md (any_div): Remove.
10938         (sgnprefix): Update for removal.
10939         (u): Ditto.
10940
10941 2011-08-20  Vladimir Makarov  <vmakarov@redhat.com>
10942
10943         * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
10944         for ira_reg_class_max_nregs.  Increase pressure by 1.
10945         (mark_pseudo_regno_subword_dead): Use allocno class
10946         for ira_reg_class_max_nregs.
10947
10948 2011-08-20  Richard Henderson  <rth@redhat.com>
10949
10950         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
10951         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
10952         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
10953         config/c6x/ltf.c: Adjust include path for soft-fp.
10954
10955 2011-08-20  H.J. Lu  <hongjiu.lu@intel.com>
10956
10957         PR other/46770
10958         * config.gcc (tm_file): Add initfini-array.h if
10959         .init_arrary/.fini_array are supported.
10960
10961         * crtstuff.c: Don't generate .ctors nor .dtors sections if
10962         USE_INITFINI_ARRAY is defined.
10963
10964         * output.h (default_elf_init_array_asm_out_constructor): New.
10965         (default_elf_fini_array_asm_out_destructor): Likewise.
10966         * varasm.c (elf_init_array_section): Likewise.
10967         (elf_fini_array_section): Likewise.
10968         (get_elf_initfini_array_priority_section): Likewise.
10969         (default_elf_init_array_asm_out_constructor): Likewise.
10970         (default_elf_fini_array_asm_out_destructor): Likewise.
10971
10972         * config/initfini-array.h: New.
10973
10974 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
10975
10976         * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
10977         OK for ST_REGS and FP_REGS before taking those classes into account.
10978
10979 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
10980
10981         * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
10982         before checking for annulled branches.
10983
10984 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
10985
10986         * config/i386/i386.c (ix86_binary_operator_ok): Use
10987         satisfies_constraint_L.
10988
10989 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
10990             Michael Matz  <matz@suse.de>
10991
10992         * config/i386/i386.c (ix86_expand_round_sse4): Expand as
10993         trunc (a + copysign (nextafter (0.5, 0.0), a)).
10994
10995 2011-08-20  Anatoly Sokolov  <aesok@post.ru>
10996
10997         * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10998         * doc/tm.texi: Regenerate.
10999         * targhooks.c (default_preferred_output_reload_class): Don't use
11000         PREFERRED_OUTPUT_RELOAD_CLASS macro.
11001         * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
11002
11003 2011-08-20  Jakub Jelinek  <jakub@redhat.com>
11004
11005         PR tree-optimization/48739
11006         * tree-ssa.c: Include cfgloop.h.
11007         (execute_update_addresses_taken): When updating ssa, if in loop closed
11008         SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
11009         * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
11010
11011 2011-08-19  Vladimir Makarov  <vmakarov@redhat.com>
11012
11013         PR rtl-optimization/49936
11014         * ira.c (ira_init_register_move_cost): Ignore too small subclasses
11015         for calculation of max register move costs.
11016
11017 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
11018
11019         * c-parser.c (c_parser_postfix_expression): Convert operands of
11020         __builtin_complex to their semantic types.
11021
11022 2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
11023
11024         PR middle-end/49721
11025         * explow.c (convert_memory_address_addr_space): Also permute the
11026         conversion and addition of constant for zero-extend.
11027
11028 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
11029
11030         * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
11031         * doc/extend.texi (__builtin_complex): Document.
11032
11033 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
11034
11035         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
11036         beyond conversions.
11037         (convert_mult_to_widen): Convert constant inputs to the right type.
11038         (convert_plusminus_to_widen): Don't automatically reject inputs that
11039         are not an SSA_NAME.
11040         Convert constant inputs to the right type.
11041
11042 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
11043
11044         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
11045         to the correct type.
11046
11047 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
11048
11049         * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
11050         unsigned inputs of different modes.
11051         (convert_plusminus_to_widen): Likewise.
11052
11053 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
11054
11055         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
11056         'type'.
11057         Use 'type' from caller, not inferred from 'rhs'.
11058         Don't reject non-conversion statements. Do return lhs in this case.
11059         (is_widening_mult_p): Add new argument 'type'.
11060         Use 'type' from caller, not inferred from 'stmt'.
11061         Pass type to is_widening_mult_rhs_p.
11062         (convert_mult_to_widen): Pass type to is_widening_mult_p.
11063         (convert_plusminus_to_widen): Likewise.
11064
11065 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
11066
11067         * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
11068         Ensure the the larger type is the first operand.
11069
11070 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
11071
11072         * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
11073         unsupported unsigned multiplies to signed.
11074         (convert_plusminus_to_widen): Likewise.
11075
11076 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
11077
11078         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
11079         conversion statement separating multiply-and-accumulate.
11080
11081 2011-08-19  Richard Guenther  <rguenther@suse.de>
11082
11083         PR tree-optimization/50067
11084         * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
11085         offset only if we accounted for it.
11086
11087 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
11088
11089         * config/arm/arm.md (maddhidi4): Remove '*' from name.
11090         * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
11091         * optabs.c (find_widening_optab_handler_and_mode): New function.
11092         (expand_widen_pattern_expr): Use find_widening_optab_handler.
11093         (expand_binop_directly): Likewise.
11094         (expand_binop): Likewise.
11095         * optabs.h (find_widening_optab_handler): New macro define.
11096         (find_widening_optab_handler_and_mode): New prototype.
11097         * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
11098         type precision rules.
11099         (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
11100         * tree-ssa-math-opts.c (build_and_insert_cast): New function.
11101         (is_widening_mult_rhs_p): Allow widening by more than one mode.
11102         Explicitly disallow mis-matched input types.
11103         (convert_mult_to_widen): Use find_widening_optab_handler, and cast
11104         input types to fit the new handler.
11105         (convert_plusminus_to_widen): Likewise.
11106
11107 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
11108
11109         * expr.c (expand_expr_real_2): Use widening_optab_handler.
11110         * genopinit.c (optabs): Use set_widening_optab_handler for $N.
11111         (gen_insn): $N now means $a must be wider than $b, not consecutive.
11112         * optabs.c (widened_mode): New function.
11113         (expand_widen_pattern_expr): Use widening_optab_handler.
11114         (expand_binop_directly): Likewise.
11115         (expand_binop): Likewise.
11116         * optabs.h (widening_optab_handlers): New struct.
11117         (optab_d): New member, 'widening'.
11118         (widening_optab_handler): New function.
11119         (set_widening_optab_handler): New function.
11120         * tree-ssa-math-opts.c (convert_mult_to_widen): Use
11121         widening_optab_handler.
11122         (convert_plusminus_to_widen): Likewise.
11123
11124 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
11125
11126         * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
11127         pedantic.
11128         * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
11129         * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
11130
11131 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
11132
11133         * opth-gen.awk: Do not declare target save/restore structures and
11134         functions if IN_RTS defined.
11135
11136 2011-08-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
11137
11138         PR target/49437
11139         * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
11140         when stack was realigned in interrupt handler prologue.
11141
11142 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
11143
11144         * c-decl.c (shadow_tag_warned): Check for _Noreturn.
11145         (quals_from_declspecs): Assert _Noreturn not present.
11146         (grokdeclarator): Handle _Noreturn.
11147         (build_null_declspecs): Initialize noreturn_p.
11148         (declspecs_add_scspec): Handle RID_NORETURN.
11149         * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
11150         (c_parser_attributes): Handle RID_NORETURN.
11151         * c-tree.h (struct c_declspecs): Add noreturn_p.
11152         * ginclude/stdnoreturn.h: New.
11153         * Makefile.in (USER_H): Add stdnoreturn.h.
11154
11155 2011-08-18  Kirill Yukhin  <kirill.yukhin@intel.com>
11156
11157         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
11158         (OPTION_MASK_ISA_AVX_UNSET): Update.
11159         (OPTION_MASK_ISA_AVX2_UNSET): New.
11160         (ix86_handle_option): Handle OPT_mavx2 case.
11161         * config/i386/cpuid.h (bit_AVX2): New.
11162         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
11163         AVX2 feature.
11164         * config/i386/i386-c.c (ix86_target_macros_internal):
11165         Conditionally define __AVX2__.
11166         * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
11167         Define "core-avx2" processor alias.  Handle avx2 option.
11168         (ix86_valid_target_attribute_inner_p): Handle avx2 option.
11169         * config/i386/i386.h (TARGET_AVX2): New.
11170         * config/i386/i386.opt (mavx2): New.
11171         * doc/invoke.texi: Document -mavx2.
11172
11173 2011-08-18  Vladimir Makarov  <vmakarov@redhat.com>
11174
11175         PR rtl-optimization/49890
11176         * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
11177         subclasses of class which is superset of a pressure class.
11178
11179 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
11180             Igor Zamyatin <igor.zamyatin@intel.com>
11181
11182         * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
11183         with HOST_WIDE_INT for isa_flag.
11184         (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
11185         isa variables.
11186
11187         * config/i386/i386.c (ix86_target_string): Replace int with
11188         HOST_WIDE_INT for isa.  Use HOST_WIDE_INT_PRINT to print isa.
11189         (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
11190         (pta_flags): Removed.
11191         (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
11192         (pta): Use HOST_WIDE_INT on flags.
11193         (builtin_isa): Use HOST_WIDE_INT on isa.
11194         (ix86_add_new_builtins): Likewise.
11195         (def_builtin): Use HOST_WIDE_INT on mask.
11196         (def_builtin_const): Likewise.
11197         (builtin_description): Likewise.
11198
11199         * config/i386/i386.opt (ix86_isa_flags): Replace int with
11200         HOST_WIDE_INT.
11201         (ix86_isa_flags_explicit): Likewise.
11202         (x_ix86_isa_flags_explicit): Likewise.
11203
11204 2011-08-17  Vladimir Makarov  <vmakarov@redhat.com>
11205
11206         PR rtl-optimization/50107
11207         * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
11208         (ira_hard_reg_in_set_p): New.
11209
11210         * ira-color.c (calculate_saved_nregs): New.
11211         (assign_hard_reg): Use it.  Set up allocated_hard_reg_p for all
11212         hard regs.
11213         (allocno_reload_assign, fast_allocation): Use
11214         ira_hard_reg_set_intersection_p instead of
11215         ira_hard_reg_not_in_set_p.
11216
11217         * ira.c (setup_reg_renumber): Use
11218         ira_hard_reg_set_intersection_p instead of
11219         ira_hard_reg_not_in_set_p.
11220         (setup_allocno_assignment_flags, calculate_allocation_cost): Use
11221         ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
11222
11223         * ira-costs.c (ira_tune_allocno_costs): Use
11224         ira_hard_reg_set_intersection_p instead of
11225         ira_hard_reg_not_in_set_p.
11226
11227 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
11228             Igor Zamyatin <igor.zamyatin@intel.com>
11229
11230         * hwint.h (HOST_WIDE_INT_1): New.
11231
11232         * opt-functions.awk (switch_bit_fields): Initialize the
11233         host_wide_int field.
11234         (host_wide_int_var_name): New.
11235         (var_type_struct): Check and return HOST_WIDE_INT.
11236
11237         * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
11238
11239         * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
11240
11241         * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT.  Properly
11242         check masks for HOST_WIDE_INT.
11243
11244         * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
11245         (option_enabled): Likewise.
11246         (get_option_state): Likewise.
11247
11248         * opts.h (cl_option): Add cl_host_wide_int.  Change var_value
11249         to HOST_WIDE_INT.
11250
11251 2011-08-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11252             Marc Glisse  <marc.glisse@normalesup.org>
11253
11254         PR libstdc++-v3/1773
11255         * target.def (decl_mangling_context): New C++ hook.
11256         * doc/tm.texi: Regenerate.
11257         * config/sol2-cxx.c, config/sol2-stubs.c: New files.
11258         * config/sol2-protos.h: Group by source file.
11259         (solaris_cxx_decl_mangling_context): Declare.
11260         * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
11261         * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
11262         Use $<.
11263         * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
11264         Add sol2-stubs.o to extra_objs.
11265
11266 2011-08-18  Jakub Jelinek  <jakub@redhat.com>
11267
11268         PR target/50009
11269         * stor-layout.c (update_alignment_for_field): Don't ICE on
11270         packed flexible array members if ms_bitfield_layout_p.
11271
11272         PR target/50092
11273         * config/i386/i386.c (assign_386_stack_local): Call validize_mem
11274         on the result before returning it.
11275
11276         PR debug/50017
11277         * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
11278         is a debug stmt, use location of the first non-debug stmt after it.
11279
11280 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
11281
11282         * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
11283         (arm_size_rtx_costs): Likewise.
11284
11285 2011-08-18  Richard Guenther  <rguenther@suse.de>
11286
11287         * tree.h (tree_int_cst_msb): Remove.
11288         * tree.c (tree_int_cst_msb): Likewise.
11289         (tree_int_cst_sign_bit): Move from ...
11290         * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
11291
11292 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
11293
11294         * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
11295         * doc/tm.texi: Regenerate.
11296         * target.def (rtx_costs): Add an opno parameter.
11297         * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
11298         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
11299         * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
11300         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
11301         * cse.c (COST_IN): Add an opno parameter.
11302         (notreg_cost): Likewise.  Update call to rtx_cost.
11303         (COST, fold_rtx): Update accordingly.
11304         * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
11305         * expmed.c (emit_store_flag): Likewise.
11306         * optabs.c (avoid_expensive_constant): Add an opno parameter.
11307         Update call to rtx_cost.
11308         (expand_binop_directly, expand_binop): Likewise.
11309         (expand_twoval_binop, prepare_cmp_insn): Likewise.
11310         * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
11311         (set_src_cost, get_full_set_src_cost): Update accordingly.
11312         * rtlanal.c (rtx_cost): Add an opno parameter.  Update call
11313         to target hook.
11314         (get_full_rtx_cost): Add an opno paramter.  Update calls to rtx_cost.
11315         (default_adress_cost): Update calls to rtx_cost.
11316
11317         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
11318         (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
11319         (arm_rtx_costs): Add an opno parameter.
11320         * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
11321         adjust any recursive rtx-cost calls.
11322         * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
11323         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
11324         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
11325         * config/cris/cris.c (cris_rtx_costs): Likewise.
11326         * config/frv/frv.c (frv_rtx_costs): Likewise.
11327         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
11328         * config/i386/i386.c (ix86_rtx_costs): Likewise.
11329         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
11330         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
11331         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
11332         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
11333         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
11334         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
11335         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
11336         * config/mep/mep.c (mep_rtx_cost): Likewise.
11337         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
11338         * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
11339         (mips_zero_extend_cost): Add an opno parameter.
11340         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
11341         * config/mn10300/mn10300.c (mn10300_address_cost): Update call
11342         to rtx_cost.
11343         (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
11344         rtx-cost calls.
11345         * config/pa/pa.c (hppa_rtx_costs): Likewise.
11346         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
11347         * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
11348         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
11349         (rs6000_debug_rtx_costs): Likewise.
11350         * config/s390/s390.c (s390_rtx_costs): Likewise.
11351         * config/score/score-protos.h (score_rtx_costs): Likewise.
11352         * config/score/score.c (score_rtx_costs): Likewise.
11353         * config/sh/sh.c (andcosts): Update call to rtx_cost.
11354         (sh_rtx_costs): Add an opno parameter.
11355         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
11356         * config/spu/spu.c (spu_rtx_costs): Likewise.
11357         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
11358         * config/v850/v850.c (v850_rtx_costs): Likewise.
11359         * config/vax/vax.c (vax_rtx_costs): Likewise.
11360         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
11361
11362 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
11363
11364         * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
11365         * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
11366         rtx_cost.
11367         * calls.c (precompute_register_parameters): Likewise.
11368         * combine.c (expand_compound_operation, make_extraction): Likewise.
11369         (force_to_mode, distribute_and_simplify_rtx): Likewise.
11370         * dse.c (find_shift_sequence): Likewise.
11371         * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
11372         * expr.c (compress_float_constant): Likewise.
11373         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
11374         * gcse.c (want_to_gcse_p): Likewise.
11375         * ifcvt.c (noce_try_sign_mask): Likewise.
11376         * loop-doloop.c (doloop_optimize): Likewise.
11377         * loop-invariant.c (create_new_invariant): Likewise.
11378         * optabs.c (avoid_expensive_constant): Likewise.
11379         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
11380         (try_replace_in_use, reload_cse_move2add): Likewise.
11381         * reload1.c (calculate_elim_costs_all_insns): Likewise.
11382         (note_reg_elim_costly): Likewise.
11383         * rtlanal.c (insn_rtx_cost): Likewise.
11384         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
11385         * stmt.c (lshift_cheap_p): Likewise.
11386         * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
11387         * config/avr/avr.c (final_prescan_insn): Likewise.
11388         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
11389         * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
11390
11391 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
11392
11393         * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
11394         * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
11395         * cfgloopanal.c (seq_cost): Likewise.
11396         * loop-invariant.c (create_new_invariant): Likewise.
11397         * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
11398         (reload_cse_move2add): Use get_full_set_rtx_cost.
11399
11400 2011-08-18  Richard Guenther  <rguenther@suse.de>
11401
11402         * expr.c (get_inner_reference): Fix typo in last change.
11403
11404 2011-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
11405             Joseph Myers  <joseph@codesourcery.com>
11406
11407         PR tree-optimization/49963
11408         * hwint.c (absu_hwi): Define.
11409         * hwint.h (absu_hwi): Declare.
11410         * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
11411         of abs_hwi.
11412         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
11413         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
11414
11415 2011-08-18  Richard Guenther  <rguenther@suse.de>
11416
11417         * expr.c (get_inner_reference): Sign-extend the constant
11418         twos-complement offset before doing arbitrary precision
11419         arithmetic on it.
11420         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
11421         (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
11422         to get_constraint_for_ptr_offset.
11423
11424 2011-08-17  Kaz Kojima  <kkojima@gcc.gnu.org>
11425
11426         PR target/50068
11427         * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
11428
11429 2011-08-17  Richard Guenther  <rguenther@suse.de>
11430
11431         * tree.h (convert_to_ptrofftype_loc): New function.
11432         (convert_to_ptrofftype): Define.
11433         * builtins.c (expand_builtin_bzero): Use size_type_node.
11434         (fold_builtin_bzero): Likewise.
11435         (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
11436         * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
11437         * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
11438         (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
11439         * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
11440         * fold-const.c (build_range_check): Negate using the original type.
11441         (fold_unary_loc): Use fold_build_pointer_plus_loc.
11442         * gimple-fold.c (gimple_adjust_this_by_delta): Use
11443         convert_to_ptrofftype.
11444         * gimplify.c (gimplify_self_mod_expr): Likewise.
11445         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
11446         (graphite_create_new_loop_guard): Likewise.
11447         * graphite-sese-to-poly.c (my_long_long): Remove.
11448         (scop_ivs_can_be_represented): Adjust.
11449         * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
11450         * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
11451         * tree-loop-distribution.c (build_size_arg_loc): Use
11452         size_type_node.
11453         (generate_memset_zero): Simplify.
11454         * tree-mudflap.c: Use fold_convert, not convert.
11455         * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
11456         its own type.
11457         (determine_offset): Likewise for DR_STEP.
11458         (valid_initializer_p): Likewise.
11459         * tree-profile.c (prepare_instrumented_value): Convert the pointer
11460         to an integer type of same size.
11461         * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
11462         to sizetype without need.
11463         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
11464         * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
11465         * tree-ssa-loop-manip.c (create_iv): Likewise.
11466         (determine_exit_conditions): Adjust comment.
11467         * tree-ssa-pre.c (create_expression_by_pieces): Use
11468         convert_to_ptrofftype.
11469         * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
11470         * varasm.c (array_size_for_constructor): Compute using double_ints.
11471
11472 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11473
11474         * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
11475         when generating an integer result where possible.  Short-cut
11476         comparison against 0 also for QImode.
11477
11478 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11479
11480         * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
11481         * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
11482         prototype.
11483         * config/spu/spu.c (spu_legitimize_reload_address): New function.
11484         (spu_legitimate_address_p): Do not check displacement if the base
11485         is an eliminable stack register.
11486
11487 2011-08-16  Anatoly Sokolov  <aesok@post.ru>
11488
11489         * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
11490         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
11491         * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
11492         m32c_preferred_output_reload_class): Remove.
11493         * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
11494         Change rclass argument and return types to reg_class_t. Use
11495         reg_class_subset_p instead of class_sizes.
11496         (m32c_preferred_output_reload_class): Make static. Change rclass
11497         argument and return types to reg_class_t.
11498         (TARGET_PREFERRED_RELOAD_CLASS,
11499         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11500
11501 2011-08-16  Kai Tietz  <ktietz@redhat.com>
11502
11503         * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
11504
11505 2011-08-16  Richard GUenther  <rguenther@suse.de>
11506
11507         PR tree-optimization/50082
11508         * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
11509         warnings here, instead of ...
11510         (ssa_forward_propagate_and_combine): ... here.
11511         (forward_propagate_into_comparison_1): Adjust.
11512         (forward_propagate_into_comparison): Likewise.
11513         (forward_propagate_into_gimple_cond): Likewise.
11514         (forward_propagate_into_cond): Likewise.
11515
11516 2011-08-16  Andreas Schwab  <schwab@redhat.com>
11517
11518         * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
11519         instead of ggc_alloc_zone_vec_rtvec_def.
11520
11521 2011-08-16  Richard Guenther  <rguenther@suse.de>
11522
11523         * tree.h (ptrofftype_p): New helper function.
11524         * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
11525         offset verification.
11526         (verify_gimple_assign_binary): Likewise.
11527         * tree.c (build2_stat): Likewise.
11528         * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
11529         (reset_evolution_in_loop): Likewise.
11530         * tree-chrec.h (build_polynomial_chrec): Likewise.
11531
11532 2011-08-16  Liang Wang  <lwang1@marvell.com>
11533
11534         * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
11535         ggc_alloc_zone_vec_rtvec_def.
11536
11537 2011-08-16  Richard Guenther  <rguenther@suse.de>
11538
11539         * tree-vrp.c (extract_range_from_multiplicative_op_1): New
11540         helper factored out from ...
11541         (extract_range_from_binary_expr_1): ... here.  Re-structure
11542         to not glob handling too different tree codes.
11543
11544 2011-08-15  Richard Henderson  <rth@redhat.com>
11545
11546         PR middle-end/50006
11547         * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
11548         setting out to include allocate_stack named pattern as well.
11549         * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
11550         * stmt.c (expand_stack_restore): Likewise.
11551
11552 2011-08-15  Richard Guenther  <rguenther@suse.de>
11553
11554         PR middle-end/50082
11555         * fold-const.c (maybe_canonicalize_comparison_1): Properly
11556         convert the modified operand to the other operand type.
11557         (fold_comparison): Call maybe_canonicalize_comparison_1 with
11558         useless conversions stripped from comparison operands.
11559
11560 2011-08-15  Richard Guenther  <rguenther@suse.de>
11561
11562         * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
11563         (extract_range_from_unary_expr_1): Restructure.
11564
11565 2011-08-15  Richard Guenther  <rguenther@suse.de>
11566
11567         PR tree-optimization/50058
11568         * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
11569         copy matching.
11570
11571 2011-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11572
11573         PR target/50022
11574         * config/arm/arm.c (output_move_double): Add 2 parameters
11575         to count the number of insns emitted and whether to emit or not.
11576         Use the flag to decide when to emit and count number of instructions
11577         that will be emitted.
11578         Handle case where output_move_double might be called for calculating
11579         lengths with an invalid constant.
11580         (arm_count_output_move_double_insns): Define.
11581         * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
11582         (output_move_double): Adjust prototype.
11583         * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
11584         output_move_double.
11585         ("*movdi_vfp_cortexa8"): Likewise and add attribute
11586         for ce_count.
11587         * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
11588         ("*movdf_soft_insn"): Likewise.
11589         * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
11590         ("*cirrus_thumb2_movdi"): Likewise.
11591         ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
11592         ("*cirrus_movdf_hard_insn"): Likewise.
11593         * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
11594         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
11595         ("mov<mode>_internal VMMX"): Likewise.
11596         * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
11597
11598 2011-08-14  Uros Bizjak  <ubizjak@gmail.com>
11599
11600         * config/i386/i386.c (ix86_expand_round_sse4): New function.
11601         * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
11602         * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
11603         for TARGET_ROUND.
11604
11605         (rint<mode>2): Simplify TARGET_ROUND check.
11606         (floor<mode>2): Ditto.
11607         (ceil<mode>2): Ditto.
11608         (btrunc<mode>2): Ditto.
11609
11610 2011-08-14  Anatoly Sokolov  <aesok@post.ru>
11611
11612         * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
11613         as mmix_preferred_output_reload_class.
11614
11615 2011-08-14  Georg-Johann Lay  <avr@gjlay.de>
11616
11617         * PR target/49903
11618         * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
11619         (branch_unspec): New insn.
11620         (branch): Beauty farm.
11621         * config/avr/avr.c (compare_condition): Use JUMP_P.  Test SET_SRC
11622         to be IF_THEN_ELSE.
11623         (avr_compare_pattern, avr_reorg_remove_redundant_compare):
11624         New static functions.
11625         (avr_reorg): Use them.  Use next_real_insn instead of NEXT_INSN.
11626         Use CONST_INT_P.  Beauty.
11627
11628 2011-08-12  Richard Henderson  <rth@redhat.com>
11629
11630         PR rtl-opt/49994
11631         * sched-init.h (struct deps_desc): Add sched_before_next_jump.
11632         * sched-deps.c (init_deps): Clear it.
11633         (deps_analyze_insn): Consume it.
11634         (sched_analyze_insn): Fill it.
11635
11636 2011-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11637
11638         PR target/48328
11639         * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
11640         for tbh instructions.
11641
11642 2011-08-12  Diego Novillo  <dnovillo@google.com>
11643
11644         * data-streamer.h (streamer_write_zero): Rename from output_zero.
11645         (streamer_write_uhwi): Rename from lto_output_uleb128.
11646         (streamer_write_hwi): Rename from output_sleb128.
11647         (streamer_write_string): Rename from lto_output_string.
11648         (streamer_string_index): Rename from lto_string_index.
11649         (streamer_write_string_with_length): Rename from
11650         lto_output_string_with_length.
11651         (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
11652         (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
11653         (streamer_read_string): Rename from lto_input_string.
11654         (streamer_read_indexed_string): Rename from input_string_internal.
11655         (streamer_read_uhwi): Rename from lto_input_uleb128.
11656         (streamer_read_hwi): Rename from lto_input_sleb128.
11657         (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
11658         (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
11659         (streamer_write_enum): Rename from lto_output_enum.
11660         (streamer_read_enum): Rename from lto_input_enum.
11661         (streamer_write_record_start): Rename from output_record_start.
11662         (streamer_read_record_start): Rename from input_record_start.
11663         (streamer_write_bitpack): Rename from lto_output_bitpack.
11664         (streamer_read_bitpack): Rename from lto_input_bitpack.
11665         (streamer_write_char_stream): Rename from lto_output_1_stream.
11666         (streamer_read_uchar): Rename from lto_input_1_unsigned.
11667         * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
11668         (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
11669         (streamer_read_string_cst): Rename from input_string_cst.
11670         (streamer_read_chain): Rename from lto_input_chain.
11671         (streamer_alloc_tree): Rename from lto_materialize_tree.
11672         (streamer_read_tree_body): Rename from lto_input_tree_pointers.
11673         (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
11674         (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
11675         (streamer_read_integer_cst): Rename from lto_input_integer_cst.
11676         (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
11677         (streamer_write_chain): Rename from lto_output_chain.
11678         (streamer_write_tree_header): Rename from lto_output_tree_header.
11679         (streamer_pack_tree_bitfields): Rename from pack_value_fields.
11680         (streamer_write_tree_body): Rename from lto_output_tree_pointers.
11681         (streamer_write_integer_cst): Rename from lto_output_integer_cst.
11682         (streamer_write_builtin): Rename from lto_output_builtin_tree.
11683         (streamer_check_handled_ts_structures): Rename from
11684         check_handled_ts_structures.
11685         (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
11686         (streamer_tree_cache_insert_at): Rename from
11687         lto_streamer_cache_insert_at.
11688         (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
11689         (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
11690         (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
11691         (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
11692         (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
11693         * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
11694         (write_identifier): Rename from output_identifier.
11695         (write_ts_common_tree_pointers): Rename from
11696         lto_output_ts_common_tree_pointers.
11697         (write_ts_vector_tree_pointers): Rename from
11698         lto_output_ts_vector_tree_pointers.
11699         (write_ts_complex_tree_pointers): Rename from
11700         lto_output_ts_complex_tree_pointers.
11701         (write_ts_decl_minimal_tree_pointers): Rename from
11702         lto_output_ts_decl_minimal_tree_pointers.
11703         (write_ts_decl_common_tree_pointers): Rename from
11704         lto_output_ts_decl_common_tree_pointers.
11705         (write_ts_decl_non_common_tree_pointers): Rename from
11706         lto_output_ts_decl_non_common_tree_pointers.
11707         (write_ts_decl_with_vis_tree_pointers): Rename from
11708         lto_output_ts_decl_with_vis_tree_pointers.
11709         (write_ts_field_decl_tree_pointers): Rename from
11710         lto_output_ts_field_decl_tree_pointers.
11711         (write_ts_function_decl_tree_pointers): Rename from
11712         lto_output_ts_function_decl_tree_pointers.
11713         (write_ts_type_common_tree_pointers): Rename from
11714         lto_output_ts_type_common_tree_pointers.
11715         (write_ts_type_non_common_tree_pointers): Rename from
11716         lto_output_ts_type_non_common_tree_pointers.
11717         (write_ts_list_tree_pointers): Rename from
11718         lto_output_ts_list_tree_pointers.
11719         (write_ts_vec_tree_pointers): Rename from
11720         lto_output_ts_vec_tree_pointers.
11721         (write_ts_exp_tree_pointers): Rename from
11722         lto_output_ts_exp_tree_pointers.
11723         (write_ts_block_tree_pointers): Rename from
11724         lto_output_ts_block_tree_pointers.
11725         (write_ts_binfo_tree_pointers): Rename from
11726         lto_output_ts_binfo_tree_pointers.
11727         (write_ts_constructor_tree_pointers): Rename from
11728         lto_output_ts_constructor_tree_pointers.
11729         (write_ts_target_option): Rename from lto_output_ts_target_option.
11730         (write_ts_translation_unit_decl_tree_pointers): Rename from
11731         lto_output_ts_translation_unit_decl_tree_pointers.
11732         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
11733         Rename from lto_streamer_cache_add_to_node_array.
11734         (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
11735         (record_common_node): Rename from lto_record_common_node.
11736
11737         * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
11738         declarations.
11739         * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
11740         function.
11741         * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
11742         unused function.
11743         * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
11744         (ipa-reference.o): Likewise.
11745         * lto-section-out.c: Include data-streamer.h.
11746         * ipa-reference.c: Include data-streamer.h.
11747
11748 2011-08-12  Nick Clifton  <nickc@redhat.com>
11749
11750         * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
11751         * doc/md.texi (cmpstrn): Note that the comparison stops if both
11752         fetched bytes are zero.
11753         (cmpstr): Likewise.
11754         (cmpmem): Note that the comparison does not stop if both of the
11755         fetched bytes are zero.
11756
11757 2011-08-12  Uros Bizjak  <ubizjak@gmail.com>
11758
11759         * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
11760         BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
11761         * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
11762         BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
11763         to integer_type_node.
11764         * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
11765         BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
11766         * builtins.c (expand_builtin_in): Ditto.
11767         (mathfn_built_in_1): Ditto.
11768         (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
11769         BUILT_IN_IFLOOR.
11770         (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
11771         BUILT_IN_IROUND.
11772         (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
11773         BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
11774         BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
11775
11776 2011-08-12  Richard Guenther  <rguenther@suse.de>
11777
11778         * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
11779
11780 2011-08-12  Romain Geissler  <romain.geissler@gmail.com>
11781
11782         * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
11783
11784 2011-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
11785
11786         * config/arm/arm.c (get_label_padding): New function.
11787         (create_fix_barrier, arm_reorg): Use it.
11788
11789 2011-08-11  Uros Bizjak  <ubizjak@gmail.com>
11790
11791         PR target/49781
11792         * config/i386/i386.md (*lea_5_zext): New.
11793         (*lea_6_zext): Ditto.
11794         * config/i386/predicates.md (const_32bit_mask): New predicate.
11795         (lea_address_operand): Reject AND.
11796         * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
11797         const_32bit_mask immediate.
11798         (ix86_print_operand_address): Handle AND.
11799         (memory_address_length): Ditto.
11800
11801 2011-08-11  Romain Geissler  <romain.geissler@gmail.com>
11802             Brian Hackett  <bhackett1024@gmail.com>
11803
11804         * plugin.def: Add event for finish_decl.
11805         * plugin.c (register_callback, invoke_plugin_callbacks): Same.
11806         * c-decl.c (finish_decl): Invoke callbacks on above event.
11807         * doc/plugins.texi: Document above event.
11808
11809 2011-08-11  Richard Guenther  <rguenther@suse.de>
11810
11811         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
11812         lookups, make looking through aggregate copies stronger.
11813
11814 2011-08-11  Richard Henderson  <rth@redhat.com>
11815
11816         PR bootstrap/50018
11817         * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
11818
11819 2011-08-11  Richard Guenther  <rguenther@suse.de>
11820
11821         * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
11822         * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
11823         (vrp_visit_stmt): Likewise.
11824
11825 2011-08-11  Richard Guenther  <rguenther@suse.de>
11826
11827         PR middle-end/50040
11828         * gimplify.c (gimplify_modify_expr_complex_part): Mark the
11829         load of the other piece with TREE_NO_WARNING.
11830         * tree-flow.h (warn_uninit): Adjust prototype.
11831         * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
11832         the base variable and the expression that is used separately.
11833         Properly query all TREE_NO_WARNING flags.
11834         (struct walk_data): Remove.
11835         (warn_uninitialized_var): Likewise.
11836         (warn_uninitialized_vars): Do not walk gimple pieces but simply
11837         look at all SSA uses of the statement.  Handle unused memory
11838         separately.
11839         * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
11840
11841 2011-08-11   Kazuhiro Inaoka  <kazuhiro.inaoka.ud@renesas.com>
11842
11843         * config/rx/rx.md (movsicc): Allow register to register transfers.
11844         (*movsicc): Likewise.
11845         (*stcc): Restrict this pattern to EQ and NE compares.
11846         (*stcc_reg): New pattern.  Works for any comparison but only for
11847         register transfers.
11848
11849 2011-08-11   Diego Novillo  <dnovillo@google.com>
11850
11851         * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
11852         Call stream_write_tree instead of output_record_start.
11853         (lto_output_ts_binfo_tree_pointers): Likewise.
11854
11855         * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
11856         Convert it to a macro.
11857         (stream_read_tree): Likewise.
11858
11859         * lto-streamer.h (lto_stream_as_builtin_p): Move ...
11860         * tree-streamer.h (lto_stream_as_builtin_p): ... here.
11861
11862         * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
11863         and tree_read_bitfields.
11864         * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
11865         (lto_write_tree): Call it.
11866         * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
11867         * streamer-hooks.h (struct streamer_hooks): Remove fields
11868         name, is_streamable and alloc_tree. Update all users.
11869         * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
11870         (lto_materialize_tree): ... here.
11871         Handle CALL_EXPR codes.
11872         Remove call to lto_streamer_cache_append.
11873         * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
11874         * tree-streamer.h (tree_read_bitfields): Declare.
11875
11876         * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
11877         (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
11878         * tree-streamer.h (stream_read_tree): New.  Replace all calls
11879         to lto_input_tree with it.
11880         (stream_write_tree): New.  Replace all calls to lto_output_tree,
11881         lto_output_tree_ref and lto_output_tree_or_ref with it.
11882         * lto-streamer-in.c (lto_read_tree): Inline code from
11883         lto_streamer_read_tree.
11884         (lto_input_tree): Move from tree-streamer-in.c.
11885         * lto-streamer-out.c (lto_output_tree_ref): Make static.
11886         Remove handling of NULL values for EXPR.
11887         Do not handle EXPRs that are not indexable.
11888         (lto_write_tree): Move from tree-streamer-out.c.
11889         Inline lto_streamer_write_tree.
11890         (lto_output_tree): Move from tree-streamer-out.c.
11891         If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
11892         * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
11893         (lto_preload_common_nodes): Likewise.
11894         Remove assertions and adjustments for nodes
11895         main_identifier_node, ptrdiff_type_node and fileptr_type_node.
11896         (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
11897         lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
11898         * lto-streamer.h (lto_input_tree): Declare.
11899         (lto_output_tree_ref): Remove.
11900         * streamer-hooks.h (struct streamer_hooks): Remove fields
11901         preload_common_nodes, indexable_with_decls_p,
11902         pack_value_fields, unpack_value_fields and output_tree_header.
11903         Update all users.
11904         * tree-streamer-in.c (lto_materialize_tree): Make extern.
11905         (lto_input_tree_pointers): Likewise.
11906         (lto_read_tree): Move to lto-streamer-in.c.
11907         (lto_input_integer_cst): Make extern.
11908         (lto_get_pickled_tree): Likewise.
11909         (lto_get_builtin_tree): Likewise.
11910         (lto_input_tree): Move to lto-streamer-in.c.
11911         * tree-streamer-out.c (pack_value_fields): Make extern.
11912         (lto_output_tree_or_ref): Remove.  Replace all callers with
11913         calls to stream_write_tree.
11914         (lto_output_builtin_tree): Make extern.
11915         (lto_streamer_write_tree): Inline into lto_write_tree.
11916         (lto_output_tree_pointers): Make extern.
11917         (lto_output_tree_header): Likewise.
11918         (lto_output_integer_cst): Likewise.
11919         (lto_write_tree): Move to lto-streamer-out.c.
11920         (lto_output_tree): Likewise.
11921         * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
11922         (preload_common_nodes): Likewise.
11923         (lto_streamer_cache_create): Call it.
11924         * tree-streamer.h: Include streamer-hooks.h.
11925         (stream_write_tree): New.
11926         (stream_read_tree): New.
11927         (lto_input_tree): Remove.
11928         (lto_materialize_tree): Declare.
11929         (lto_input_tree_pointers): Declare.
11930         (lto_get_pickled_tree): Declare.
11931         (lto_get_builtin_tree): Declare.
11932         (lto_input_integer_cst): Declare.
11933         (lto_output_tree_header): Declare.
11934         (pack_value_fields): Declare.
11935         (lto_output_tree_pointers): Declare.
11936         (lto_output_integer_cst): Declare.
11937         (lto_output_builtin_tree): Declare.
11938
11939 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
11940
11941         * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
11942         only if producer writes to the register given by regno.
11943
11944 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
11945             Alexander Monakov  <amonakov@ispras.ru>
11946
11947         * sched-deps.c (sched_get_condition_with_rev): Rename to ...
11948         (sched_get_condition_with_rev_uncached): ... this.  Factor out
11949         condition caching logic into ...
11950         (sched_get_condition_with_rev): ... this.  Reimplement.  Do not
11951         attempt to use cache for instructions with zero luid.
11952         (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
11953         * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
11954
11955 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
11956
11957         * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
11958         get_seqno_for_a_jump.  Update the caller.
11959         (get_seqno_by_succs): New.  Use it ...
11960         (get_seqno_for_a_jump): ... here to find a seqno if looking at
11961         predecessors was not sufficient.
11962         (get_seqno_by_preds): Include head in iteration range, exclude insn.
11963
11964 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
11965
11966         * sel-sched-ir.c (invalidate_av_set): Remove the assert.
11967
11968 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
11969
11970         * sel-sched-ir.h (register_unavailable_p): Declare.
11971         * sel-sched-ir.c (register_unavailable_p): New.  Use it...
11972         (set_unavailable_target_for_expr): ... here to properly test
11973         availability of a register.
11974         (speculate_expr): Ditto.
11975         * sel-sched.c (substitute_reg_in_expr): Ditto.
11976         (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
11977
11978 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
11979
11980         * sel-sched.c (verify_target_availability): Fix usage of
11981         hard_regno_nregs.
11982
11983 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
11984
11985         * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
11986         recognized by cannot_copy_insn_p hook and volatile instructions.
11987
11988 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
11989
11990         * sel-sched-ir.c (merge_expr_data): Take maximum spec.
11991
11992 2011-08-11  Richard Sandiford  <richard.sandiford@linaro.org>
11993
11994         * doc/md.texi (define_bypass): Say that the instruction names can
11995         be filename-style globs.
11996         * Makefile.in (FNMATCH_H): Define.
11997         (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
11998         * genattrtab.c: Include fnmatch.h.
11999         (bypass_list): Change field name from "insn" to "pattern".
12000         (gen_bypass_1): Update accordingly.
12001         (process_bypasses): Use fnmatch to check for matches between
12002         insn reservations and define_bypasses.
12003         * genautomata.c: Include fnmatch.h.
12004         (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
12005         and out_pattern respectively.
12006         (gen_bypass, insert_bypass): Update accordingly.
12007         (for_each_matching_insn, process_bypass_2, process_bypass_1)
12008         (process_bypass): New functions.
12009         (process_decls): Use process_bypass.  Update after field name changes.
12010
12011 2011-08-11  Georg-Johann Lay  <avr@gjlay.de>
12012
12013         PR target/49687
12014         * config/avr/avr.md (smulqi3_highpart): New insn.
12015         (umulqi3_highpart): New insn.
12016         (*subqi3.ashiftrt7): New insn.
12017         (smulhi3_highpart): New expander.
12018         (umulhi3_highpart): Nex expander.
12019         (*smulhi3_highpart_call): New insn.
12020         (*umulhi3_highpart_call): New insn.
12021         (extend_u): New code attribute.
12022         (extend_prefix): Rename code attribute to extend_su.
12023         * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
12024         widening QI/HI multiply.
12025
12026 2011-08-11  Ira Rosen  <ira.rosen@linaro.org>
12027
12028         PR tree-optimization/50039
12029         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
12030         that DEF_STMT has a stmt_vec_info.
12031
12032 2011-08-10  Richard Guenther  <rguenther@suse.de>
12033
12034         * tree.h (can_trust_pointer_alignment): Remove.
12035         * builtins.c (can_trust_pointer_alignment): Remove.
12036
12037 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
12038
12039         * c-typeck.c (scalar_to_vector): New function. Try scalar to
12040         vector conversion.
12041         (stv_conv): New enum for scalar_to_vector return type.
12042         (build_binary_op): Adjust.
12043         * doc/extend.texi: Description of scalar to vector expansion.
12044
12045 2011-08-10  Richard Guenther  <rguenther@suse.de>
12046
12047         * tree.h (get_pointer_alignment): Remove max-align argument.
12048         (get_object_alignment): Likewise.
12049         * builtins.c (get_object_alignment_1): Adjust.
12050         (get_object_alignment): Remove max-align argument.
12051         (get_pointer_alignment): Likewise.
12052         (expand_builtin_strlen): Adjust.
12053         (expand_builtin_memcpy): Likewise.
12054         (expand_builtin_mempcpy_args): Likewise.
12055         (expand_builtin_strncpy): Likewise.
12056         (expand_builtin_memset_args): Likewise.
12057         (expand_builtin_memcmp): Likewise.
12058         (expand_builtin_strcmp): Likewise.
12059         (expand_builtin_strncmp): Likewise.
12060         (get_builtin_sync_mem): Likewise.
12061         (fold_builtin_memset): Likewise.
12062         (fold_builtin_memory_op): Likewise.
12063         (expand_builtin_memory_chk): Likewise.
12064         * emit-rtl.c (get_mem_align_offset): Likewise.
12065         (set_mem_attributes_minus_bitpos): Likewise.
12066         * expr.c (expand_assignment): Likewise.
12067         (expand_expr_real_1): Likewise.
12068         * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
12069         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
12070         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
12071         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
12072         * value-prof.c (gimple_stringops_transform): Likewise.
12073
12074 2011-08-10  Paulo J. Matos  <paulo.matos@csr.com>
12075
12076         * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
12077         * doc/tm.texi: Regenerate.
12078
12079 2011-08-10  Georg-Johann Lay  <avr@gjlay.de>
12080
12081         PR target/29560
12082         * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
12083         (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
12084         (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
12085         Add peephole2 to map ashlhi3 to ashlqi3 if high part of
12086         shift target is unused.
12087
12088 2011-08-10  Richard Guenther  <rguenther@suse.de>
12089
12090         PR tree-optimization/49937
12091         * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
12092         using get_object_alignment_1.
12093
12094 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
12095
12096         * config/i386/i386.c (ix86_emit_i387_round): New function.
12097         * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
12098         * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
12099         Use ix86_emit_i387_round to expand round function for i387 math.
12100         (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
12101         Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
12102
12103 2011-08-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12104
12105         * config/sync.c: Move to ../libgcc.
12106         * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
12107         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
12108         Remove.
12109
12110 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
12111
12112         * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
12113         * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
12114         * config/mmix/mmix.c (mmix_register_move_cost): Make static.
12115         Change 'from' and 'to' arguments type to reg_class_t.
12116         (TARGET_REGISTER_MOVE_COST): Define.
12117
12118 2011-08-09  Vladimir Makarov  <vmakarov@redhat.com>
12119
12120         PR target/50026
12121         Revert:
12122         PR rtl-optimization/49990
12123         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
12124         ignore classes which can not change mode.
12125         (find_costs_and_classes): Ditto.
12126
12127 2011-08-09  Richard Guenther  <rguenther@suse.de>
12128
12129         * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
12130         information for ranges with only negative values.
12131         (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
12132         BIT_AND_EXPR handling to handle ranges with negative values.
12133
12134 2011-08-09  Kirill Yukhin  <kirill.yukhin@intel.com>
12135
12136         * config/i386/i386.c: Remove traling spaces.
12137         * config/i386/sse.md: Likewise.
12138         (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
12139         (*fma_fmsub_<mode>): Likewise.
12140         (*fma_fnmadd_<mode>): Likewise.
12141         (*fma_fnmsub_<mode>): Likewise.
12142
12143 2011-08-09  Nick Clifton  <nickc@redhat.com>
12144
12145         * config/rx/rx.md: Disable extender peepholes at -O3.
12146
12147 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
12148
12149         PR target/49781
12150         * config/i386/i386.md (reload_noff_load): New.
12151         (reload_noff_store): Ditto.
12152         * config/i386/i386.c (ix86_secondary_reload): Use
12153         CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
12154         double-word moves from/to non-offsetable addresses instead of
12155         generating XMM temporary.
12156
12157 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
12158
12159         * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
12160
12161 2011-08-09  Ira Rosen  <ira.rosen@linaro.org>
12162
12163         PR tree-optimization/50014
12164         * tree-vect-loop.c (vectorizable_reduction): Get def type before
12165         calling vect_get_vec_def_for_stmt_copy ().
12166
12167 2011-08-08  Vladimir Makarov  <vmakarov@redhat.com>
12168
12169         PR rtl-optimization/49990
12170         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
12171         ignore classes which can not change mode.
12172         (find_costs_and_classes): Ditto.
12173
12174 2011-08-08  Richard Henderson  <rth@redhat.com>
12175
12176         PR middle-end/49990
12177         * config/i386/i386.c (ix86_expand_prologue): Call
12178         for SEH target gen_prologue_use instead of gen_blockage
12179         at prologue's end.
12180
12181 2011-08-08  Martin Jambor  <mjambor@suse.cz>
12182
12183         PR middle-end/49923
12184         * tree-sra.c (access_precludes_ipa_sra_p): Also check access
12185         memory alignment.
12186
12187 2011-08-08   Diego Novillo  <dnovillo@google.com>
12188
12189         * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
12190         (DATA_STREAMER_H): New.
12191         (GIMPLE_STREAMER_H): New.
12192         (TREE_STREAMER_H): New.
12193         (STREAMER_HOOKS_H): New.
12194         (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
12195         gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
12196         tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
12197         (data-streamer.o): New.
12198         (data-streamer-in.o): New.
12199         (data-streamer-out.o): New.
12200         (gimple-streamer-in.o): New.
12201         (gimple-streamer-out.o): New.
12202         (streamer-hooks.o): New.
12203         (tree-streamer.o): New.
12204         (tree-streamer-in.o): New.
12205         (tree-streamer-out.o): New.
12206         (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
12207         (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
12208         GIMPLE_STREAMER_H and TREE_STREAMER_H.
12209         (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
12210         GIMPLE_STREAMER_H and TREE_STREAMER_H.
12211         (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
12212         (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
12213         (ipa-inline-analysis.o): Likewise.
12214         (ipa-pure-const.o): Likewise.
12215         * data-streamer-in.c: New.
12216         * data-streamer-out.c: New.
12217         * data-streamer.c: New.
12218         * data-streamer.h: New.
12219         * gimple-streamer-in.c: New.
12220         * gimple-streamer-out.c: New.
12221         * gimple-streamer.h: New.
12222         * ipa-inline-analysis.c: Include data-streamer.h.
12223         * ipa-prop.c: Include data-streamer.h.
12224         * ipa-pure-const.c: Include data-streamer.h.
12225         * lto-cgraph.c: Include data-streamer.h.
12226         * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
12227         (lto_input_widest_uint_uleb128): Likewise.
12228         (lto_input_sleb128): Likewise.
12229         (bp_unpack_var_len_unsigned): Likewise.
12230         (bp_unpack_var_len_int): Likewise.
12231         * lto-section-out.c (lto_output_uleb128_stream): Move to
12232         data-streamer-out.c.
12233         (lto_output_widest_uint_uleb128_stream): Likewise.
12234         (lto_output_sleb128_stream): Likewise.
12235         (bp_pack_var_len_unsigned): Likewise.
12236         (bp_pack_var_len_int): Likewise.
12237         * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
12238         (struct string_slot): Remove.  Update all users.
12239         (lto_tag_check_set): Make extern.
12240         (lto_tag_check_range): Move to lto-streamer.h.
12241         (lto_tag_check): Likewise.
12242         (hash_string_slot_node): Remove.  Update all users.
12243         (eq_string_slot_node): Remove.  Update all users.
12244         (string_for_index): Move to data-streamer-in.c
12245         (input_string_internal): Likewise.
12246         (input_string_cst): Move to tree-streamer-in.c.
12247         (input_identifier): Likewise.
12248         (lto_input_string): Move to data-streamer-in.c
12249         (input_record_start): Move to data-streamer.h
12250         (canon_file_name): Use new definition of struct string_slot
12251         from data-streamer.h.  Set S_SLOT.LEN.
12252         (lto_input_location): Make extern.
12253         (lto_input_chain): Move to tree-streamer-in.c.
12254         (lto_init_eh): Make extern.
12255         (input_phi): Move to gimple-streamer-in.c.
12256         (input_gimple_stmt): Likewise.
12257         (input_bb): Likewise.
12258         (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
12259         (unpack_ts_real_cst_value_fields): Likewise.
12260         (unpack_ts_fixed_cst_value_fields): Likewise.
12261         (unpack_ts_decl_common_value_fields): Likewise.
12262         (unpack_ts_decl_wrtl_value_fields): Likewise.
12263         (unpack_ts_decl_with_vis_value_fields): Likewise.
12264         (unpack_ts_function_decl_value_fields): Likewise.
12265         (unpack_ts_type_common_value_fields): Likewise.
12266         (unpack_ts_block_value_fields): Likewise.
12267         (unpack_ts_translation_unit_decl_value_fields): Likewise.
12268         (unpack_value_fields): Likewise.
12269         (lto_materialize_tree): Likewise.
12270         (lto_input_ts_common_tree_pointers): Likewise.
12271         (lto_input_ts_vector_tree_pointers): Likewise.
12272         (lto_input_ts_complex_tree_pointers): Likewise.
12273         (lto_input_ts_decl_minimal_tree_pointers): Likewise.
12274         (lto_input_ts_decl_common_tree_pointers): Likewise.
12275         (lto_input_ts_decl_non_common_tree_pointers): Likewise.
12276         (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
12277         (lto_input_ts_field_decl_tree_pointers): Likewise.
12278         (lto_input_ts_function_decl_tree_pointers): Likewise.
12279         (lto_input_ts_type_common_tree_pointers): Likewise.
12280         (lto_input_ts_type_non_common_tree_pointers): Likewise.
12281         (lto_input_ts_list_tree_pointers): Likewise.
12282         (lto_input_ts_vec_tree_pointers): Likewise.
12283         (lto_input_ts_exp_tree_pointers): Likewise.
12284         (lto_input_ts_block_tree_pointers): Likewise.
12285         (lto_input_ts_binfo_tree_pointers): Likewise.
12286         (lto_input_ts_constructor_tree_pointers): Likewise.
12287         (lto_input_ts_target_option): Likewise.
12288         (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
12289         (lto_input_tree_pointers): Likewise.
12290         (lto_get_pickled_tree): Likewise.
12291         (lto_get_builtin_tree): Likewise.
12292         (lto_read_tree): Likewise.
12293         (lto_input_integer_cst): Likewise.
12294         (lto_input_tree): Likewise.
12295         * lto-streamer-out.c: Include data-streamer.h,
12296         gimple-streamer.h and streamer-hooks.h.
12297         (struct string_slot): Move to data-streamer.h.
12298         (hash_string_slot_node): Likewise.
12299         (eq_string_slot_node): Likewise.
12300         (lto_string_index): Move to data-streamer-out.c.
12301         (lto_output_string_with_length): Likewise.
12302         (lto_output_string): Likewise.
12303         (output_string_cst): Move to tree-streamer-out.c.
12304         (output_identifier): Likewise.
12305         (output_zero): Move to data-streamer-out.c
12306         (output_uleb128): Likewise.
12307         (output_sleb128): Likewise.
12308         (output_record_start): Move to data-streamer.h
12309         (pack_ts_base_value_fields): Move to tree-streamer-out.c.
12310         (pack_ts_real_cst_value_fields): Likewise.
12311         (pack_ts_fixed_cst_value_fields): Likewise.
12312         (pack_ts_decl_common_value_fields): Likewise.
12313         (pack_ts_decl_wrtl_value_fields): Likewise.
12314         (pack_ts_decl_with_vis_value_fields): Likewise.
12315         (pack_ts_function_decl_value_fields): Likewise.
12316         (pack_ts_type_common_value_fields): Likewise.
12317         (pack_ts_block_value_fields): Likewise.
12318         (pack_ts_translation_unit_decl_value_fields): Likewise.
12319         (pack_value_fields): Likewise.
12320         (lto_output_chain): Likewise.
12321         (lto_output_ts_common_tree_pointers): Likewise.
12322         (lto_output_ts_vector_tree_pointers): Likewise.
12323         (lto_output_ts_complex_tree_pointers): Likewise.
12324         (lto_output_ts_decl_minimal_tree_pointers): Likewise.
12325         (lto_output_ts_decl_common_tree_pointers): Likewise.
12326         (lto_output_ts_decl_non_common_tree_pointers): Likewise.
12327         (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
12328         (lto_output_ts_field_decl_tree_pointers): Likewise.
12329         (lto_output_ts_function_decl_tree_pointers): Likewise.
12330         (lto_output_ts_type_common_tree_pointers): Likewise.
12331         (lto_output_ts_type_non_common_tree_pointers): Likewise.
12332         (lto_output_ts_list_tree_pointers): Likewise.
12333         (lto_output_ts_vec_tree_pointers): Likewise.
12334         (lto_output_ts_exp_tree_pointers): Likewise.
12335         (lto_output_ts_block_tree_pointers): Likewise.
12336         (lto_output_ts_binfo_tree_pointers): Likewise.
12337         (lto_output_ts_constructor_tree_pointers): Likewise.
12338         (lto_output_ts_target_option): Likewise.
12339         (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
12340         (lto_output_tree_pointers): Likewise.
12341         (lto_output_tree_header): Likewise.
12342         (lto_output_builtin_tree): Likewise.
12343         (lto_write_tree): Likewise.
12344         (lto_output_integer_cst): Likewise.
12345         (lto_output_tree): Likewise.
12346         (output_phi): Move to gimple-streamer-out.c.
12347         (output_gimple_stmt): Likewise.
12348         (output_bb): Likewise.
12349         * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
12350         (streamer_hooks): Move to streamer-hooks.c.
12351         (check_handled_ts_structures): Move to tree-streamer.c
12352         (lto_streamer_cache_add_to_node_array): Likewise.
12353         (lto_streamer_cache_insert_1): Likewise.
12354         (lto_streamer_cache_insert): Likewise.
12355         (lto_streamer_cache_insert_at): Likewise.
12356         (lto_streamer_cache_append): Likewise.
12357         (lto_streamer_cache_lookup): Likewise.
12358         (lto_streamer_cache_get): Likewise.
12359         (lto_record_common_node): Likewise.
12360         (lto_preload_common_nodes): Likewise.
12361         (lto_streamer_cache_create): Likewise.
12362         (lto_streamer_cache_delete): Likewise.
12363         (streamer_hooks_init): Move to streamer-hooks.c.
12364         * lto-streamer.h: Include diagnostic.h
12365         (struct output_block, struct lto_input_block,
12366         struct data_in, struct bitpack_d): Remove forward declarations.
12367         (struct bitpack_d): Move to data-streamer.h.
12368         (struct lto_streamer_cache_d): Move to tree-streamer.h.
12369         (struct streamer_hooks): Move to streamer-hooks.h.
12370         (bp_pack_var_len_unsigned): Move to data-streamer.h.
12371         (bp_pack_var_len_int): Likewise.
12372         (bp_unpack_var_len_unsigned): Likewise.
12373         (bp_unpack_var_len_int): Likewise.
12374         (lto_input_location): Declare.
12375         (lto_tag_check_set): Declare.
12376         (lto_init_eh): Declare.
12377         (lto_output_tree_ref): Declare.
12378         (lto_output_location): Declare.
12379         (bitpack_create): Move to data-streamer.h.
12380         (bp_pack_value): Likewise.
12381         (lto_output_bitpack): Likewise.
12382         (lto_input_bitpack): Likewise.
12383         (bp_unpack_value): Likewise.
12384         (lto_output_1_stream): Likewise.
12385         (lto_input_1_unsigned): Likewise.
12386         (lto_output_int_in_range): Likewise.
12387         (lto_input_int_in_range): Likewise.
12388         (bp_pack_int_in_range): Likewise.
12389         (bp_unpack_int_in_range): Likewise.
12390         (lto_output_enum): Likewise.
12391         (lto_input_enum): Likewise.
12392         (bp_pack_enum): Likewise.
12393         (bp_unpack_enum): Likewise.
12394         * streamer-hooks.c: New.
12395         * streamer-hooks.h: New.
12396         * tree-streamer-in.c: New.
12397         * tree-streamer-out.c: New.
12398         * tree-streamer.c: New.
12399         * tree-streamer.h: New.
12400
12401 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12402
12403         * gthr-posix95.h: Remove.
12404         * gthr.h [_PTHREADS95]: Remove.
12405         * configure.ac (enable_threads): Remove posix95.
12406         * configure: Regenerate.
12407         * doc/install.texi (Configuration, --enable-threads): Remove posix95.
12408
12409 2011-08-08  Uros Bizjak  <ubizjak@gmail.com>
12410
12411         PR target/49781
12412         * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
12413         SImode addresses.
12414         (ix86_print_operand_address): Handle zero-extended addresses.
12415         (memory_address_length): Add length of addr32 prefix for
12416         zero-extended addresses.
12417         (ix86_secondary_reload): Handle moves to/from double-word general
12418         registers from/to zero-extended addresses.
12419         * config/i386/predicates.md (lea_address_operand): Reject
12420         zero-extended operands.
12421
12422 2011-08-08  H.J. Lu  <hongjiu.lu@intel.com>
12423
12424         PR other/48007
12425         * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
12426
12427         * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
12428         (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
12429
12430         * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
12431         (_Unwind_Context_Reg_Val): Likewise.
12432         (_Unwind_Get_Unwind_Word): Likewise.
12433         (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
12434         (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
12435         (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
12436         for EXTENDED_CONTEXT_BIT.
12437         (__frame_state_for): Likewise.
12438         (uw_init_context_1): Likewise.
12439         (_Unwind_GetGR): Updated.
12440         (_Unwind_SetGR): Likewise.
12441         (_Unwind_GetGRPtr): Likewise.
12442         (_Unwind_SetGRPtr): Likewise.
12443         (_Unwind_SetGRValue): Likewise.
12444         (_Unwind_GRByValue): Likewise.
12445         (uw_install_context_1): Likewise.
12446
12447         * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
12448         ASSUME_EXTENDED_UNWIND_CONTEXT.
12449         * doc/tm.texi: Regenerated.
12450
12451 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12452
12453         * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
12454
12455 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12456
12457         * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
12458         Linux/GNU-specific.
12459         (DEC Alpha Options, -mtune): Likewise.
12460         (MIPS Options, -march): native is supported on IRIX.
12461
12462 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12463
12464         * config/sparc/driver-sparc.c: New file.
12465         * config/sparc/x-sparc: New file.
12466         * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
12467         * config/sparc/sparc.opt (native): New value for enum processor_type.
12468         * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
12469         * config/sparc/sparc.c (sparc_option_override): Abort if
12470         PROCESSOR_NATIVE gets here.
12471         * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
12472         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
12473         DRIVER_SELF_SPECS): Define.
12474         * doc/invoke.texi (SPARC Options, -mcpu): Document native.
12475         (SPARC Options, -mtune): Likewise.
12476         * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
12477         Substitute result.
12478         * configure: Regenerate.
12479         * Makefile.in (EXTRA_GCC_LIBS): Set.
12480         (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
12481         (cpp$(exeext)): Likewise.
12482
12483 2011-08-08  Richard Guenther  <rguenther@suse.de>
12484
12485         * tree-vrp.c (extract_range_from_unary_expr_1): New function,
12486         split out from ...
12487         (extract_range_from_unary_expr): ... here.  Handle BIT_NOT_EXPR
12488         by composition.
12489
12490 2011-08-08  Mikael Pettersson  <mikpe@it.uu.se>
12491
12492         PR tree-optimization/50005
12493         * ipa-inline-analysis (remap_predicate): Add cast to
12494         silence signed/unsigned comparison warning.
12495
12496 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
12497
12498         * modulo-sched.c (get_sched_window): Use a table for the debug output.
12499         Print the current ii.
12500         (sms_schedule_by_order): Reduce whitespace in dump line.
12501
12502 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
12503
12504         * modulo-sched.c (get_sched_window): Use just one loop for predecessors
12505         and one loop for successors.  Fix upper bound of memory range.
12506
12507 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
12508
12509         PR target/50001
12510         * config/alpha/alpha.c (alpha_instantiate_decls): New function.
12511         (TARGET_INSTANTIATE_DECLS): New define.
12512
12513 2011-08-06  Paolo Bonzini  <bonzini@gnu.org>
12514             Mikael Morin   <mikael.morin@sfr.fr>
12515
12516         * Makefile.in (INCLUDES_FOR_TARGET): New.
12517         (LIBGCC2_CFLAGS): Use it.
12518         (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
12519
12520 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
12521
12522         * config/i386/i386.c (ix86_compute_frame_layout): Simplify
12523         frame->save_regs_using_mov calculation.
12524
12525 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
12526
12527         * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
12528         * config/i386/sse.md (castmode): New mode attribute.
12529         (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
12530         avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
12531
12532 2011-08-05  Jan Hubicka  <jh@suse.cz>
12533
12534         PR middle-end/49494
12535         * ipa-inline-analysis.c (remap_predicate): Add bounds check.
12536
12537 2011-08-05  Jan Hubicka  <jh@suse.cz>
12538
12539         PR middle-end/49500
12540         * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
12541         handle aliases.
12542         (create_emultls_var):New function.
12543         (ipa_lower_emutls): Handle aliases correctly.
12544
12545 2011-08-05  Jan Hubicka  <jh@suse.cz>
12546
12547         PR middle-end/49735
12548         * ipa-inline.c (recursive_inlining): Look through aliases.
12549
12550 2011-08-05  Jason Merrill  <jason@redhat.com>
12551
12552         * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
12553         declarations to beginning of function.
12554
12555 2011-08-05  Bernd Schmidt  <bernds@codesourcery.com>
12556
12557         PR rtl-optimization/49900
12558         * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
12559         ensure basic blocks stay in the same order.
12560
12561 2011-08-05  Aldy Hernandez  <aldyh@redhat.com>
12562
12563         * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
12564         store_bit_field.
12565         (s390_expand_atomic): Same.
12566
12567 2011-08-05  Richard Henderson  <rth@redhat.com>
12568
12569         PR rtl-opt/49977
12570         * dwarf2cfi.c (scan_insn_after): Split out of ...
12571         (scan_trace): ... here.  Correctly place notes wrt sequences.
12572
12573 2011-08-05  Kaz Kojima  <kkojima@gcc.gnu.org>
12574             Richard Henderson  <rth@redhat.com>
12575
12576         PR rtl-opt/49982
12577         * expr.c (fixup_args_size_notes): Look through no-op moves.
12578
12579 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
12580
12581         * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
12582         of "m" for operand 0.  Add type and mode attribute.
12583         (*pushxf_nointeger"): Use "<" constraint for operand 0.
12584         (*pushdf_rex64): New pattern, split out of *pushdf.  Use "m"
12585         constraint instead of "o" for opreand 1.
12586         (*pushdf): Disable for TARGET_64BIT.  Correct mode attribute.
12587         (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
12588         operand 0, alternative 4.
12589         (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
12590
12591 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
12592
12593         * config/i386/predicates.md (lea_address_operand): Rename from
12594         no_seg_address_operand.
12595         * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
12596         (*lea_1_zext): Ditto.
12597         (*lea_2): Ditto.
12598         (*lea_2_zext): Ditto.
12599
12600 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
12601
12602         * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
12603         parts.base and parts.index.
12604         * config/i386/predicates.md (aligned_operand): Ditto.
12605         (cmpxchg8b_pic_memory_operand): Ditto.
12606
12607 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12608
12609         * config/soft-fp: Move to ../libgcc.
12610         * Makefile.in (SFP_MACHINE): Remove.
12611         (libgcc-support): Remove $(SFP_MACHINE) dependency.
12612         * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
12613         * config/arm/t-arm-softfp: Move to
12614         ../libgcc/config/arm/t-softfp.
12615         * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
12616         * config/c6x/t-c6x-softfp: Remove.
12617         * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
12618         * config/i386/t-fprules-softfp: Move to
12619         ../libgcc/config/t-softfp-tf.
12620         * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
12621         * config/ia64/t-fprules-softfp: Remove.
12622         * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
12623         * config/lm32/t-fprules-softfp: Remove.
12624         * config/moxie/sfp-machine.h: Remove.
12625         * config/moxie/t-moxie-softfp: Remove.
12626         * config/rs6000/darwin-ldouble-format: Move to
12627         ../libgcc/config/rs6000/ibm-ldouble-format.
12628         * config/rs6000/darwin-ldouble.c: Move to
12629         ../libgcc/config/rs6000/ibm-ldouble.c
12630         * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
12631         * config/rs6000/libgcc-ppc64.ver: Likewise.
12632         * config/rs6000/sfp-machine.h: Likewise.
12633         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
12634         $(srcdir)/config/rs6000/libgcc-ppc64.ver.
12635         (LIB2FUNCS_EXTRA): Remove.
12636         (TARGET_LIBGCC2_CFLAGS): Remove.
12637         * config/rs6000/t-aix52: Likewise
12638         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
12639         $(srcdir)/config/rs6000/darwin-ldouble.c.
12640         (SHLIB_MAPFILES): Remove.
12641         * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
12642         $(srcdir)/config/rs6000/darwin-ldouble.c.
12643         * config/rs6000/t-fprules-softfp: Move to
12644         ../libgcc/config/t-softfp-sfdf.
12645         * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
12646         * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
12647         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
12648         $(srcdir)/config/rs6000/darwin-ldouble.c.
12649         * config/score/sfp-machine.h: Move to ../libgcc/config/score.
12650         * config/score/t-score-softfp: Remove.
12651         * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
12652         soft-fp/t-softfp from tmake_file.
12653         (arm*-*-uclinux*): Likewise.
12654         (arm*-*-ecos-elf): Likewise.
12655         (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
12656         (arm*-*-rtems*): Likewise.
12657         (arm*-*-elf): Likewise.
12658         (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
12659         tmake_file.
12660         (moxie-*-uclinux*): Likewise.
12661         (moxie-*-rtems*): Likewise.
12662         (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
12663         tmake_file.
12664         (lm32-*-rtems*): Likewise.
12665         (lm32-*-uclinux*): Likewise.
12666         (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
12667         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
12668         (powerpc-*-linux*, powerpc64-*-linux*): Remove
12669         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
12670         (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
12671         tmake_file.
12672         (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
12673         tmake_file.
12674         (tic6x-*-uclinux): Likewise.
12675         (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
12676         soft-fp/t-softfp from tmake_file.
12677         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
12678         (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
12679         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
12680         (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
12681         (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
12682
12683 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12684
12685         * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
12686         (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
12687         (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
12688         TPBIT, TPBIT_FUNCS.
12689         * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
12690         * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
12691         Remove.
12692         * config/arm/t-vxworks: Likewise.
12693         * config/arm/t-wince-pe: Likewise.
12694         * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
12695         * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
12696         * config/bfin/t-bfin-elf: Likewise.
12697         * config/bfin/t-bfin-linux: Likewise.
12698         * config/bfin/t-bfin-uclinux: Likewise.
12699         * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
12700         Remove.
12701         * config/fr30/t-fr30: Likewise.
12702         * config/frv/t-frv: Likewise.
12703         * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
12704         * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
12705         * config/m32c/t-m32c: Likewise.
12706         * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
12707         * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
12708         * config/mcore/t-mcore: Likewise.
12709         * config/mep/t-mep: Likewise.
12710         * config/microblaze/t-microblaze: Likewise.
12711         * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
12712         * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
12713         * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
12714         * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
12715         * config/mn10300/t-linux: Remove.
12716         * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
12717         * config/pdp11/t-pdp11: Likewise.
12718         * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
12719         * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
12720         * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
12721         (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
12722         * config/rs6000/t-aix52: Likewise.
12723         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
12724         $(srcdir)/config/rs6000/ppc64-fp.c.
12725         * config/rs6000/t-fprules-fpbit: Remove.
12726         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
12727         * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
12728         * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
12729         * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
12730         * config/sparc/t-elf: Likewise.
12731         * config/sparc/t-leon: Likewise.
12732         * config/sparc/t-leon3: Likewise.
12733         * config/spu/t-spu-elf: Likewise.
12734         (DPBIT_FUNCS): Remove.
12735         * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
12736         * config/v850/t-v850: Likewise.
12737         * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
12738         (avr-*-*): Likewise.
12739         (h8300-*-rtems*): Set libgcc_tm_file.
12740         (h8300-*-elf*): Likewise.
12741         (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
12742         tmake_file.
12743         (powerpc-*-eabisim*): Likewise.
12744         (powerpc-*-elf*): Likewise.
12745         (powerpc-*-eabialtivec*): Likewise.
12746         (powerpc-xilinx-eabi*): Likewise.
12747         (powerpc-*-eabi*): Likewise.
12748         (powerpc-*-rtems*): Likewise.
12749         (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
12750         (powerpcle-*-elf*): Likewise.
12751         (powerpcle-*-eabisim*): Likewise.
12752         (powerpcle-*-eabi*): Likewise.
12753         (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
12754         (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
12755         * doc/fragments.texi (Target Fragment, Floating Point Emulation):
12756         Remove.
12757
12758 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12759
12760         * Makefile.in (UNWIND_H): Remove.
12761         (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
12762         ../libgcc/Makefile.in.
12763         (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
12764         (LIBUNWINDDEP): Remove.
12765         (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
12766         (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
12767         LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
12768         (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
12769         Don't copy $(UNWIND_H).
12770         * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
12771         * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
12772         * aclocal.m4: Regenerate.
12773         * configure: Regenerate.
12774         * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
12775         unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
12776         unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
12777         unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
12778         * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
12779         * config/arm/libunwind.S, config/arm/pr-support.c,
12780         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
12781         ../libgcc/config/arm.
12782         * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
12783         * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
12784         * config/frv/t-frv ($(T)frvbegin$(objext)): Use
12785         $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
12786         ($(T)frvend$(objext)): Likewise.
12787         * config/ia64/t-glibc (LIB2ADDEH): Remove.
12788         * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
12789         * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
12790         config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
12791         ../libgcc/config/ia64.
12792         * config/ia64/t-hpux (LIB2ADDEH): Remove.
12793         * config/ia64/t-ia64 (LIB2ADDEH): Remove.
12794         * config/ia64/t-vms (LIB2ADDEH): Remove.
12795         * config/ia64/vms.h (UNW_IVMS_MODE,
12796         MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
12797         * config/picochip/t-picochip (LIB2ADDEH): Remove.
12798         * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
12799         * config/rs6000/t-darwin (LIB2ADDEH): Remove.
12800         * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
12801         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
12802         $(srcdir)/../libgcc to refer to unwinder sources.
12803         * config/spu/t-spu-elf (LIB2ADDEH): Remove.
12804         * config/t-darwin (LIB2ADDEH): Remove.
12805         * config/t-freebsd (LIB2ADDEH): Remove.
12806         * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
12807         * config/t-libunwind-elf: Move to ../libgcc/config.
12808         * config/t-linux (LIB2ADDEH): Remove.
12809         * config/t-sol2 (LIB2ADDEH): Remove.
12810         * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
12811         * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
12812
12813 2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
12814
12815         * config/i386/i386.c (processor_alias_table): Add core-avx-i.
12816
12817         * doc/invoke.texi: Document core-avx-i.
12818
12819 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12820
12821         * tsystem.h (CONST_CAST2, CONST_CAST): Define.
12822
12823 2011-08-05  Ira Rosen  <ira.rosen@linaro.org>
12824
12825         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
12826         result of multiple results reduction when extracting the final
12827         value using scalar code.
12828
12829 2011-08-05  Richard Guenther  <rguenther@suse.de>
12830
12831         PR tree-optimization/49984
12832         * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
12833
12834 2011-08-05  Richard Guenther  <rguenther@suse.de>
12835
12836         * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
12837         return true for constant integer ranges.
12838         (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
12839         BIT_IOR_EXPR handling.
12840
12841 2011-08-04  Kai Tietz  <ktietz@redhat.com>
12842
12843         * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
12844         ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
12845
12846 2011-08-04  Ira Rosen  <ira.rosen@linaro.org>
12847
12848         * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
12849         pattern def statement, and its access macro.
12850         (NUM_PATTERNS): Set to 5.
12851         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
12852         pattern def statement.
12853         (vect_transform_loop): Likewise.
12854         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
12855         function vect_recog_over_widening_pattern ().
12856         (vect_operation_fits_smaller_type): New function.
12857         (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
12858         Likewise.
12859         (vect_pattern_recog_1): Move the code that marks pattern
12860         statements to vect_mark_pattern_stmts (), and call it.  Update
12861         documentation.
12862         * tree-vect-stmts.c (vect_supportable_shift): New function.
12863         (vect_analyze_stmt): Handle pattern def statement.
12864         (new_stmt_vec_info): Initialize pattern def statement.
12865
12866 2011-08-04  Richard Henderson  <rth@redhat.com>
12867
12868         PR target/49964
12869         * config/i386/i386.c (ix86_expand_call): Don't create nested
12870         PARALLELs for TARGET_VZEROUPPER.
12871         (ix86_split_call_vzeroupper): Fix extraction of the original call.
12872         * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
12873         recognize nested PARALLELs.
12874         (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
12875         *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
12876         *sibcall_value_pop_vzeroupper): Likewise.
12877
12878 2011-08-04  Richard Henderson  <rth@redhat.com>
12879
12880         PR middle-end/49968
12881         * calls.c (expand_call): Use fixup_args_size_notes for
12882         emit_stack_restore.
12883         * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
12884         in non-standard modes.
12885
12886 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
12887
12888         * gcc.c (self_spec): New variable.
12889         (static_specs): Add self_spec.
12890         (main): Call do_self_spec on "self_spec" specs after reading
12891         user specs files.  Move compare_debug handling right after that.
12892
12893 2011-08-04  Richard Guenther  <rguenther@suse.de>
12894
12895         * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
12896         (value_range_nonnegative_p): New function.
12897         (ssa_name_nonnegative_p): Use it.
12898         (value_range_constant_singleton): New function.
12899         (op_with_constant_singleton_value_range): Use it.
12900         (extract_range_from_binary_expr_1): New function, split out from ...
12901         (extract_range_from_binary_expr): ... this.  Remove fallback
12902         constant folding done here.
12903
12904 2011-08-04  Richard Guenther  <rguenther@suse.de>
12905
12906         PR tree-optimization/49806
12907         * tree-vrp.c (op_with_boolean_value_range_p): New function.
12908         (simplify_truth_ops_using_ranges): Simplify.  Allow inserting
12909         a new statement for a final conversion to bool.
12910
12911 2011-08-04  Romain Geissler  <romain.geissler@gmail.com>
12912
12913         * gengtype-state.c: Include "bconfig.h" if
12914         GENERATOR_FILE is defined, "config.h" otherwise.
12915         * gengtype.c: Likewise.
12916         * gengtype-lex.l: Likewise.
12917         * gengtype-parse.c: Likewise.
12918         * Makefile.in (gengtype-lex.o-warn): New variable.
12919         (plugin_resourcesdir): Likewise.
12920         (plugin_bindir): Likewise.
12921         (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
12922         (MOSTLYCLEANFILES): Add gengtype$(exeext).
12923         (native): Depend on gengtype$(exeext) is $enable_plugin
12924         is set to "yes".
12925         (gtype.state): Depend on s-gtype. Use temporary file.
12926         (gengtype-lex.o): New rule.
12927         (gengtype-parse.o): Likewise.
12928         (gengtype-state.o): Likewise.
12929         (gengtype$(exeext)): Likewise.
12930         (install-gengtype): Likewise.
12931         (gengtype.o): Likewise.
12932         (build/gengtype.o): Depend on version.h.
12933         (build/gengtype-state): Depend on double-int.h, version.h,
12934         $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
12935         (install-plugin): Depend on install-gengtype.
12936
12937 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
12938
12939         PR middle-end/49905
12940         * tree.h (init_attributes): New prototype.
12941         * attribs.c (init_attributes): No longer static.
12942
12943 2011-08-04  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12944
12945         * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
12946         maybe_suffix.
12947
12948 2011-08-03   David Li  <davidxl@google.com>
12949
12950         * tree-optimize.c (execute_fixup_cfg): Fix up entry
12951         outgoing edge counts after inlining.
12952
12953 2011-08-03   David Li  <davidxl@google.com>
12954
12955         * profile.c (compute_branch_probabilities): Compute
12956         function frequency after profile annotation.
12957
12958 2011-08-04  Alan Modra  <amodra@gmail.com>
12959
12960         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
12961         use_backchain_to_restore_sp initialisation.
12962         (rs6000_legitimate_offset_address_p): Simplify offset test.
12963
12964 2011-08-03  Richard Henderson  <rth@redhat.com>
12965
12966         * config/spu/spu.md: Use define_c_enum instead of define_constants.
12967         (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
12968         (UNSPECV_NOP): New.
12969
12970 2011-08-03  Richard Henderson  <rth@redhat.com>
12971
12972         PR target/34888
12973         * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
12974
12975 2011-08-03  Jakub Jelinek  <jakub@redhat.com>
12976
12977         PR tree-optimization/49948
12978         * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
12979
12980 2011-08-03  Anatoly Sokolov  <aesok@post.ru>
12981
12982         * config/m32c/m32c.c (class_sizes): Remove.
12983         (reduce_class): Change arguments and return type to reg_class_t.
12984         Change type cc var to HARD_REG_SET. Change type best var to
12985         reg_class_t. Change type best_size var to unsigned int. Remove
12986         initialization class_sizes var. Use reg_class_size array instead
12987         of class_sizes. Use reg_class_contents array instead
12988         of class_contents.
12989
12990 2011-08-03  Richard Guenther  <rguenther@suse.de>
12991
12992         PR middle-end/49958
12993         * fold-const.c (fold_binary_loc): Only associate
12994         (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
12995         overflow wraps.
12996
12997 2011-08-03  Alan Modra  <amodra@gmail.com>
12998
12999         PR rtl-optimization/49941
13000         * jump.c (mark_jump_label): Comment.
13001         (mark_jump_label_1): Set JUMP_LABEL for return jumps.
13002         * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
13003         (mark_used_flags): Don't mark RETURN.
13004
13005 2011-08-03  Richard Guenther  <rguenther@suse.de>
13006
13007         PR tree-optimization/49938
13008         * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
13009         deal with a POLYNOMIAL_CHREC.
13010
13011 2011-08-03  Revital Eres  <revital.eres@linaro.org>
13012
13013         * modulo-sched.c (calculate_stage_count,
13014         calculate_must_precede_follow, get_sched_window,
13015         try_scheduling_node_in_cycle, remove_node_from_ps): Add
13016         declaration.
13017         (update_node_sched_params, set_must_precede_follow, optimize_sc):
13018         New functions.
13019         (reset_sched_times): Call update_node_sched_params.
13020         (sms_schedule): Call optimize_sc.
13021         (get_sched_window): Change function arguments.
13022         (sms_schedule_by_order): Update call to get_sched_window.
13023         Call set_must_precede_follow.
13024         (calculate_stage_count): Add function argument.
13025
13026 2011-08-02  Richard Henderson  <rth@redhat.com>
13027
13028         PR target/49864
13029         PR target/49879
13030         * reg-notes.def (REG_ARGS_SIZE): New.
13031         * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
13032         (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
13033         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
13034         different stack levels.
13035         * combine-stack-adj.c (adjust_frame_related_expr): Remove.
13036         (maybe_move_args_size_note): New.
13037         (combine_stack_adjustments_for_block): Use it.
13038         * combine.c (distribute_notes): Place REG_ARGS_SIZE.
13039         * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
13040         (dw_trace_info): Add beg_true_args_size, end_true_args_size,
13041         beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
13042         (cur_cfa): New.
13043         (queued_args_size): Remove.
13044         (add_cfi_args_size): Assert size is non-negative.
13045         (stack_adjust_offset, dwarf2out_args_size): Remove.
13046         (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
13047         (notice_args_size, notice_eh_throw): New.
13048         (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
13049         (dwarf2out_frame_debug_adjust_cfa): Likewise.
13050         (dwarf2out_frame_debug_cfa_offset): Likewise.
13051         (dwarf2out_frame_debug_expr): Likewise.  Don't stack_adjust_offset.
13052         (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
13053         (change_cfi_row): Don't emit args_size.
13054         (maybe_record_trace_start_abnormal): Split out from ...
13055         (maybe_record_trace_start): Here.  Set args_size_undefined.
13056         (create_trace_edges): Update to match.
13057         (scan_trace): Handle REG_ARGS_SIZE.
13058         (connect_traces): Connect args_size between EH insns.
13059         * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
13060         * explow.c (suppress_reg_args_size): New.
13061         (adjust_stack_1): Split out from ...
13062         (adjust_stack): ... here.
13063         (anti_adjust_stack): Use it.
13064         (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
13065         * expr.c (mem_autoinc_base): New.
13066         (fixup_args_size_notes): New.
13067         (emit_single_push_insn_1): Rename from emit_single_push_insn.
13068         (emit_single_push_insn): New.  Generate REG_ARGS_SIZE.
13069         * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
13070         * reload1.c (reload_as_needed): Likewise.
13071         * rtl.h (fixup_args_size_notes): Declare.
13072
13073 2011-08-02  Paolo Carlini  <paolo.carlini@oracle.com>
13074
13075         PR bootstrap/49914
13076         * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
13077         of abs.
13078         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
13079         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
13080
13081 2011-08-02  Richard Henderson  <rth@redhat.com>
13082
13083         * config/h8300/h8300.c (push, pop): Return the insn.
13084         (h8300_swap_into_er6): Generate correct unwind info.
13085         (h8300_swap_out_of_er6): Likewise.
13086         * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
13087         complex cfa expression.
13088         (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
13089
13090 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
13091
13092         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
13093
13094 2011-08-02  Richard Henderson  <rth@redhat.com>
13095
13096         PR target/49878
13097         * config/h8300/h8300.c (h8300_move_ok): New.
13098         * config/h8300/h8300-protos.h: Declare it.
13099         * config/h8300/h8300.md (P): New mode iterator.
13100         (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
13101         (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
13102         (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
13103         (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
13104         (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
13105         and pushqi1_h8300hs_normal; use PRE_MODIFY and
13106         register_no_sp_elim_operand.
13107         (*pushhi1_h8300hs_<P>): Similarly.
13108         (pushqi1, pushhi1, pushhi1_h8300): Remove.
13109         * config/h8300/predicates.md (register_no_sp_elim_operand): New.
13110
13111 2011-08-02  Richard Henderson  <rth@redhat.com>
13112
13113         PR target/49881
13114         * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
13115
13116 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
13117
13118         * c-parser.c (enum c_parser_prec): New enum, moved from within
13119         c_parser_binary_expression.
13120         (c_parser_binary_expression): Add PREC argument.  Stop parsing
13121         if operator has lower or equal precedence than PREC.
13122         (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
13123         callers.
13124         (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
13125         Adjust c_finish_omp_atomic caller.
13126         (c_parser_omp_taskyield): New function.
13127         (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
13128         (c_parser_omp_clause_name): Handle final and mergeable clauses.
13129         (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
13130         functions.
13131         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
13132         and PRAGMA_OMP_CLAUSE_MERGEABLE.
13133         (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
13134         (c_parser_omp_clause_reduction): Handle min and max.
13135         * c-typeck.c (c_finish_omp_clauses): Don't complain about
13136         const qualified predetermined vars in firstprivate clause.
13137         andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
13138         Handle MIN_EXPR and MAX_EXPR.
13139         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
13140         and OMP_CLAUSE_MERGEABLE.
13141         (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
13142         and OMP_ATOMIC_CAPTURE_NEW.
13143         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
13144         OMP_CLAUSE_MERGEABLE.
13145         (omp_clause_code_name): Likewise.
13146         (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
13147         * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
13148         and OMP_CLAUSE_MERGEABLE.
13149         (OMP_CLAUSE_FINAL_EXPR): Define.
13150         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
13151         OMP_CLAUSE_MERGEABLE.
13152         (expand_task_call): Likewise.
13153         (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
13154         (expand_omp_atomic_fetch_op): Handle cases where old or new
13155         value is needed afterwards.
13156         (expand_omp_atomic): Call expand_omp_atomic_load resp.
13157         expand_omp_atomic_store.
13158         * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
13159         OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
13160         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
13161         OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
13162         * tree-nested.c (convert_nonlocal_omp_clauses,
13163         convert_local_omp_clauses): Likewise.
13164         * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
13165         OMP_ATOMIC_CAPTURE_NEW): New.
13166         * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
13167         (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
13168         New inlines.
13169         * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
13170         * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
13171         OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
13172
13173 2011-08-02  Kai Tietz  <ktietz@redhat.com>
13174
13175         * gimple.c (canonicalize_cond_expr_cond): Handle cast from
13176         boolean-type.
13177         (ssa_forward_propagate_and_combine): Interprete result of
13178         forward_propagate_comparison.
13179         * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
13180         boolean-typed operands for comparisons.
13181
13182 2011-08-02  Georg-Johann Lay  <avr@gjlay.de>
13183
13184         * config/avr/libgcc.S: Gather related function in the
13185         same input section.
13186         (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
13187         __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
13188         references.
13189         (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
13190         __udivmodsi4, __divmodsi4, __prologue_saves__,
13191         __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
13192         __do_copy_data, __do_clear_bss, __do_global_ctors,
13193         __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
13194
13195 2011-08-02  Uros Bizjak  <ubizjak@gmail.com>
13196
13197         PR target/47766
13198         * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
13199         (stack_protect_test): The pattern compares ptr_mode value.
13200
13201 2011-08-02  Alan Modra  <amodra@gmail.com>
13202
13203         * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
13204         note for save_LR_around_toc_setup sequence.
13205
13206 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
13207
13208         * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
13209
13210 2011-08-01  Sebastian Pop  <sebastian.pop@amd.com>
13211             Joseph Myers  <joseph@codesourcery.com>
13212
13213         * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
13214         * hwint.c: Include diagnostic-core.h.
13215         (abs_hwi): New.
13216         (gcd): Moved here...
13217         (pos_mul_hwi): New.
13218         (mul_hwi): New.
13219         (least_common_multiple): Moved here...
13220         * hwint.h (gcd): ... from here.
13221         (least_common_multiple): ... from here.
13222         (HOST_WIDE_INT_MIN): New.
13223         (HOST_WIDE_INT_MAX): New.
13224         (abs_hwi): Declared.
13225         (gcd): Declared.
13226         (pos_mul_hwi): Declared.
13227         (mul_hwi): Declared.
13228         (least_common_multiple): Declared.
13229         * omega.c (check_pos_mul): Removed.
13230         (check_mul): Removed.
13231         (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
13232         mul_hwi instead of check_mul.
13233
13234 2011-08-01  Richard Henderson  <rth@redhat.com>
13235
13236         PR target/49881
13237         * config/avr/avr.h (PUSH_ROUNDING): New.
13238         * config/avr/avr.md (pushqi1): Rename from *pushqi.
13239         (*pushhi, *pushsi, *pushsf): Remove.
13240         (MPUSH): New mode iterator.
13241         (push<MPUSH>1): New expander.
13242
13243 2011-08-01  Anatoly Sokolov  <aesok@post.ru>
13244
13245         * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
13246         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
13247         * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
13248         mmix_preferred_output_reload_class): Remove.
13249         * config/mmix/mmix.c (mmix_preferred_reload_class,
13250         mmix_preferred_output_reload_class): Make static. Change rclass
13251         argument and return type to reg_class_t.
13252         (TARGET_PREFERRED_RELOAD_CLASS,
13253         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13254
13255 2011-08-01  Joern Rennecke  <joern.rennecke@embecosm.com>
13256
13257         * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
13258         handling.
13259
13260 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
13261
13262         PR target/47766
13263         * config/i386/i386.md (PTR): New.
13264         (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
13265         (stack_protect_test): Likewise.
13266         (stack_protect_set_<mode>): Replace ":P" with ":PTR".
13267         (stack_tls_protect_set_<mode>): Likewise.
13268         (stack_tls_protect_test_<mode>): Likewise.
13269
13270 2011-08-01  Uros Bizjak  <ubizjak@gmail.com>
13271
13272         PR target/49927
13273         * config/i386/i386.c (ix86_address_subreg_operand): New.
13274         (ix86_decompose_address): Use ix86_address_subreg_operand.
13275         (ix86_legitimate_address_p): Do not assert that subregs satisfy
13276         register_no_elim_operand in DImode.
13277
13278 2011-08-01  Ira Rosen  <ira.rosen@linaro.org>
13279
13280         PR tree-optimization/49926
13281         * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
13282         in a chain doesn't have uses both inside and outside the loop.
13283
13284 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
13285
13286         * config/avr/avr.h (mcu_type_s): Add errata_skip field.
13287         * config/avr/avr-devices.c (avr_mcu_types): Use it.
13288         * config/avr/avr-mcus.def (AVR_MCU): Use it.
13289         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
13290         define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
13291         * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
13292         Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
13293         to detect if XJMP must not be skipped.
13294
13295 2011-08-02  Alan Modra  <amodra@gmail.com>
13296
13297         * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
13298         Delete.
13299         * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
13300         (rs6000_emit_prologue): Don't prematurely return when
13301         TARGET_SINGLE_PIC_BASE.  Don't emit eh_frame info in
13302         save_toc_in_prologue case.
13303         (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
13304         calls_alloca.
13305
13306 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
13307
13308         * config/avr/avr-devices.c: Delete SVN property svn:executable.
13309         * config/avr/predicates.md: Ditto.
13310         * config/avr/driver-avr.c: Ditto.
13311         * config/avr/genopt.sh: Set SVN property svn:executable to *.
13312
13313 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
13314
13315         * calls.c (emit_library_call_value_1): Declare size only if
13316         BLOCK_REG_PADDING is defined.
13317
13318 2011-08-01  Kirill Yukhin  <kirill.yukhin@intel.com>
13319
13320         PR target/49547
13321         * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
13322         (x86_64-*-*): Likewise.
13323         * config/i386/i386.opt (mlzcnt): New.
13324         * config/i386/abmintrin.h: File removed.
13325         (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
13326         * config/i386/lzcntintrin.h: ... here.  New file.
13327         (__lzcnt): Rename to ...
13328         (__lzcnt32): ... this.
13329         * config/i386/bmiintrin.h (head): Update copyright year.
13330         (__lzcnt_u16): Removed.
13331         (__lzcnt_u32): Likewise.
13332         (__lzcnt_u64): Likewise.
13333         * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
13334         is defined, remove abmintrin.h.
13335         * config/i386/cpuid.h (bit_LZCNT): New.
13336         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
13337         LZCNT feature.
13338         * config/i386/i386-c.c (ix86_target_macros_internal): Define
13339         __LZCNT__ if needed.
13340         * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
13341         (ix86_option_override_internal): Handle LZCNT option.
13342         (ix86_valid_target_attribute_inner_p): Likewise.
13343         (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
13344         * config/i386/i386.h (TARGET_LZCNT): New.
13345         (CLZ_DEFINED_VALUE_AT_ZERO): Update.
13346         * config/i386/i386.md (clz<mode>2): Update insn constraint.
13347         (clz<mode>2_lzcnt): Likewise.
13348         * doc/invoke.texi: Mention -mlzcnt option.
13349         * doc/extend.texi: Likewise.
13350
13351 2011-08-01  Julian Brown  <julian@codesourcery.com>
13352
13353         * configure.ac (fixed-point): Add ARM support.
13354         * configure: Regenerate.
13355         * config/arm/arm.c (arm_fixed_mode_set): New struct.
13356         (arm_set_fixed_optab_libfunc): New.
13357         (arm_set_fixed_conv_libfunc): New.
13358         (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
13359         ARM-specific names.
13360         (aapcs_libcall_value): Return sub-word-size fixed-point libcall
13361         return values in SImode.
13362         (arm_return_in_msb): Return fixed-point types in the msb.
13363         (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
13364         upwards.
13365         (arm_scalar_mode_supported_p): Support fixed-point modes.
13366         (arm_vector_mode_supported_p): Support vector fixed-point modes.
13367         * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
13368         (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
13369         (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
13370         (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
13371         * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
13372         New mode iterators.
13373         (qaddsub_suf): New mode attribute.
13374         * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
13375         vector modes.
13376         * config/arm/predicates.md (sat_shift_operator): New predicate.
13377         * config/arm/arm-fixed.md: New.
13378         * config/arm/arm.md: Include arm-fixed.md.
13379         * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
13380
13381 2011-08-01  Julian Brown  <julian@codesourcery.com>
13382
13383         * calls.c (emit_library_call_value_1): Support padding for libcall
13384         arguments and return values.
13385         * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
13386         downwards in big-endian mode.
13387
13388 2011-08-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13389
13390         PR debug/49887
13391         * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
13392         * config/sol2-protos.h: Likewise.
13393         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
13394         solaris_code_end.
13395         * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
13396         * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
13397         solaris_file_end.
13398         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
13399
13400 2011-08-01  Julian Brown  <julian@codesourcery.com>
13401
13402         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
13403
13404 2011-08-01  Julian Brown  <julian@codesourcery.com>
13405
13406         * final.c (output_addr_const): Print fixed-point constants as
13407         decimal not hex.
13408
13409 2011-08-01  Richard Guenther  <rguenther@suse.de>
13410
13411         * stor-layout.c (initialize_sizetypes): Properly sign-extend
13412         bitsiztype TYPE_MAX_VALUE.
13413
13414 2011-08-01  Julian Brown  <julian@codesourcery.com>
13415
13416         * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
13417         comparison helpers.
13418
13419 2011-07-31  Richard Henderson  <rth@redhat.com>
13420
13421         * config/h8300/crti.asm: Add flags to .section directive.
13422         * config/h8300/crtn.asm: Likewise.
13423
13424 2011-07-31  Richard Henderson  <rth@redhat.com>
13425
13426         * stor-layout.c (initialize_sizetypes): Handle unsigned short.
13427         * tree.c (build_common_tree_nodes): Likewise.
13428
13429 2011-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
13430
13431         PR target/49880
13432         * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
13433         (divsi3_i1): Likewise.
13434
13435 2011-07-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13436
13437         PR tree-optimization/49749
13438         * tree-ssa-reassoc.c (get_rank): New forward declaration.
13439         (PHI_LOOP_BIAS): New macro.
13440         (phi_rank): New function.
13441         (loop_carried_phi): Likewise.
13442         (propagate_rank): Likewise.
13443         (get_rank): Add calls to phi_rank and propagate_rank.
13444
13445 2011-07-31  H.J. Lu  <hongjiu.lu@intel.com>
13446
13447         * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
13448         of TARGET_64BIT.
13449         (PTRDIFF_TYPE): Likewise.
13450
13451 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
13452
13453         PR target/49920
13454         * config/i386/i386.md (strset): Do not expand strset_singleop
13455         when %eax or $edi are fixed.
13456         (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
13457         (*strsetsi_1): Ditto.
13458         (*strsethi_1): Ditto.
13459         (*strsetqi_1): Ditto.
13460         (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
13461         (*rep_stossi): Ditto.
13462         (*rep_stosqi): Ditto.
13463         (*strlenqi_1): Ditto.
13464         (cmpstrnsi): Also fail when %ecx is fixed.
13465         (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
13466         (*cmpstrnqi_1): Ditto.
13467         (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
13468         (*strmovsi_1): Ditto.
13469         (*strmovhi_1): Ditto.
13470         (*strmovqi_1): Ditto.
13471         (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
13472         (*rep_movsi): Ditto.
13473         (*rep_movqi): Ditto.
13474
13475 2011-07-31  Mikael Pettersson  <mikpe@it.uu.se>
13476
13477         PR target/47908
13478         * config/m68k/m68k.c (m68k_override_options_after_change): New function.
13479         Disable instruction scheduling for non-ColdFire targets.
13480         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
13481
13482 2011-07-31  Revital Eres  <revital.eres@linaro.org>
13483
13484         * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
13485         of anti-dep edge from a branch.
13486         (add_cross_iteration_register_deps): Create anti-dep edge from
13487         a branch.
13488
13489 2011-07-31  Revital Eres  <revital.eres@linaro.org>
13490
13491         * modulo-sched.c: Change comment.
13492         (reset_sched_times): Fix print message.
13493         (print_partial_schedule): Add print info.
13494
13495 2011-07-31  Tom de Vries  <tom@codesourcery.com>
13496
13497         PR middle-end/43513
13498         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
13499         get_object_alignment and TYPE_ALIGN.
13500
13501 2011-07-30  Tom de Vries  <tom@codesourcery.com>
13502
13503         PR middle-end/43513
13504         * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
13505         (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
13506
13507 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13508
13509         * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
13510         <sys/sbd.h>.
13511         (cpu_types): New array.
13512         (cputype): New function.
13513         (host_detect_local_cpu): Only define buf, f if !__sgi__.
13514         Use scaninvent instead of /proc/cpuinfo if __sgi__.
13515         * config.host: Also use driver-native.o, mips/x-native on
13516         mips-sgi-irix*.
13517         * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
13518         (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
13519         (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
13520
13521 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
13522
13523         PR middle-end/49897
13524         PR middle-end/49898
13525         * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
13526         in nested parallel and outer is a gimple_reg, mark it as addressable
13527         and set its bit in task_shared_vars bitmap too.
13528
13529 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
13530
13531         * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
13532
13533 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13534
13535         * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
13536         IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
13537         (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
13538         AMASK_LOCKPFTCHOK): Define.
13539         (host_detect_local_cpu): Remove buf, f, cpu_names.
13540         Define cpu_types, implver, amask.
13541         Use __builtin_alpha_implver, __builtin_alpha_amask to determine
13542         native CPU.
13543         * config.host: Also use driver-alpha.o, alpha/x-alpha on
13544         alpha*-dec-osf*.
13545         * config/alpha/osf5.h [__alpha__ || __alpha]
13546         (host_detect_local_cpu): Declare.
13547         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
13548         (DRIVER_SELF_SPECS): Define.
13549
13550 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
13551
13552         PR target/47715
13553         * config/i386/i386.md (*load_tp_x32): New.
13554         (*load_tp_x32_zext): Ditto.
13555         (*add_tp_x32): Ditto.
13556         (*add_tp_x32_zext): Ditto.
13557         (*load_tp_<mode>): Disable for TARGET_X32 targets.
13558         (*add_tp_<mode>): Ditto.
13559         * config/i386/i386.c (get_thread_pointer): Load thread pointer in
13560         ptr_mode and convert to Pmode if needed.
13561
13562 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
13563
13564         PR target/49687
13565         * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
13566         muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
13567         *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
13568         Add X to register footprint: Clobber r26/r27.
13569
13570 2011-07-29  Richard Guenther  <rguenther@suse.de>
13571
13572         * builtins.c (fold_builtin_signbit): Build the comparison
13573         with a proper type.
13574
13575 2011-07-29  Richard Guenther  <rguenther@suse.de>
13576
13577         PR tree-optimization/49893
13578         * tree-predcom.c (suitable_reference_p): Volatile references
13579         are not suitable.
13580
13581 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
13582
13583         PR target/49313
13584         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
13585         (__ctzsi2): Result for 0 may be undefined.
13586         (__ctzhi2): Result for 0 may be undefined.
13587         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
13588         (__popcountsi2): Ditto. And don't clobber r26.
13589         (__popcountdi2): Ditto. And don't clobber r27.
13590         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
13591         (parityhi2): New expand.
13592         (paritysi2): New expand.
13593         (popcounthi2): New expand.
13594         (popcountsi2): New expand.
13595         (clzhi2): New expand.
13596         (clzsi2): New expand.
13597         (ctzhi2): New expand.
13598         (ctzsi2): New expand.
13599         (ffshi2): New expand.
13600         (ffssi2): New expand.
13601         (copysignsf3): New insn.
13602         (bswapsi2): New expand.
13603         (*parityhi2.libgcc): New insn.
13604         (*parityqihi2.libgcc): New insn.
13605         (*paritysihi2.libgcc): New insn.
13606         (*popcounthi2.libgcc): New insn.
13607         (*popcountsi2.libgcc): New insn.
13608         (*popcountqi2.libgcc): New insn.
13609         (*popcountqihi2.libgcc): New insn-and-split.
13610         (*clzhi2.libgcc): New insn.
13611         (*clzsihi2.libgcc): New insn.
13612         (*ctzhi2.libgcc): New insn.
13613         (*ctzsihi2.libgcc): New insn.
13614         (*ffshi2.libgcc): New insn.
13615         (*ffssihi2.libgcc): New insn.
13616         (*bswapsi2.libgcc): New insn.
13617
13618 2011-07-29  Richard Guenther  <rguenther@suse.de>
13619
13620         * tree-vrp.c (get_value_range): Only set parameter default
13621         definitions to varying, leave others at undefined.
13622         (extract_range_from_binary_expr): Fix undefined handling.
13623         (vrp_visit_phi_node): Handle merged undefined state.
13624
13625 2011-07-29  Wei Guozhi  <carrot@google.com>
13626
13627         PR rtl-optimization/49799
13628         * combine.c (make_compound_operation): Check if the bit field is valid
13629         before change it to bit field extraction.
13630
13631 2011-07-29  Bernd Schmidt  <bernds@codesourcery.com>
13632
13633         PR rtl-optimization/49891
13634         * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
13635         newly created returnjumps.
13636
13637 2011-07-28  DJ Delorie  <dj@redhat.com>
13638
13639         * expr.c (expand_expr_addr_expr_1): Detect a user request for a
13640         local frame in a naked function, and produce a suitable error for
13641         that specific case.
13642
13643         * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
13644         registers to be reloaded in HI classes when the target is HI.
13645
13646 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
13647
13648         * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
13649         bound_one, bound_two.
13650
13651 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
13652
13653         PR middle-end/48648
13654         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
13655         CLAST assignments.
13656         (translate_clast): Same.
13657         (translate_clast_assignment): New.
13658
13659 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
13660
13661         PR tree-optimization/49876
13662         * sese.c (rename_uses): Do not return false on gloog_error: set
13663         the new_expr to integer_zero_node and continue code generation.
13664         (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
13665
13666 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
13667
13668         PR debug/49846
13669         * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
13670         arguments also check if they aren't initialized with a MODE_INT
13671         mode of the same size.
13672
13673 2011-07-28  Aldy Hernandez  <aldyh@redhat.com>
13674
13675         * expr.c (get_bit_range): Handle *MEM_REF's.
13676
13677 2011-07-28  Bernd Schmidt  <bernds@codesourcery.com>
13678
13679         * rtlanal.c (tablejump_p): False for returns.
13680         * reorg.c (first_active_target_insn): New static function.
13681         (find_end_label): Set JUMP_LABEL for a new returnjump.
13682         (optimize_skip, get_jump_flags, rare_destination,
13683         mostly_true_jump, get_branch_condition,
13684         steal_delay_list_from_target, own_thread_p,
13685         fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
13686         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
13687         dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
13688         * jump.c (delete_related_insns): Likewise.
13689         (jump_to_label_p): New function.
13690         (redirect_target): New static function.
13691         (redirect_exp_1): Use it.  Adjust to handle ret_rtx in JUMP_LABELS.
13692         (redirect_jump_1): Assert that the new label is nonnull.
13693         (redirect_jump): Likewise.
13694         (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
13695         * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
13696         exit block.
13697         (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE.  All callers
13698         changed.  Ensure that the right label is passed to redirect_jump.
13699         * function.c (emit_return_into_block,
13700         thread_prologue_and_epilogue_insns): Ensure new returnjumps have
13701         ret_rtx in their JUMP_LABEL.
13702         * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
13703         * emit-rtl.c (skip_consecutive_labels): Allow the caller to
13704         pass ret_rtx as label.
13705         * cfglayout.c (fixup_reorder_chain): Use
13706         force_nonfallthru_and_redirect rather than force_nonfallthru.
13707         (duplicate_insn_chain): Copy JUMP_LABELs for returns.
13708         * rtl.h (ANY_RETURN_P): New macro.
13709         (jump_to_label_p): Declare.
13710         * resource.c (find_dead_or_set_registers): Handle ret_rtx in
13711         JUMP_LABELs.
13712         (mark_target_live_regs): Likewise.
13713         * basic-block.h (force_nonfallthru_and_redirect): Declare.
13714         * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
13715         * config/alpha/alpha.c (alpha_tablejump_addr_vec,
13716         alpha_tablejump_best_label): Remove functions.
13717         * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
13718         alpha_tablejump_best_label): Remove declarations.
13719         * config/sh/sh.c (barrier_align, split_branches): Adjust for
13720         ret_rtx in JUMP_LABELs.
13721         * config/arm/arm.c (is_jump_table): Likewise.
13722
13723 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
13724
13725         * config/i386/predicates.md (pic_32bit_opreand): Do not define as
13726         special predicate.  Remove explicit mode checks.
13727
13728 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
13729
13730         * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
13731         DW_AT_data_member_location containing just DW_OP_plus_uconst.
13732
13733         PR debug/49871
13734         * dwarf2out.c (size_of_die, value_format, output_die): Use
13735         DW_FORM_udata instead of DW_FORM_data[48] for
13736         dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
13737
13738 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
13739
13740         * config/i386/i386.md (*tls_global_dynamic_64): Update
13741         length attribute.
13742
13743 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
13744
13745         PR target/47715
13746         * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
13747         tls_symbolic_operand check.  Update code sequence for TARGET_X32.
13748         (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
13749         (tls_dynamic_gnu2_64): Ditto.
13750         (*tls_dynamic_gnu2_lea_64): Ditto.
13751         (*tls_dynamic_gnu2_call_64): Ditto.
13752         (*tls_dynamic_gnu2_combine_64): Ditto.
13753
13754 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
13755
13756         * config.gcc: Set need_64bit_hwint to yes for x86 targets.
13757
13758 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
13759
13760         PR target/47364
13761         * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
13762
13763 2011-07-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13764
13765         * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
13766         before the core constraints. Adjust attributes.
13767         ("*thumb2_movdf_vfp"): Likewise.
13768
13769 2011-07-28  Kai Tietz  <ktietz@redhat.com>
13770
13771         * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
13772         (simplify_truth_ops_using_ranges): Likewise.
13773         (build_assert_expr_for): Likewise.
13774         (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
13775         and handle BIT_NOT_EXPR for truth-operation.
13776
13777 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
13778
13779         PR target/49313
13780         Undo r176835 from trunk
13781         2011-07-27  Georg-Johann Lay
13782
13783 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
13784
13785         PR target/49687
13786         * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
13787         Add _muluhisi3, _mulshisi3, _usmulhisi3.
13788         * config/avr/libgcc.S (__mulsi3): Rewrite.
13789         (__mulhisi3): Rewrite.
13790         (__umulhisi3): Rewrite.
13791         (__usmulhisi3): New.
13792         (__muluhisi3): New.
13793         (__mulshisi3): New.
13794         (__mulohisi3): New.
13795         (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
13796         declare.
13797         * config/avr/predicates.md (pseudo_register_operand): Rewrite.
13798         (pseudo_register_or_const_int_operand): New.
13799         (combine_pseudo_register_operand): New.
13800         (u16_operand): New.
13801         (s16_operand): New.
13802         (o16_operand): New.
13803         * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
13804         * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
13805         (any_extend, any_extend2): New code iterators.
13806         (extend_prefix): New code attribute.
13807         (mulsi3): Rewrite. Turn insn to expander.
13808         (mulhisi3): Ditto.
13809         (umulhisi3): Ditto.
13810         (usmulhisi3): New expander.
13811         (*mulsi3): New insn-and-split.
13812         (mulu<mode>si3): New insn-and-split.
13813         (muls<mode>si3): New insn-and-split.
13814         (mulohisi3): New insn-and-split.
13815         (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
13816         *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
13817         *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
13818         *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
13819         insn-and-split.
13820         (*mulsi3_call): Rewrite.
13821         (*mulhisi3_call): Rewrite.
13822         (*umulhisi3_call): Rewrite.
13823         (*usmulhisi3_call): New insn.
13824         (*muluhisi3_call): New insn.
13825         (*mulshisi3_call): New insn.
13826         (*mulohisi3_call): New insn.
13827         (extendqihi2): Use combine_pseudo_register_operand as predicate
13828         for operand 1.
13829         (extendqisi2): Ditto.
13830         (zero_extendqihi2): Ditto.
13831         (zero_extendqisi2): Ditto.
13832         (zero_extendhisi2): Ditto.
13833         (extendhisi2): Ditto. Don't early-clobber operand 0.
13834
13835 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
13836
13837         * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
13838
13839 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
13840
13841         PR tree-optimization/49471
13842         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
13843         iv only when the largest type is unsigned.  Do not call
13844         lang_hooks.types.type_for_size.
13845
13846 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
13847
13848         PR middle-end/45450
13849         * graphite-poly.c (apply_poly_transforms): Disable legality check
13850         after an openscop read.
13851
13852 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
13853
13854         PR middle-end/47691
13855         * graphite-clast-to-gimple.c (translate_clast_user): Update use of
13856         copy_bb_and_scalar_dependences.
13857         * sese.c (rename_uses): Do not call gcc_assert.  Set gloog_error.
13858         (graphite_copy_stmts_from_block): Update call to rename_uses.
13859         (copy_bb_and_scalar_dependences): Update call to
13860         graphite_copy_stmts_from_block.
13861         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
13862
13863 2011-07-27  Georg-Johann Lay  <avr@gjlay.de>
13864
13865         PR target/49313
13866         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
13867         (__ctzsi2): Result for 0 may be undefined.
13868         (__ctzhi2): Result for 0 may be undefined.
13869         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
13870         (__popcountsi2): Ditto. And don't clobber r26.
13871         (__popcountdi2): Ditto. And don't clobber r27.
13872         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
13873         (parityhi2): New expand.
13874         (paritysi2): New expand.
13875         (popcounthi2): New expand.
13876         (popcountsi2): New expand.
13877         (clzhi2): New expand.
13878         (clzsi2): New expand.
13879         (ctzhi2): New expand.
13880         (ctzsi2): New expand.
13881         (ffshi2): New expand.
13882         (ffssi2): New expand.
13883         (copysignsf3): New insn.
13884         (bswapsi2): New expand.
13885         (*parityhi2.libgcc): New insn.
13886         (*parityqihi2.libgcc): New insn.
13887         (*paritysihi2.libgcc): New insn.
13888         (*popcounthi2.libgcc): New insn.
13889         (*popcountsi2.libgcc): New insn.
13890         (*popcountqi2.libgcc): New insn.
13891         (*popcountqihi2.libgcc): New insn-and-split.
13892         (*clzhi2.libgcc): New insn.
13893         (*clzsihi2.libgcc): New insn.
13894         (*ctzhi2.libgcc): New insn.
13895         (*ctzsihi2.libgcc): New insn.
13896         (*ffshi2.libgcc): New insn.
13897         (*ffssihi2.libgcc): New insn.
13898         (*bswapsi2.libgcc): New insn.
13899
13900 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
13901
13902         * config/i386/i386.c (ix86_expand_move): Do not explicitly check
13903         the mode of symbolic_opreand RTXes.
13904
13905 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
13906
13907         * config/i386/predicates.md (x86_64_movabs_operand): Return false
13908         for pic_32bit_operand RTXes.
13909         * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
13910         in DImode.
13911
13912 2011-07-27  Kai Tietz  <ktietz@redhat.com>
13913
13914         * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
13915         for 32-bit, too.
13916         (ix86_handle_abi_attribute): Allow function attributes
13917         ms_abi/sysv_abi in 32-bit mode, too.
13918         * doc/extend.texi: Adjust attribute documentation.
13919
13920         * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
13921         expression handling.
13922         (and_var_with_comparison_1): Likewise.
13923
13924 2011-07-27  Aldy Hernandez  <aldyh@redhat.com>
13925
13926         * params.h (ALLOW_STORE_DATA_RACES): New.
13927         * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
13928         * Makefile.in (expr.o): Depend on PARAMS_H.
13929         * machmode.h (get_best_mode): Add argument.
13930         * fold-const.c (optimize_bit_field_compare): Add argument to
13931         get_best_mode.
13932         (fold_truthop): Same.
13933         * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
13934         * expr.c (emit_group_store): Same.
13935         (copy_blkmode_from_reg): Same.
13936         (write_complex_part): Same.
13937         (optimize_bitfield_assignment_op): Add argument.
13938         Add argument to get_best_mode.
13939         (get_bit_range): New.
13940         (expand_assignment): Calculate maxbits and pass it down accordingly.
13941         (store_field): New argument.
13942         (expand_expr_real_2): New argument to store_field.  Include params.h.
13943         * expr.h (store_bit_field): New argument.
13944         * stor-layout.c (get_best_mode): Restrict mode expansion by taking
13945         into account maxbits.
13946         * calls.c (store_unaligned_arguments_into_pseudos): New argument
13947         to store_bit_field.
13948         * expmed.c (store_bit_field_1): New argument.  Use it.
13949         (store_bit_field): Same.
13950         (store_fixed_bit_field): Same.
13951         (store_split_bit_field): Same.
13952         (extract_bit_field_1): Pass new argument to get_best_mode.
13953         (extract_bit_field): Same.
13954         * stmt.c (store_bit_field): Pass new argument to store_bit_field.
13955         * doc/invoke.texi: Document parameter allow-store-data-races.
13956
13957 2011-07-27  Jakub Jelinek  <jakub@redhat.com>
13958
13959         * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
13960
13961 2011-07-27  Kai Tietz  <ktietz@redhat.com>
13962
13963         * tree-vrp.c (extract_range_from_binary_expr): Remove
13964         TRUTH-binary cases and add new bitwise-cases.
13965         (extract_range_from_assignment): Likewise.
13966         (register_edge_assert_for_1): Likeiwise.
13967         (register_edge_assert_for): Likewise.
13968         (simplify_truth_ops_using_ranges): Likewise.
13969         (simplify_stmt_using_ranges): Likewise.
13970
13971 2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
13972
13973         PR target/47372
13974         * config/i386/i386.c (ix86_delegitimize_address): Call
13975         simplify_gen_subreg for PIC with mode of x only if modes of
13976         x and orig_x are different.
13977
13978 2011-07-26  Jakub Jelinek  <jakub@redhat.com>
13979
13980         * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
13981         to GC allocated copy of the string.
13982         (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
13983         before .debug_line, not after it.
13984
13985 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
13986
13987         PR middle-end/47046
13988         * tree-chrec.h (evolution_function_is_affine_p): Recursively call
13989         evolution_function_is_affine_p on CHREC_RIGHT.
13990
13991 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
13992
13993         * tree-data-ref.c (max_stmt_executions_tree): Do not call
13994         lang_hooks.types.type_for_size.
13995
13996 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
13997
13998         PR middle-end/47653
13999         * graphite-scop-detection.c (graphite_can_represent_loop): Discard
14000         loops using wrapping semantics.
14001
14002 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
14003
14004         PR middle-end/48805
14005         * tree-scalar-evolution.c (instantiate_scev_r): Return
14006         chrec_dont_know for ADDR_EXPR.
14007
14008 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
14009             H.J. Lu  <hongjiu.lu@intel.com>
14010
14011         PR target/47369
14012         PR target/49853
14013         * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
14014         if legitimize_tls_address returned operand in wrong mode. Allow
14015         SImode and DImode symbolic operand for PIC.  Call convert_to_mode
14016         if legitimize_pic_address returned operand in wrong mode.
14017
14018 2011-07-26  Martin Jambor  <mjambor@suse.cz>
14019
14020         * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
14021         return false for invariants.
14022
14023 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
14024
14025         * config/i386/i386.md (add->lea splitter): Implement using SWI
14026         mode iterator.  Change operand 2 predicate to <nonmemory_operand>.
14027         (add->lea zext splitter): Change operand 2 predicate to
14028         x86_64_nonmemory_operand.
14029
14030 2011-07-26  Richard Guenther  <rguenther@suse.de>
14031
14032         * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
14033         frequency makes everything hot.
14034
14035 2011-07-26  Richard Guenther  <rguenther@suse.de>
14036
14037         PR tree-optimization/49840
14038         * tree-vrp.c (range_fits_type_p): Properly handle full
14039         double-int precision.
14040
14041 2011-07-26  Martin Jambor  <mjambor@suse.cz>
14042
14043         PR bootstrap/49786
14044         * ipa-cp.c (update_profiling_info): Avoid overflow when updating
14045         counts.
14046         (update_specialized_profile): Likewise.
14047
14048 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
14049             H.J. Lu  <hongjiu.lu@intel.com>
14050
14051         PR target/47381
14052         PR target/49832
14053         PR target/49833
14054         * config/i386/i386.md (i): Change SImode attribute to "e".
14055         (g): Change SImode attribute to "rme".
14056         (di): Change SImode attribute to "nF".
14057         (general_operand): Change SImode attribute to x86_64_general_operand.
14058         (general_szext_operand): Change SImode attribute to
14059         x86_64_szext_general_operand.
14060         (immediate_operand): Change SImode attribute to
14061         x86_64_immediate_operand.
14062         (nonmemory_operand): Change SImode attribute to
14063         x86_64_nonmemory_operand.
14064         (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
14065         (*movsi_internal): Ditto.  Use "e" constraint in alternative 2.
14066         (*lea_1): Use SWI48 mode iterator.
14067         (*lea_1_zext): New insn pattern.
14068         (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
14069         (*bt<mode>): Ditto.
14070         (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
14071         Update operand constraints.
14072         (addsi_1_zext): Ditto.
14073         (*add<mode>2): Ditto.
14074         (*addsi_3_zext): Ditto.
14075         (*subsi_1_zext): Ditto.
14076         (*subsi_2_zext): Ditto.
14077         (*subsi_3_zext): Ditto.
14078         (*addsi3_carry_zext): Ditto.
14079         (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
14080         (*mulsi3_1_zext): Ditto.
14081         (*andsi_1): Ditto.
14082         (*andsi_1_zext): Ditto.
14083         (*andsi_2_zext): Ditto.
14084         (*<any_or:code>si_1_zext): Ditto.
14085         (*<any_or:code>si_2_zext): Ditto.
14086         (*test<mode>_1): Use <general_operand> predicate for operand 1.
14087         (*and<mode>_2): Ditto.
14088         (mov<mode>cc): Use  <general_operand> predicate for operands 1 and 2.
14089         (add->lea splitter): Check operand modes in insn constraint.  Extend
14090         operands less than SImode wide to SImode.
14091         (add->lea zext splitter): Do not extend input operands to DImode.
14092         (*lea_general_1): Handle only QImode and HImode operands.
14093         (*lea_general_2): Ditto.
14094         (*lea_general_3): Ditto.
14095         (*lea_general_1_zext): Remove.
14096         (*lea_general_2_zext): Ditto.
14097         (*lea_general_3_zext): Ditto.
14098         (*lea_general_4): Check operand modes in insn constraint.  Extend
14099         operands less than SImode wide to SImode.
14100         (ashift->lea splitter): Ditto.
14101         * config/i386/i386.c (ix86_print_operand_address): Print address
14102         registers with 'q' modifier on 64bit targets.
14103         * config/i386/predicates.md (pic_32bit_opreand): Define as special
14104         predicate.  Reject non-SI and non-DI modes.
14105
14106 2011-07-25  Andrew Pinski  <apinski@cavium.com>
14107
14108         PR tree-opt/49671
14109         * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
14110         TREE_THIS_NOTRAP into the inner most MEM_REF.
14111         Always copy TREE_THIS_VOLATILE.
14112         * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
14113         arguments are not volatile references.
14114
14115 2011-07-25  Richard Henderson  <rth@redhat.com>
14116
14117         * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
14118         * final.c (final_scan_insn): Don't test for it.
14119         (rest_of_clean_state): Likewise.
14120
14121 2011-07-25  Richard Henderson  <rth@redhat.com>
14122
14123         PR debug/49841
14124         * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
14125         (emit_frame_save): Likewise.
14126         (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
14127         insn onto a dummy blockage insn after the join label.
14128
14129 2011-07-25  Richard Henderson  <rth@redhat.com>
14130
14131         * dwarf2cfi.c (dw_trace_info): Add ID member.
14132         (get_trace_index): Remove.  Change users to use ID member.
14133         (before_next_cfi_note): New.
14134         (connect_traces): Remove unreachable traces before the main loop.
14135         Look across one trace and generate remember/restore_state if needed.
14136
14137 2011-07-25  Richard Henderson  <rth@redhat.com>
14138
14139         * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
14140
14141 2011-07-25  Joern Rennecke  <joern.rennecke@embecosm.com>
14142
14143         * genattr.c (write_upcase, gen_attr <enum definition writing>):
14144         Move to ...
14145         * genattr-common.c ... here.
14146         (main): Call gen_attr.
14147         * optc-gen.awk: Make generated program include insn-attr-common.h .
14148         * Makefile.in (oprions.o): Depend on insn-attr-common.h
14149
14150 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
14151
14152         * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
14153         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
14154         * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
14155         m32c_print_operand, m32c_print_operand_address): Remove.
14156         * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
14157         Change return type to bool. Change argument type to bool.
14158         (m32c_print_operand, m32c_print_operand_address): Make static.
14159         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
14160         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
14161
14162 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14163
14164         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
14165         attributes): Document mmap.
14166
14167 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
14168
14169         * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
14170         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
14171         * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
14172         mmix_print_operand, mmix_print_operand_address): Remove.
14173         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
14174         Change return type to bool. Change argument type to bool.
14175         (mmix_print_operand, mmix_print_operand_address): Make static.
14176         (mmix_intval, mmix_output_condition): Change 'x' argument type
14177         to const_rtx.
14178         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
14179         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
14180
14181 2011-07-25  Georg-Johann Lay  <avr@gjlay.de>
14182
14183         PR target/39386
14184         * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
14185         shift counter for x << x and x >> x shifts.
14186
14187 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14188
14189         PR target/47124
14190         * config.gcc: Reject *-*-solaris2 configuration.
14191
14192 2011-07-25  Richard Sandiford  <richard.sandiford@linaro.org>
14193
14194         PR tree-optimization/49809
14195         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
14196         gimple_get_lhs instead of gimple_assign_lhs.
14197
14198 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14199
14200         * system.h [__cplusplus]: Wrap C function declarations in extern "C".
14201
14202 2011-07-25  Richard Guenther  <rguenther@suse.de>
14203
14204         PR tree-optimization/49822
14205         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
14206         more.  Make sure to preserve stmts with side-effects.  Properly
14207         handle virtual defs, follow a longer def chain.
14208
14209 2011-07-22  Romain Geissler  <romain.geissler@gmail.com>
14210
14211         PR plugins/45348
14212         PR plugins/48425
14213         PR plugins/46577
14214         * Makefile.in: Do not flatten c-family directory when installing
14215         plugin headers.
14216
14217 2011-07-25  Eric Botcazou  <ebotcazou@adacore.com>
14218
14219         * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
14220         original nodes if we are dealing with virtual clones.
14221
14222 2011-07-25  Bernd Schmidt  <bernds@codesourcery.com>
14223
14224         * common/config/c6x/c6x-common.c: New file.
14225
14226 2011-07-25  Roman Zhuykov  <zhroma@ispras.ru>
14227
14228         * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
14229
14230 2011-07-25  Richard Guenther  <rguenther@suse.de>
14231
14232         PR tree-optimization/49715
14233         * tree-vrp.c: Include expr.h and optabs.h.
14234         (range_fits_type_): New function.
14235         (simplify_float_conversion_using_ranges): Likewise.
14236         (simplify_stmt_using_ranges): Call it.
14237         * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
14238         * optabs.c (can_float_p): Export.
14239         * optabs.h (can_float_p): Declare.
14240
14241 2011-07-25  Richard Guenther  <rguenther@suse.de>
14242
14243         * tree-vrp.c (num_vr_values, values_propagated): New global vars.
14244         (get_value_range): For out-of-range SSA names or names created
14245         after propagation return a read-only varying range.
14246         (dump_all_value_ranges): Adjust.
14247         (vrp_initialize): Likewise.
14248         (vrp_finalize): Likewise.
14249
14250 2011-07-24  Richard Henderson  <rth@redhat.com>
14251
14252         PR debug/49831
14253         * dwarf2cfi.c (connect_traces): Allow unvisited traces.  Skip
14254         them entirely.
14255
14256 2011-07-24  Richard Henderson  <rth@redhat.com>
14257
14258         PR debug/49825
14259         * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
14260         (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
14261
14262 2011-07-24  Richard Henderson  <rth@redhat.com>
14263
14264         PR debug/49827
14265         * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
14266
14267 2011-07-24  Richard Henderson  <rth@redhat.com>
14268
14269         * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
14270         Zero args_size for abnormal edges.  Adjust all callers.
14271
14272 2011-07-24  Richard Henderson  <rth@redhat.com>
14273
14274         PR debug/49825
14275         * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
14276
14277 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
14278
14279         PR bootstrap/49835
14280         * collect2.c (demangle_flag): Removed.
14281
14282 2011-07-24  Sandra Loosemore  <sandra@codesourcery.com>
14283
14284         * configure.ac (demangler_in_ld): Default to yes.
14285         * configure: Regenerated.
14286         * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
14287         mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
14288         --no-demangle options straight through to ld.  When
14289         HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
14290         way that has the intended effect on Windows.
14291
14292 2011-07-23  Richard Henderson  <rth@redhat.com>
14293
14294         * dwarf2cfi.c: Include basic-block.h.
14295         (dw_label_info): Remove.
14296         (trace_work_list, trace_index): New.
14297         (remember_row, emit_cfa_remember): Remove.
14298         (dw_trace_info_hash, dw_trace_info_eq): New.
14299         (get_trace_index, get_trace_info): New.
14300         (save_point_p): New.
14301         (free_cfi_row): Remove.
14302         (add_cfi): Do not emit DW_CFA_remember_state.
14303         (cfa_row_equal_p): New.
14304         (barrier_args_size): Remove.
14305         (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
14306         (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
14307         (maybe_record_trace_start, create_trace_edges, scan_trace): New.
14308         (dwarf2out_cfi_begin_epilogue): Remove.
14309         (dwarf2out_frame_debug_restore_state): Remove.
14310         (connect_traces, create_pseudo_cfg): New.
14311         (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
14312         * Makefile.in (dwarf2cfi.o): Update.
14313
14314 2011-07-23  Richard Henderson  <rth@redhat.com>
14315
14316         * dwarf2cfi.c (dw_trace_info): New.
14317         (dw_label_info): New.
14318         (cie_return_save): New.
14319         (cur_trace): New.
14320         (queued_args_size): Rename from args_size.  Update all users.
14321         (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
14322         (def_cfa_1): Use cur_trace instead of cfa_*.
14323         (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
14324         (clobbers_queued_reg_save, reg_saved_in): Likewise.
14325         (dwarf2out_frame_debug_expr): Likewise.
14326         (create_cie_data): Split out from ...
14327         (execute_dwarf2_frame): ... here.  Initialize cur_trace.
14328
14329 2011-07-23  Richard Henderson  <rth@redhat.com>
14330
14331         * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
14332         Update all users to match.
14333         (execute_dwarf2_frame): Free reg_saved_in_data.
14334
14335 2011-07-23  Richard Henderson  <rth@redhat.com>
14336
14337         * dwarf2cfi.c (queued_reg_save): Reorder for packing.  Don't GTY.
14338         (queued_reg_saves): Don't GTY.  Change to a VEC.
14339         (queue_reg_save): Update to match.
14340         (dwarf2out_flush_queued_reg_saves): Likewise.
14341         (clobbers_queued_reg_save): Likewise.
14342         (reg_saved_in): Likewise.
14343         (execute_dwarf2_frame): Free queued_reg_saves.
14344
14345 2011-07-23  Richard Henderson  <rth@redhat.com>
14346
14347         * dwarf2cfi.c (dw_cfi_row_ref): Remove.  Update all users.
14348
14349 2011-07-23  Richard Henderson  <rth@redhat.com>
14350
14351         * dwarf2cfi.c (add_cfi_args_size): Split out from...
14352         (dwarf2out_args_size): ... here.
14353         (add_cfi_restore): Split out from ...
14354         (dwarf2out_frame_debug_cfa_restore): ... here.
14355         (def_cfa_0): Split out from ...
14356         (def_cfa_1): ... here.
14357         (cfi_oprnd_equal_p, cfi_equal_p): New.
14358         (change_cfi_row): New.
14359         (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
14360         (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
14361         (output_cfis): Remove.
14362         * dwarf2out.c (output_fde): Simplify output_cfi loop.
14363         (dwarf2out_switch_text_section): Don't call output_cfis.
14364         (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
14365         * dwarf2out.h: Update decls.
14366         (enum dw_val_class): Add dw_val_class_none.
14367
14368 2011-07-23  Richard Henderson  <rth@redhat.com>
14369
14370         * dwarf2cfi.c (update_row_reg_save): New.
14371         (dwarf2out_frame_debug_cfa_expression): Use it.
14372         (dwarf2out_frame_debug_cfa_restore): Likewise.
14373         (reg_save): Likewise.  Do not emit DW_CFA_same_value.
14374
14375 2011-07-23  Richard Henderson  <rth@redhat.com>
14376
14377         * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
14378
14379 2011-07-23  Richard Henderson  <rth@redhat.com>
14380
14381         * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
14382         (cie_cfi_row): New.
14383         (new_cfi_row, copy_cfi_row, free_cfi_row): New.
14384         (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
14385         (cur_row, remember_row): New.
14386         (def_cfa_1): Use cur_row instead of the old_* variables.
14387         (dwarf2out_frame_debug_restore_state): Similarly.
14388         (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
14389         (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
14390         (dwarf2out_frame_debug_adjust_cfa): Likewise.
14391         (dwarf2out_frame_debug_cfa_offset): Likewise.
14392         (dwarf2out_frame_debug_expr): Likewise.
14393         (execute_dwarf2_frame): Set up cur_row.
14394         * dwarf2out.h (struct cfa_loc): Mark for GTY.
14395
14396 2011-07-23  Richard Henderson  <rth@redhat.com>
14397
14398         * basic-block.h (EDGE_PRESERVE): New.
14399         (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
14400         * bb-reorder.c: Include except.h.
14401         (fix_up_crossing_landing_pad): New.
14402         (find_rarely_executed_basic_blocks_and_crossing_edges): Place
14403         landing pads in the right partition.  Duplicate as necessary.
14404         (partition_hot_cold_basic_blocks): Fix up DF info after
14405         duplicating landing pads.
14406         * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
14407         * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
14408         is set properly.  Validate that EH edges are not CROSSING.
14409         * except.c (expand_dw2_landing_pad_for_region): Split out from ...
14410         (dw2_build_landing_pads): ... here.
14411         (convert_to_eh_region_ranges): Remove code to fixup crossing
14412         landing pads.
14413         * except.h (expand_dw2_landing_pad_for_region): Declare.
14414         * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
14415
14416 2011-07-23  Richard Earnshaw  <rearnsha@arm.com>
14417
14418         PR target/49816
14419         * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
14420
14421 2011-07-22  Jason Merrill  <jason@redhat.com>
14422
14423         * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
14424
14425 2011-07-22  Richard Henderson  <rth@redhat.com>
14426
14427         * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
14428
14429 2011-07-22  Richard Henderson  <rth@redhat.com>
14430
14431         * jump.c (maybe_propagate_label_ref): Split out of...
14432         (mark_all_labels): ... here.  Do not attempt label_ref
14433         propagation while in cfglayout mode.
14434
14435 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
14436
14437         * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
14438         (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
14439         (dwarf_attr_name): Handle DW_AT_GNU_macros.
14440         (dwarf2out_define): If the vector is empty and
14441         lineno is 0, emit a dummy entry first.
14442         (dwarf2out_undef): Likewise.  Remove redundant semicolon.
14443         (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
14444         optimize_macinfo_range): New functions.
14445         (output_macinfo): Use them.  If !dwarf_strict and .debug_str is
14446         mergeable, optimize longer strings using
14447         DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
14448         optimize longer sequences of define/undef ops from headers
14449         using DW_MACRO_GNU_transparent_include.  For !dwarf_strict
14450         emit a section headers.
14451         (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
14452         and macinfo_section_label to DEBUG_MACRO_SECTION
14453         resp. DEBUG_MACRO_SECTION_LABEL.
14454         (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
14455         instead of DW_AT_macro_info.
14456
14457         PR other/32998
14458         * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
14459         options.
14460         * dwarf2out.c: Include opts.h.
14461         (dchar_p): New typedef.  Define heap VEC for it.
14462         (producer_string): New variable.
14463         (gen_producer_string): New function.
14464         (gen_compile_unit_die): Use it.
14465         (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
14466         * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
14467         * doc/invoke.texi: Document -grecord-gcc-switches and
14468         -gno-record-gcc-switches, add a -grecord-gcc-switches reference
14469         to -frecord-gcc-switches description.
14470
14471 2011-07-22  Jason Merrill  <jason@redhat.com>
14472
14473         PR c++/30112
14474         * c-decl.c (c_linkage_bindings): Define.
14475
14476 2011-07-22  Eric Botcazou  <ebotcazou@adacore.com>
14477
14478         PR debug/49815
14479         * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
14480
14481 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
14482
14483         * config/i386/i386.c (ix86_option_override_internal): Disallow
14484         MS ABI in x32 mode.
14485         (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
14486         only for TARGET_LP64.
14487         (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
14488
14489 2011-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
14490
14491         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
14492         avoid warnings when GCC is built with a C++ compiler.
14493
14494 2011-07-22  Martin Jambor  <mjambor@suse.cz>
14495
14496         PR lto/49796
14497         * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
14498         if decl node is in another partition, call cgraph_get_node only once.
14499
14500 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
14501
14502         * config.gcc (x86_64-*-linux*): Set
14503         default_gnu_indirect_function to yes.
14504
14505 2011-07-22  Richard Guenther  <rguenther@suse.de>
14506
14507         PR tree-optimization/45819
14508         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
14509         preserve volatile and notrap flags.
14510
14511 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14512             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14513
14514         PR bootstrap/49794
14515         * configure.ac: Test AM_ICONV with CXX.
14516         * configure: Regenerate.
14517         * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
14518
14519 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14520
14521         PR bootstrap/49797
14522         * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
14523         (set_cloog_options): Use it.
14524
14525 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
14526
14527         PR c++/49756
14528         * gcc.c (main): Call stack_limit_increase (64MB).
14529         * toplev.c (toplev_main): Likewise.
14530
14531 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
14532
14533         * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
14534         instead of force_reg.
14535
14536 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
14537
14538         * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
14539         needed and use force_reg after convert.
14540         (ix86_expand_call): Likewise.
14541         (ix86_expand_special_args_builtin): Likewise.
14542         (ix86_expand_builtin): Likewise.
14543
14544 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
14545
14546         PR middle-end/47654
14547         PR middle-end/49649
14548         * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
14549         in parameter.  Initialize v1 and v2 based on the values returned
14550         by clast_name_to_lb_ub.
14551         (type_for_clast_red): Pass v1 and v2 in parameter, and set their
14552         values.
14553         (type_for_clast_bin): Same.
14554         (type_for_clast_expr): Same.
14555         (type_for_clast_eq): Update calls to type_for_clast_expr.
14556         (type_for_clast_for): Same.
14557         (build_iv_mapping): Same.
14558         * graphite-ppl.h (value_min): New.
14559
14560 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
14561
14562         * graphite-clast-to-gimple.c (type_for_interval): Generate signed
14563         types whenever possible.
14564
14565 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
14566
14567         * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
14568         and ub fields.
14569         (new_clast_name_index): Add lb and ub parameters.
14570         (free_clast_name_index): New.
14571         (clast_name_to_lb_ub): New.
14572         (save_clast_name_index): Add lb and ub parameters.
14573         (compute_bounds_for_param): New.
14574         (type_for_level): Removed.
14575         (type_for_clast_for): Removed level parameter.  Do not call
14576         type_for_level.
14577         (graphite_create_new_loop): Store the lb and ub for the clast_name
14578         of the iterator of the loop that has been generated.
14579         (graphite_create_new_loop_guard): Remove parameter level.
14580         (create_params_index): Store the lb and ub of each parameter.
14581         (gloog): Use free_clast_name_index.  Pass to create_params_index
14582         the current scop.
14583
14584 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
14585
14586         * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
14587         (max_precision_type): Inline max_signed_precision_type.
14588         (type_for_clast_red): Use max_precision_type.
14589         (type_for_clast_bin): Same.
14590         (type_for_clast_for): Same.
14591
14592 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
14593
14594         * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
14595         type_for_interval.
14596         (gcc_type_for_value): Renamed type_for_value.
14597         (gcc_type_for_clast_term): Renamed type_for_clast_term.
14598         (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
14599         (gcc_type_for_clast_red): Renamed type_for_clast_red.
14600         (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
14601         (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
14602         (graphite_translate_clast_equation): Update calls.
14603         (compute_type_for_level): Renamed type_for_level.
14604         (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
14605         (build_iv_mapping): Update calls.
14606         (graphite_create_new_loop_guard): Same.
14607
14608 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
14609
14610         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
14611         comment.
14612
14613 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
14614
14615         * graphite-clast-to-gimple.c (struct ivs_params): New.
14616         (clast_name_to_gcc): Use ivs_params to pass around parameters.
14617         (clast_to_gcc_expression): Same.
14618         (clast_to_gcc_expression_red): Same.
14619         (gcc_type_for_clast_term): Same.
14620         (gcc_type_for_clast_expr): Same.
14621         (gcc_type_for_clast_red): Same.
14622         (gcc_type_for_clast_bin): Same.
14623         (gcc_type_for_clast_eq): Same.
14624         (graphite_translate_clast_equation): Same.
14625         (graphite_create_guard_cond_expr): Same.
14626         (graphite_create_new_guard): Same.
14627         (graphite_create_new_loop): Same.
14628         (build_iv_mapping): Same.
14629         (translate_clast_user): Same.
14630         (graphite_create_new_loop_guard): Same.
14631         (translate_clast): Same.
14632         (translate_clast_for_loop): Same.
14633         (translate_clast_for): Same.
14634         (translate_clast_guard): Same.
14635         (initialize_cloog_names): Fix typo.
14636         (gloog): Initialize an ivs_params struct, pass it to translate_clast.
14637
14638 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
14639
14640         * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
14641         (new_clast_name_index): Add level parameter.
14642         (clast_name_to_level): New.
14643         (save_clast_name_index): Add level parameter.
14644         (newivs_to_depth_to_newiv): Removed.
14645         (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
14646         (graphite_create_new_loop): Add level parameter.  Pass level to
14647         save_clast_name_index.
14648         (translate_clast_for_loop): Pass level to graphite_create_new_loop.
14649         (create_params_index): Pass level to save_clast_name_index.
14650
14651 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
14652
14653         * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
14654         recompute type, lb, and ub.  Get them from...
14655         (graphite_create_new_loop_guard): ...here.  Pass in parameter
14656         pointers to type, lb, and ub.
14657         (translate_clast_for_loop): Update function calls.
14658         (translate_clast_for): Same.
14659
14660 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
14661
14662         * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
14663         psct_dynamic_dim.
14664         (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
14665         (gcc_type_for_iv_of_clast_loop): Update use of level.
14666         (gloog): Start counting nesting level from 0.
14667         * graphite-clast-to-gimple.h (get_scattering_level): Removed.
14668         * graphite-dependences.c (graphite_carried_dependence_level_k): Call
14669         psct_dynamic_dim on level.
14670
14671 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
14672
14673         * config/i386/i386.c (ix86_legitimize_address): Convert to
14674         Pmode if needed.
14675
14676 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
14677
14678         * config/i386/i386.c (function_value_64): Always return pointers
14679         in Pmode.
14680         (ix86_promote_function_mode): New.
14681         (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
14682
14683 2011-07-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14684
14685         PR tree-optimization/49749
14686         * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
14687         remove no-longer-used maxrank variable.
14688
14689 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
14690
14691         * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
14692
14693 2011-07-21  Jason Merrill  <jason@redhat.com>
14694
14695         * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
14696         * recog.h (struct insn_data_d): Check it instead of
14697         HAVE_DESIGNATED_INITIALIZERS.
14698         * genoutput.c (output_insn_data): Likewise.
14699
14700 2011-07-21  Richard Guenther  <rguenther@suse.de>
14701
14702         PR tree-optimization/49770
14703         * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
14704         valueized any operand.  Renamed from ...
14705         (valueize_refs): ... this.  New wrapper around valueize_refs_1.
14706         (valueize_shared_reference_ops_from_ref): Return whether we
14707         valueized any operand.
14708         (vn_reference_lookup): Only when we valueized any operand
14709         use the valueized reference for alias analysis.  Do not preserve
14710         the original reference tree in this case.
14711
14712 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
14713
14714         * config/i386/i386.c (ix86_decompose_address): Reject all but
14715         register operands and subregs of DImode hard registers in index.
14716
14717 2011-07-21  Kai Tietz  <ktietz@redhat.com>
14718
14719         * fold-const.c (fold_unary_loc): Preserve indirect
14720         comparison cast to none-boolean type.
14721         * tree-ssa.c (useless_type_conversion_p): Preserve cast
14722         from/to boolean-type.
14723         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
14724         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
14725         * tree-cfg.c (verify_gimple_comparison): Check result
14726         type of comparison expression.
14727         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
14728         of condition result and disallow type-cast sinking into comparison.
14729
14730 2011-07-21  Richard Guenther  <rguenther@suse.de>
14731
14732         * tree-ssa-forwprop.c (combine_conversions): Return whether
14733         we have to run cfg-cleanup.  Properly remove dead stmts.
14734         (ssa_forward_propagate_and_combine): Adjust.
14735
14736 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
14737
14738         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
14739
14740 2011-07-21  Kai Tietz  <ktietz@redhat.com>
14741
14742         * tree-ssa-propagate.c (substitute_and_fold): Use
14743         do_dce flag to deside, if BB's statements are scanned
14744         in last to first, or first to last order.
14745
14746 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
14747
14748         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
14749
14750 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
14751             Uros Bizjak  <ubizjak@gmail.com>
14752             Richard Henderson  <rth@redhat.com>
14753
14754         * config/i386/constraints.md (w): New.
14755
14756         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
14757         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
14758
14759         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
14760         instead of TARGET_64BIT.
14761
14762         * config/i386/i386.md (indirect_jump): Replace
14763         nonimmediate_operand with indirect_branch_operand.
14764         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
14765         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
14766         Convert operand 0 to Pmode for x32 if not PIC.
14767         (*tablejump_1): Replace nonimmediate_operand with
14768         indirect_branch_operand.  Replace constraint "m" with "w".
14769         (*call_vzeroupper): Replace constraint "m" with "w".
14770         (*call): Likewise.
14771         (*call_rex64_ms_sysv_vzeroupper): Likewise.
14772         (*call_rex64_ms_sysv): Likewise.
14773         (*call_value_vzeroupper): Likewise.
14774         (*call_value): Likewise.
14775         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
14776         (*call_value_rex64_ms_sysv): Likewise.
14777         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
14778
14779         * config/i386/predicates.md (indirect_branch_operand): New.
14780         (call_insn_operand): Support x32.
14781
14782 2011-07-20  Michael Eager  <eager@eagercon.com>
14783
14784         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
14785
14786 2011-07-20  Richard Henderson  <rth@redhat.com>
14787
14788         * cfg.c (dump_bb_info): Dump basic_block->flags.
14789         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
14790
14791 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
14792
14793         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
14794         of DImode hard registers in index.
14795         (ix86_legitimate_address_p): Allow subregs of base and index to span
14796         more than a word.  Assert that subregs of base and index satisfy
14797         register_no_elim_operand predicates.  Reject addresses where
14798         base and index have different modes.
14799
14800 2011-07-20  Robert Millan  <rmh@gnu.org>
14801
14802         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
14803
14804 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14805
14806         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
14807         removing now-unnecessary assignment.
14808
14809 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14810
14811         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
14812         memory address space to the type's address space.
14813
14814 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
14815
14816         PR target/36467
14817         PR target/49687
14818         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
14819         and expand appropriately if there is a CONST_INT in operand2.
14820         (usmulqihi3): New insn.
14821         (*sumulqihi3): New insn.
14822         (*osmulqihi3): New insn.
14823         (*oumulqihi3): New insn.
14824         (*muluqihi3.uconst): New insn_and_split.
14825         (*muluqihi3.sconst): New insn_and_split.
14826         (*mulsqihi3.sconst): New insn_and_split.
14827         (*mulsqihi3.uconst): New insn_and_split.
14828         (*mulsqihi3.oconst): New insn_and_split.
14829         (*ashifthi3.signx.const): New insn_and_split.
14830         (*ashifthi3.signx.const7): New insn_and_split.
14831         (*ashifthi3.zerox.const): New insn_and_split.
14832         (mulsqihi3): New insn.
14833         (muluqihi3): New insn.
14834         (muloqihi3): New insn.
14835         * config/avr/predicates.md (const_2_to_7_operand): New.
14836         (const_2_to_6_operand): New.
14837         (u8_operand): New.
14838         (s8_operand): New.
14839         (o8_operand): New.
14840         (s9_operand): New.
14841         (register_or_s9_operand): New.
14842
14843 2011-07-20  Kai Tietz  <ktietz@redhat.com>
14844
14845         * builtins.c (fold_builtin_expect): See through the cast
14846         from truthvalue_type_node to long.
14847
14848 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
14849
14850         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
14851         where we can use them from the standard and altivec instruction
14852         sets, instead of always using the 3 operand VSX forms that require
14853         the destination to overlap one of the inputs.
14854         (vsx_fms*): Ditto.
14855         (vsx_fnma*): Ditto.
14856         (vsx_fnms*): Ditto.
14857
14858         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
14859         for DF types.
14860         (fmsdf4_fpr): Ditto.
14861         (nfmadf4_fpr): Ditto.
14862         (nfmsdf4_fpr): Ditto.
14863
14864 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
14865
14866         * genrecog.c (make_insn_sequence): Correct position numbering
14867         when filtering out match_scratch and match_dup.
14868
14869 2011-07-20  Richard Guenther  <rguenther@suse.de>
14870
14871         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
14872         against already removed statements.
14873         (forward_propagate_into_comparison): Remove dead defining stmts.
14874         (forward_propagate_into_gimple_cond): Likewise.
14875         (forward_propagate_into_cond): Simplify.
14876         (ssa_forward_propagate_and_combine): Handle changed cfg from
14877         forward_propagate_into_comparison.
14878         * tree-ssa-phiopt.c (conditional_replacement): Use proper
14879         locations for newly built statements.
14880
14881 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
14882
14883         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
14884
14885 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14886
14887         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
14888         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
14889
14890 2011-07-20  Richard Guenther  <rguenther@suse.de>
14891
14892         PR middle-end/18908
14893         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
14894         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
14895         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
14896
14897 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
14898
14899         * config/frv/frv.c (frv_register_move_cost): Define explicitly
14900         costs for subclasses of GR_REGS.
14901
14902 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
14903
14904         PR target/49780
14905         * config/i386/predicates.md (no_seg_addres_operand): No more special.
14906         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
14907         of DImode hard registers in base.
14908         (ix86_legitimate_address_p): Allow SImode and DImode base and index
14909         registers.
14910
14911 2011-07-20  Richard Guenther  <rguenther@suse.de>
14912
14913         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
14914         (unify_nodes): Deal with that.
14915         (solve_graph): Likewise.
14916
14917 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
14918
14919         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
14920         canonicalize left operand from ZERO_EXTEND to AND.
14921
14922 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
14923
14924         * target.def (class_max_nregs): New hook.
14925         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
14926         * doc/tm.texi: Regenerate.
14927         * targhooks.c (default_class_max_nregs): New function.
14928         * targhooks.h (default_class_max_nregs): Declare.
14929         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
14930         x_ira_reg_class_min_nregs arrays to unsigned char.
14931         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
14932         hook instead of CLASS_MAX_NREGS macro.
14933         * reginfo.c (restore_register_info): Ditto.
14934         * ira-conflicts.c (process_regs_for_copy): Use
14935         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
14936         Change type rclass and aclass vars to reg_class_t.
14937         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
14938         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
14939         reg_class_t.
14940         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
14941         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
14942
14943         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
14944         * config/i386/i386.c (ix86_class_max_nregs): New function.
14945         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
14946         instead of CLASS_MAX_NREGS macro.
14947         (TARGET_CLASS_MAX_NREGS): Define.
14948         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
14949         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
14950         * config/avr/avr.c (class_max_nregs): Remove function.
14951         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
14952         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
14953         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
14954         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
14955         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
14956         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
14957         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
14958         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
14959         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
14960         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
14961         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
14962         * config/score/score.h (CLASS_MAX_NREGS): Remove.
14963         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
14964         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
14965         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
14966
14967 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
14968
14969         * cif-code.def (OVERWRITABLE): Fix typo and move around.
14970         (TARGET_OPTIMIZATION_MISMATCH): Delete.
14971         (EH_PERSONALITY): Fix typo.
14972         (NON_CALL_EXCEPTIONS): Fix message.
14973         (OPTIMIZATION_MISMATCH): Adjust message.
14974         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
14975
14976 2011-07-19  Ian Lance Taylor  <iant@google.com>
14977
14978         * doc/install.texi (Configuration): Document
14979         --enable-build-poststage1-with-cxx.
14980
14981 2011-07-19  Robert Millan  <rmh@gnu.org>
14982
14983         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
14984         (GLIBC_DYNAMIC_LINKER): Remove.
14985
14986         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
14987         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
14988         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
14989         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
14990         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
14991         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
14992
14993         * config/mips/linux.h: Remove everything except for ...
14994         (GLIBC_DYNAMIC_LINKER): ... this macro.
14995
14996         * config/mips/linux64.h: Remove everything except for ...
14997         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
14998         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
14999         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
15000         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
15001         (GNU_USER_LINK_EMULATIONN32): New macros.
15002
15003         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
15004         Use the new headers.
15005
15006 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
15007
15008         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
15009         Add offset_known_p and size_known_p fields.
15010         (MEM_OFFSET_KNOWN_P): Update accordingly.
15011         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
15012         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
15013         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
15014         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
15015         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
15016         (init_emit_regs): Likewise.
15017
15018 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
15019
15020         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
15021         (MEM_OFFSET): Change from returning an rtx to returning a
15022         HOST_WIDE_INT.
15023         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
15024         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
15025         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
15026         (clear_mem_offset): Declare.
15027         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
15028         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
15029         MEM_OFFSET to get a HOST_WIDE_INT offset.
15030         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
15031         (adjust_offset_for_component_ref): Take a bool "known_p"
15032         parameter and a HOST_WIDE_INT "offset" parameter.
15033         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
15034         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
15035         than an rtx.  Use clear_mem_offset to clear the offset.
15036         * cfgcleanup.c (merge_memattrs): Likewise.
15037         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
15038         * function.c (assign_parm_find_stack_rtl): Likewise.
15039         (assign_parm_setup_stack): Likewise.
15040         * print-rtl.c (print_rtx): Likewise.
15041         * reload.c (find_reloads_subreg_address): Likewise.
15042         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
15043         * var-tracking.c (INT_MEM_OFFSET): Likewise.
15044         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
15045         (get_mem_align_offset): Likewise.
15046         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
15047         (clear_mem_offset): New function.
15048         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
15049         offset rather than an rtx.  Assume both the expressio and offset
15050         are available.
15051         (r10k_needs_protection_p_1): Update accordingly, checking the
15052         expression and offset availability here instead.
15053
15054 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
15055
15056         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
15057         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
15058         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
15059         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
15060         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
15061         (clear_mem_size): Declare.
15062         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
15063         (clear_mem_size): New function.
15064         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
15065         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
15066         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
15067         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
15068         to clear the size.
15069         (nonoverlapping_memrefs_p): Likewise.
15070         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
15071         (expand_builtin_init_trampoline): Likewise.
15072         * calls.c (compute_argument_addresses): Likewise.
15073         * cfgcleanup.c (merge_memattrs): Likewise.
15074         * dce.c (find_call_stack_args): Likewise.
15075         * dse.c (record_store, scan_insn): Likewise.
15076         * dwarf2out.c (dw_sra_loc_expr): Likewise.
15077         * expr.c (emit_block_move_hints): Likewise.
15078         * function.c (assign_parm_find_stack_rtl): Likewise.
15079         * print-rtl.c (print_rtx): Likewise.
15080         * reload.c (find_reloads_subreg_address): Likewise.
15081         * rtlanal.c (may_trap_p_1): Likewise.
15082         * var-tracking.c (track_expr_p): Likewise.
15083         * varasm.c (assemble_trampoline_template): Likewise.
15084         * config/arm/arm.c (arm_print_operand): Likewise.
15085         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
15086         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
15087         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
15088         (expand_constant_setmem_prologue): Likewise.
15089         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
15090         * config/rs6000/rs6000.c (expand_block_move): Likewise.
15091         (adjacent_mem_locations): Likewise.
15092         * config/s390/s390.c (s390_expand_setmem): Likewise.
15093         (s390_expand_insv): Likewise.
15094         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
15095         (*extendqi<mode>2_short_displ): Likewise.
15096         * config/sh/sh.c (expand_block_move): Likewise.
15097         * config/sh/sh.md (extv, extzv): Likewise.
15098
15099 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
15100
15101         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
15102         (mem_attrs_htab_eq): ...here.
15103         (find_mem_attrs): Replace with...
15104         (set_mem_attrs): ...this function.  Take a mem_attrs structure
15105         rather than individual fields.
15106         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
15107         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
15108         (set_mem_size, change_address, adjust_address_1, offset_address)
15109         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
15110         Update accordingly.
15111
15112 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
15113
15114         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
15115         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
15116         Provide a dummy definition of MEM_ADDR_SPACE for generators.
15117         (target_rtl): Add x_mode_mem_attrs.
15118         (mode_mem_attrs): New macro.
15119         (get_mem_attrs): New function.
15120         * emit-rtl.c (get_mem_attrs): Rename to...
15121         (find_mem_attrs): ...this.
15122         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
15123         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
15124         (set_mem_size, change_address, adjust_address_1, offset_address)
15125         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
15126         Update accordingly.
15127         (init_emit_regs): Initialize mode_mem_attrs.
15128
15129 2011-07-19  Richard Guenther  <rguenther@suse.de>
15130
15131         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
15132         TRUTH_*_EXPR handling.
15133         * tree-ssa-operands.c (get_expr_operands): Likewise.
15134         * tree-ssa-pre.c (fully_constant_expression): Likewise.
15135         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
15136         Likewise.
15137         (is_and_or_or): Likewise.
15138         (is_norm_cond_subset_of): Likewise.
15139
15140 2011-07-19  Richard Guenther  <rguenther@suse.de>
15141
15142         * tree.h (fold_build_pointer_plus_loc): New helper function.
15143         (fold_build_pointer_plus_hwi_loc): Likewise.
15144         (fold_build_pointer_plus): Define.
15145         (fold_build_pointer_plus_hwi): Likewise.
15146         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
15147         (fold_builtin_memory_op): Likewise.
15148         (fold_builtin_stpcpy): Likewise.
15149         (fold_builtin_memchr): Likewise.
15150         (fold_builtin_strstr): Likewise.
15151         (fold_builtin_strchr): Likewise.
15152         (fold_builtin_strrchr): Likewise.
15153         (fold_builtin_strpbrk): Likewise.
15154         (fold_builtin_strcat): Likewise.
15155         (expand_builtin_memory_chk): Likewise.
15156         (fold_builtin_memory_chk): Likewise.
15157         * c-typeck.c (build_unary_op): Likewise.
15158         * cgraphunit.c (thunk_adjust): Likewise.
15159         * fold-const.c (build_range_check): Likewise.
15160         (fold_binary_loc): Likewise.
15161         * omp-low.c (extract_omp_for_data): Likewise.
15162         (expand_omp_for_generic): Likewise.
15163         (expand_omp_for_static_nochunk): Likewise.
15164         (expand_omp_for_static_chunk): Likewise.
15165         * tree-affine.c (add_elt_to_tree): Likewise.
15166         * tree-data-ref.c (split_constant_offset_1): Likewise.
15167         * tree-loop-distribution.c (generate_memset_zero): Likewise.
15168         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
15169         * tree-predcom.c (ref_at_iteration): Likewise.
15170         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
15171         (add_to_parts): Likewise.
15172         (create_mem_ref): Likewise.
15173         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
15174         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
15175         (number_of_iterations_le): Likewise.
15176         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
15177         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
15178         (vect_create_addr_base_for_vector_ref): Likewise.
15179         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
15180         (vect_create_cond_for_alias_checks): Likewise.
15181         * tree-vrp.c (extract_range_from_assert): Likewise.
15182         * config/alpha/alpha.c (alpha_va_start): Likewise.
15183         (alpha_gimplify_va_arg_1): Likewise.
15184         * config/i386/i386.c (ix86_va_start): Likewise.
15185         (ix86_gimplify_va_arg): Likewise.
15186         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
15187         * config/mep/mep.c (mep_expand_va_start): Likewise.
15188         (mep_gimplify_va_arg_expr): Likewise.
15189         * config/mips/mips.c (mips_va_start): Likewise.
15190         (mips_gimplify_va_arg_expr): Likewise.
15191         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
15192         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
15193         (rs6000_gimplify_va_arg): Likewise.
15194         * config/s390/s390.c (s390_va_start): Likewise.
15195         (s390_gimplify_va_arg): Likewise.
15196         * config/sh/sh.c (sh_va_start): Likewise.
15197         (sh_gimplify_va_arg_expr): Likewise.
15198         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
15199         * config/spu/spu.c (spu_va_start): Likewise.
15200         (spu_gimplify_va_arg_expr): Likewise.
15201         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
15202         Likewise.
15203         (xstormy16_gimplify_va_arg_expr): Likewise.
15204         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
15205         (xtensa_gimplify_va_arg_expr): Likewise.
15206
15207 2011-07-19  Richard Guenther  <rguenther@suse.de>
15208
15209         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
15210         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
15211         handling.
15212
15213         PR middle-end/18908
15214         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
15215         result of BIT_*_EXPR to bitfield precision.
15216
15217 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
15218
15219         PR tree-optimization/49742
15220         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
15221         as a potential write.
15222
15223 2011-07-19  Richard Guenther  <rguenther@suse.de>
15224
15225         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
15226         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
15227         (forward_propagate_comparison): Simplify, remove obsolete code.
15228
15229 2011-07-19  Richard Guenther  <rguenther@suse.de>
15230
15231         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
15232         BIT_XOR_EXPR, same as the RTL expander does.
15233         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
15234         (verify_gimple_assign_unary): Likewise.
15235         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
15236         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
15237         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
15238
15239 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
15240
15241         PR tree-optimization/49768
15242         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
15243         if offset is smaller than bitoffset, but offset+size is bigger
15244         than bitoffset.
15245
15246 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
15247
15248         PR tree-optimization/49771
15249         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
15250         zero step, set segment length to the size of the data-ref's type.
15251
15252 2011-07-18  Martin Jambor  <mjambor@suse.cz>
15253
15254         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
15255         comments.
15256         (ipcp_values_pool): Declare.
15257         (ipcp_sources_pool): Likewise.
15258         (ipcp_lattice): Changed to forward declaration.
15259         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
15260         cannot_devirtualize.
15261         (ipa_node_params): New fields descriptors, lattices, known_vals,
15262         clone_for_all_contexts and node dead, removed fields params and
15263         count_scale.
15264         (ipa_set_param_count): Removed.
15265         (ipa_get_param_count): Made to work with descriptors vector.
15266         (ipa_get_param): Updated.
15267         (ipa_param_cannot_devirtualize_p): Removed.
15268         (ipa_param_types_vec_empty): Likewise.
15269         (ipa_set_param_used): New function.
15270         (ipa_get_param_used): Updated to use descriptors vector.
15271         (ipa_func_list): Removed.
15272         (ipa_init_func_list): Removed declaration.
15273         (ipa_push_func_to_list_1): Likewise.
15274         (ipa_pop_func_from_list): Likewise.
15275         (ipa_push_func_to_list): Removed.
15276         (ipa_lattice_from_jfunc): Remove declaration.
15277         (ipa_get_jf_pass_through_result): Declare.
15278         (ipa_get_jf_ancestor_result): Likewise.
15279         (ipa_value_from_jfunc): Likewise.
15280         (ipa_get_lattice): Update.
15281         (ipa_lat_is_single_const): New function.
15282         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
15283         (ipa_init_func_list): Likewise.
15284         (ipa_pop_func_from_list): Likewise.
15285         (ipa_get_param_decl_index): Fix coding style.
15286         (count_formal_params): Removed.
15287         (count_formal_params_1): Renamed to count_formal_params.
15288         (ipa_populate_param_decls): Update to use descriptors vector.
15289         (ipa_initialize_node_params): Likewise.
15290         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
15291         (ipa_analyze_params_uses): Likewise.
15292         (ipa_free_node_params_substructures): Likewise and free also lattices
15293         and known values.
15294         (duplicate_array): Removed.
15295         (ipa_edge_duplication_hook): Add the new edge to the list of edge
15296         clones.
15297         (ipa_node_duplication_hook): Update to use new lattices.
15298         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
15299         (ipa_free_all_structures_after_iinln): Likewise.
15300         (ipa_write_node_info): Update to use new lattices.
15301         (ipa_read_node_info): Likewise.
15302         (ipa_get_jf_pass_through_result): New function.
15303         (ipa_get_jf_ancestor_result): Likewise.
15304         (ipa_value_from_jfunc): Likewise.
15305         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
15306         * ipa-cp.c: Reimplemented.
15307         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
15308         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
15309         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
15310         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
15311         * doc/invoke.texi (devirt-type-list-size): Removed description.
15312         (ipa-cp-value-list-size): Added description.
15313
15314 2011-07-18  Richard Henderson  <rth@redhat.com>
15315
15316         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
15317         before calling create_basic_block.
15318
15319 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
15320
15321         PR middle-end/49675
15322         * tree.c (build_common_builtin_nodes): Register
15323         __builtin_return_address, __cyg_profile_func_enter
15324         and __cyg_profile_func_exit.
15325
15326 2011-07-18  Richard Henderson  <rth@redhat.com>
15327
15328         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
15329         (add_labels_and_missing_jumps): ... here.
15330         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
15331
15332 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
15333
15334         PR target/47744
15335         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
15336         of DImode hard registers in PLUS address chains.
15337
15338 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15339
15340         PR bootstrap/49769
15341         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
15342         (alpha*-*-freebsd*): Likewise.
15343         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
15344         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
15345         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
15346         crtprec80.o, crtfastmath.o to extra_parts for all targets.
15347         (ia64*-*-elf*): Remove extra_parts.
15348         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
15349         (sparc64-*-linux*): Likewise.
15350         (sparc64-*-freebsd*): Likewise.
15351
15352         Revert:
15353         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
15354         (ia64*-*-linux*): Likewise.
15355         (mips64*-*-linux*): Likewise.
15356         (mips*-*-linux*): Likewise.
15357
15358 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
15359
15360         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
15361
15362 2011-07-18  Richard Guenther  <rguenther@suse.de>
15363
15364         * gimplify.c (gimplify_expr): Use input_location, not saved_location
15365         when building new trees.
15366
15367 2011-07-18  Richard Guenther  <rguenther@suse.de>
15368
15369         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
15370         expansion result to bitfield precision if required.
15371
15372 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15373
15374         * config.gcc (i[3456x]86-*-netware*): Remove.
15375
15376         * gthr-nks.h: Remove.
15377         * configure.ac (enable_threads): Remove nks.
15378         * configure: Regenerate.
15379
15380         * config/i386/i386.c (ix86_encode_section_info): Remove netware
15381         reference.
15382         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
15383         <netware.h> reference.
15384
15385         * config/i386/netware-libgcc.c,
15386         gcc/config/i386/netware-libgcc.def,
15387         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
15388         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
15389         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
15390         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
15391
15392         * doc/extend.texi (Function Attributes,
15393         callee_pop_aggregate_return): Remove i?86-netware reference.
15394         * doc/install.texi (Configuration, --enable-threads): Remove nks.
15395
15396 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15397
15398         PR target/49746
15399         Revert:
15400         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15401
15402         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
15403         patterns.
15404
15405 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
15406
15407         PR middle-end/49732
15408         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
15409
15410 2011-07-16  Matthias Klose  <doko@ubuntu.com>
15411
15412         * doc/install.texi: Document --enable-static-libjava.
15413
15414 2011-07-15  Richard Henderson  <rth@redhat.com>
15415
15416         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
15417         Replace all three arguments by returning a VEC of edges.
15418         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
15419         pointers and counts.
15420         (fix_edges_for_rarely_executed_code): Merge ...
15421         (rest_of_handle_partition_blocks): ... into...
15422         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
15423         any work was performed.
15424         (pass_partition_blocks): Clear todo_flags_finish.
15425
15426 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
15427             Jakub Jelinek  <jakub@redhat.com>
15428             Jonathan Wakely  <jwakely.gcc@gmail.com>
15429
15430         PR libstdc++/49745
15431         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
15432         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
15433
15434 2011-07-15  Jason Merrill  <jason@redhat.com>
15435
15436         PR testsuite/49741
15437         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
15438         rather than --tool_opts.
15439
15440 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
15441
15442         * doc/plugins.texi (Building GCC plugins): gengtype needs its
15443         corresponding gtype.state.
15444
15445 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15446
15447         PR target/49723
15448         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
15449
15450 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
15451
15452         PR target/48220
15453         * doc/md.texi (Standard Names): Document window_save.
15454         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
15455         expand_debug_expr and expand_debug_source_expr.  If the target has
15456         a window_save instruction, adjust the ENTRY_VALUE_EXP.
15457         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
15458         SSA_NAME_VAR is a parameter.
15459         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
15460         * var-tracking.c (parm_reg_t): New type and associated vector type.
15461         (windowed_parm_regs): New variable.
15462         (adjust_insn): If the target has a window_save instruction and this
15463         is the instruction, make its effect on parameter registers explicit.
15464         (next_non_note_insn_var_location): New function.
15465         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
15466         (vt_add_function_parameter): If the target has a window_save insn,
15467         adjust the incoming RTL and record that in windowed_parm_regs.
15468         (vt_finalize): Free windowed_parm_regs.
15469
15470 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
15471
15472         * doc/invoke.texi (C6X Options): New section.
15473         * doc/md.texi (TI C6X family): New section.
15474         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
15475         tic6x-*-uclinux.
15476         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
15477         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
15478         Provide C6X definitions.
15479         * config/c6x/c6x.md: New file.
15480         * config/c6x/constraints.md: New file.
15481         * config/c6x/predicates.md: New file.
15482         * config/c6x/c6x-sched.md.in: New file.
15483         * config/c6x/c6x-sched.md: New file.
15484         * config/c6x/gensched.sh: New file.
15485         * config/c6x/c6x-mult.md.in: New file.
15486         * config/c6x/genmult.sh: New file.
15487         * config/c6x/c6x-mult.md: New file.
15488         * config/c6x/sync.md: New file.
15489         * config/c6x/c6x-protos.h: New file.
15490         * config/c6x/sfp-machine.h: New file.
15491         * config/c6x/c6x.c: New file.
15492         * config/c6x/c6x.h: New file.
15493         * config/c6x/crti.s: New file.
15494         * config/c6x/crtn.s: New file.
15495         * config/c6x/lib1funcs.asm: New file.
15496         * config/c6x/c6x-modes.def: New file.
15497         * config/c6x/genopt.sh: New file.
15498         * config/c6x/c6x.opt: New file.
15499         * config/c6x/c6x-tables.opt: New file.
15500         * config/c6x/c6x-opts.h: New file.
15501         * config/c6x/c6x-isas.def: New file.
15502         * config/c6x/elf.h: New file.
15503         * config/c6x/elf-common.h: New file.
15504         * config/c6x/uclinux-elf.h: New file.
15505         * config/c6x/t-c6x: New file.
15506         * config/c6x/t-c6x-elf: New file.
15507         * config/c6x/t-c6x-uclinux: New file.
15508         * config/c6x/t-c6x-softfp: New file.
15509         * config/c6x/gtd.c: New file.
15510         * config/c6x/gtf.c: New file.
15511         * config/c6x/ltd.c: New file.
15512         * config/c6x/ltf.c: New file.
15513         * config/c6x/ged.c: New file.
15514         * config/c6x/gef.c: New file.
15515         * config/c6x/led.c: New file.
15516         * config/c6x/lef.c: New file.
15517         * config/c6x/eqd.c: New file.
15518         * config/c6x/eqf.c: New file.
15519         * config/c6x/libgcc-c6xeabi.ver: New file.
15520
15521         Revert
15522         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
15523         PR rtl-optimization/11320
15524         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
15525         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
15526         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
15527         current_sched_info->compute_jump_reg_dependencies. Record which
15528         registers are used and which registers are set by the jump.
15529         Clear deps->reg_conditional_sets after a barrier.
15530         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
15531         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
15532         (init_deps): Initialize reg_conditional_sets.
15533         (free_deps): Clear reg_conditional_sets.
15534         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
15535         Mark registers live on entry of the fallthrough block and conditionally
15536         set as set by the jump. Mark registers live on entry of non-fallthrough
15537         blocks as used by the jump.
15538         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
15539         Mark new parameters as unused.
15540
15541 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
15542
15543         PR tree-opt/49309
15544         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
15545         Use fold_build2_loc instead of build2.
15546         Use the correct type for the new tree.
15547
15548 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
15549
15550         PR rtl-optimization/11320
15551         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
15552         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
15553
15554 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
15555
15556         PR target/49487
15557         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
15558         of REG.
15559         (*rotw<mode>): Use const_int_operand for operand2.
15560         Use match_scatch for operand3.
15561         (*rotb<mode>): Ditto
15562         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
15563
15564 2011-07-14  Richard Guenther  <rguenther@suse.de>
15565
15566         PR tree-optimization/49651
15567         * tree-ssa-structalias.c (get_constraint_for_1): Properly
15568         handle dereferences with subvariables.
15569
15570 2011-07-14  Richard Guenther  <rguenther@suse.de>
15571
15572         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
15573         (fold_stmt_1): Do it here directly on gimple and as a first thing.
15574
15575 2011-07-14  Richard Guenther  <rguenther@suse.de>
15576
15577         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
15578         not bool_var when folding bool_var != 1 or bool_var == 0.
15579
15580 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
15581
15582         * haifa-sched.c (schedule_insns): Remove outdated comment.
15583         (schedule_block): When computing a known value for TODO_SPEC,
15584         just set it rather than using logical operations.
15585         (try_ready): Likewise.  Use a local variable rather than a
15586         pointer to TODO_SPEC.  Reorder an if statement to move the
15587         easy case to the then block.
15588         * sched-deps.c (dep_spec_p): New static function.
15589         (update_dep): Use it to decide whether to call
15590         change_spec_dep_to_hard.
15591         (get_back_and_forw_lists): Use it.
15592         (sd_resolve_dep): Likewise.
15593         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
15594         (haifa_note_mem_dep): Likewise.
15595         (check_dep): Likewise.
15596         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
15597         (sched_free_deps): Free in two passes.
15598
15599 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
15600
15601         PR middle-end/49736
15602         * expr.c (all_zeros_p): Undo bogus part of last change.
15603
15604 2011-07-14  Matthias Klose <doko@ubuntu.com>
15605
15606         * doc/extend.texi (optimize attribute): Fix typo.
15607
15608 2011-07-14  Richard Guenther  <rguenther@suse.de>
15609
15610         * gimplify.c (gimplify_expr): Only do required conversions.
15611
15612 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
15613
15614         PR target/43746
15615         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
15616         i.e. use default_elf_select_section.
15617         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
15618         (READONLY_DATA_SECTION_ASM_OP): Remove.
15619         (TARGET_ASM_NAMED_SECTION): Move from here...
15620         * config/avr/avr.c: ...to here.
15621         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
15622         (avr_asm_named_section): Make static.
15623
15624 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15625
15626         PR bootstrap/49739
15627         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
15628         and crtfastmath.o for Linux/x86.
15629
15630 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
15631
15632         * haifa-sched.c: Include "hashtab.h"
15633         (sched_no_dce): New global variable.
15634         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
15635         SHADOW_P): New macros.
15636         (last_clock_var, cycle_issued_insns): Move declarations.
15637         (must_backtrack): New static variable.
15638         (struct delay_pair): New structure.
15639         (delay_htab, delay_htab_i2): New static variables.
15640         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
15641         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
15642         functions.
15643         (dep_cost_1): If delay pairs exist, try to look up the insns and
15644         use the correct pair delay if we find them.
15645         (rank-for_schedule): Tweak priority for insns that must be scheduled
15646         soon to avoid backtracking.
15647         (queue_insn): Detect conditions which force backtracking.
15648         (ready_add): Likewise.
15649         (struct sched_block_state): Add member shadows_only_p.
15650         (struct haifa_save_data): New structure.
15651         (backtrack_queue): New static variable.
15652         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
15653         unschedule_insns_until, restore_last_backtrack_point,
15654         free_topmost_backtrack_point, free_backtrack_queue,
15655         estimate_insn_tick, estimate_shadow_tick): New functions.
15656         (prune_ready_list): New arg shadows_only_p.  All callers changed.
15657         If true, remove everything that isn't SHADOW_P.  Look up delay
15658         pairs and estimate ticks to avoid scheduling the first insn too early.
15659         (verify_shadows): New function.
15660         (schedule_block): Add machinery to enable backtracking.
15661         (sched_init): Take sched_no_dce into account when setting
15662         DF_LR_RUN_DCE.
15663         (free_delay_pairs): New function.
15664         (init_h_i_d): Initialize INSN_EXACT_TICK.
15665         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
15666         * sched-deps.c (sd_unresolve_dep): New function.
15667         * sched-int. (struct haifa_sched_info): New fields save_state
15668         and restore_state.
15669         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
15670         feeds_backtrack_insn and shadow_p.
15671         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
15672         (sched_no_dce): Declare variable.
15673         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
15674         sd_unresolve_dep): Declare functions.
15675         * modulo-sched.c (sms_sched_info): Clear the two new fields.
15676         * sched-rgn.c (rgn_const_sched_info): Likewise.
15677         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
15678         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
15679         (ebb_sched_info): Add them for the two new fields.
15680         (add_deps_for_risky_insns): Call add_delay_dependencies.
15681
15682 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
15683
15684         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
15685         Rename -mr11.
15686         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
15687         (rs6000_call_indirect_aix): Ditto.
15688         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
15689         (call_indirect_aix<ptrsize>_internal): Ditto.
15690         (call_indirect_aix<ptrsize>_nor11): Ditto.
15691         (call_indirect_aix<ptrsize>_internal2): Ditto.
15692         (call_value_indirect_aix<ptrsize>): Ditto.
15693         (call_value_indirect_aix<ptrsize>_internal): Ditto.
15694         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
15695         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
15696         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
15697
15698 2011-07-13  Jason Merrill  <jason@redhat.com>
15699
15700         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
15701
15702 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15703
15704         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
15705         * config/spu/spu.md ("clrsb<mode>2"): New expander.
15706
15707 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
15708
15709         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
15710         * configure: Regenerate.
15711
15712 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15713
15714         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
15715         (asm_file_start): Remove.
15716         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
15717         free_bb_for_insn around code that modifies insns before
15718         restarting df analysis.
15719
15720 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15721
15722         PR target/49541
15723         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
15724         (LINK_SPEC): ... here.
15725
15726 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
15727
15728         * haifa-sched.c (struct sched_block_state): New.
15729         (schedule_block): Move some local variables into such a structure.
15730
15731 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15732
15733         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
15734         * config/i386/t-crtpc: Remove.
15735         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
15736         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
15737         tmake_file.
15738         (x86_64-*-darwin*): Likewise.
15739         (i[34567]86-*-linux*): Likewise.
15740         (x86_64-*-linux*): Likewise.
15741
15742         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
15743         Handle -mpc32, -mpc64, -mpc80.
15744
15745 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15746
15747         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
15748         * config/alpha/t-crtfm: Remove.
15749         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
15750         * config/i386/t-crtfm: Remove.
15751         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
15752         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
15753         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
15754         * config/sparc/t-crtfm: Remove.
15755
15756         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
15757         (alpha*-*-freebsd*): Likewise.
15758         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
15759         (x86_64-*-darwin*): Likewise.
15760         (i[34567]86-*-linux*): Likewise.
15761         (x86_64-*-linux*): Likewise.
15762         (x86_64-*-mingw*): Likewise.
15763         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
15764         (ia64*-*-freebsd*): Likewise.
15765         (ia64*-*-linux*): Likewise.
15766         (mips64*-*-linux*): Likewise.
15767         (mips*-*-linux*): Likewise.
15768         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
15769         (sparc64-*-linux*): Likewise.
15770         (sparc64-*-freebsd*): Likewise.
15771
15772 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15773
15774         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
15775         * config/darwin-crt3.c: Move to ../libgcc/config.
15776         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
15777         ($(T)crt3$(objext)): Remove.
15778         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
15779         ($(T)crt2$(objext)): Remove.
15780         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
15781         (powerpc64-*-darwin*): Likewise.
15782
15783 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
15784
15785         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
15786
15787         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
15788         (addsi_1_zext): This.
15789
15790 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
15791
15792         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
15793         * doc/tm.texi: Regenerate.
15794         * target.def (mergeable_rodata_prefix): New defhookpod.
15795         * varasm.c (mergeable_string_section, mergeable_constant_section):
15796         Use it. Allocate name with alloca.
15797
15798 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
15799
15800         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
15801
15802 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
15803
15804         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
15805         overlap check.
15806
15807 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
15808
15809         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
15810         (count_type_elements): Delete.
15811         (complete_ctor_at_level_p): Declare.
15812         * expr.c (flexible_array_member_p): New function, split out from...
15813         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
15814         parameter with for_ctor_p.  When for_ctor_p is true, return the
15815         number of elements that should appear in the top-level constructor,
15816         otherwise return an estimate of the number of scalars.
15817         (categorize_ctor_elements): Replace p_must_clear with p_complete.
15818         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
15819         (complete_ctor_at_level_p): New function, borrowing union logic
15820         from old categorize_ctor_elements_1.
15821         (mostly_zeros_p): Return true if the constructor is not complete.
15822         (all_zeros_p): Update call to categorize_ctor_elements.
15823         * gimplify.c (gimplify_init_constructor): Update call to
15824         categorize_ctor_elements.  Don't call count_type_elements.
15825         Unconditionally prevent clearing for variable-sized types,
15826         otherwise rely on categorize_ctor_elements to detect
15827         incomplete initializers.
15828
15829 2011-07-13  Richard Guenther  <rguenther@suse.de>
15830
15831         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
15832         the final type is integral.
15833
15834 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
15835
15836         * sched-int.h (struct _dep): Add member cost.
15837         (DEP_COST, UNKNOWN_DEP_COST): New macros.
15838         * sched-deps.c (init_dep_1): Initialize DEP_COST.
15839         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
15840         (sched_change_pattern): Reset it for dependent insns.
15841
15842 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15843
15844         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
15845         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
15846         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
15847         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
15848         (CRT0_S, MCRT0_S): Remove.
15849         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
15850         Remove.
15851         (s-crt0): Remove.
15852         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
15853
15854 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
15855
15856         * cse.c (insert_with_costs): Put semi-colon after empty loop body
15857         on the next line.
15858         * emit-rtl.c (push_to_sequence): Likewise.
15859         * haifa-sched.c (max_issue): Likewise.
15860         * matrix-reorg.c (add_allocation_site): Likewise.
15861         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
15862         * reload.c (alternative_allows_const_pool_ref): Likewise.
15863         * sched-rgn.c (rgn_add_block): Likewise.
15864         (rgn_fix_recovery_cfg): Likewise.
15865         * tree.c (attribute_list_contained): Likewise.
15866
15867 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
15868
15869         * config/i386/i386.c: Tidy processor feature bitmasks.
15870         (m_P4_NOCONA): New.
15871
15872 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
15873
15874         PR rtl-opt/49474
15875         * cprop.c (find_implicit_sets): Correct the condition.
15876
15877 2011-07-12  Richard Henderson  <rth@redhat.com>
15878
15879         PR target/49713
15880         * dwarf2out.h (dwarf_frame_regnum): Remove.
15881         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
15882         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
15883         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
15884         (execute_dwarf2_frame): Initialize them.
15885         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
15886         users of the macros with the variables.
15887         (expand_builtin_dwarf_sp_column): Revert last change.
15888         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
15889         result of DWARF_FRAME_REGNUM into a local variable.
15890
15891 2011-07-12  Richard Henderson  <rth@redhat.com>
15892
15893         PR target/49714
15894         * config/i386/i386.c (x86_output_mi_thunk): Use
15895         machopic_indirect_call_target instead of machopic_indirection_name
15896         directly.
15897
15898 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
15899             Eric Botcazou  <ebotcazou@adacore.com>
15900
15901         * prefix.h: Wrap up in extern "C" block.
15902
15903 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
15904
15905         AMD bdver2 Enablement
15906         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
15907         (case ${target}): Add bdver2.
15908         * config/i386/driver-i386.c (host_detect_local_cpu): Let
15909         -march=native recognize bdver2 processors.
15910         * config/i386/i386-c.c (ix86_target_macros_internal): Add
15911         bdver2 def_and_undef
15912         * config/i386/i386.c (struct processor_costs bdver2_cost): New
15913         bdver2 cost table.
15914         (m_BDVER2): New definition.
15915         (m_AMD_MULTIPLE): Includes m_BDVER2.
15916         (initial_ix86_tune_features): Add bdver2 tuning.
15917         (processor_target_table): Add bdver2 entry.
15918         (static const char *const cpu_names): Add bdver2 entry.
15919         (ix86_option_override_internal): Add bdver2 instruction sets.
15920         (ix86_issue_rate): Add bdver2.
15921         (ix86_adjust_cost): Add bdver2.
15922         (has_dispatch): Add bdver2.
15923         * config/i386/i386.h (TARGET_BDVER2): New definition.
15924         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
15925         (enum processor_type): Add PROCESSOR_BDVER2.
15926         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
15927         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
15928         description.
15929
15930 2011-07-12  Richard Henderson  <rth@redhat.com>
15931
15932         PR target/49714
15933         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
15934         destination address in memory on some paths.
15935
15936 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
15937
15938         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
15939         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
15940         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
15941         * function.c (locate_and_pad_parm): Take it into account.
15942         * target.def (function_arg_round_boundary): New hook.
15943         * targhooks.c (default_function_arg_round_boundary): New function.
15944         * targhooks.h (default_function_arg_round_boundary): Declare.
15945         * doc/tm.texi: Regenerate.
15946
15947 2011-07-12  Richard Guenther  <rguenther@suse.de>
15948
15949         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
15950         Do not perform no-op changes.
15951
15952 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
15953
15954         * config/arm/predicates.md (neon_struct_operand): Make a normal
15955         predicate.
15956         (neon_struct_or_register_operand): New predicate.
15957         * config/arm/neon.md (movmisalign<mode>): Replace predicates
15958         with neon_struct_or_register_operand.
15959         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
15960         neon_struct_operand instead of memory_operand.
15961
15962 2011-07-12  Martin Jambor  <mjambor@suse.cz>
15963
15964         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
15965         * cgraph.c (cgraph_get_node_or_alias): Removed.
15966         (change_decl_assembler_name): Changed all calls to
15967         cgraph_get_node_or_alias to a call to cgraph_get_node.
15968         (cgraph_make_decl_local): Likewise.
15969         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
15970         * varasm.c (default_binds_local_p_1): Likewise.
15971         (decl_binds_to_current_def_p): Likewise.
15972
15973 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
15974
15975         PR tree-optimization/49712
15976         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
15977
15978 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
15979
15980         * genautomata.c (add_arc): Return void.  All callers changed.
15981         (make_automaton): Remove dead code.
15982
15983 2011-07-11  Richard Henderson  <rth@redhat.com>
15984
15985         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
15986         (DW_FRAME_POINTER_REGNUM): New.
15987         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
15988         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
15989         (dwf_regno): New.
15990         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
15991         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
15992         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
15993         Use it.
15994         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
15995         * dwarf2out.h (dwarf_frame_regnum): New.
15996         (struct cfa_loc): Document the domain of the reg member.
15997
15998 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
15999
16000         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
16001         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
16002
16003 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
16004
16005         PR debug/49676
16006         * dwarf2out.c (int_shift_loc_descriptor): New function.
16007         (int_loc_descriptor): If shorter, emit i as
16008         (i >> shift), shift, DW_OP_shl for suitable shift value.
16009         Similarly, try to optimize large negative values using
16010         DW_OP_neg of a positive value if shorter.
16011         (size_of_int_shift_loc_descriptor): New function.
16012         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
16013         changes.
16014         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
16015         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
16016         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
16017         is shorter.
16018         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
16019         addend as added DW_OP_plus if it is shorter.
16020
16021 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16022
16023         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
16024         (DTORS_SECTION_ASM_OP): Define.
16025
16026 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16027
16028         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
16029         * config/t-dfprules: Move to ../libgcc/config.
16030         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
16031         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
16032         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
16033         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
16034         Likewise.
16035         (i[34567]86-*-cygwin*): Likewise.
16036         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
16037         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
16038         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
16039         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
16040         D64PBIT_FUNCS, D128PBIT_FUNCS.
16041
16042 2011-07-11  Richard Guenther  <rguenther@suse.de>
16043
16044         * tree-vrp.c (simplify_conversion_using_ranges): Manually
16045         translate the source value-range through the conversion chain.
16046
16047 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
16048
16049         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
16050
16051 2011-07-11  Arthur Loiret  <aloiret@debian.org>
16052
16053         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
16054         a bi-arch compiler defaulting to 31-bit. In this case:
16055         (tmake_file): Add s390/t-linux64.
16056         * doc/install.texi: Add s390-linux to the list of targets supporting
16057         --enable-targets=all.
16058
16059 2011-07-11  Arthur Loiret  <aloiret@debian.org>
16060             Matthias Klose <doko@debian.org>
16061
16062         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
16063         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
16064         (tm_file): Add mips/linux64.h.
16065         (tmake_file): Add mips/t-linux64.
16066         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
16067         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
16068         instead of hardcoded mabi=n32.
16069         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
16070         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
16071         convention.
16072
16073 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16074
16075         * passes.c (init_optimization_passes): Add invariant motion pass
16076         after induction variable optimization.
16077
16078 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
16079
16080         PR target/39633
16081         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
16082         offsets 1..5 set cc0 in a usable way.
16083
16084 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
16085
16086         * tree.h (call_expr_arg): Remove.
16087         (call_expr_argp): Likewise.
16088
16089 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
16090
16091         * config/sparc/sparc.md (save_register_window_1): Rename to...
16092         (window_save): ...this.
16093         * config/sparc/sparc.c (emit_save_register_window): Rename to...
16094         (emit_window_save): ...this.
16095         (sparc_expand_prologue): Adjust to above renaming.
16096
16097 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
16098
16099         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
16100         of movabs for x32.
16101
16102 2011-07-10  Richard Henderson  <rth@redhat.com>
16103
16104         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
16105         run final, instead of emitting text directly.
16106
16107 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
16108
16109         * config/i386/i386.c (ix86_option_override_internal): Turn on
16110         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
16111         small PIC models for TARGET_X32.
16112
16113 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
16114
16115         PR target/49684
16116         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
16117         $(LIBGCC2_CFLAGS).
16118
16119         PR bootstrap/49680
16120         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
16121         stray notes and debug insns by using prev_nonnote_nondebug_insn
16122         instead of PREV_INSN.
16123
16124 2011-07-09  Richard Henderson  <rth@redhat.com>
16125
16126         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
16127         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
16128         * dwarf2out.c: ... here.
16129         (output_all_cfis): Remove.
16130         (dwarf2out_switch_text_section): Use output_cfis directly.
16131         (size_of_locs): Export.
16132         (output_loc_sequence, output_loc_sequence_raw): Export.
16133         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
16134         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
16135         output_cfa_loc_raw): Move to ...
16136         * dwarfcfi.c: ... here.
16137         * dwarf2out.h: Update decls.
16138
16139 2011-07-09  Richard Henderson  <rth@redhat.com>
16140
16141         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
16142         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
16143         * dwarf2cfi.c: ... here.
16144         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
16145         (DWARF_ROUND, DWARF_CIE_ID): Remove.
16146         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
16147         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
16148         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
16149
16150 2011-07-09  Richard Henderson  <rth@redhat.com>
16151
16152         * dwarf2cfi.c (cie_return_save): New.
16153         (queue_reg_save): Use compare_reg_or_pc.
16154         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
16155         (dwarf2out_frame_debug_expr): Likewise.
16156         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
16157         (initial_return_save): Likewise.
16158         (execute_dwarf2_frame): Save and restore initial return save from
16159         the cie to the fde.
16160         * config/mips/mips.c (mips_frame_set): Remove special case for
16161         DWARF_FRAME_RETURN_COLUMN.
16162
16163 2011-07-09  Richard Henderson  <rth@redhat.com>
16164
16165         * dwarf2cfi.c (lookup_cfa): Remove.
16166         (execute_dwarf2_frame): Assert queues are empty on entry.
16167         Setup initial cfa directly, not via lookup_cfa.
16168         Don't clear args_size state here.
16169
16170 2011-07-09  Richard Henderson  <rth@redhat.com>
16171
16172         * dwarf2cfi.c (add_cfi_vec): New.
16173         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
16174         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
16175         (execute_dwarf2_frame): Set add_cfi_vec.
16176
16177 2011-07-09  Richard Henderson  <rth@redhat.com>
16178
16179         * defaults.h (ASM_COMMENT_START): Move here...
16180         * dwarf2asm.c: ... from here.
16181         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
16182         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
16183         * varasm.c: Likewise.
16184
16185 2011-07-09  Richard Henderson  <rth@redhat.com>
16186
16187         PR debug/49686
16188         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
16189         (create_cfi_notes): ... do it here instead.
16190
16191 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
16192
16193         PR debug/49676
16194         * dwarf2out.c (size_of_int_loc_descriptor): New function.
16195         (address_of_int_loc_descriptor): Use it.
16196         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
16197
16198 2011-07-09  Richard Henderson  <rth@redhat.com>
16199
16200         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
16201         (prologue, epilogue): New.
16202         (return, *rts): New.
16203         (blockage, setd, seti): New.
16204         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
16205         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
16206         (pdp11_saved_regno): New.
16207         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
16208         generate rtl instead of text.
16209         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
16210         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
16211         * config/pdp11/pdp11-protos.h: Update.
16212
16213 2011-07-09  Richard Henderson  <rth@redhat.com>
16214
16215         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
16216         try to insert an rtl prologue here.
16217         (rs6000_output_function_epilogue): Similarly.
16218         * config/rs6000/rs6000.md (prologue): Emit a barrier to
16219         satisfy !TARGET_SCHED_PROLOG.
16220         (epilogue, sibcall_epilogue): Likewise.
16221
16222 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
16223
16224         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
16225         (FP_REG_P): Delete.
16226         (IN_OR_GLOBAL_P): Likewise.
16227
16228 2011-07-08  Jason Merrill  <jason@redhat.com>
16229
16230         PR c++/45437
16231         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
16232         compound assignment.
16233
16234         * cgraph.c (cgraph_add_to_same_comdat_group): New.
16235         * cgraph.h: Declare it.
16236         * ipa.c (function_and_variable_visibility): Make sure thunks
16237         have the right visibility.
16238
16239 2011-07-08  Richard Henderson  <rth@redhat.com>
16240
16241         PR bootstrap/49680
16242         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
16243         any tablejump vector.
16244
16245         PR bootstrap/49680
16246         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
16247         end of the prologue.
16248
16249 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
16250
16251         PR target/49621
16252         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
16253         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
16254         * config/rs6000/vector.md (vector_select_<mode>,
16255         vector_select_<mode>_uns): Change second operand of NE to
16256         CONST0_RTX (<MODE>mode) instead of const0_rtx.
16257         * config/rs6000/altivec.md (*altivec_vsel<mode>,
16258         *altivec_vsel<mode>_uns): Expect second operand of NE to be
16259         zero_constant of the corresponding vector mode.
16260         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
16261         Likewise.
16262
16263 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
16264
16265         * graphite-dependences.c (build_alias_set_powerset): Remove
16266         continue from loop, add one more assert.
16267
16268 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
16269
16270         PR target/46779
16271         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
16272         In particular, allow 8-bit values in r28 and r29.
16273         (avr_hard_regno_scratch_ok): Disallow any register that might be
16274         part of the frame pointer.
16275         (avr_hard_regno_rename_ok): Same.
16276         (avr_legitimate_address_p): Don't allow SUBREGs.
16277
16278 2011-07-08  Julian Brown  <julian@codesourcery.com>
16279
16280         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
16281         big-endian mode.
16282         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
16283         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
16284         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
16285         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
16286         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
16287         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
16288         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
16289         registers in big-endian mode.
16290
16291 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
16292
16293         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
16294         in terms of another.
16295         (write_attr_value): Write a cast if necessary.
16296
16297         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
16298         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
16299         (REG_WORDS_BIG_ENDIAN): Document.
16300         * doc/tm.texi: Regenerate.
16301         * reload.c (operands_match_p): Take it into account.
16302         (reload_adjust_reg_for_mode): Likewise.
16303         * rtlanal.c (subreg_get_info): Likewise.
16304
16305 2011-07-08  Richard Guenther  <rguenther@suse.de>
16306
16307         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
16308         folding.
16309
16310 2011-07-08  Kai Tietz  <ktietz@redhat.com>
16311
16312         * fold-const.c (fold_truth_andor): Factored out truth_andor
16313         label from fold_binary as function.
16314         (fold_binary_loc): Replace truth_andor lable
16315         by function fold_truth_andor.
16316
16317 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
16318
16319         PR middle-end/49519
16320         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
16321         check if address is stored in register. If so - give up.
16322         (check_sibcall_argument_overlap_1): Do not perform check of
16323         overlapping when it is call to address.
16324
16325 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
16326
16327         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
16328         of magic '31'.
16329
16330 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
16331
16332         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
16333         GET_MODE_BITSIZE where appropriate.
16334         (widen_leading, expand_parity, expand_ctz, expand_ffs,
16335         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
16336         expand_float, expand_fix): Likewise.
16337         * expr.c (convert_move, convert_modes, expand_expr_real_2,
16338         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
16339         * stor-layout.c (get_mode_bounds): Likewise.
16340         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
16341         Likewise.
16342         * convert.c (convert_to_integer): Likewise.
16343         * expmed.c (expand_shift_1): Likewise.
16344
16345         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
16346         a bitsize.
16347
16348         * optabs.c (expand_binop): Tighten conditions for doubleword
16349         expansions.
16350         (widen_bswap): Assert that mode bitsize and precision are the same.
16351         * stor-layout.c (get_best_mode): Skip modes that have lower
16352         precision than bitsize.
16353         * recog.c (simplify_while_replacing): Assert that bitsize and
16354         precision are the same.
16355
16356 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16357
16358         * Makefile.in (LIBGCOV): Remove.
16359         (libgcc.mvars): Remove LIBGCOV.
16360         * libgov.c: Move to ../libgcc.
16361
16362 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16363
16364         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
16365
16366 2011-07-08  Martin Jambor  <mjambor@suse.cz>
16367
16368         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
16369         is too big for total scalarization.
16370
16371 2011-07-07  Richard Henderson  <rth@redhat.com>
16372
16373         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
16374         (DBX_DEBUGGING_INFO): Undef.
16375
16376 2011-07-07  Richard Henderson  <rth@redhat.com>
16377
16378         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
16379         Handle some opcodes specially for debugging.
16380         * print-rtl.c: Include dwarf2out.h
16381         (print_rtx): Handle NOTE_INSN_CFI.
16382         * Makefile.in (print-rtl.o): Update.
16383
16384 2011-07-07  Richard Henderson  <rth@redhat.com>
16385
16386         * tree-pass.h (pass_dwarf2_frame): Declare.
16387         * passes.c (init_optimization_passes): Add it.
16388         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
16389         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
16390         make static, do not call add_cfis_to_fde.
16391         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
16392         dwarf2out_frame_init): Merge into...
16393         (execute_dwarf2_frame): ... here.  New function.
16394         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
16395         saved_do_cfi_asm to a tri-state variable.
16396         (gate_dwarf2_frame, pass_dwarf2_frame): New.
16397         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
16398         if it has yet to be done.  Don't call dwarf2cfi_function_init.
16399         * dwarf2out.h, debug.h: Update decls.
16400         * final.c (final_start_function): Don't call
16401         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
16402         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
16403         * toplev.c (lang_dependent_init): Likewise.
16404
16405 2011-07-07  Richard Henderson  <rth@redhat.com>
16406
16407         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
16408         FDE_TABLE_INCREMENT): Replace with...
16409         (fde_vec): ... this, a new vector.
16410         (current_fde): Remove.  Replace all users with cfun->fde.
16411         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
16412         (size_of_aranges, dwarf2out_finish): Likewise.
16413         (dwarf2out_alloc_current_fde): Break out from ...
16414         (dwarf2out_begin_prologue): ... here.
16415         (dwarf2out_frame_init): Remove.
16416         * dwarf2cfi.c: Update all users of current_fde.
16417         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
16418         * dwarf2out.h: Update decls.
16419         (dw_fde_node): Add fde_index member.
16420         * function.h (struct function): Add fde member.
16421
16422 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
16423             Richard Henderson  <rth@redhat.com>
16424
16425         * dwarf2cfi.c (add_cfi): Remove.
16426         (dwarf2out_cfi_label): Remove force argument.  Only generate the
16427         label name.
16428         (add_fde_cfi): Simplify the different code paths.
16429         (add_cie_cfi): New.
16430         (old_cfa, old_cfa_remember): New.
16431         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
16432         (last_reg_save_label): Remove.
16433         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
16434         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
16435         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
16436         dwarf2out_frame_debug_cfa_expression,
16437         dwarf2out_frame_debug_cfa_restore,
16438         dwarf2out_frame_debug_cfa_window_save,
16439         dwarf2out_frame_debug_expr): Remove label parameter.
16440         (cfi_label_required_p, add_cfis_to_fde): New.
16441         (dwarf2out_frame_debug_after_prologue): New.
16442         (dwarf2cfi_frame_init): Initialize old_cfa.
16443         (dwarf2out_frame_debug_restore_state): Likewise.
16444         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
16445         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
16446         * final.c (final_start_function): Call
16447         dwarf2out_frame_debug_after_prologue.
16448
16449 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
16450             Richard Henderson  <rth@redhat.com>
16451
16452         * dwarf2cfi.c (cfi_insn): New.
16453         (dwarf2out_cfi_label): Don't emit cfi label here.
16454         (add_fde_cfi): Create a NOTE_INSN_CFI.
16455         (dwarf2out_frame_debug): Setup cfi_insn.
16456         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
16457         (dwarf2out_cfi_begin_epilogue): Make static.
16458         (dwarf2out_frame_debug_restore_state): Make static.
16459         * dwarf2out.c (output_cfi_directive): Make static.
16460         (dwarf2out_emit_cfi): New.
16461         * dwarf2out.h: Update.
16462         * final.c (final): Remove CFI notes.
16463         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
16464         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
16465         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
16466         * insn-notes.def (NOTE_INSN_CFI): New.
16467         (NOTE_INSN_CFI_LABEL): New.
16468         * rtl.h (union rtunion_def): Add rt_cfi member.
16469         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
16470
16471 2011-07-07  Richard Henderson  <rth@redhat.com>
16472
16473         * dwarf2cfi.c: New file.
16474         * Makefile.in (OBJS): Add it.
16475         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
16476         * gengtype.c (open_base_files): Include dwarf2out.h.
16477         * coretypes.h (enum var_init_status): Move from ...
16478         * rtl.h: ... here.
16479         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
16480         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
16481         expand_builtin_dwarf_sp_column, init_return_column_size,
16482         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
16483         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
16484         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
16485         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
16486         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
16487         compute_barrier_args_size, dwarf2out_args_size,
16488         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
16489         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
16490         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
16491         queue_reg_save, dwarf2out_flush_queued_reg_saves,
16492         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
16493         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
16494         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
16495         dwarf2out_frame_debug_cfa_expression,
16496         dwarf2out_frame_debug_cfa_restore,
16497         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
16498         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
16499         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
16500         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
16501         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
16502         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
16503         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
16504         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
16505         dw_loc_descr_node): Move to dwarf2out.h.
16506         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
16507         mem_loc_descriptor): Export.
16508         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
16509         (dwarf2out_frame_init): Extract CIE generation code to
16510         dwarf2cfi_frame_init.
16511
16512 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
16513
16514         PR target/49660
16515         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
16516         MASK_V8PLUS, remove commented out flag and reorder.
16517
16518 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
16519
16520         PR c/49644
16521         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
16522         one non-complex and one complex argument, call c_save_expr on both
16523         operands.
16524
16525 2011-07-07  Martin Jambor  <mjambor@suse.cz>
16526
16527         PR middle-end/49495
16528         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
16529         (verify_cgraph_node): Some functinality moved to
16530         verify_edge_corresponds_to_fndecl, call it.
16531
16532 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
16533
16534         * config.gcc (*local*): Remove.
16535         * doc/install-old.texi: Don't mention local configurations.
16536
16537 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
16538
16539         PR debug/49522
16540         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
16541         referencing debug insns that have been reset.
16542         (dead_debug_insert_before): Don't assert reg is non-NULL,
16543         instead return immediately if it is NULL.
16544
16545 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
16546
16547         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
16548
16549 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
16550
16551         * hw-doloop.c: New file.
16552         * hw-doloop.h: New file.
16553         * Makefile.in (OBJS): Add hw-doloop.o.
16554         (hw-doloop.o): New rule.
16555         ($(obj_out_file)): Add hw-doloop.h dependency.
16556         * config/bfin/bfin.c: Include "hw-doloop.h".
16557         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
16558         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
16559         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
16560         type changed to hwloop_info.  Return bool, true if the loop was
16561         successfully optimized.  Remove code that was moved to
16562         hw-doloop.c, and adjust other parts.
16563         (hwloop_fail): New static function, containing parts that used
16564         to be in bfin_optimize_loop.
16565         (bfin_discover_loop, bfin_discover_loops, free_loops,
16566         bfin_reorder_loops): Remove.
16567         (hwloop_pattern_reg): New static function.
16568         (bfin_doloop_hooks): New variable.
16569         (bfin_reorg_loops): Remove most code, call reorg_loops.
16570         * config/bfin/bfin.md (doloop_end splitter): Also enable if
16571         loop counter is a memory_operand.
16572
16573 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
16574
16575         * config.gcc: Support --with-multilib-list for x86 Linux targets.
16576
16577         * configure.ac: Mention x86-64 for --with-multilib-list.
16578         * configure: Regenerated.
16579
16580         * config/i386/gnu-user64.h (SPEC_64): Support x32.
16581         (SPEC_32): Likewise.
16582         (ASM_SPEC): Likewise.
16583         (LINK_SPEC): Likewise.
16584         (TARGET_THREAD_SSP_OFFSET): Likewise.
16585         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
16586         (SPEC_X32): New.
16587
16588         * config/i386/i386.h (TARGET_X32): New.
16589         (TARGET_LP64): New.
16590         (LONG_TYPE_SIZE): Likewise.
16591         (POINTER_SIZE): Likewise.
16592         (POINTERS_EXTEND_UNSIGNED): Likewise.
16593         (OPT_ARCH64): Support x32.
16594         (OPT_ARCH32): Likewise.
16595
16596         * config/i386/i386.opt (mx32): New.
16597
16598         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
16599         (GLIBC_DYNAMIC_LINKERX32): Likewise.
16600         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
16601         (GLIBC_DYNAMIC_LINKERX32): Likewise.
16602
16603         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
16604         (BIONIC_DYNAMIC_LINKERX32): Likewise.
16605         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
16606
16607         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
16608
16609         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
16610
16611         * doc/invoke.texi: Document -mx32.
16612
16613 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
16614
16615         * doc/invoke.texi (mwords-little-endian): Deprecate.
16616         * config/arm/arm.opt (mwords-little-endian): Likewise.
16617         * config/arm/arm.c (arm_option_override): Warn about the deprecation
16618         of -mwords-little-endian.
16619
16620 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
16621
16622         * reload1.c (choose_reload_regs): Use mode sizes to check whether
16623         an old reload register completely defines the required value.
16624
16625 2011-07-07  Richard Guenther  <rguenther@suse.de>
16626
16627         * fold-const.c (fold_unary_loc): Do not strip sign-changes
16628         for NEGATE_EXPR.
16629
16630 2011-07-07  Richard Guenther  <rguenther@suse.de>
16631
16632         * tree-vrp.c (simplify_conversion_using_ranges): New function.
16633         (simplify_stmt_using_ranges): Call it.
16634
16635 2011-07-07  Kai Tietz  <ktietz@redhat.com>
16636
16637         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
16638         (lookup_logical_inverted_value): Likewise.
16639         (simplify_bitwise_binary_1): Likewise.
16640         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
16641
16642 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
16643
16644         * gcc.c (%[Spec]): Don't document.
16645         (struct spec_list): Update comment.
16646         (do_spec_1): Don't handle %[Spec].
16647         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
16648
16649 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
16650
16651         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
16652         default based on TARGET_ASM_NAMED_SECTION.
16653         * common/common-target.def (have_named_sections): Default to true.
16654         * common/config/default-common.c: Don't include tm.h.
16655         * common/config/picochip/picochip-common.c
16656         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
16657         * common/config/m32c/m32c-common.c: Remove.
16658         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
16659         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
16660         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
16661         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
16662         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
16663         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
16664         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
16665
16666 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
16667
16668         PR middle-end/49640
16669         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
16670         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
16671
16672 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16673
16674         PR libmudflap/49550
16675         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
16676
16677 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16678
16679         PR target/39150
16680         * configure.ac (gcc_cv_as_hidden): Also accept
16681         x86_64-*-solaris2.1[0-9]*.
16682         (gcc_cv_as_cfi_directive): Likewise.
16683         (gcc_cv_as_comdat_group_group): Likewise.
16684         (set_have_as_tls): Likewise.
16685         * configure: Regenerate.
16686         * config.gcc (i[34567]86-*-solaris2*): Also handle
16687         x86_64-*-solaris2.1[0-9]*.
16688         * config.host (i[34567]86-*-solaris2*): Likewise.
16689         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
16690         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
16691         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
16692         (TARGET_LD_EMULATION): Use it.
16693         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
16694         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
16695         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
16696         (ASM_CPU64_DEFAULT_SPEC): Define.
16697         (ASM_CPU_SPEC): Use %(asm_cpu_default).
16698         (ASM_SPEC): Redefine.
16699         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
16700         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
16701         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
16702         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
16703         configuration.
16704         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
16705
16706 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16707
16708         * config/sol2.h (ASM_SPEC): Split into ...
16709         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
16710         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
16711         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
16712         (ASM_SPEC): Use ASM_SPEC_BASE.
16713         * config/sparc/sol2.h (ASM_SPEC): Redefine.
16714
16715 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
16716
16717         * config/avr/avr.md (*reload_insi): Change predicate #1 to
16718         const_int_operand.  Ditto for peep2 producing this insn.
16719         Add argument to output_reload_insisf call.
16720         (*movsi,*movsf): Add argument to output_movsisf call.
16721         (*reload_insf): New insn and new peep2 to produce it.
16722         * config/avr/avr-protos.h (output_movsisf): Change prototype.
16723         (output_reload_insisf): Change prototype.
16724         * config/avr/avr.c (avr_asm_len): New function.
16725         (output_reload_insisf): Rewrite.
16726         (output_movsisf): Change prototype.  output_reload_insisf for
16727         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
16728         (adjust_insn_length): Add argument to output_movsisf and
16729         output_reload_insisf call.
16730
16731 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
16732
16733         * emit-rtl.c (paradoxical_subreg_p): New function.
16734         * rtl.h (paradoxical_subreg_p): Declare.
16735         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
16736         apply_distributive_law, simplify_comparison, simplify_set): Use it.
16737         * cse.c (record_jump_cond, cse_insn): Likewise.
16738         * expr.c (force_operand): Likewise.
16739         * rtlanal.c (num_sign_bit_copies1): Likewise.
16740         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
16741         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
16742         (push_reload): Use precision to check for paradoxical subregs.
16743         * expmed.c (extract_bit_field_1): Likewise.
16744
16745         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
16746         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
16747         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
16748         simplify_set, simplify_logical, expand_compound_operation,
16749         make_extraction, force_to_mode, if_then_else_cond, extended_count,
16750         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
16751         record_value_for_reg): Likewise.
16752         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
16753         * simplify-rtx. c (simplify_unary_operation_1,
16754         simplify_binary_operation_1, simplify_const_relational_operation):
16755         Likewise.
16756
16757         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
16758         instead of GET_MODE_BITSIZE where appropriate.
16759         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
16760         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
16761         init_num_sign_bit_copies_in_rep): Likewise.
16762         * cse.c (fold_rtx, cse_insn): Likewise.
16763         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
16764         * simplify-rtx.c (simplify_unary_operation_1,
16765         simplify_const_unary_operation, simplify_binary_operation_1,
16766         simplify_const_binary_operation, simplify_ternary_operation,
16767         simplify_const_relational_operation, simplify_subreg): Likewise.
16768         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
16769         simplify_if_then_else, simplify_set, expand_compound_operation,
16770         expand_field_assignment, make_extraction, if_then_else_cond,
16771         make_compound_operation, force_to_mode, make_field_assignment,
16772         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
16773         extended_count, try_widen_shift_mode, simplify_shift_const_1,
16774         simplify_comparison, record_promoted_value, simplify_compare_const,
16775         record_dead_and_set_regs_1): Likewise.
16776
16777         Revert:
16778         * simplify-rtx.c (simplify_const_binary_operation): Use the
16779         shift_truncation_mask hook instead of performing modulo by width.
16780         Compare against mode precision, not bitsize.
16781         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
16782         Use shift_truncation_mask instead of constructing the value manually.
16783
16784 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
16785
16786         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
16787         declaration.
16788         (rs6000_save_toc_in_prologue_p): Ditto.
16789
16790         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
16791         up the static chain (r11) during indirect function calls.
16792         (-msave-toc-indirect): New undocumented debug switch.
16793
16794         * config/rs6000/rs6000.c (struct machine_function): Add
16795         save_toc_in_prologue field to note whether the prologue needs to
16796         save the TOC value in the reserved stack location.
16797         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
16798         to save the TOC in the prologue, do so.
16799         (rs6000_trampoline_init): Don't allow creating AIX style
16800         trampolines if -mno-r11 is in effect.
16801         (rs6000_call_indirect_aix): New function to create AIX style
16802         indirect calls, adding support for -mno-r11 to suppress loading
16803         the static chain, and saving the TOC in the prologue instead of
16804         the call body.
16805         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
16806         TOC in the prologue.
16807
16808         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
16809         register numbers.
16810         (TOC_REGNUM): Ditto.
16811         (STATIC_CHAIN_REGNUM): Ditto.
16812         (ARG_POINTER_REGNUM): Ditto.
16813         (SFP_REGNO): Delete, unused.
16814         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
16815         function descriptor offsets.
16816         (TOC_SAVE_OFFSET_64BIT): Ditto.
16817         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
16818         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
16819         (AIX_FUNC_DESC_SC_32BIT): Ditto.
16820         (AIX_FUNC_DESC_SC_64BIT): Ditto.
16821         (ptrload): New mode attribute for the appropriate load of a pointer.
16822         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
16823         (call_indirect_aix64): Ditto.
16824         (call_value_indirect_aix32): Ditto.
16825         (call_value_indirect_aix64): Ditto.
16826         (call_indirect_nonlocal_aix32_internal): Ditto.
16827         (call_indirect_nonlocal_aix32): Ditto.
16828         (call_indirect_nonlocal_aix64_internal): Ditto.
16829         (call_indirect_nonlocal_aix64): Ditto.
16830         (call): Rewrite AIX indirect function calls.  Add support for
16831         eliminating the static chain, and for moving the save of the TOC
16832         to the function prologue.
16833         (call_value): Ditto.
16834         (call_indirect_aix<ptrsize>): Ditto.
16835         (call_indirect_aix<ptrsize>_internal): Ditto.
16836         (call_indirect_aix<ptrsize>_internal2): Ditto.
16837         (call_indirect_aix<ptrsize>_nor11): Ditto.
16838         (call_value_indirect_aix<ptrsize>): Ditto.
16839         (call_value_indirect_aix<ptrsize>_internal): Ditto.
16840         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
16841         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
16842         (call_nonlocal_aix32): Relocate in the rs6000.md file.
16843         (call_nonlocal_aix64): Ditto.
16844
16845         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
16846         -mno-r11 documentation.
16847
16848 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
16849
16850         PR other/49658
16851         * doc/extend.texi (Compound Literals): Fix typo.
16852
16853 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
16854
16855         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
16856
16857 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
16858
16859         * configure.ac (plugin-version.h): Generate
16860         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
16861         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
16862         macros.
16863
16864         * configure: Regenerate.
16865
16866         * doc/plugins.texi (Building GCC plugins): Mention
16867         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
16868
16869 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
16870
16871         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
16872         * combine.c (make_extraction, gen_lowpart_or_truncate,
16873         apply_distributive_law, simplify_comparison,
16874         reg_truncated_to_mode, record_truncated_value): Use it.
16875         * cse.c (notreg_cost): Likewise.
16876         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
16877         * expr.c (convert_move, convert_modes): Likewise.
16878         * optabs.c (expand_binop, expand_unop): Likewise.
16879         * postreload.c (move2add_last_label): Likewise.
16880         * regmove.c (optimize_reg_copy_3): Likewise.
16881         * rtlhooks.c (gen_lowpart_general): Likewise.
16882         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
16883
16884 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
16885
16886         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
16887
16888 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
16889
16890         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
16891         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
16892         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
16893         (simplify_const_unary_operation, simplify_binary_operation_1,
16894         simplify_const_binary_operation, simplify_const_relational_operation):
16895         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
16896         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
16897         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
16898         simplify_shift_const_1, simplify_comparison): Likewise.
16899         * expr.c (convert_modes): Likewise.
16900         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
16901         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
16902         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
16903
16904         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
16905
16906 2011-07-06  Richard Guenther  <rguenther@suse.de>
16907
16908         PR tree-optimization/49645
16909         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
16910         register variables.
16911         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
16912         in type qualification here ...
16913         (copy_reference_ops_from_ref): ... not here.
16914         (vn_reference_lookup_3): ... or here.
16915         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
16916         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
16917
16918 2011-07-06  Ian Lance Taylor  <iant@google.com>
16919
16920         * doc/install.texi (Configuration): It's
16921         --enable-gnu-indirect-function, not --enable-indirect-function.
16922
16923 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
16924
16925         * simplify-rtx.c (simplify_const_binary_operation): Use the
16926         shift_truncation_mask hook instead of performing modulo by width.
16927         Compare against mode precision, not bitsize.
16928         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
16929         Use shift_truncation_mask instead of constructing the value manually.
16930
16931 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
16932
16933         PR middle-end/47383
16934         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
16935         address computation and convert to address_mode if needed.
16936
16937 2011-07-06  Richard Guenther  <rguenther@suse.de>
16938
16939         * tree.c (build_common_tree_nodes_2): Merge with
16940         build_common_tree_nodes.
16941         * tree.h (build_common_tree_nodes): Adjust prototype.
16942         (build_common_tree_nodes_2): Remove.
16943         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
16944         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
16945
16946 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
16947
16948         PR tree-optimization/49618
16949         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
16950         t recurse on the decl.
16951         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
16952         return true if expr isn't known to be defined in current
16953         TU or some other LTO partition.
16954
16955 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
16956
16957         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
16958         override CASE_VALUES_THRESHOLD.
16959
16960         * stmt.c (toplevel): Include params.h.
16961         (case_values_threshold): Use the --param case-values-threshold
16962         value if non-zero, otherwise use machine dependent value.
16963         (expand_case): Use case_values_threshold.
16964
16965         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
16966
16967         * doc/invoke.texi (--param case-values-threshold): Document.
16968
16969 2011-07-05  Richard Henderson  <rth@redhat.com>
16970
16971         * dwarf2out.c (dwarf2out_cfi_label): Make static.
16972         (dwarf2out_flush_queued_reg_saves): Make static.
16973         (dwarf2out_reg_save): Remove.
16974         (dwarf2out_return_save): Remove.
16975         (dwarf2out_return_reg): Remove.
16976         (dwarf2out_reg_save_reg): Remove.
16977         (dwarf2out_def_cfa): Merge into ...
16978         (dwarf2out_frame_init): ... here.
16979         * dwarf2out.h, tree.h: Remove declarations as necessary.
16980
16981 2011-07-05  Richard Henderson  <rth@redhat.com>
16982
16983         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
16984         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
16985         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
16986         the alloc insn.
16987
16988         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
16989         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
16990         (process_epilogue): Don't call dwarf2out_def_cfa.
16991
16992         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
16993         indicate the return address save.
16994         (process_cfa_register): Likewise.
16995
16996         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
16997         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
16998
16999         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
17000         for ar.pfs save at alloc insn.
17001
17002 2011-07-05  Richard Henderson  <rth@redhat.com>
17003
17004         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
17005         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
17006         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
17007         stack pointer save.
17008         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
17009         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
17010         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
17011         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
17012
17013 2011-07-05  Richard Henderson  <rth@redhat.com>
17014
17015         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
17016         VUNSPEC_* constants here instead of via define_constants.
17017         (VUNSPEC_PEM): New constant.
17018         (procedure_entry_mask): New insn.
17019         (prologue): New expander.
17020         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
17021         (vax_expand_prologue): Rename from vax_output_function_prologue;
17022         emit rtl instead of text.
17023         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
17024         (print_operand): Add 'x' prefix.
17025
17026 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
17027
17028         PR middle-end/47715
17029         * calls.c (precompute_register_parameters): Promote the function
17030         argument before checking non-legitimate constant.
17031
17032 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
17033
17034         PR tree-optimization/47654
17035         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
17036         (lst_do_strip_mine_loop): Return an int.
17037         (lst_do_strip_mine): Same.
17038         (scop_do_strip_mine): Same.
17039         (scop_do_block): Loop blocking should strip-mine at least two loops.
17040         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
17041         (scop_do_interchange): Same.
17042         * graphite-poly.h (scop_do_interchange): Update declaration.
17043         (scop_do_strip_mine): Same.
17044
17045 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
17046
17047         * graphite-clast-to-gimple.c (precision_for_value): Removed.
17048         (precision_for_interval): Removed.
17049         (gcc_type_for_interval): Use mpz_sizeinbase.
17050
17051 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
17052
17053         * graphite-ppl.h (value_max): Correct computation of max.
17054
17055 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
17056
17057         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
17058
17059 2011-07-05  Richard Guenther  <rguenther@suse.de>
17060
17061         * c-decl.c (c_init_decl_processing): Defer building common
17062         tree nodes to c_common_nodes_and_builtins.
17063
17064 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
17065
17066         PR tree-optimization/49580
17067         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
17068         the loop's number of iterations.
17069         * tree-parloops.c (transform_to_exit_first_loop): Add the
17070         handling of the loop's number of iterations before the call
17071         to gimple_duplicate_sese_tail.
17072         Insert the stmt caclculating the new rhs of the loop's
17073         condition stmt to the preheader instead of iters_bb.
17074
17075 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
17076
17077         PR rtl-optimization/47449
17078         * fwprop.c (forward_propagate_subreg): Don't propagate hard
17079         register nor zero/sign extended hard register.
17080
17081 2011-07-05  Richard Guenther  <rguenther@suse.de>
17082
17083         PR tree-optimization/49518
17084         PR tree-optimization/49628
17085         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
17086         irrelevant and invariant data-references.
17087         (vect_analyze_data_ref_access): For invariant loads clear the
17088         group association.
17089
17090 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
17091
17092         PR rtl-optimization/49619
17093         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
17094         pass VOIDmode as op0_mode to recursive call, and return temp even
17095         when different from tor, just if it is not IOR of the original
17096         PLUS arguments.
17097
17098         PR rtl-optimization/49472
17099         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
17100         negating MULT, negate the second operand instead of first.
17101         (simplify_binary_operation_1) <case MULT>: If one operand is
17102         a NEG and the other is MULT, don't attempt to optimize by negation
17103         of the MULT operand if it only moves the NEG operation around.
17104
17105         PR debug/49602
17106         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
17107         get_current_def return value if it can't be trusted to be
17108         the current value of the variable in the current bb.
17109
17110 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
17111
17112         PR target/49600
17113         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
17114         general register to memory for !TARGET_INTER_UNIT_MOVES.
17115
17116 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
17117
17118         PR target/44643
17119         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
17120         instead of TREE_READONLY.
17121
17122 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
17123
17124         * doc/extend.texi (AVR Built-in Functions): Update documentation
17125         of __builtin_avr_fmul*.
17126         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
17127         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
17128         * config/avr/avr.md (fmul): Rename to fmul_insn.
17129         (fmuls): Rename to fmuls_insn.
17130         (fmulsu): Rename to fmulsu_insn.
17131         (fmul,fmuls,fmulsu): New expander.
17132         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
17133         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
17134         * config/avr/libgcc.S (__fmul): New function.
17135         (__fmuls): New function.
17136         (__fmulsu,__fmulsu_exit): New function.
17137
17138 2011-07-04  Richard Guenther  <rguenther@suse.de>
17139
17140         PR tree-optimization/49615
17141         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
17142         basic-block index check.
17143
17144 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
17145
17146         * longlong.h (count_leading_zeros, count_trailing_zeros,
17147         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
17148         resp. 64.
17149
17150 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
17151
17152         PR tree-optimization/49610
17153         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
17154         a basic block.
17155
17156 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
17157             Olivier Hainque  <hainque@adacore.com>
17158             Nicolas Setton  <setton@adacore.com>
17159
17160         * tree.h (TYPE_ARTIFICIAL): New flag.
17161         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
17162         the DIE of the type if it is artificial.
17163         (gen_array_type_die): Likewise.
17164         (gen_enumeration_type_die): Likewise.
17165         (gen_struct_or_union_type_die): Likewise.
17166         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
17167         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
17168
17169 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
17170
17171         * tree-object-size.c (pass_through_call): Handle
17172         BUILT_IN_ASSUME_ALIGNED.
17173
17174 2011-07-01  Martin Jambor  <mjambor@suse.cz>
17175
17176         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
17177
17178 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
17179
17180         PR middle-end/48016
17181         * explow.c (update_nonlocal_goto_save_area): Use proper mode
17182         for stack save area.
17183         * function.c (expand_function_start): Likewise.
17184
17185 2011-07-01  Richard Guenther  <rguenther@suse.de>
17186
17187         PR middle-end/49596
17188         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
17189         may have unknown refs.
17190
17191 2011-07-01  Kai Tietz  <ktietz@redhat.com>
17192
17193         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
17194
17195 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17196
17197         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
17198         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
17199         (Specific, mips-sgi-irix6): Likewise.
17200
17201 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17202
17203         PR libmudflap/49549
17204         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
17205
17206 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
17207
17208         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
17209         [idx]= and [idx1 ... idx2]= before initializers if needed for
17210         array initializers.
17211
17212 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
17213
17214         * config.gcc (score-*-elf): Remove score7.o.
17215         * config/score/t-score-elf: Likewise.
17216         * config/score/score.c: Merge score7 to score.c and
17217         remove forwarding functions.
17218         * config/score/score7.c: Deleted.
17219         * config/score/score7.h: Deleted.
17220
17221 2011-07-01  Richard Guenther  <rguenther@suse.de>
17222
17223         PR tree-optimization/49603
17224         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
17225
17226 2011-06-30  Martin Jambor  <mjambor@suse.cz>
17227
17228         * tree-sra.c (struct access): Rename total_scalarization to
17229         grp_total_scalarization
17230         (completely_scalarize_var): New function.
17231         (sort_and_splice_var_accesses): Set total_scalarization in the
17232         representative access.
17233         (analyze_access_subtree): Propagate total scalarization accross the
17234         tree, no holes in totally scalarized trees, simplify coverage
17235         computation.
17236         (analyze_all_variable_accesses): Call completely_scalarize_var instead
17237         of completely_scalarize_record.
17238
17239 2011-06-30  Richard Henderson  <rth@redhat.com>
17240
17241         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
17242         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
17243         * config/i386/i386.c: Don't include dwarf2out.h.
17244         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
17245         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
17246         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
17247         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
17248         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
17249
17250 2011-06-30  Richard Henderson  <rth@redhat.com>
17251
17252         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
17253         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
17254         * final.c (final_scan_insn): Look for it, and invoke
17255         dwarf2out_frame_debug before the insn if found.
17256
17257 2011-06-30  Richard Henderson  <rth@redhat.com>
17258
17259         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
17260         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
17261
17262 2011-06-30  Richard Henderson  <rth@redhat.com>
17263
17264         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
17265         Define a vector of this type.
17266         (regs_saved_in_regs): Use a VEC.
17267         (num_regs_saved_in_regs): Remove.
17268         (compare_reg_or_pc): New.
17269         (record_reg_saved_in_reg): Split out from...
17270         (dwarf2out_flush_queued_reg_saves): ... here.
17271         (clobbers_queued_reg_save): Update for VEC.
17272         (reg_saved_in): Likewise.
17273         (dwarf2out_frame_debug_init): Likewise.
17274         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
17275         (dwarf2out_frame_debug_cfa_register): Likewise.
17276
17277 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
17278
17279         PR tree-optimization/49572
17280         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
17281         type of the RHS instead of that of the LHS for the expression type.
17282
17283 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
17284
17285         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
17286         unconditionally.
17287
17288 2011-06-30  Richard Guenther  <rguenther@suse.de>
17289
17290         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
17291         * tree-ssa-structalias.c (create_variable_info_for): Do not
17292         add initial constraints for non-var-decls.  Properly handle
17293         globals in other ltrans partitions.
17294         (intra_create_variable_infos): Manually create constraints for
17295         the fake no-alias parameter.
17296         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
17297         and assert there are no clones.
17298
17299 2011-06-30  Richard Guenther  <rguenther@suse.de>
17300
17301         PR tree-optimization/46787
17302         * tree-data-ref.c (dr_address_invariant_p): Remove.
17303         (find_data_references_in_stmt): Invariant accesses are ok now.
17304         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
17305         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
17306         invariant loads.
17307
17308 2011-06-30  Martin Jambor  <mjambor@suse.cz>
17309
17310         PR tree-optimization/49094
17311         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
17312         (build_accesses_from_assign): Use it.
17313
17314 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
17315
17316         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
17317         handling of BUILT_IN_ASSUME_ALIGNED.
17318
17319         PR debug/49364
17320         * dwarf2out.c (output_abbrev_section): Don't return early
17321         if abbrev_die_table_in_use is 1.
17322         (dwarf2out_finish): Instead don't call output_abbrev_section
17323         nor emit abbrev_section_label in that case.
17324
17325 2011-06-30  Nick Clifton  <nickc@redhat.com>
17326
17327         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
17328         for the V850E.
17329
17330 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
17331
17332         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
17333         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
17334
17335 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
17336
17337         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
17338         both pattern and original statements if necessary.
17339         (vect_transform_loop): Likewise.
17340         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
17341         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
17342         Mark the pattern statement only if the original statement doesn't
17343         have its own uses.
17344         (process_use): Call vect_mark_relevant with additional parameter.
17345         (vect_mark_stmts_to_be_vectorized): Likewise.
17346         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
17347         (vect_analyze_stmt): Handle both pattern and original statements
17348         if necessary.
17349         (vect_transform_stmt): Don't store vectorized pattern statement
17350         in the original statement.
17351         (vect_is_simple_use_1): Use related pattern statement only if the
17352         original statement is irrelevant.
17353         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
17354
17355 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
17356
17357         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
17358         option.
17359         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
17360         entry.
17361         (TARGET_AVX128_OPTIMAL): New definition.
17362         * config/i386/i386.c (initial_ix86_tune_features): Initialize
17363         X86_TUNE_AVX128_OPTIMAL entry.
17364         (ix86_option_override_internal): Enable the generation
17365         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
17366         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
17367         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
17368
17369 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
17370
17371         PR tree-optimization/49539
17372         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
17373         names by means of stmt_references_abnormal_ssa_name.
17374         (associate_plusminus): Call can_propagate_from before propagating
17375         from definition statements.
17376         (ssa_forward_propagate_and_combine): Remove superfluous newline.
17377
17378 2011-06-29  Richard Guenther  <rguenther@suse.de>
17379
17380         * doc/invoke.texi: Document -scev dump modifier.
17381         * tree-pass.h (TDF_SCEV): New dump flag.
17382         * tree-dump.c (dump_option_value_in): Add scev.
17383         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
17384         * tree-scalar-evolution.c: Likewise.
17385
17386 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
17387
17388         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
17389         (cxa_type_match): Correct declaration.
17390         (__gnu_unwind_pr_common): Reconstruct additional indirection
17391         when __cxa_type_match returns succeeded_with_ptr_to_base.
17392
17393 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17394
17395         PR rtl-optimization/49114
17396         * reload.c (struct replacement): Remove SUBREG_LOC member.
17397         (push_reload): Do not set it.
17398         (push_replacement): Likewise.
17399         (subst_reload): Remove dead code.
17400         (copy_replacements): Remove assertion.
17401         (copy_replacements_1): Do not handle SUBREG_LOC.
17402         (move_replacements): Likewise.
17403         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
17404         Detect subregs via recursive descent instead of via SUBREG_LOC.
17405
17406 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
17407
17408         * config/avr/avr.c (avr_encode_section_info): Dispatch to
17409         default_encode_section_info.
17410
17411 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
17412
17413         PR tree-optimization/49545
17414         * builtins.c (get_object_alignment_1): Update function comment.
17415         Do not use DECL_ALIGN for functions, but test
17416         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
17417         * fold-const.c (get_pointer_modulus_and_residue): Don't check
17418         for functions here.
17419         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
17420
17421 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
17422
17423         PR debug/49567
17424         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
17425         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
17426
17427 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
17428
17429         PR target/34734
17430         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
17431         about uninitialized data attributed 'progmem' from here...
17432         (avr_encode_section_info): ...to this new function.
17433         (TARGET_ENCODE_SECTION_INFO): New define.
17434         (avr_section_type_flags): For data in ".progmem.data", remove
17435         section flag SECTION_WRITE.
17436
17437 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
17438
17439         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
17440         _xmulhisi3_exit.
17441         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
17442         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
17443         (__umulhisi3): Ditto.
17444         * config/avr/avr.md (mulhisi3): New insn expender.
17445         (umulhisi3): New insn expender.
17446         (*mulhisi3_call): New insn.
17447         (*umulhisi3_call): New insn.
17448
17449 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
17450
17451         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
17452
17453 2011-06-28  Richard Henderson  <rth@redhat.com>
17454
17455         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
17456         all code and arguments that handled pushes.  Update all callers.
17457
17458 2011-06-28  Richard Henderson  <rth@redhat.com>
17459
17460         * config/arm/arm.c (arm_output_function_prologue): Don't call
17461         thumb1_output_function_prologue.
17462         (arm_expand_prologue): Avoid dead store.
17463         (number_of_first_bit_set): Use ctz_hwi.
17464         (thumb1_emit_multi_reg_push): New.
17465         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
17466         to emit the entire prologue as rtl.
17467         (thumb1_output_interwork): Split out from
17468         thumb1_output_function_prologue.
17469         (thumb1_output_function_prologue): Remove.
17470         (arm_attr_length_push_multi): Handle thumb1.
17471         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
17472         (prologue_thumb1_interwork): New.
17473         (*push_multi): Allow thumb1; use push_mult_memory_operand.
17474         * config/arm/predicates.md (push_mult_memory_operand): New.
17475
17476 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
17477
17478         * config/sparc/sync.md (*stbar): Delete.
17479         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
17480
17481 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
17482
17483         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
17484
17485 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17486
17487         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
17488         (TARGET_64BIT_DEFAULT): Define.
17489         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
17490         of tm_file.
17491         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
17492
17493 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
17494
17495         * common.opt (in_lto_p): New Variable entry.
17496         * flags.h (in_lto_p): Move to common.opt.
17497         * gcc.c: Include params.h.
17498         (set_option_handlers): Also use common_handle_option and
17499         target_handle_option.
17500         (main): Call global_init_params, finish_params and init_options_struct.
17501         * opts.c (debug_type_names): Move from toplev.c.
17502         (print_filtered_help): Access quiet_flag through opts pointer.
17503         (common_handle_option): Return early in the driver for some options.
17504         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
17505         opts pointer.
17506         * toplev.c (in_lto_p): Move to common.opt.
17507         (debug_type_names): Move to opts.c.
17508         * Makefile.in (OBJS): Remove opts.o.
17509         (OBJS-libcommon-target): Add opts.o.
17510         (gcc.o): Update dependencies.
17511
17512 2011-06-28  Kai Tietz  <ktietz@redhat.com>
17513
17514         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
17515
17516 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
17517
17518         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
17519         with '=' constraint modifier.
17520         (*divdf3_vfp): Likewise.
17521         ("*mulsf3_vfp"): Likewise.
17522         ("*muldf3_vfp"): Likewise.
17523         ("*mulsf3negsf_vfp"): Likewise.
17524         ("*muldf3negdf_vfp"): Likewise.
17525
17526 2011-06-28  Nick Clifton  <nickc@redhat.com>
17527
17528         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
17529         relaxation when performing an incremental link.
17530
17531 2011-06-28  Kai Tietz  <ktietz@redhat.com>
17532
17533         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
17534         within BB from last to first.
17535
17536 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
17537
17538         * genattr-common.c: New.  Based on genattr.c.
17539         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
17540         (MOSTLYCLEANFILES): Add insn-attr-common.h.
17541         (opts.o): Update dependencies.
17542         (.PRECIOUS): Add insn-attr-common.h.
17543         (simple_rtl_generated_h): Add insn-attr-common.h.
17544         (build/genattr-common.o): New.
17545         (genprogrtl): Add attr-common.
17546         * genattr.c (main): Include insn-attr-common.h.  Don't generate
17547         definitions of DELAY_SLOTS or INSN_SCHEDULING.
17548         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
17549
17550 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
17551
17552         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
17553         avr-*-* and avr-*-rtems* targets.
17554
17555         * config/avr/elf.h: New file.
17556         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
17557         (TARGET_ASM_SELECT_SECTION): Define.
17558         (INIT_SECTION_ASM_OP): Undefine.
17559         (FINI_SECTION_ASM_OP): Undefine.
17560         (READONLY_DATA_SECTION_ASM_OP): Undefine.
17561         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
17562         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
17563         * config/avr/avr.h:
17564         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
17565         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
17566         (MAX_OFILE_ALIGNMENT): Move to elf.h.
17567         (STRING_LIMIT): Move to elf.h.
17568         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
17569         (ASM_DECLARE_OBJECT_NAME): Remove.
17570         (ESCAPES): Remove.
17571         (ASM_OUTPUT_SKIP): Remove.
17572         (DWARF2_DEBUGGING_INFO): Remove.
17573         (OBJECT_FORMAT_ELF): Remove.
17574         (USER_LABEL_PREFIX): Remove.
17575         (ASM_OUTPUT_EXTERNAL): Remove.
17576         (ASM_OUTPUT_ASCII): Remove.
17577         (TYPE_ASM_OP): Remove.
17578         (SIZE_ASM_OP): Remove.
17579         (WEAK_ASM_OP): Remove.
17580         (STRING_ASM_OP): Remove.
17581         (SET_ASM_OP): Remove.
17582         (ASM_WEAKEN_LABEL): Remove.
17583         (TYPE_OPERAND_FMT): Remove.
17584         (ASM_DECLARE_FUNCTION_SIZE): Remove.
17585         (ASM_FINISH_DECLARE_OBJECT): Remove.
17586         (NO_DOLLAR_IN_LABEL): Remove.
17587         (ASM_GENERATE_INTERNAL_LABEL): Remove.
17588         (ASM_OUTPUT_CASE_LABEL): Remove.
17589         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
17590         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
17591         (gas_output_ascii): Remove.
17592         (gas_output_limited_string): Remove.
17593         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
17594         * config/avr/avr-protos.h
17595         (gas_output_ascii): Remove prototye.
17596         (gas_output_limited_string): Remove prototype.
17597
17598 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
17599
17600         PR target/48637
17601         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
17602         asm operands.
17603
17604 2011-06-27  Jan Hubicka  <jh@suse.cz>
17605
17606         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
17607         node instead of references in node.
17608
17609 2011-06-27  Richard Henderson  <rth@redhat.com>
17610
17611         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
17612         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
17613         inside ifdef.
17614
17615 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
17616
17617         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
17618
17619         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
17620         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
17621         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
17622         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
17623         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
17624         (evaluate_stmt, execute_fold_all_builtins): Handle
17625         BUILT_IN_ASSUME_ALIGNED.
17626         * tree-ssa-dce.c (propagate_necessity): Likewise.
17627         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
17628         call_may_clobber_ref_p_1): Likewise.
17629         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
17630         (expand_builtin_assume_aligned): New function.
17631         * doc/extend.texi (__builtin_assume_aligned): Document.
17632
17633         PR debug/49544
17634         * cselib.c (promote_debug_loc): If cselib_preserve_constants
17635         and l has two DEBUG_INSN owned locs instead of just one, adjust
17636         the second location's setting_insn too.
17637
17638 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17639
17640         PR libmudflap/38738
17641         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
17642
17643 2011-06-27  Nick Clifton  <nickc@redhat.com>
17644
17645         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
17646         bit position of highest bit set into a count of the high zero bits.
17647
17648 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
17649
17650         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
17651
17652 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
17653
17654         PR lto/48492
17655         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
17656         to a NULL parent.
17657
17658 2011-06-27  Richard Guenther  <rguenther@suse.de>
17659
17660         PR tree-optimization/49394
17661         * passes.c (execute_one_pass): Restore current_pass after
17662         applying IPA transforms.
17663
17664 2011-06-27  Kai Tietz  <ktietz@redhat.com>
17665
17666         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
17667         out of type precision after operation.
17668         (find_bswap): Take for limit value the integer auto-promotion
17669         into account.
17670
17671 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
17672
17673         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
17674         forward scan as well.
17675
17676 2011-06-27  Tristan Gingold  <gingold@adacore.com>
17677
17678         PR target/44241
17679         * config/vms/vms-protos.h: New file.
17680         * config/vms/vms-crtlmap.map: New file.
17681         * config/vms/vms.c: New file.
17682         * config/vms/make-crtlmap.awk: New file.
17683         * config/vms/vms-crtl.h: File removed.
17684         * config/vms/vms-crtl-64.h: File removed.
17685         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
17686         * config/alpha/vms64.h: Do not include vms-crtl-64.h
17687         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
17688         clear some builtins on VMS.  Calls vms_patch_builtins.
17689         (avms_asm_output_external): Remove.
17690         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
17691         (struct crtl_name_spec): Remove
17692         (DO_CTRL_NAMES): Remove.
17693         * config/ia64/vms.h (struct crtl_name_spec): Remove
17694         (DO_CTRL_NAMES): Remove.
17695         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
17696         clear some builtins on VMS.  Calls vms_patch_builtins.
17697         (ia64_asm_output_external): Remove DO_CRTL_NAME.
17698         * config/ia64/vms64.h: Do not include vms-crtl-64.h
17699         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
17700
17701 2011-06-27  Tristan Gingold  <gingold@adacore.com>
17702
17703         * config/alpha/alpha.c (alpha_end_function): Always generate .end
17704         directive on VMS.
17705
17706 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
17707
17708         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
17709         the function receives nonlocal gotos.
17710
17711 2011-06-27  Richard Guenther  <rguenther@suse.de>
17712
17713         PR tree-optimization/49536
17714         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
17715         For non-scalar inner types use a scalar type according to
17716         the scalar inner mode.
17717
17718 2011-06-27  Richard Guenther  <rguenther@suse.de>
17719
17720         PR tree-optimization/49365
17721         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
17722
17723 2011-06-27  Richard Guenther  <rguenther@suse.de>
17724
17725         PR tree-optimization/49169
17726         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
17727         the alignment of function decls.
17728
17729 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
17730
17731         PR target/47997
17732         * config/darwin.c (darwin_mergeable_string_section): Place string
17733         constants in '.cstring' rather than '.const' when CF/NSStrings are
17734         active.
17735
17736 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
17737
17738         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
17739         (emit_save_register_window): Likewise.
17740         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
17741         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
17742         Swap back %o7/%i7 in register naming.
17743
17744 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
17745
17746         PR driver/49371
17747         * config/darwin.c (darwin_override_options): Improve warning when
17748         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
17749         is given with fpie/fPIE.
17750         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
17751         * config/darwin9.h (PIE_SPEC): New.
17752
17753 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
17754
17755         * timevar.c (timevar_print): Increase width for display of timevar
17756         name.
17757
17758 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
17759
17760         PR c++/46400
17761         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
17762         instead of TYPE_CHAIN for chain_next for types.
17763
17764 2011-06-24  Richard Henderson  <rth@redhat.com>
17765
17766         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
17767         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
17768         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
17769         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
17770         (sparc_flat_expand_prologue): Emit individual instructions
17771         instead of one of the above.
17772
17773 2011-06-24  Easwaran Raman  <eraman@google.com>
17774
17775         PR rtl-optimization/49429
17776         PR target/49454
17777         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
17778         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
17779         used to copy y into x.
17780         * calls.c (initialize_argument_information): Mark
17781         an argument addressable if it is passed by invisible reference.
17782         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
17783         if it is passed by reference.
17784
17785 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
17786
17787         PR rtl-optimization/49504
17788         * rtlanal.c (nonzero_bits1): Properly handle addition or
17789         subtraction of a pointer in Pmode if pointers extend unsigned.
17790         (num_sign_bit_copies1): Likewise.
17791
17792 2011-06-24  Martin Jambor  <mjambor@suse.cz>
17793
17794         PR tree-optimizations/49516
17795         * tree-sra.c (sra_modify_assign): Choose the safe path for
17796         aggregate copies if we also did scalar replacements.
17797
17798 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
17799
17800         PR target/49335
17801         * config/arm/predicates.md (add_operator): New.
17802         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
17803
17804 2011-06-24  Andi Kleen  <ak@linux.intel.com>
17805
17806         * tree-sra.c (type_internals_preclude_sra_p): Add msg
17807         parameter. Split up ifs and report reason in *msg.
17808         (reject): Add.
17809         (find_var_candiate): Add msg variable.
17810         Split up ifs and report reason to reject.
17811         (find_param_candidates): Add msg variable.
17812         Pass msg to type_internals_preclude_sra_p.
17813
17814 2011-06-23  Jeff Law  <law@redhat.com>
17815
17816         PR middle-end/48770
17817         * reload.h (reload): Change to return a bool.
17818         * ira.c (ira): If requested by reload, run a fast DCE pass after
17819         reload has completed.  Fix comment typo.
17820         * reload1.c (need_dce): New file scoped static.
17821         (reload): Set reload_completed here.  Return whether or not a DCE
17822         pass after reload is needed.
17823         (delete_dead_insn): Set need_dce as needed.
17824
17825         PR middle-end/49465
17826         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
17827         to detect threading through joiner block.  If there was already
17828         an edge to the new target, then do not change the PHI nodes.
17829
17830 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
17831
17832         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
17833         get_pointer_alignment to see if base isn't sufficiently aligned.
17834
17835 2011-06-23  Jan Hubicka  <jh@suse.cz>
17836
17837         PR tree-optimize/49373
17838         * tree-pass.h (all_late_ipa_passes): Declare.
17839         * cgraphunit.c (init_lowered_empty_function): Fix properties.
17840         (cgraph_optimize): Execute late passes; remove unreachable funcions
17841         after materialization.
17842         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
17843         LTOing.
17844         * passes.c (all_late_ipa_passes): Declare.
17845         (dump_passes, register_pass): Handle late ipa passes.
17846         (init_optimization_passes): Move ipa_pta to late passes; schedule
17847         fixup_cfg at beggining of all_passes.
17848         (apply_ipa_transforms): New function.
17849         (execute_one_pass): When doing simple ipa pass, apply all transforms.
17850
17851 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
17852
17853         * params.c: Include common/common-target.h.  Don't include tm.h.
17854         (lang_independent_params): Move from toplev.c.
17855         (global_init_params): New.
17856         * params.h (global_init_params): Declare.
17857         * target.def (default_params): Move to common-target.def.
17858         * toplev.c (lang_independent_options): Remove.
17859         (lang_independent_params): Move to params.c.
17860         (general_init): Use global_init_params.
17861         * common/common-target.def (option_default_params): Move from
17862         target.def.
17863         * common/config/ia64/ia64-common.c: Include params.h.
17864         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
17865         from ia64.c.
17866         * common/config/rs6000/rs6000-common.c: Include params.h.
17867         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
17868         from rs6000.c.
17869         * common/config/sh/sh-common.c: Include params.h.
17870         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
17871         from sh.c.
17872         * common/config/spu/spu-common.c: Include params.h.
17873         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
17874         from spu.c.
17875         * config/ia64/ia64.c (ia64_option_default_params,
17876         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
17877         * config/rs6000/rs6000.c (rs6000_option_default_params,
17878         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
17879         * config/sh/sh.c (sh_option_default_params,
17880         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
17881         * config/spu/spu.c (spu_option_default_params,
17882         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
17883         * Makefile.in (OBJS): Remove params.o.
17884         (OBJS-libcommon-target): Add params.o.
17885         (params.o, $(common_out_object_file)): Update dependencies.
17886         * doc/tm.texi: Regenerate.
17887
17888 2011-06-23  Alan Modra  <amodra@gmail.com>
17889
17890         PR bootstrap/49383
17891         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
17892         invocation for 2011-06-09 changes.
17893
17894 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
17895
17896         PR libgomp/49490
17897         * omp-low.c (expand_omp_for_static_nochunk): Only
17898         use n ceil/ nthreads size for the first n % nthreads threads in the
17899         team instead of all threads except for the last few ones which
17900         get less work or none at all.
17901
17902         PR debug/49496
17903         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
17904         uses.
17905
17906 2011-06-22  Richard Guenther  <rguenther@suse.de>
17907
17908         PR tree-optimization/49493
17909         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
17910         Refer to the alias target of variables.
17911         (associate_varinfo_to_alias_1): Remove.
17912         (ipa_pta_execute): Do not associate aliases with anything.
17913         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
17914         (cgraph_function_node): Likewise.
17915         (cgraph_function_or_thunk_node): Likewise.
17916         (varpool_variable_node): Likewise.
17917
17918 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
17919
17920         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
17921         * config.gcc (arm*-*-linux*): Default to gnu tls.
17922         (arm*-*-*): Add --with-tls option.
17923         (all_defaults): Add 'tls'.
17924
17925 2011-06-22  Richard Henderson  <rth@redhat.com>
17926
17927         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
17928         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
17929         (dwarf2out_frame_debug_cfa_window_save): Rename from
17930         dwarf2out_window_save; make static.
17931         * tree.h (dwarf2out_window_save): Don't declare.
17932
17933         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
17934         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
17935         (emit_save_register_window): Rename from gen_save_register_window;
17936         emit the insn and add REG_CFA_* notes.
17937         (sparc_expand_prologue): Update to match.
17938         * config/sparc/sparc.md (save_register_window_1): Simplify from
17939         save_register_window<P:mode>.
17940
17941 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17942
17943         PR target/49497
17944         * config/i386/i386.md (*lea_general_2): Always allow SImode.
17945         (*lea_general_2_zext): Likewise.
17946         (imul to lea peepholes): Use const359_operand and check
17947         TARGET_PARTIAL_REG_STALL.
17948
17949         * config/i386/predicates.md (const359_operand): New.
17950
17951 2011-06-22  Michael Matz  <matz@suse.de>
17952
17953         * cgraphunit.c (assemble_thunk): Use correct return type.
17954
17955 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
17956             Dmitry Melnik  <dm@ispras.ru>
17957
17958         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
17959         (neon_output_shift_immediate): Ditto.
17960         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
17961         prototype.
17962         (neon_output_shift_immediate): Ditto.
17963         * config/arm/neon.md (vashl<mode>3): Modified constraint.
17964         (vashr<mode>3_imm): New insn pattern.
17965         (vlshr<mode>3_imm): Ditto.
17966         (vashr<mode>3): Modified constraint.
17967         (vlshr<mode>3): Ditto.
17968         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
17969         predicate.
17970         (imm_for_neon_rshift_operand): Ditto.
17971         (imm_lshift_or_reg_neon): Ditto.
17972         (imm_rshift_or_reg_neon): Ditto.
17973
17974         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
17975
17976 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
17977
17978         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
17979         builtin calls even if likelyvalue is not CONSTANT.
17980         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
17981         Return get_value_for_expr of first operand
17982         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
17983         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
17984         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
17985         their non-checking counterparts.
17986         (call_may_clobber_ref_p_1): Likewise.
17987         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
17988         like their non-checking counterparts.
17989         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
17990         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
17991         like their non-checking counterparts.
17992         (find_func_clobbers): Likewise.
17993         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
17994         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
17995
17996         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
17997         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
17998         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
17999         of base type reference as argument.
18000         (resolve_addr_in_expr): Likewise.  Fix keep computation.
18001         (convert_descriptor_to_signed): Renamed to...
18002         (convert_descriptor_to_mode): ... this.  For wider types convert to
18003         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
18004         (typed_binop): New function.
18005         (scompare_loc_descriptor, ucompare_loc_descriptor,
18006         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
18007         default to unsigned type instead of signed.
18008
18009         PR debug/47858
18010         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
18011         (gimple_build_debug_source_bind_stat): New prototype.
18012         (gimple_build_debug_source_bind): Define.
18013         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
18014         gimple_debug_source_bind_get_value,
18015         gimple_debug_source_bind_get_value_ptr,
18016         gimple_debug_source_bind_set_var,
18017         gimple_debug_source_bind_set_value): New inlines.
18018         * gimple.c (gimple_build_debug_source_bind_stat): New function.
18019         * gimple-pretty-print.c (dump_gimple_debug): Handle
18020         GIMPLE_DEBUG_SOURCE_BIND.
18021         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
18022         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18023         * tree-parloops.c (eliminate_local_variables,
18024         separate_decls_in_region): Likewise.
18025         (separate_decls_in_region_debug): Renamed from
18026         separate_decls_in_region_debug_bind.  Handle
18027         gimple_debug_source_bind_p.
18028         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
18029         prototypes.
18030         (DECL_HAS_DEBUG_ARGS_P): Define.
18031         (struct tree_function_decl): Add has_debug_args_flag field.
18032         * tree.c (debug_args_for_decl): New variable.
18033         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
18034         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
18035         (rewrite_debug_stmt_uses): New function.
18036         (rewrite_stmt): Use it to rewrite debug stmt uses.
18037         * rtl.def (DEBUG_PARAMETER_REF): New.
18038         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
18039         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
18040         DEBUG_PARAMETER_REF.
18041         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
18042         * print-rtl.c (print_rtx): Likewise.
18043         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
18044         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
18045         debug stmts in the first bb.
18046         * tree-inline.c (remap_ssa_name): If remapping default def
18047         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
18048         a source bind debug stmt.
18049         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
18050         (maybe_move_debug_stmts_to_successors): Likewise.
18051         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
18052         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
18053         debug args vector from old_decl to new_decl.
18054         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
18055         or modified parameters, add debug bind stmts before call
18056         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
18057         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
18058         on DECL_DEBUG_EXPRs from debug args vector.
18059         (expand_debug_source_expr): New function.
18060         (expand_debug_locations): Use it for source bind insns.
18061         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
18062         * var-tracking.c (prepare_call_arguments): Add debug args
18063         to call_arguments if any.
18064         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
18065         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
18066         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
18067         (get_ref_die_offset, parameter_ref_descriptor): New functions.
18068         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
18069         (gen_subprogram_die): Handle parameters identified by
18070         DEBUG_PARAMETER_REF.
18071
18072 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
18073
18074         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
18075         * doc/install.texi (Configuration): Document --with-tls.
18076         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
18077         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
18078         (arm_tls_descseq_addr): New.
18079         (legitimize_tls_address): Add tlsdesc support.
18080         (arm_cannot_copy_insn_p): Check for tlscall.
18081         (arm_emit_tls_decoration): Likewise.
18082         * config/arm/arm.h (TARGET_GNU2_TLS): New.
18083         (OPTION_DEFAULT_SPECS): Add with-tls support.
18084         * config/arm/arm.md (R1_REGNUM): Define.
18085         (tlscall): New.
18086         * config/arm/arm.opt (tls_type): New enumeration type and values.
18087         (mtls-dialect): New switch.
18088         * config/arm/arm-opts.h (enum tls_type): New.
18089
18090 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
18091
18092         * attribs.c (register_attribute): Added assert to check that all
18093         attribute specs are registered with a name that is not empty and
18094         does not start with '_'.
18095         (decl_attributes): Avoid the lookup of the "naked" attribute spec
18096         if the function has no attributes.
18097         * tree.c (is_attribute_with_length_p): Removed.
18098         (is_attribute_p): Removed.
18099         (private_is_attribute_p): New.
18100         (private_lookup_attribute): New.
18101         (lookup_attribute): Removed.
18102         (lookup_ident_attribute): New.
18103         (remove_attribute): Require the first argument to be in the form
18104         'text', not '__text__'.  Updated asserts.
18105         (merge_attributes): Use lookup_ident_attributes instead of
18106         lookup_attribute.
18107         (merge_dllimport_decl_attributes): Use remove_attribute.
18108         (attribute_list_contained): Likewise.
18109         (attribute_list_equal): Immediately return 1 if the arguments are
18110         identical pointers.
18111         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
18112         'int'.  Require the first argument to be in the form 'text', not
18113         '__text__'.  Require the second argument to be an identifier.
18114         (lookup_attribute): Made inline.  Require the first argument to be
18115         in the form 'text', not '__text__'.
18116         (private_is_attribute_p, private_lookup_attribute): New.
18117         Updated comments.
18118
18119 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
18120
18121         * builtins.c: Add sync_ or SYNC__ to builtin names.
18122         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
18123         * omp-low.c: Add sync_ or SYNC__ to builtin names.
18124
18125 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
18126
18127         PR target/33049
18128         * config/avr/avr.md (extzv): New expander.
18129         (*extzv): New insn.
18130         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
18131         * config/avr/constraints.md (C04): New constraint.
18132         * doc/md.texi (Machine Constraints): Document it.
18133
18134 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
18135
18136         PR middle-end/49489
18137         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
18138         unsignedp argument instead of 1 for clrsb_optab.
18139         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
18140         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
18141         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
18142         * optabs.c (widen_leading): Call widen_operand and expand_unop
18143         with 0 as unsignedp argument instead of 1 for clrsb_optab.
18144         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
18145
18146 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
18147
18148         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
18149
18150 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
18151
18152         * gensupport.c (add_define_attr): New static function.
18153         (is_predicable): Allow multi-alternative lists for the "predicable"
18154         attribute.
18155         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
18156         (process_one_cond_exec): Call alter_attrs_for_insn.
18157         * doc/md.texi (Defining Attributes): Mention some standard names.
18158         (Conditional Execution): Update documentation for "predicable".
18159
18160         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
18161         __builtin_clrsbll): Document.
18162         * doc/rtl.texi (clrsb): New entry.
18163         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
18164         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
18165         (expand_unop): Handle clrsb_optab.
18166         (init_optabs): Initialize it.
18167         * optabs.h (enum optab_index): New entry OTI_clrsb.
18168         (clrsb_optab): Define.
18169         * genopinit.c (optabs): Add an entry for it.
18170         * builtins.c (expand_builtin): Handle clrsb builtin functions.
18171         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
18172         BUILT_IN_CLRSBLL): New.
18173         * rtl.def (CLRSB): New code.
18174         * dwarf2out.c (mem_loc_descriptor): Handle it.
18175         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
18176         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
18177         and popcount.
18178         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
18179         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
18180         (__ctzDI2): Move declaration.
18181         * config/bfin/bfin.md (clrsbsi2): New expander.
18182         (signbitssi2): Use the CLRSB rtx.
18183         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
18184         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
18185
18186 2011-06-21  Richard Guenther  <rguenther@suse.de>
18187
18188         * ipa-inline-transform.c (inline_transform): Fix previous change.
18189
18190 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
18191
18192         PR tree-optimization/49478
18193         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
18194         with constant operand.
18195
18196 2011-06-21  Richard Guenther  <rguenther@suse.de>
18197
18198         * ipa-inline-transform.c (inline_transform): Fix typo.
18199
18200 2011-06-21  Richard Guenther  <rguenther@suse.de>
18201
18202         PR tree-optimization/49483
18203         * tree-vect-stmts.c (vectorizable_assignment): Also handle
18204         VIEW_CONVERT_EXPR conversions.
18205
18206 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
18207
18208         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
18209         * config/avr/avr-tables.opt: New file (generated).
18210         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
18211         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
18212         avr-mcus.def.
18213         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
18214         (avr_option_override): Don't process -mmcu= argument here.  Set
18215         avr_current_device using avr_mcu_index.
18216         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
18217         * config/avr/avr.opt (mmcu=): Use Enum.
18218         * config/avr/t-avr (avr-devices.o): Update dependencies.
18219         ($(srcdir)/config/avr/avr-tables.opt): New.
18220         * target.def (help): Remove.
18221         * doc/tm.texi.in (TARGET_HELP): Remove.
18222         * doc/tm.texi: Regenerate.
18223         * opts.c: Don't include target.h.
18224         (common_handle_option): Don't call targetm.help.
18225         * system.h (TARGET_HELP): Poison.
18226         * Makefile.in (opts.o): Update dependencies.
18227
18228 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18229
18230         * config/usegld.h: New file.
18231         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
18232         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
18233         (LIB_SPEC): Likewise.  Search /lib.
18234         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
18235         (RDYNAMIC_SPEC): Handle GNU ld.
18236         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
18237         Define.
18238         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
18239         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
18240         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
18241         (STACK_CHECK_STATIC_BUILTIN): Define.
18242         * config/sol2.opt (compat-bsd): Remove.
18243         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
18244         * config/sol2-bi.h: New file.
18245         * config/sol2-gld.h: Remove.
18246         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
18247         (NO_DBX_BNSYM_ENSYM): Remove.
18248         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
18249         (STACK_CHECK_STATIC_BUILTIN): Remove.
18250         Test USE_GLD instead of TARGET_GNU_LD.
18251         * config/i386/sol2-10.h: Rename to ...
18252         * config/i386/sol2-bi.h .. this.
18253         (SUBTARGET_EXTRA_SPECS): Redefine.
18254         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
18255         (MULTILIB_DEFAULTS): Remove.
18256         (DEFAULT_ARCH32_P): Define.
18257         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
18258         (ARCH64_SUBDIR): Define.
18259         Test USE_GLD instead of TARGET_GNU_LD.
18260         (I386_EMULATION): Rename to ...
18261         (ARCH32_EMULATION): ... this.
18262         (X86_64_EMULATION): Rename to ...
18263         (ARCH64_EMULATION): ... this.
18264         (TARGET_LD_EMULATION): Remove.
18265         (LINK_ARCH_SPEC): Remove.
18266         * config/i386/sol2-gas.h: Remove.
18267         * config/i386/t-sol2-10: Rename to ...
18268         * config/i386/t-sol2-64: ... this.
18269         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
18270         (AS_SPARC64_FLAG): Define.
18271         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
18272         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
18273         depending on TARGET_CPU_DEFAULT.
18274         (CPP_CPU_SPEC): Redefine.
18275         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
18276         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
18277         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
18278         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
18279         ASM_ARCH_DEFAULT_SPEC): Redefine.
18280         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
18281         LINK_ARCH_DEFAULT_SPEC.
18282         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
18283         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
18284         (ARCH64_SUBDIR): Define.
18285         (LINK_ARCH64_SPEC): Redefine.
18286         (CC1_SPEC): Redefine.
18287         (OPTION_DEFAULT_SPECS): Redefine.
18288         (MULTILIB_DEFAULTS): Define.
18289         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
18290         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
18291         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
18292         (NO_DBX_BNSYM_ENSYM): Remove.
18293         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
18294         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
18295         (TARGET_ASM_NAMED_SECTION): Likewise.
18296         (STACK_CHECK_STATIC_BUILTIN): Remove.
18297         * config/sparc/sol2-bi.h: Remove.
18298         * config/sparc/sol2-gas-bi.h: Remove.
18299         * config/sparc/sol2-gas.h: Remove.
18300         * config/sparc/sol2-gld-bi.h: Remove.
18301         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
18302         common parts ...
18303         (*-*-solaris2*): ... here.
18304
18305 2011-06-21  Christian Bruel  <christian.bruel@st.com>
18306
18307         PR other/43564
18308         * ipa-inline.c (can_inline_edge_p): Check
18309         !DECL_DISREGARD_INLINE_LIMITS.
18310
18311 2011-06-21  Christian Bruel  <christian.bruel@st.com>
18312
18313         PR middle-end/49139
18314         * cgraphunit.c (process_function_and_variable_attributes): warn when
18315         always_inline functions that are not inline.
18316         * ipa-inline-transform.c (inline_transform): Always call
18317         optimize_inline.
18318         * tree-inline.c (tree_inlinable_function_p): Use error instead
18319         of sorry.
18320         (expand_call_inline): Likewise.
18321
18322 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
18323
18324         * Makefile.in (dg_target_exps): Set.
18325         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
18326         instead of 7, try to divide it more evenly.
18327
18328 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
18329
18330         PR target/49089
18331         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
18332         (avx256_split_unaligned_store): New definition.
18333         (ix86_option_override_internal): Enable avx256 unaligned load/store
18334         splitting only when avx256_split_unaligned_load/store is set.
18335
18336 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
18337
18338         * regrename.c (scan_rtx_reg): Handle the case where we write to an
18339         open chain in a smaller mode without failing the entire block.
18340
18341 2011-06-21  Alan Modra  <amodra@gmail.com>
18342
18343         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
18344         CONST high part large-toc address.
18345         (rs6000_tls_referenced_p): Make static.
18346         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
18347
18348 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
18349
18350         PR target/49385
18351         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
18352         one of the operands is a register.
18353
18354 2011-06-20  Kai Tietz  <ktietz@redhat.com>
18355
18356         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
18357         operations in combination with binary and.
18358
18359 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
18360
18361         * regrename.c (do_replace): Don't update notes.
18362
18363 2011-06-20  Alan Modra  <amodra@gmail.com>
18364
18365         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
18366         of toc-relative address in CONST.
18367         (rs6000_delegitimize_address): Recognize changed address.
18368         (rs6000_legitimize_reload_address): Likewise.
18369         (rs6000_emit_move): Don't force these constants to memory.
18370         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
18371         toc-relative address in CONST.
18372         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
18373         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
18374
18375 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
18376
18377         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
18378         (count_trailing_zeros): Likewise.
18379
18380 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
18381
18382         PR other/49325
18383         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
18384         .init_array can be used with .ctors on targets.
18385         * configure: Regenerated.
18386
18387 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
18388
18389         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
18390         if the element type is volatile.
18391
18392 2011-06-18  Jan Hubicka  <jh@suse.cz>
18393
18394         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
18395         extra name aliases.
18396         (lto_symtab_resolve_can_prevail_p): Likewise.
18397         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
18398         * cgraphbuild.c (record_reference): Remove extra body alias code.
18399         (mark_load): Likewise.
18400         (mark_store): Likewise.
18401         * cgraph.h (varpool_node): Remove extra_name filed;
18402         add alias_of and extraname_alias.
18403         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
18404         (varpool_alias_aliased_node): New inline function.
18405         (varpool_variable_node): New function.
18406         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
18407         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
18408         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
18409         (input_varpool_node): Likewise.
18410         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
18411         (varpool_externally_visible_p): Remove extra body alias code.
18412         (function_and_variable_visibility): Likewise.
18413         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
18414         (ipa_pta_execute): Use it.
18415         * varpool.c (varpool_remove_node): Remove extra name alias code.
18416         (varpool_mark_needed_node): Likewise.
18417         (varpool_analyze_pending_decls): Analyze aliases.
18418         (assemble_aliases): New functoin.
18419         (varpool_assemble_decl): Use it.
18420         (varpool_create_variable_alias): New function.
18421         (varpool_extra_name_alias): Rewrite.
18422         (varpool_for_node_and_aliases): New function.
18423
18424 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
18425
18426         PR target/49411
18427         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
18428         last_arg_constant and last argument doesn't match its predicate,
18429         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
18430         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
18431         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
18432         spelling of error message.
18433         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
18434         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
18435         const_0_to_255_operand instead of const_int_operand.
18436
18437         Revert:
18438         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
18439
18440         * config/i386/sse.md (blendbits): Remove mode attribute.
18441         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
18442         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
18443         Check integer value of operand 3 in insn constraint.
18444
18445 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
18446
18447         PR rtl-optimization/48542
18448         * reload.c (find_equiv_reg): Stop looking when finding a
18449         setjmp-type call.
18450         * reload1.c (reload_as_needed): Invalidate all reload
18451         registers when crossing a setjmp-type call.
18452
18453 2011-06-16  Jeff Law  <law@redhat.com>
18454
18455         * tree-ssa-threadupdate.c (struct redirection_data): New field
18456         intermediate_edge.
18457         (THREAD_TARGET2): Define.
18458         (redirection_data_eq): Also check that the intermediate edge is equal.
18459         (lookup_redirection_data): Drop useless argument.  Extract the
18460         outgoing_edge and intermediate edge from E.  Callers updated.
18461         (copy_phi_args, update_destination_phis): New functions.
18462         (fix_duplicate_block_edges): Likewise.
18463         (create_edge_and_update_destination_phis): Duplicate all the edges
18464         hung off e->aux.  Use copy_phi_args.
18465         (create_duplicates): Use fix_duplicate_block_edges.
18466         (fixup_template_block): Likewise.
18467         (redirect_edges): If necessary, redirect the joiner block's incoming
18468         edge to the duplicate of the joiner block.
18469         (thread_block): Don't muck up loops when threading through a joiner
18470         block.
18471         (thread_through_loop_header): Handle threading through a joiner block.
18472         (mark_threaded_blocks, register_jump_thread): Likewise.
18473         * tree-flow.h (register_jump_thread): Add new argument.  Callers
18474         updated.
18475         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
18476         (thread_across_edge): Handle threading through a joiner block.
18477
18478 2011-06-16  Martin Jambor  <mjambor@suse.cz>
18479
18480         PR tree-optimization/49343
18481         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
18482         calculate offset, provide 2nd operand for the new COMPONENT_REF.
18483
18484 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
18485
18486         * config/darwin-protos.h (machopic_select_rtx_section): Move to
18487         inside RTX_CODE ifdef.
18488
18489 2011-06-16  Tom de Vries  <tom@codesourcery.com>
18490
18491         PR target/45098
18492         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
18493         Disallow NULL pointer for pointer arithmetic.
18494
18495 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
18496
18497         PR target/49398
18498         Revert.
18499         2011-06-10  Wei Guozhi  <carrot@google.com>
18500
18501         PR target/45335
18502         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
18503         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
18504         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
18505         related peephole2.
18506         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
18507         related peephole2.
18508         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
18509         (arm_legitimate_ldrd_p): New prototype.
18510         (arm_output_ldrd): New prototype.
18511         * config/arm/arm.c (arm_check_ldrd_operands): New function.
18512         (arm_legitimate_ldrd_p): New function.
18513         (arm_output_ldrd): New function.
18514
18515 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
18516
18517         PR middle-end/46500
18518         * doc/tm.texi.in: Update Copyright date.
18519         * doc/tm.texi: Regenerate.
18520         * targhooks.c (default_setup_incoming_varargs): Replace
18521         CUMULATIVE_ARGS* argument type with cumulative_args_t.
18522         (default_pretend_outgoing_varargs_named): Likewise.
18523         (hook_pass_by_reference_must_pass_in_stack): Likewise.
18524         (hook_callee_copies_named): Likewise.
18525         (default_function_arg_advance): Likewise.
18526         (default_function_arg): Likewise.
18527         (default_function_incoming_arg): Likewise.
18528         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
18529         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
18530         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
18531         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
18532         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
18533         * targhooks.h (default_setup_incoming_varargs): Likewise.
18534         (default_pretend_outgoing_varargs_named): Likewise.
18535         (hook_pass_by_reference_must_pass_in_stack): Likewise.
18536         (hook_callee_copies_named): Likewise.
18537         (default_function_arg_advance): Likewise.
18538         (default_function_arg): Likewise.
18539         (default_function_incoming_arg): Likewise.
18540         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
18541         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
18542         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
18543         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
18544         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
18545         * target.def (pass_by_reference): Likewise.
18546         (setup_incoming_varargs, strict_argument_naming): Likewise.
18547         (pretend_outgoing_varargs_named, callee_copies): Likewise.
18548         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
18549         (function_incoming_arg): Likewise.
18550         * target.h: Don't include "tm.h" .
18551         (cumulative_args_t): New typedef.
18552         [GCC_TM_H] (get_cumulative_args): New static inline function.
18553         [GCC_TM_H] (pack_cumulative_args): Likewise.
18554         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
18555         argument type with cumulative_args_t.
18556         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
18557         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
18558         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
18559         (frv_arg_partial_bytes, frv_function_arg): Likewise.
18560         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
18561         (frv_function_arg_1): Likewise.
18562         * config/s390/s390.c (s390_pass_by_reference): Likewise.
18563         (s390_function_arg_advance, s390_function_arg): Likewise.
18564         * config/m32c/m32c.c (m32c_function_arg): Likewise.
18565         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
18566         (m32c_strict_argument_naming): Likewise.
18567         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
18568         (spu_function_arg_advance): Likewise.
18569         (spu_setup_incoming_varargs): Likewise.  Make static.
18570         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
18571         Remove prototype.
18572         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
18573         CUMULATIVE_ARGS* argument type with cumulative_args_t.
18574         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
18575         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
18576         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
18577         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
18578         (mep_pass_by_reference, mep_function_arg): Likewise.
18579         (mep_function_arg_advance): Likewise.
18580         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
18581         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
18582         (m32r_function_arg, m32r_function_arg_advance): Likewise.
18583         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
18584         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
18585         (ix86_function_arg, ix86_pass_by_reference): Likewise.
18586         (ix86_setup_incoming_varargs): Likewise.
18587         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
18588         (sh_strict_argument_naming): Likewise.
18589         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
18590         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
18591         (sh_function_arg_advance, sh_function_arg): Likewise.
18592         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
18593         (pdp11_function_arg_advance): Likewise.
18594         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
18595         Likewise.
18596         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
18597         * config/avr/avr.c (avr_function_arg): Likewise.
18598         (avr_function_arg_advance): Likewise.
18599         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
18600         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
18601         (xtensa_function_arg_1): Likewise.
18602         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
18603         Likewise.
18604         (xstormy16_function_arg): Likewise.
18605         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
18606         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
18607         (fr30_function_arg_advance): Likewise.
18608         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
18609         (lm32_function_arg, lm32_function_arg_advance): Likewise.
18610         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
18611         (moxie_function_arg, moxie_function_arg_advance): Likewise.
18612         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
18613         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
18614         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
18615         (cris_function_arg, cris_function_incoming_arg): Likewise.
18616         (cris_function_arg_advance, cris_function_arg_1): Likewise.
18617         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
18618         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
18619         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
18620         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
18621         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
18622         (mn10300_arg_partial_bytes): Likewise.
18623         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
18624         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
18625         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
18626         (ia64_function_arg_1): Likewise.
18627         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
18628         (m68k_function_arg): Likewise.
18629         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
18630         (rs6000_function_arg, setup_incoming_varargs): Likewise.
18631         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
18632         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
18633         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
18634         (picochip_arg_advance): Likewise.
18635         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
18636         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
18637         (mcore_function_arg_advance): Likewise.
18638         * config/score/score.c (score_pass_by_reference): Likewise.
18639         (score_function_arg_advance): Likewise.
18640         (score_arg_partial_bytes): Likewise.  Make static.
18641         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
18642         * config/arm/arm.c (arm_arg_partial_bytes): Replace
18643         CUMULATIVE_ARGS* argument type with cumulative_args_t.
18644         (arm_function_arg, arm_function_arg_advance): Likewise.
18645         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
18646         * config/pa/pa.c (pa_pass_by_reference): Likewise.
18647         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
18648         (pa_function_arg): Likewise.
18649         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
18650         (mips_function_arg, mips_function_arg_advance): Likewise.
18651         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
18652         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
18653         * config/vax/vax.c (vax_function_arg): Likewise.
18654         (vax_function_arg_advance): Likewise.
18655         * config/h8300/h8300.c (h8300_function_arg): Likewise.
18656         (h8300_function_arg_advance): Likewise.
18657         * config/v850/v850.c (v850_pass_by_reference): Likewise.
18658         (v850_strict_argument_naming, v850_function_arg): Likewise.
18659         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
18660         (v850_setup_incoming_varargs): Likewise.
18661         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
18662         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
18663         (mmix_function_arg, mmix_pass_by_reference): Likewise.
18664         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
18665         with const void *.
18666         * config/bfin/bfin.c (setup_incoming_varargs): Replace
18667         CUMULATIVE_ARGS* argument type with cumulative_args_t.
18668         (bfin_function_arg_advance, bfin_function_arg): Likewise.
18669         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
18670         * calls.c (emit_call_1): Change type of args_so_far to
18671         cumulative_args_t.  Changed all callers.
18672         (initialize_argument_information): Likewise.
18673         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
18674         * dse.c (get_call_args): Likewise.
18675         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
18676         * function.c (pass_by_reference, reference_callee_copied): Likewise.
18677         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
18678         New member args_so_far_v.  Changed all users.
18679         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
18680         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
18681         * config/mips/mips.c (mips_output_args_xfer): Likewise.
18682         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
18683         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
18684         * config/microblaze/microblaze.c (microblaze_expand_prologue):
18685         Likewise.
18686         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
18687         m32r_pass_by_reference.
18688
18689 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
18690
18691         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
18692         argument to be a VEC of statements.
18693         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
18694         assert that pattern statements have to have their vector type set.
18695         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
18696         Change the first argument to be a VEC of statements.  Update
18697         documentation.
18698         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
18699         (vect_handle_widen_mult_by_const): New function.
18700         (vect_recog_widen_mult_pattern):  Change the first argument to be a
18701         VEC of statements.  Update documentation.  Check that the constant is
18702         INTEGER_CST.  Support multiplication by a constant that fits an
18703         intermediate type - call vect_handle_widen_mult_by_const.
18704         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
18705         call.  Handle additional pattern statements if necessary.
18706
18707 2011-06-16  Nick Clifton  <nickc@redhat.com>
18708
18709         PR target/49427
18710         * config.gcc: Set cpu_type to v850 for any V850 architecture.
18711         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
18712         md_file, extra_modes, out_file and extra_options are these are all
18713         deduced from cpu_type.
18714
18715 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
18716
18717         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
18718         truncation mask to 63.
18719
18720 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
18721
18722         PR target/49313
18723         PR target/29524
18724         * longlong.h: Add AVR support:
18725         (count_leading_zeros): New macro.
18726         (count_trailing_zeros): New macro.
18727         (COUNT_LEADING_ZEROS_0): New macro.
18728         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
18729         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
18730         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
18731         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
18732         (LIB2FUNCS_EXCLUDE): Add _clz.
18733         * config/avr/libgcc.S (XCALL): Move up in file.
18734         (XJMP): New C Macro.
18735         (DEFUN): New asm macro.
18736         (ENDF): New asm macro.
18737         (__ffssi2): New function.
18738         (__ffshi2): New function.
18739         (__loop_ffsqi2): New function.
18740         (__ctzsi2): New function.
18741         (__ctzhi2): New function.
18742         (__clzdi2): New function.
18743         (__clzsi2): New function.
18744         (__clzhi2): New function.
18745         (__paritydi2): New function.
18746         (__paritysi2): New function.
18747         (__parityhi2): New function.
18748         (__parityqi2): New function.
18749         (__popcounthi2): New function.
18750         (__popcountsi2): New function.
18751         (__popcountdi2): New function.
18752         (__popcountqi2): New function.
18753         (__bswapsi2): New function.
18754         (__bswapdi2): New function.
18755         (__ashldi3): New function.
18756         (__ashrdi3): New function.
18757         (__lshrdi3): New function.
18758         Fix suspicous lines.
18759
18760 2011-06-16  Richard Guenther  <rguenther@suse.de>
18761
18762         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
18763         the same as x != 0.
18764         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
18765         to (bool) X & 1.
18766         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
18767         equality compares against zero for the lower bit.
18768
18769 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
18770
18771         PR tree-optimization/49419
18772         * tree-vrp.c (execute_vrp): Call init_range_assertions
18773         before estimate_numbers_of_iterations, call
18774         free_number_of_iterations_estimates before calling
18775         remove_range_assertions.
18776
18777 2011-06-16  Revital Eres  <revital.eres@linaro.org>
18778
18779         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
18780         (struct partial_schedule): Add rows_length field.
18781         (verify_partial_schedule): Check rows_length.
18782         (ps_insert_empty_row): Handle rows_length.
18783         (create_partial_schedule): Likewise.
18784         (free_partial_schedule): Likewise.
18785         (reset_partial_schedule): Likewise.
18786         (create_ps_insn): Remove rest_count argument.
18787         (remove_node_from_ps): Update rows_length.
18788         (add_node_to_ps): Update rows_length and call create_ps_insn
18789         without passing row_rest_count.
18790         (rotate_partial_schedule): Update rows_length.
18791
18792 2011-06-16  Revital Eres  <revital.eres@linaro.org>
18793
18794         * ddg.c (add_intra_loop_mem_dep): New function.
18795         (build_intra_loop_deps): Call it.
18796
18797 2011-06-13  Jeff Law  <law@redhat.com>
18798
18799         * df-problems.c (df_lr_local_compute): Manually CSE
18800         PIC_OFFSET_TABLE_REGNUM.
18801         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
18802         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
18803
18804 2011-06-13  Jan Hubicka  <jh@suse.cz>
18805
18806         * cgraphunit.c (handle_alias_pairs): New function.
18807         (cgraph_finalize_compilation_unit): Use it.
18808         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
18809         as externally visible.
18810
18811 2011-06-15  Richard Guenther  <rguenther@suse.de>
18812
18813         * expr.c (expand_expr_real_2): Reduce all integral types to
18814         bitfield precision.
18815         (expand_expr_real_1): Likewise.
18816
18817 2011-06-15  Martin Jambor  <mjambor@suse.cz>
18818
18819         PR tree-optimization/48613
18820         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
18821         ipa_node_params_vector is NULL.
18822
18823 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
18824
18825         PR debug/49382
18826         * dwarf2out.c (dw_loc_list_node): Add force field.
18827         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
18828         location in the list, even if it is modified before first real insn.
18829         (output_loc_list): Emit empty ranges with force flag set.
18830         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
18831
18832 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
18833
18834         PR target/49349
18835         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
18836         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
18837         above a fence.  Update comments.
18838         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
18839         placed just above it.  Do not allow NULL place_to_insert.
18840
18841 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
18842
18843         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
18844         (slpeel_tree_peel_loop_to_edge): Don't call
18845         remove_dead_stmts_from_loop.
18846         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
18847         remove irrelevant pattern statements.  For irrelevant statements
18848         check if it is the last statement of a detected pattern, use
18849         corresponding pattern statement instead.
18850         (destroy_loop_vec_info): No need to remove pattern statements,
18851         only free stmt_vec_info.
18852         (vect_transform_loop): For irrelevant statements check if it is
18853         the last statement of a detected pattern, use corresponding
18854         pattern statement instead.
18855         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
18856         pattern statements.  Set basic block for the new statement.
18857         (vect_pattern_recog): Update documentation.
18858         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
18859         operands of pattern statements.
18860         (vectorizable_call): Fix printing.  In case of a pattern statement
18861         use the lhs of the original statement when creating a dummy
18862         statement to replace the original call.
18863         (vect_analyze_stmt): For irrelevant statements check if it is
18864         the last statement of a detected pattern, use corresponding
18865         pattern statement instead.
18866         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
18867         statements use gsi of the original statement.
18868
18869 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
18870
18871         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
18872         common/common-target-def.h.
18873         * target.def (default_target_flags, handle_option,
18874         supports_split_stack, optimization_table, init_struct,
18875         except_unwind_info, unwind_tables_default, have_named_sections):
18876         Move to common/common-target.def.
18877         * target.h (enum opt_levels, struct default_options): Move to
18878         common/common-target.h.
18879         * targhooks.c (default_except_unwind_info,
18880         dwarf2_except_unwind_info, sjlj_except_unwind_info,
18881         default_target_handle_option, empty_optimization_table): Move to
18882         common/common-targhooks.c.
18883         * targhooks.h (default_except_unwind_info,
18884         dwarf2_except_unwind_info, sjlj_except_unwind_info,
18885         default_target_handle_option, empty_optimization_table): Move to
18886         common/common-targhooks.h.
18887         * common/common-target-def.h: Include common/common-targhooks.h.
18888         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
18889         defined.
18890         * common/common-target.def (handle_option, option_init_struct,
18891         option_optimization_table, default_target_flags,
18892         except_unwind_info, supports_split_stack, unwind_tables_default,
18893         have_named_sections): Move from target.def.
18894         (HOOK_PREFIX): Undefine at end of file.
18895         * common/common-target.h: Include input.h.
18896         (enum opt_levels, struct default_options): Move from target.h.
18897         * common/common-targhooks.c, common/common-targhooks.h: New.
18898         * config.gcc (target_has_targetm_common): Default to yes.
18899         (moxie*): Set target_has_targetm_common=no.
18900         (hppa*-*-*): Don't set target_has_targetm_common=yes.
18901         * doc/tm.texi: Regenerate.
18902         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
18903         (C_TARGET_DEF_H): Add common/common-targhooks.h.
18904         (GCC_OBJS): Remove vec.o.
18905         (OBJS): Remove hooks.o and vec.o.
18906         (OBJS-libcommon-target): Add vec.o, hooks.o and
18907         common/common-targhooks.o.
18908         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
18909         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
18910         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
18911         cfglayout.o, $(out_object_file), $(common_out_object_file)):
18912         Update dependencies.
18913         (common/common-targhooks.o): New.
18914         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
18915         * common/config/pa/pa-common.c: Include more headers.  Take
18916         copyright dates from pa.c.
18917         (pa_option_optimization_table, pa_handle_option,
18918         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
18919         TARGET_HANDLE_OPTION): Move from pa.c.
18920         * common/config/alpha/alpha-common.c,
18921         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
18922         common/config/bfin/bfin-common.c,
18923         common/config/cris/cris-common.c,
18924         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
18925         common/config/h8300/h8300-common.c,
18926         common/config/i386/i386-common.c,
18927         common/config/ia64/ia64-common.c,
18928         common/config/iq2000/iq2000-common.c,
18929         common/config/lm32/lm32-common.c,
18930         common/config/m32c/m32c-common.c,
18931         common/config/m32r/m32r-common.c,
18932         common/config/m68k/m68k-common.c,
18933         common/config/mcore/mcore-common.c,
18934         common/config/mep/mep-common.c,
18935         common/config/microblaze/microblaze-common.c,
18936         common/config/mips/mips-common.c,
18937         common/config/mmix/mmix-common.c,
18938         common/config/mn10300/mn10300-common.c,
18939         common/config/pdp11/pdp11-common.c,
18940         common/config/picochip/picochip-common.c,
18941         common/config/rs6000/rs6000-common.c,
18942         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
18943         common/config/score/score-common.c, common/config/sh/sh-common.c,
18944         common/config/sparc/sparc-common.c,
18945         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
18946         common/config/vax/vax-common.c,
18947         common/config/xstormy16/xstormy16-common.c,
18948         common/config/xtensa/xtensa-common.c: New.
18949         * config/alpha/alpha.c: Include common/common-target.h.
18950         (alpha_option_optimization_table, alpha_handle_option,
18951         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
18952         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
18953         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
18954         * config/arm/arm.c (arm_option_optimization_table,
18955         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
18956         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
18957         arm-common.c.
18958         * config/avr/avr.c (avr_option_optimization_table,
18959         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
18960         to avr-common.c.
18961         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
18962         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
18963         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
18964         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
18965         * config/cris/cris.c (cris_option_optimization_table,
18966         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
18967         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
18968         cris-common.c.
18969         * config/fr30/fr30.c (fr30_option_optimization_table,
18970         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
18971         to fr30-common.c.
18972         * config/frv/frv.c (frv_option_optimization_table,
18973         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
18974         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
18975         * config/h8300/h8300.c (h8300_option_optimization_table,
18976         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
18977         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
18978         * config/i386/i386-protos.h (ix86_handle_option): Declare.
18979         * config/i386/i386.c: Include common/common-target.h.
18980         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
18981         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
18982         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
18983         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
18984         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
18985         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
18986         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
18987         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
18988         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
18989         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
18990         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
18991         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
18992         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
18993         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
18994         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
18995         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
18996         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
18997         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
18998         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
18999         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
19000         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
19001         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
19002         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
19003         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
19004         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
19005         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
19006         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
19007         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
19008         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
19009         ix86_option_optimization_table, ix86_option_init_struct,
19010         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
19011         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
19012         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
19013         i386-common.c.
19014         * config/i386/t-i386 (i386.o): Update dependencies.
19015         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
19016         * config/ia64/ia64.c (ia64_option_optimization_table,
19017         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
19018         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
19019         ia64_handle_option): Move to ia64-common.c.
19020         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
19021         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
19022         * config/lm32/lm32.c (lm32_option_optimization_table,
19023         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
19024         to lm32-common.c.
19025         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
19026         m32c-common.c.
19027         * config/m32r/m32r.c (m32r_option_optimization_table,
19028         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
19029         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
19030         m32r_handle_option): Move to m32r-common.c.
19031         (m32r_memory_move_cost): Remove comment referring to
19032         TARGET_HANDLE_OPTION.
19033         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
19034         Move to m68k-common.c.
19035         * config/mcore/mcore.c (mcore_option_optimization_table,
19036         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
19037         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
19038         * config/mep/mep.c (mep_option_optimization_table,
19039         mep_handle_option, TARGET_HANDLE_OPTION,
19040         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
19041         Move to mep-common.c.
19042         * config/microblaze/microblaze.c
19043         (microblaze_option_optimization_table,
19044         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
19045         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
19046         * config/mips/mips.c (mips_handle_option,
19047         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
19048         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
19049         mips-common.c.
19050         * config/mmix/mmix.c (mmix_option_optimization_table,
19051         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
19052         Move to mmix-common.c.
19053         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
19054         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
19055         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
19056         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
19057         * config/pa/pa.c: Include common/common-target.h.
19058         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
19059         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
19060         pa_handle_option): Move to pa-common.c.
19061         (pa_option_override): Use targetm_common.except_unwind_info.
19062         (pa_asm_output_mi_thunk, pa_function_section): Use
19063         targetm_common.have_named_sections.
19064         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
19065         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
19066         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
19067         pdp11_handle_option, pdp11_option_init_struct): Move to
19068         pdp11-common.c.
19069         * config/picochip/picochip.c (picochip_option_optimization_table,
19070         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
19071         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
19072         * config/rs6000/rs6000.c: Include common/common-target.h.
19073         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
19074         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
19075         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
19076         rs6000_handle_option): Move to rs6000-common.c.
19077         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
19078         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
19079         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
19080         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
19081         * config/s390/s390.c (processor_flags_table,
19082         s390_option_optimization_table, s390_option_init_struct,
19083         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
19084         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
19085         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
19086         * config/s390/s390.h (processor_flags_table): Declare.
19087         * config/score/score.c (score_option_optimization_table,
19088         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
19089         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
19090         score_handle_option): Move to score-common.c.
19091         * config/sh/sh.c (sh_option_optimization_table,
19092         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
19093         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
19094         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
19095         * config/sparc/sparc.c: Include common/common-target.h.
19096         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
19097         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
19098         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
19099         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
19100         spu_option_init_struct): Move to spu-common.c.
19101         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
19102         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
19103         * config/v850/v850.c (small_memory_physical_max,
19104         v850_handle_memory_optionn v850_handle_option,
19105         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
19106         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
19107         v850-common.c.
19108         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
19109         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
19110         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
19111         Move to xtensa-common.c.
19112         * cfglayout.c: Include common/common-target.h.
19113         (fixup_reorder_chain): Use targetm_common.have_named_sections.
19114         * cfgrtl.c: Include common/common-target.h.
19115         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
19116         targetm_common.have_named_sections.
19117         * dbxout.c: Include common/common-target.h.
19118         (dbxout_function_end): Use targetm_common.have_named_sections.
19119         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
19120         targetm_common.except_unwind_info.
19121         * dwarf2out.c: Include common/common-target.h.
19122         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
19123         dwarf2out_begin_prologue, dwarf2out_frame_init,
19124         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
19125         targetm_common.except_unwind_info.
19126         * except.c: Include common/common-target.h.
19127         (init_eh, finish_eh_generation,
19128         output_one_function_exception_table): Use
19129         targetm_common.except_unwind_info.
19130         (switch_to_exception_section): Use targetm_common.have_named_sections.
19131         * explow.c: Include common/common-target.h.
19132         * expr.c: Include common/common-target.h.
19133         (build_personality_function): Use targetm_common.except_unwind_info.
19134         * function.c: Include common/common-target.h.
19135         (expand_function_end): Use targetm_common.except_unwind_info.
19136         * haifa-sched.c: Include common/common-target.h.
19137         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
19138         * lto-opts.c: Include common/common-target.h instead of target.h.
19139         (lto_reissue_options): Use targetm_common.handle_option.
19140         * opts.c: Include common/common-target.h.
19141         (target_handle_option): Use targetm_common.handle_option.
19142         (init_options_struct): Update comment referring to
19143         targetm.target_option.optimization.  Use
19144         targetm_common.default_target_flags,
19145         targetm_common.unwind_tables_default and
19146         targetm_common.option_init_struct.
19147         (default_options_optimization): Use
19148         targetm_common.option_optimization_table.
19149         (finish_options): Use targetm_common.except_unwind_info,
19150         targetm_common.unwind_tables_default,
19151         targetm_common.have_named_sections and
19152         targetm_common.supports_split_stack.
19153         * toplev.c: Include common/common-target.h.
19154         (process_options): Use targetm_common.have_named_sections.
19155         * tree-tailcall.c: Include common/common-target.h.
19156         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
19157         * tree.c: Include common/common-target.h.
19158         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
19159         * varasm.c: Include common/common-target.h.
19160         (resolve_unique_section, hot_function_section,
19161         default_function_section): Use targetm_common.have_named_sections.
19162
19163 2011-06-14  Easwaran Raman  <eraman@google.com>
19164
19165         PR rtl-optimization/44194
19166         * dse.c: Include tree-flow.h
19167         (insn_info): Add new field non_frame_wild_read.
19168         (group_info): Add new fields escaped_n and escaped_p.
19169         (kill_on_calls): New variable.
19170         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
19171         (dse_step0): Initialize kill_on_calls.
19172         (can_escape): New function.
19173         (set_usage_bits): Add additional parameter; record information
19174         about escaped locations.
19175         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
19176         (dse_step2_nospill): Set kill_on_calls based on
19177         group->escaped_n and group->escaped_n.
19178         (add_wild_read): Refactor into...
19179         (reset_active_stores): ... New function, and
19180         (free_read_records): ... New function.
19181         (add_non_frame_wild_read): New function.
19182         (scan_insn): Call add_non_frame_wild_read on non-const calls.
19183         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
19184         (dse_step5_nospill): Call scan_reads_nospill for instructions
19185         marked as non_frame_wild_read.
19186         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
19187
19188 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
19189
19190         * common/common-target-def.h, common/common-target.def,
19191         common/common-target.h, common/config/default-common.c,
19192         common/config/pa/pa-common.c: New files.
19193         * Makefile.in (common_out_file, common_out_object_file,
19194         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
19195         (OBJS-libcommon-target): Include $(common_out_object_file).
19196         (prefix.o): Update dependencies.
19197         ($(common_out_object_file), common/common-target-hooks-def.h,
19198         s-common-target-hooks-def-h): New.
19199         (s-tm-texi): Also check timestamp on common-target.def.
19200         (build/genhooks.o): Update dependencies.
19201         * config.gcc (common_out_file, target_has_targetm_common): Define.
19202         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
19203         TARGET_ALWAYS_STRIP_DOTDOT.
19204         * configure.ac (common_out_object_file): Define.
19205         (common_out_file, common_out_object_file): Substitute.
19206         (common): Create directory.
19207         * configure: Regenerate.
19208         * doc/tm.texi.in (targetm_common): Document.
19209         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
19210         * doc/tm.texi: Regenerate.
19211         * genhooks.c (hook_array): Also include common/common-target.def.
19212         * prefix.c (tm.h): Don't include.
19213         (common/common-target.h): Include.
19214         (ALWAYS_STRIP_DOTDOT): Don't define.
19215         (update_path): Use targetm_common.always_strip_dotdot instead of
19216         ALWAYS_STRIP_DOTDOT.
19217         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
19218
19219 2011-06-14  David Li  <davidxl@google.com>
19220
19221         * passes.c (execute_function_todo): Remove TODO_dump_func.
19222         (execute_one_pass): Remove TODO_dump_func.
19223         (execute_function_dump): New function.
19224         * tree-vrp.c: Remove TODO_dump_func.
19225         * regrename.c: Remove TODO_dump_func.
19226         * fwprop.c: Remove TODO_dump_func.
19227         * tree-into-ssa.c: Remove TODO_dump_func.
19228         * tree-complex.c: Remove TODO_dump_func.
19229         * tracer.c: Remove TODO_dump_func.
19230         * tree-loop-distribution.c: Remove TODO_dump_func.
19231         * postreload-gcse.c: Remove TODO_dump_func.
19232         * postreload.c: Remove TODO_dump_func.
19233         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
19234         * tree-tailcall.c: Remove TODO_dump_func.
19235         * ipa-cp.c: Remove TODO_dump_func.
19236         * final.c: Remove TODO_dump_func.
19237         * tree-emutls.c: Remove TODO_dump_func.
19238         * omp-low.c: Remove TODO_dump_func.
19239         * tree-ssa-dse.c: Remove TODO_dump_func.
19240         * tree-ssa-uncprop.c: Remove TODO_dump_func.
19241         * auto-inc-dec.c: Remove TODO_dump_func.
19242         * reorg.c: Remove TODO_dump_func.
19243         * tree-ssa-copyrename.c: Remove TODO_dump_func.
19244         * tree-ssa-ccp.c: Remove TODO_dump_func.
19245         * compare-elim.c: Remove TODO_dump_func.
19246         * mode-switching.c: Remove TODO_dump_func.
19247         * modulo-sched.c: Remove TODO_dump_func.
19248         * tree-call-cdce.c: Remove TODO_dump_func.
19249         * cse.c: Remove TODO_dump_func.
19250         * web.c: Remove TODO_dump_func.
19251         * tree-stdarg.c: Remove TODO_dump_func.
19252         * lto-streamer-out.c: Remove TODO_dump_func.
19253         * tree-ssa-math-opts.c: Remove TODO_dump_func.
19254         * tree-ssa-dom.c: Remove TODO_dump_func.
19255         * tree-nrv.c: Remove TODO_dump_func.
19256         * loop-init.c: Remove TODO_dump_func.
19257         * gimple-low.c: Remove TODO_dump_func.
19258         * ipa-inline.c: Remove TODO_dump_func.
19259         * tree-ssa-sink.c: Remove TODO_dump_func.
19260         * jump.c: Remove TODO_dump_func.
19261         * ifcvt.c: Remove TODO_dump_func.
19262         * tree-ssa-loop.c: Remove TODO_dump_func.
19263         * recog.c: Remove TODO_dump_func.
19264         * dse.c: Remove TODO_dump_func.
19265         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
19266         * matrix-reorg.c: Remove TODO_dump_func.
19267         * tree-eh.c: Remove TODO_dump_func.
19268         * regmove.c: Remove TODO_dump_func.
19269         * function.c: Remove TODO_dump_func.
19270         * tree-vectorizer.c: Remove TODO_dump_func.
19271         * ipa-split.c: Remove TODO_dump_func.
19272         * gcse.c: Remove TODO_dump_func.
19273         * tree-if-conv.c: Remove TODO_dump_func.
19274         * init-regs.c: Remove TODO_dump_func.
19275         * tree-ssa-phiopt.c: Remove TODO_dump_func.
19276         * implicit-zee.c: Remove TODO_dump_func.
19277         * lower-subreg.c: Remove TODO_dump_func.
19278         * bt-load.c: Remove TODO_dump_func.
19279         * tree-dfa.c: Remove TODO_dump_func.
19280         * except.c: Remove TODO_dump_func.
19281         * emit-rtl.c: Remove TODO_dump_func.
19282         * store-motion.c: Remove TODO_dump_func.
19283         * cfgexpand.c: Remove TODO_dump_func.
19284         * tree-cfgcleanup.c: Remove TODO_dump_func.
19285         * cfgcleanup.c: Remove TODO_dump_func.
19286         * tree-ssa-pre.c: Remove TODO_dump_func.
19287         * tree-sra.c: Remove TODO_dump_func.
19288         * tree-mudflap.c: Remove TODO_dump_func.
19289         * tree-ssa-copy.c: Remove TODO_dump_func.
19290         * cfglayout.c: Remove TODO_dump_func.
19291         * tree-ssa-forwprop.c: Remove TODO_dump_func.
19292         * tree-ssa-dce.c: Remove TODO_dump_func.
19293         * ira.c: Remove TODO_dump_func.
19294         * tree-ssa.c: Remove TODO_dump_func.
19295         * integrate.c: Remove TODO_dump_func.
19296         * tree-optimize.c: Remove TODO_dump_func.
19297         * tree-ssa-phiprop.c: Remove TODO_dump_func.
19298         * tree-object-size.c: Remove TODO_dump_func.
19299         * combine.c: Remove TODO_dump_func.
19300         * bb-reorder.c: Remove TODO_dump_func.
19301         * cprop.c: Remove TODO_dump_func.
19302         * var-tracking.c: Remove TODO_dump_func.
19303         * tree-profile.c: Remove TODO_dump_func.
19304         * tree-vect-generic.c: Remove TODO_dump_func.
19305         * reg-stack.c: Remove TODO_dump_func.
19306         * sched-rgn.c: Remove TODO_dump_func.
19307         * tree-ssa-structalias.c: Remove TODO_dump_func.
19308         * tree-switch-conversion.c: Remove TODO_dump_func.
19309         * tree-cfg.c: Remove TODO_dump_func.
19310         * tree-ssa-reassoc.c: Remove TODO_dump_func.
19311         * combine-stack-adj.c: Remove TODO_dump_func.
19312         * dce.c: Remove TODO_dump_func.
19313         * tree-ssanames.c: Remove TODO_dump_func.
19314         * regcprop.c: Remove TODO_dump_func.
19315
19316 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
19317
19318         PR middle-end/47364
19319         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
19320         and properly handle result not in Pmode.
19321
19322 2011-06-14  Robert Millan  <rmh@gnu.org>
19323
19324         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
19325         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
19326         `config/linux.h'.
19327
19328         * config/i386/kfreebsd-gnu64.h: New file.
19329         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
19330         with `i386/kfreebsd-gnu64.h'.
19331
19332         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
19333         (GNU_USER_LINK_EMULATION64): New macros.
19334         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
19335         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
19336         of hardcoding `elf_i386' and `elf_x86_64'.
19337
19338 2011-06-14  Nick Clifton  <nickc@redhat.com>
19339
19340         PR target/49403
19341         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
19342
19343         PR target/49402
19344         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
19345
19346 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
19347
19348         PR fortran/49103
19349         * tree.h (DECL_NONSHAREABLE): Define.
19350         (struct tree_decl_common): Change decl_common_unused to
19351         decl_nonshareable_flag.
19352         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
19353         Ignore vars with DECL_NONSHAREABLE bit set.
19354         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
19355         on stores to automatic aggregate vars.
19356
19357         PR rtl-optimization/49390
19358         Revert:
19359         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
19360
19361         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
19362         MEM_ALIAS_SET.
19363
19364 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
19365             Tom de Vries  <tom@codesourcery.com>
19366
19367         PR target/45098
19368         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
19369         Document changed semantics.
19370         (max_stmt_executions, max_stmt_executions_int): Declare.
19371         * tree-data-ref.c (estimated_loop_iterations)
19372         (estimated_loop_iterations_int): Move functions...
19373         * tree-ssa-loop-niter.c (estimated_loop_iterations)
19374         (estimated_loop_iterations_int): here.
19375         (record_estimate): Change nb_iterations_upper_bound and
19376         nb_iterations_estimate semantics.
19377         (max_stmt_executions, max_stmt_executions_int): New function.
19378         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
19379         (max_stmt_executions_tree): this.
19380         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
19381         estimated_loop_iterations_tree.
19382         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
19383         max_stmt_executions_int instead of estimated_loop_iterations_int.
19384         * predict.c (predict_loops): Idem.
19385         * tree-parloops.c (parallelize_loops): Idem.
19386         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
19387         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
19388         (init_omega_for_ddr_1): Idem.
19389         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
19390         (loop_prefetch_arrays): Idem
19391         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
19392         max_stmt_executions instead of estimated_loop_iterations.
19393         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
19394         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
19395         instead of nb_iterations_upper_bound.
19396
19397 2011-06-13  Jan Hubicka  <jh@suse.cz>
19398
19399         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
19400
19401 2011-06-14  Richard Henderson  <rth@redhat.com>
19402
19403         PR debug/48459
19404         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
19405         (based_loc_descr): Assert it's true.
19406         (compute_frame_pointer_to_fb_displacement): Set it, rather than
19407         aborting immediately.
19408
19409 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
19410             Mingfeng Wu  <mingfeng@faraday-tech.com>
19411
19412         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
19413
19414 2011-06-13  Jan Hubicka  <jh@suse.cz>
19415
19416         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
19417
19418 2011-06-13  Jan Hubicka  <jh@suse.cz>
19419
19420         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
19421         similarly to DECL_COMDAT.
19422         * cgraphunit.c (cgraph_analyze_function): Likewise.
19423         * ipa.c (function_and_variable_visibility): Likewise.
19424
19425 2011-06-13  Jan Hubicka  <jh@suse.cz>
19426
19427         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
19428         BINFO_VIRTUALS when streaming for ltrans unit.
19429
19430 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
19431
19432         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
19433         (movdi_internal64): Same.
19434
19435 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
19436
19437         PR target/44618
19438         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
19439         a set of similar patterns, where the MATCH_OPERAND for the function
19440         argument is replaced with individual references to hardware registers.
19441         (save_fpregs_<mode>): Ditto
19442         (restore_gpregs_<mode>): Ditto
19443         (return_and_restore_gpregs_<mode>): Ditto
19444         (return_and_restore_fpregs_<mode>): Ditto
19445         (return_and_restore_fpregs_aix_<mode>): Ditto
19446
19447 2011-06-13  Jan Hubicka  <jh@suse.cz>
19448
19449         * ipa-utils.c (postorder_stack): New structure.
19450         (ipa_reverse_postorder): Handle aliases.
19451
19452 2011-06-13  Jan Hubicka  <jh@suse.cz>
19453
19454         * ipa-inline.c (reset_edge_caches): Walk aliases.
19455         (update_caller_keys): Do not test inlinability of aliases.
19456         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
19457         (do_estimate_growth): Fix typo.
19458
19459 2011-06-13  Jan Hubicka  <jh@suse.cz>
19460
19461         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
19462         (can_remove_node_now_p): ... here; handle same comdat groups.
19463         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
19464         (inline_call): Update use of can_remove_node_now_p.
19465
19466 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
19467
19468         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
19469         condition to disallow non-identical memory locations.
19470         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
19471         preference to bit manipulation instructions.
19472
19473 2011-06-13  Jan Hubicka  <jh@suse.cz>
19474
19475         * cgraph.c (cgraph_for_node_thunks_and_aliases,
19476         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
19477         (nonremovable_p): New function.
19478         (cgraph_can_remove_if_no_direct_calls_p): New function.
19479         (used_from_object_file_p): New functoin.
19480         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
19481         references from aliases.
19482         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
19483         * ipa-inline.c (check_caller_edge): New function.
19484         (want_inline_function_called_once_p): Use it; accept aliases called
19485         once, too.
19486         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
19487
19488 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
19489
19490         PR target/48454
19491         * config/arm/neon.md (vec_pack_trunc): Set the lengths
19492         correctly for the case with Quad vectors.
19493
19494 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
19495            Ira Rosen  <ira.rosen@linaro.org>
19496
19497         PR tree-optimization/49352
19498         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
19499         all, make sure loop_use_stmt after the loop is a def stmt of a used
19500         SSA_NAME that is the only one defined inside of the loop.  Don't
19501         check for COND_EXPR and GIMPLE_BINARY_RHS.
19502         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
19503         check_reduction is true.
19504
19505 2011-06-11  Jan Hubicka  <jh@suse.cz>
19506
19507         PR middle-end/49373
19508         * ipa.c (cgraph_externally_visible_p): Check resolution info.
19509
19510 2011-06-11  Jan Hubicka  <jh@suse.cz>
19511
19512         PR middle-end/48836
19513         * ipa-inline-transform.c: Include tree-pass.h
19514         (inline_transform): Set TODO_update_ssa_only_virtuals.
19515         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
19516
19517 2011-06-11  Jan Hubicka  <jh@suse.cz>
19518
19519         PR middle-end/49378
19520         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
19521         aliases and thunks.
19522
19523 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
19524
19525         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
19526         Take number of iterations to peel into account for equally frequent
19527         misalignment values.
19528
19529 2011-06-11  Jan Hubicka  <jh@suse.cz>
19530
19531         * lto-streamer-out.c (produce_symtab): Stream out the newly
19532         represented aliases.
19533
19534 2011-06-11  Jan Hubicka  <jh@suse.cz>
19535
19536         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
19537         varying args.
19538         (ipa_update_after_lto_read): Likewise.
19539         (ipa_write_node_info): Do not sream call_with_var_arguments.
19540         (ipa_read_node_info): Likewise.
19541
19542 2011-06-11  Jan Hubicka  <jh@suse.cz>
19543
19544         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
19545
19546 2011-06-11  Jan Hubicka  <jh@suse.cz>
19547
19548         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
19549         (lto_symtab_resolve_can_prevail_p): Likewise.
19550         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
19551         * cgraph.c (same_body_aliases_done): New global var.
19552         (cgraph_same_body_alias_1): Rename to ...
19553         (cgraph_create_function_alias): ... this one; reorg to new
19554         representation.
19555         (cgraph_same_body_alias): Use cgraph_create_function_alias;
19556         record references when asked to.
19557         (cgraph_add_thunk): Fix formating.
19558         (cgraph_get_node): Kill same body alias code.
19559         (cgraph_node_for_asm): Likewise.
19560         (cgraph_remove_same_body_alias): Remove.
19561         (cgraph_remove_node): Kill same body alias code.
19562         (cgraph_mark_address_taken_node): Mark also the aliased function
19563         as having address taken.
19564         (dump_cgraph_node): Dump same body aliases.
19565         (cgraph_for_node_thunks_and_aliases): Update for new alias
19566         representation.
19567         (cgraph_for_node_and_aliases): Likewise.
19568         * cgraph.h (same_body): Kll pointer.
19569         (same_body_alias): Update comment.
19570         (same_body_aliases_done): Declare.
19571         (cgraph_remove_same_body_alias): Remove declaration.
19572         (cgraph_create_function_alias): Declare.
19573         (cgraph_process_same_body_aliases): Declare.
19574         (cgraph_function_with_gimple_body_p): Check for alias.
19575         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
19576         (cgraph_alias_aliased_node): New function.
19577         (cgraph_function_node): Update for new aliases.
19578         (cgraph_function_or_thunk_node): Likewise.
19579         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
19580         (inline_call): Remove dead aliases.
19581         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
19582         name hack for same body aliases.
19583         (clone_of_p): Look through aliases.
19584         (verify_cgraph_node): Verify aliases.
19585         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
19586         (cgraph_process_same_body_aliases): New function.
19587         (process_function_and_variable_attributes): Disable weakref warning on
19588         alias.
19589         (cgraph_analyze_functions): Handle aliases.
19590         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
19591         (assemble_thunks): Rename to ...
19592         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
19593         (cgraph_expand_function): Remove alias output code.
19594         (cgraph_output_in_order): Skip aliases.
19595         (cgraph_preserve_function_body_p): Aliases don't need preserving.
19596         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
19597         (ipa_record_reference): Do not assert on alias references.
19598         (ipa_ref_has_aliases_p): New function.
19599         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
19600         (ipa_ref_has_aliases_p): Declare.
19601         * lto-cgraph.c (lto_output_node): Handle aliases.
19602         (input_node): Likewise.
19603         * lto-streamer-out.c (lto_output): Skip aliases.
19604         (produce_symtab): Kill same_body_alias code.
19605         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
19606         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
19607         * ipa-inline.c (update_caller_keys): Walk aliases.
19608         (inline_small_functions): Fix thinko in previous patch.
19609         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
19610         (function_and_variable_visibility): Do not walk same body aliases.
19611         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
19612         (ipa_pta_execute): Use it.
19613
19614 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
19615
19616         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
19617         (*vec_dupv2df): Rename from vec_dupv2df.
19618         (vec_dupv2df): New expander.
19619
19620 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
19621
19622         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
19623
19624 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
19625
19626         * config/i386/i386.md: Use default value in "isa" attribute.
19627         * config/i386/sse.md: Ditto.
19628         * config/i386/mmx.md: Ditto.
19629
19630 2011-06-10  Wei Guozhi  <carrot@google.com>
19631
19632         PR target/45335
19633         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
19634         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
19635         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
19636         related peephole2.
19637         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
19638         related peephole2.
19639         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
19640         (arm_legitimate_ldrd_p): New prototype.
19641         (arm_output_ldrd): New prototype.
19642         * config/arm/arm.c (arm_check_ldrd_operands): New function.
19643         (arm_legitimate_ldrd_p): New function.
19644         (arm_output_ldrd): New function.
19645
19646 2011-06-10  David Li  <davidxl@google.com>
19647
19648         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
19649         * passes.c (passr_eq): New function.
19650         (create_pass_tab): New function.
19651         (pass_traverse): New function.
19652         (dump_one_pass): New function.
19653         (dump_pass_list): New function.
19654         (dump_passes): New function.
19655
19656 2011-06-10  Jan Hubicka  <jh@suse.cz>
19657
19658         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
19659         setting the nothrow flag.
19660         * ipa-reference.c (propagate): Skip aliases.
19661         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
19662         (propagate_nothrow): Skip aliases; do not update cgraph.
19663         (local_pure_const): Do not update cgraph.
19664         * tree-profile.c (tree_profiling): Do fixup_cfg.
19665
19666 2011-06-10  Jan Hubicka  <jh@suse.cz>
19667
19668         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
19669         (cgraph_local_node_p): ... here; handle aliases.
19670         (has_addr_references_p): Break out from ...;
19671         (cgraph_remove_unreachable_nodes) ... here.
19672
19673 2011-06-10  Jan Hubicka  <jh@suse.cz>
19674
19675         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
19676         * common.opt (flag_inline_functions_called_once): Do not
19677         initialize to 1.
19678
19679 2011-06-10  Jan Hubicka  <jh@suse.cz>
19680
19681         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
19682         (ipcp_initialize_node_lattices): Do not deal with aliases;
19683         Do not try to propagate through thunks.
19684         (ipcp_change_tops_to_bottom): Do not deal with aliases.
19685
19686 2011-06-10  Jan Hubicka  <jh@suse.cz>
19687
19688         * ipa-prop.c (ipa_write_node_info): Stream jump functions
19689         for indirect calls.
19690         (ipa_read_node_info): Likewise.
19691
19692 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19693
19694         PR lto/49302
19695         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
19696         (build_and_insert_call): Likewise.
19697         (build_and_insert_ref): New.
19698         (gimple_expand_builtin_pow): Minor cleanup.
19699         (gimple_expand_builtin_cabs): New.
19700         (execute_cse_sincos): Add case for BUILT_IN_CABS.
19701
19702 2011-06-10  Jan Hubicka  <jh@suse.cz>
19703
19704         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
19705         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
19706         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
19707         (ipcp_propagate_stage): Skip aliases when propagating.
19708         (ipcp_need_redirect_p): Skip aliases.
19709         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
19710         collect_callers_of_node.
19711         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
19712         for aliases.
19713         (ipa_compute_jump_functions): Look through aliases.
19714
19715 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19716
19717         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
19718
19719 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
19720
19721         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
19722         Adjust comments.
19723         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
19724
19725 2011-06-10  Jan Hubicka  <jh@suse.cz>
19726
19727         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
19728         Update call of gimple_get_virt_method_for_binfo.
19729         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
19730         refuse_thunks parameter.
19731         (gimple_fold_call): Update.
19732         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
19733
19734 2011-06-10  Jan Hubicka  <jh@suse.cz>
19735
19736         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
19737         (not_all_callers_have_enough_arguments_p): ... this one; turn into
19738         worker for cgraph_for_node_and_aliases.
19739         (convert_callers_for_node): Break out from ...
19740         (convert_callers): ... here.
19741         (modify_function): Use collect_callers_of_node.
19742         (ipa_early_sra): Use cgraph_for_node_and_aliases.
19743
19744 2011-06-10  Richard Guenther  <rguenther@suse.de>
19745
19746         PR tree-optimization/49361
19747         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
19748         when not already in gimple form.
19749
19750 2011-06-10  Richard Guenther  <rguenther@suse.de>
19751
19752         PR bootstrap/49344
19753         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
19754         FOR_EACH_PHI_OR_STMT_USE.
19755
19756 2011-06-10  Jan Hubicka  <jh@suse.cz>
19757
19758         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
19759         (clone_inlined_nodes): ... here.
19760         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
19761         to real destination prior inlining.
19762         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
19763         can_early_inline_edge_p, want_early_inline_function_p,
19764         want_early_inline_function_p, want_inline_small_function_p,
19765         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
19766         edge_badness, update_all_callee_keys, lookup_recursive_calls,
19767         add_new_edges_to_heap, inline_small_functions, flatten_function,
19768         inline_always_inline_functions, early_inline_small_functions): Use
19769         cgraph_function_or_thunk_node.
19770         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
19771         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
19772         (do_estimate_edge_growth_1): Break out from ...
19773         (do_estimate_growth) ... here; walk aliases.
19774         (inline_generate_summary): Skip aliases.
19775
19776 2011-06-10  Richard Guenther  <rguenther@suse.de>
19777
19778         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
19779         forward when combining, visit inserted stmts when a stmt was changed.
19780
19781 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
19782
19783         * tree.h (error_operand_p): Add.
19784         * dbxout.c (dbxout_type_fields): Use the latter.
19785         * c-decl.c (add_stmt): Likewise.
19786         * gimplify.c (omp_add_variable, omp_notice_variable,
19787         gimplify_scan_omp_clauses): Likewise.
19788
19789 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
19790
19791         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
19792         when a value is actually passed in regs.
19793
19794 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
19795             Laurent Rougé  <laurent.rouge@menta.fr>
19796
19797         * doc/invoke.texi (SPARC options): Add -mflat.
19798         * config/sparc/sparc.opt: Likewise.
19799         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
19800         (sparc_flat_expand_prologue): Declare.
19801         (sparc_flat_expand_epilogue): Likewise.
19802         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
19803         (CPP_ENDIAN_SPEC): Replace with...
19804         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
19805         (CPP_SPEC): Adjust to above change.
19806         (EXTRA_SPECS): Likewise.
19807         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
19808         (INCOMING_REGNO): Likewise.
19809         (OUTGOING_REGNO): Likewise.
19810         (LOCAL_REGNO): Likewise.
19811         (SETUP_FRAME_ADDRESSES): Likewise.
19812         (FIXED_REGISTERS): Set 0 for %fp.
19813         (CALL_USED_REGISTERS): Likewise.
19814         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
19815         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
19816         (RETURN_ADDR_REGNUM): Define.
19817         (RETURN_ADDR_RTX): Use it.
19818         (INCOMING_RETURN_ADDR_REGNUM): Define.
19819         (INCOMING_RETURN_ADDR_RTX): Use it.
19820         (DWARF_FRAME_RETURN_COLUMN): Likewise.
19821         (EH_RETURN_REGNUM): Define.
19822         (EH_RETURN_STACKADJ_RTX): Use it.
19823         (EH_RETURN_HANDLER_RTX): Delete.
19824         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
19825         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
19826         Delete.
19827         (struct machine_function): Add frame_size, apparent_frame_size,
19828         frame_base_reg, frame_base_offset, n_global_fp_regs and
19829         save_local_in_regs_p fields.
19830         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
19831         sparc_frame_base_offset, sparc_n_global_fp_regs,
19832         sparc_save_local_in_regs_p): New macros.
19833         (sparc_option_override): Error out if -fcall-saved-REG is specified
19834         for Out registers.
19835         (eligible_for_restore_insn): Fix formatting.
19836         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
19837         (eligible_for_sibcall_delay): Likewise.
19838         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
19839         (sparc_legitimate_address_p): Adjust to above change.
19840         (save_global_or_fp_reg_p): New predicate.
19841         (return_addr_reg_needed_p): Likewise.
19842         (save_local_or_in_reg_p): Likewise.
19843         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
19844         (SORR_SAVE, SORR_RESTORE): Delete.
19845         (sorr_pred_t): New typedef.
19846         (sorr_act_t): New enum.
19847         (save_or_restore_regs): Rename to...
19848         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
19849         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
19850         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
19851         mechanism.  Add CFI information for double-word saves in 32-bit mode.
19852         (emit_adjust_base_to_offset): New function extracted from...
19853         (emit_save_or_restore_regs): ...this.  Rename the rest to...
19854         (emit_save_or_restore_regs_global_fp_regs): ...this.
19855         (emit_save_or_restore_regs_local_in_regs): New function.
19856         (gen_create_flat_frame_[123]): New functions.
19857         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
19858         (sparc_flat_expand_prologue): New function.
19859         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
19860         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
19861         (sparc_flat_expand_epilogue): New function.
19862         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
19863         (output_return): Likewise.
19864         (output_sibcall): Likewise.
19865         (sparc_output_mi_thunk): Likewise.
19866         (sparc_frame_pointer_required): Likewise.
19867         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
19868         function optimization.
19869         * config/sparc/sparc.md (flat): New attribute.
19870         (prologue): Add TARGET_FLAT handling.
19871         (save_register_window): Disable if TARGET_FLAT.
19872         (create_flat_frame_[123]): New patterns.
19873         (epilogue): Add TARGET_FLAT handling.
19874         (sibcall_epilogue): Likewise.
19875         (eh_return): New expander.
19876         (eh_return_internal): New insn and splitter.
19877         (return_internal): Add TARGET_FLAT handling.
19878         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
19879         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
19880         (nonlocal_goto): Add TARGET_FLAT handling.
19881         * config/sparc/t-elf: Add -mflat multilib.
19882         * config/sparc/t-leon: Likewise.
19883
19884 2011-06-10  Jan Hubicka  <jh@suse.cz>
19885
19886         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
19887         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
19888         (self_recursive_p): Use cgraph_function_node.
19889         (propagate_pure_const): Likewise.
19890         (propagate_nothrow): Likewise.
19891         * ipa-reference.c (ipa_reference_get_not_read_global): Use
19892         cgraph_function_node.
19893         (propagate_bits): Likewise.
19894         (propagate): Likewise.
19895
19896 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
19897             Richard Earnshaw  <rearnsha@arm.com>
19898
19899         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
19900         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
19901         (*thumb2_movdi_vfp): Delete.
19902         (*arm_movdi_vfp_cortexa8): Delete.
19903         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
19904         (*movdi_vfp_cortexa8): Likewise.
19905
19906 2011-06-10  Richard Guenther  <rguenther@suse.de>
19907
19908         * stor-layout.c (initialize_sizetypes): Give names to all
19909         sizetype kinds.
19910
19911 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
19912
19913         PR tree-optimization/49318
19914         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
19915         irrelevant pattern statements.
19916
19917 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
19918
19919         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
19920
19921         PR bootstrap/49354
19922         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
19923         to last assignment.
19924
19925 2011-06-09  Jan Hubicka  <jh@suse.cz>
19926
19927         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
19928         do not recompute reachable flag.
19929         (cgraph_finalize_function, cgraph_analyze_functions): Set
19930         redefined_extern_inline here.
19931
19932 2011-06-09  Jan Hubicka  <jh@suse.cz>
19933
19934         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
19935         (cgraph_only_called_directly_p): ... this one; bring offline.
19936         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
19937         varpool_used_from_object_file_p): Drop names from the declaratoin.
19938         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
19939         collect_callers_of_node): New.
19940         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
19941         (cgraph_edge_recursive_p): Use cgraph_function_node.
19942         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
19943         (cgraph_node_cannot_be_local_p_1): Break out from ...
19944         (cgraph_node_can_be_local_p): ... here; walk aliases.
19945         (cgraph_for_node_thunks_and_aliases): New function.
19946         (cgraph_for_node_and_aliases): New function.
19947         (cgraph_make_node_local_1): Break out from ...
19948         (cgraph_make_node_local) ... here; use
19949         cgraph_for_node_thunks_and_aliases.
19950         (cgraph_set_nothrow_flag_1): Break out from ...
19951         (cgraph_set_nothrow_flag) ... here;
19952         use cgraph_for_node_thunks_and_aliases.
19953         (cgraph_set_const_flag_1): Break out from ...
19954         (cgraph_set_const_flag) ... here;
19955         use cgraph_for_node_thunks_and_aliases.
19956         (cgraph_set_pure_flag_1): Break out from ...
19957         (cgraph_set_pure_flag) ... here;
19958         use cgraph_for_node_thunks_and_aliases.
19959         (cgraph_propagate_frequency_1): Break out from ...
19960         (cgraph_propagate_frequency) ... here; use
19961         cgraph_for_node_thunks_and_aliases.
19962         (cgraph_used_from_object_file_p): Do not care about aliases.
19963         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
19964         New functions.
19965         (collect_callers_of_node_1, collect_callers_of_node): New functions.
19966
19967 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
19968
19969         PR rtl-optimization/49154
19970         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
19971         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
19972         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
19973         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
19974         * config/cris/cris.h (cris_register_move_cost): Remove
19975         !TARGET_V32 code.  Tweak comments.
19976
19977 2011-06-09  Jan Hubicka  <jh@suse.cz>
19978
19979         * cgraphbuild.c (record_eh_tables): Mark personality function as having
19980         address taken.
19981
19982 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
19983
19984         PR rtl-optimization/49154
19985         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
19986         is a matching slot in the hashtable, assign it to classes_ptr.
19987
19988         PR rtl-optimization/49154
19989         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
19990         register classes.
19991         * doc/tm.texi: Regenerate.
19992
19993 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
19994
19995         PR target/49307
19996         * config/sh/sh.md (UNSPEC_CHKADD): New.
19997         (chk_guard_add): New define_insn_and_split.
19998         (symGOT_load): Use chk_guard_add instead of blockage.
19999
20000 2011-06-09  Kai Tietz  <ktietz@redhat.com>
20001
20002         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
20003
20004 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
20005
20006         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
20007
20008 2011-06-09  Wei Guozhi  <carrot@google.com>
20009
20010         PR target/46975
20011         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
20012         (peephole2 for conditional move): Generate 16 bit instructions.
20013
20014 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
20015
20016         * config/i386/i386.md (*movdi_internal_rex64): Merge
20017         alternatives 6 and 8.
20018
20019 2011-06-09  David Li  <davidxl@google.com>
20020
20021         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
20022         * passes.c (passr_eq): New function.
20023         (create_pass_tab): New function.
20024         (pass_traverse): New function.
20025         (dump_one_pass): New function.
20026         (dump_pass_list): New function.
20027         (dump_passes): New function.
20028
20029 2011-06-09  David Li  <davidxl@google.com>
20030
20031         * tree-complex.c (tree_lower_complex): Gate cleanup.
20032         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
20033         (execute_optimize_stdarg): Ditto.
20034         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
20035         (execute_cleanup_eh_1): Ditto.
20036         (execute_cleanup_eh): Ditto.
20037         * gcse.c (gate_rtl_pre): Ditto.
20038         (execute_rtl_pre): Ditto.
20039         * except.c (finish_eh_generation): Ditto.
20040         (convert_to_eh_region_ranges): Ditto.
20041         * cprop.c (one_cprop_pass): Ditto.
20042
20043 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
20044
20045         PR target/48673
20046         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
20047         in all basic blocks.
20048
20049 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20050
20051         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
20052         (HAVE_ENABLE_EXECUTE_STACK): Define.
20053         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
20054         (HAVE_ENABLE_EXECUTE_STACK): Define.
20055         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
20056         (HAVE_ENABLE_EXECUTE_STACK): Define.
20057         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
20058         (ENABLE_EXECUTE_STACK): Remove.
20059         (HAVE_ENABLE_EXECUTE_STACK): Define.
20060         [IN_LIBGCC2]: Don't include <windows.h>.
20061         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
20062         (HAVE_ENABLE_EXECUTE_STACK): Define.
20063         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
20064         (HAVE_ENABLE_EXECUTE_STACK): Define.
20065         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
20066         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
20067         (HAVE_ENABLE_EXECUTE_STACK): Define.
20068         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
20069         (HAVE_ENABLE_EXECUTE_STACK): Define.
20070         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
20071         (HAVE_ENABLE_EXECUTE_STACK): Define.
20072         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
20073         (HAVE_ENABLE_EXECUTE_STACK): Define.
20074         * config/alpha/alpha.c (alpha_trampoline_init): Test
20075         HAVE_ENABLE_EXECUTE_STACK.
20076         * config/i386/i386.c (ix86_trampoline_init): Likewise.
20077         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
20078         (sparc64_initialize_trampoline): Likewise.
20079         * libgcc2.c [L_enable_execute_stack]: Remove.
20080         * system.h (ENABLE_EXECUTE_STACK): Poison.
20081         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
20082         * doc/tm.texi: Regenerate.
20083         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
20084
20085 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
20086
20087         PR middle-end/49308
20088         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
20089         variable.  After resetting and rescanning insn continue with previous
20090         statement.
20091
20092 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20093
20094         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
20095         (gcc_cv_ld_hidden): Likewise.
20096         * configure: Regenerate.
20097         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
20098         (ix86_stack_protect_fail): Mark unused.
20099         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
20100         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
20101         [TARGET_MACHO]: Don't define.
20102         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
20103         (TARGET_STACK_PROTECT_FAIL): Likewise.
20104         (rs6000_stack_protect_fail): Mark unused.
20105         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
20106         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
20107
20108 2011-06-08  Andi Kleen  <ak@linux.intel.com>
20109
20110         * varasm.c (get_section): Print location of other conflict
20111         for section conflicts.
20112
20113 2011-06-08  Andi Kleen  <ak@linux.intel.com>
20114
20115         * config/i386/driver-i386.c (host_detect_local_cpu):
20116         Add model 0x2d Intel CPU.
20117
20118 2011-06-08  Andi Kleen  <ak@linux.intel.com>
20119
20120         * reginfo.c (global_regs_decl): Add.
20121         (globalize_reg): Add decl parameter. Compute location.  Pass location
20122         to warnings and add inform. Store decl in global_regs_decl.
20123         * rtl.h (globalize_reg): Update prototype.
20124         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
20125
20126 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
20127
20128         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
20129
20130 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
20131
20132         PR target/49305
20133         * config/sh/predicates.md (general_movsrc_operand): Check
20134         mode for memory with indexed address for QI and HImode.
20135         (general_movdst_operand): Likewise.
20136
20137 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
20138
20139         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
20140
20141 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
20142
20143         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
20144         (num_ssa_operands): Likewise.
20145         (op_iter_init_phiuse): Forward-declare.
20146         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
20147
20148 2011-06-08  Nick Clifton  <nickc@redhat.com>
20149
20150         * doc/invoke.texi (ARM Options): Update description of
20151         -mthumb-interwork.
20152
20153 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
20154
20155         * config/i386/driver-i386.c (host_detect_local_cpu): Support
20156         unknown Intel family 0x6 CPUs.
20157
20158 2011-06-08  Martin Jambor  <mjambor@suse.cz>
20159
20160         * tree-sra.c (mark_rw_status): Removed.
20161         (analyze_access_subtree): New parameter parent instead of
20162         mark_read and mark_write, propagate from that.
20163
20164 2011-06-08  Julian Brown  <julian@codesourcery.com>
20165
20166         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
20167         for double-precision helper functions in hard-float mode if only
20168         single-precision arithmetic is supported in hardware.
20169
20170 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
20171
20172         PR rtl-optimization/49303
20173         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
20174         code_motion_path_driver returned 0 or 1.
20175         (sel_region_finish): Clear h_d_i_d.
20176
20177 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
20178
20179         * config/sh/sh.c (prepare_move_operands): Set pic register
20180         appropriately for global and local dynamic tls models even
20181         if flag_pic is unset.
20182
20183 2011-06-07  Jason Merrill  <jason@redhat.com>
20184
20185         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
20186
20187 2011-06-07  Xinliang David Li  <davidxl@google.com>
20188         * passes.c (enable_disable_pass): Handle assembler name.
20189         (is_pass_explicitly_enabled_or_disabled): Ditto.
20190
20191 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20192
20193         PR tree-optimization/48497
20194         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
20195
20196 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20197
20198         PR tree-optimization/46728
20199         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
20200         to use gimple_val_nonnegative_real_p.
20201         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
20202         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
20203
20204 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
20205
20206         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
20207
20208 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
20209
20210         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
20211         constant vectors.
20212
20213 2011-06-07  Richard Guenther  <rguenther@suse.de>
20214
20215         * stor-layout.c (initialize_sizetypes): Initialize all
20216         sizetypes based on target definitions.
20217         (set_sizetype): Remove.
20218         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
20219         * tree.h (set_sizetype): Remove.
20220
20221 2011-06-07  Nick Clifton  <nickc@redhat.com>
20222
20223         * config.gcc: Unify V850 architecture options and add support for
20224         newer V850 architectures.
20225         * config/v850/t-v850e: Delete.
20226
20227 2011-06-07  Richard Guenther  <rguenther@suse.de>
20228
20229         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
20230         Call set_sizetype from here.
20231
20232 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
20233
20234         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
20235         (*maddhisi4tb, *maddhisi4tt): New define_insns.
20236
20237 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
20238             Andrew Stubbs  <ams@codesourcery.com>
20239
20240         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
20241         multiplies.
20242         * doc/md.texi (Canonicalization of Instructions): Document widening
20243         multiply canonicalization.
20244
20245 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
20246
20247         PR gcov-profile/49299
20248         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
20249
20250 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
20251
20252         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
20253         a pointer.
20254         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
20255         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
20256         vect_recog_pow_pattern): Likewise.
20257         (vect_pattern_recog_1): Remove declaration.
20258         (widened_name_p): Remove declaration.  Add new argument to specify
20259         whether to check that both types are either signed or unsigned.
20260         (vect_recog_widen_mult_pattern): Update documentation.  Handle
20261         unsigned patterns and multiplication by constants.
20262         (vect_pattern_recog_1): Update vect_recog_func references.  Use
20263         statement information from the statement returned from pattern
20264         detection functions.
20265         (vect_pattern_recog): Update vect_recog_func reference.
20266         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
20267         multiplication by a constant use the type of the other operand.
20268
20269 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
20270
20271         PR rtl-optimization/49145
20272         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
20273
20274 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
20275
20276         PR debug/49262
20277         * dwarf2out.c (native_encode_initializer): Decrement count in each
20278         iteration.
20279
20280         PR debug/49294
20281         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
20282         non-MODE_INT modes.
20283
20284         PR c++/49264
20285         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
20286         if stmt folded into nothing.
20287         * tree-inline.c (fold_marked_statements): If a builtin at the end of
20288         a bb folded into nothing, just update cgraph edges and move to next bb.
20289         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
20290         to be NULL.  Don't compute count and frequency if new_call is NULL.
20291
20292 2011-06-04  Diego Novillo  <dnovillo@google.com>
20293
20294         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
20295         (cgraph.o): Likewise.
20296         (cgraphunit.o): Likewise.
20297         * cgraphunit.c: Include lto-streamer.h
20298         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
20299         if LTO is enabled.
20300         * lto-streamer-in.c (unpack_value_fields): Call
20301         streamer_hooks.unpack_value_fields if set.
20302         (lto_materialize_tree): For unhandled nodes, first try to
20303         call lto_streamer_hooks.alloc_tree, if it exists.
20304         (lto_input_ts_decl_common_tree_pointers): Move reading of
20305         DECL_INITIAL to lto_streamer_read_tree.
20306         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
20307         (lto_streamer_read_tree): New.
20308         (lto_reader_init): Rename from lto_init_reader.
20309         Move initialization code to lto/lto.c.
20310         * lto-streamer-out.c (pack_value_fields): Call
20311         streamer_hooks.pack_value_fields if set.
20312         (lto_output_tree_ref): For tree nodes that are not normally indexable,
20313         call streamer_hooks.indexable_with_decls_p before giving up.
20314         (lto_output_ts_decl_common_tree_pointers): Move handling
20315         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
20316         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
20317         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
20318         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
20319         (lto_streamer_write_tree): New.
20320         (lto_output): Call lto_streamer_init directly.
20321         (lto_writer_init): Remove.
20322         * lto-streamer.c (streamer_hooks): New.
20323         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
20324         instead of lto_preload_common_nodes.
20325         (lto_is_streamable): Move from lto-streamer.h
20326         (lto_streamer_hooks_init): New.
20327         (streamer_hooks): New.
20328         (streamer_hooks_init): New.
20329         * lto-streamer.h (struct output_block): Forward declare.
20330         (struct lto_input_block): Likewise.
20331         (struct data_in): Likewise.
20332         (struct bitpack_d): Likewise.
20333         (struct streamer_hooks): Declare.
20334         (streamer_hooks): Declare.
20335         (lto_streamer_hooks_init): Declare.
20336         (lto_streamer_write_tree): Declare.
20337         (lto_streamer_read_tree): Declare.
20338         (streamer_hooks_init): Declare.
20339         (lto_is_streamable): Move to lto-streamer.c
20340
20341 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20342
20343         * longlong.h (smul_ppmm): The resulting register pair contains the
20344         higher order word first.
20345
20346 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20347
20348         PR tree-optimization/46728
20349         * builtins.c (powi_table): Remove.
20350         (powi_lookup_cost): Remove.
20351         (powi_cost): Remove.
20352         (expand_powi_1): Remove.
20353         (expand_powi): Remove.
20354         (expand_builtin_pow_root): Remove.
20355         (expand_builtin_pow): Remove.
20356         (expand_builtin_powi): Eliminate handling of constant exponent.
20357         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
20358
20359 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
20360
20361         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
20362
20363 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
20364
20365         * dce.c (reset_unmarked_insns_debug_uses): New.
20366         (delete_unmarked_insns): Skip debug insns.
20367         (prescan_insns_for_dce): Likewise.
20368         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
20369         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
20370         active reg can be found.
20371         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
20372         (convert_regs_1): Use it.
20373
20374 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
20375
20376         * tree-pretty-print.c (dump_function_header): Add flags.
20377         Don't dump decl_uid with nouid.
20378         * tree-pretty-print.h (dump_function_header): Adjust.
20379         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
20380         * passes.c (pass_init_dump_file): Pass dump_flags on.
20381         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
20382
20383 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
20384
20385         PR bootstrap/49270
20386         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
20387
20388 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
20389
20390         PR tree-optimization/49243
20391         * calls.c (setjmp_call_p): Also check if fndecl has the
20392         returns_twice attribute.
20393
20394 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20395
20396         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
20397         -ffast-math etc.
20398
20399 2011-06-06  Richard Henderson  <rth@redhat.com>
20400             Georg-Johann Lay  <avr@gjlay.de>
20401
20402         PR target/42210
20403         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
20404         New predicates.
20405         * config/avr/avr.md ("insv"): New insn expander.
20406         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
20407         "*insv.not.io", "*insv.reg"): New insns.
20408
20409 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
20410
20411         PR target/49285
20412         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
20413         to nonimmediate_operand from memory_operand for the operand that is to
20414         be forced to memory by the expander.  Lose the constraints.
20415
20416 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
20417
20418         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
20419         EH return when delayed branches are disabled.
20420
20421 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
20422
20423         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
20424         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
20425         calculation.
20426         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
20427         Simplify MODE_V1DF and MODE_V2SF handling.
20428         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
20429         Simplify MODE_SF handling.
20430
20431 2011-06-04  Jan Hubicka  <jh@suse.cz>
20432
20433         PR tree-optimization/48893
20434         PR tree-optimization/49091
20435         PR tree-optimization/49179
20436         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
20437         Bounds check.
20438
20439 2011-06-04  Jan Hubicka  <jh@suse.cz>
20440
20441         PR lto/48954
20442         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
20443         bitmaps.
20444
20445 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
20446
20447         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
20448
20449 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
20450
20451         PR target/49281
20452         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
20453         to be strictly smaller than 1 << shiftcount.
20454
20455 2011-06-04  Jan Hubicka  <jh@suse.cz>
20456
20457         PR tree-optimize/48929
20458         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
20459         of empty predicate.
20460
20461 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
20462
20463         PR debug/48333
20464         * calls.c (emit_call_1): Prefer the __builtin declaration of
20465         builtin functions.
20466
20467 2011-06-03   Diego Novillo  <dnovillo@google.com>
20468
20469         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
20470         (lto_input_tree_pointers): Likewise.
20471         * lto-streamer-out.c (pack_value_fields): Likewise.
20472         (lto_output_tree_pointers): Likewise.
20473         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
20474         and OPTIMIZATION_NODE.
20475
20476 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20477
20478         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
20479         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
20480         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
20481         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
20482         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
20483         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
20484         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
20485         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
20486         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
20487         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
20488         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
20489         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
20490         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
20491         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
20492         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
20493         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
20494         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
20495         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
20496         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
20497         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
20498         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
20499         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
20500         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
20501         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
20502         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
20503         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
20504         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
20505         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
20506         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
20507         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
20508         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
20509         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
20510         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
20511         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
20512         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
20513         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
20514         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
20515         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
20516         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
20517         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
20518         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
20519         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
20520         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
20521         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
20522         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
20523         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
20524         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
20525         * system.h (MD_UNWIND_SUPPORT): Poison.
20526         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
20527         * doc/tm.texi: Regenerate.
20528         * unwind-dw2.c: Include md-unwind-support.h instead of
20529         MD_UNWIND_SUPPORT.
20530         * config/ia64/unwind-ia64.c: Likewise.
20531         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
20532
20533 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
20534
20535         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
20536
20537 2011-06-03  Richard Henderson  <rth@redhat.com>
20538             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20539
20540         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
20541         (sigill_hdlr): Correct insn, insn size.
20542         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
20543
20544 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20545
20546         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
20547         t-slibgcc-dummy.
20548         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
20549         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
20550         * config/mips/t-iris: Remove.
20551         * config/mips/t-irix6: New file.
20552         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
20553
20554 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20555
20556         * Makefile.in (LIB2ADDEHDEP): Remove.
20557         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
20558         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
20559         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
20560         * config/t-darwin (LIB2ADDEHDEP): Remove.
20561         * config/t-freebsd (LIB2ADDEHDEP): Remove.
20562         * config/t-linux (LIB2ADDEHDEP): Remove.
20563
20564 2011-06-03  Diego Novillo  <dnovillo@google.com>
20565
20566         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
20567         (lto_register_var_decl_in_symtab): Likewise.
20568         (lto_register_function_decl_in_symtab): Likewise.
20569         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
20570         logic to uniquify_nodes.
20571
20572 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20573
20574         * config/alpha/t-osf5: Remove.
20575         * config/alpha/t-osf-pthread: Remove.
20576         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
20577         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
20578
20579 2011-06-03  Julian Brown  <julian@codesourcery.com>
20580
20581         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
20582         (strongarm1110): Use strongarm tuning.
20583         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
20584         * config/arm/arm.c (arm_strongarm_tune): New.
20585         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
20586         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
20587         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
20588         setting, using previous defaults or 1 for Cortex-A5.
20589         (arm_option_override): Set max_insns_skipped from current tuning.
20590
20591 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
20592
20593         * doc/install.texi (Options specification): Document --with-specs.
20594
20595 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
20596
20597         * config/arm/neon.md (orndi3_neon): Actually split it.
20598
20599 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
20600
20601         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
20602         * var-tracking.c (reverse_op): Limite recurse depth to 5.
20603
20604 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
20605
20606         PR debug/47590
20607         * target.def (delay_sched2, delay_vartrack): New.
20608         * doc/tm.texi.in: Update.
20609         * doc/tm.texi: Rebuild.
20610         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
20611         * var-tracking.c (gate_handle_var_tracking): Likewise.
20612         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
20613         (bfin_flag_var_tracking): Drop.
20614         (output_file_start): Don't save and override flag_var_tracking.
20615         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
20616         (bfin_reorg): Test original variables.
20617         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
20618         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
20619         (ia64_flag_var_tracking): Drop.
20620         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
20621         (ia64_file_start): Don't save and override flag_var_tracking.
20622         (ia64_override_options_after_change): Ditto
20623         flag_schedule_insns_after_reload.
20624         (ia64_reorg): Test original variables.
20625         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
20626         (picochip_flag_var_tracking): Drop.
20627         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
20628         (picochip_option_override): Don't save and override
20629         flag_schedule_insns_after_reload.
20630         (picochip_asm_file_start): Ditto flag_var_tracking.
20631         (picochip_reorg): Test original variables.
20632         * config/spu/spu.c (spu_flag_var_tracking): Drop.
20633         (TARGET_DELAY_VARTRACK): Define.
20634         (spu_var_tracking): New.
20635         (spu_machine_dependent_reorg): Call it.
20636         (asm_file_start): Don't save and override flag_var_tracking.
20637
20638 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
20639
20640         PR target/49163
20641         * config/sh/predicates.md (general_movsrc_operand): Return 0
20642         for memory and memory subreg of which address is an invalid
20643         indexed address for QI and HImode.
20644         (general_movdst_operand): Likewise.
20645
20646 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
20647
20648         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
20649         edges only, when there is a non-local label in the function.
20650         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
20651
20652 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
20653
20654         * config/i386/constraints.md (Y3): New register constraint.
20655         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
20656         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
20657         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
20658         *sse2_interleave_lowv2df.
20659
20660 2011-06-02  Julian Brown  <julian@codesourcery.com>
20661
20662         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
20663         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
20664         (arm_cortex_a5_tune): New.
20665
20666 2011-06-02  Julian Brown  <julian@codesourcery.com>
20667
20668         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
20669         * config/arm/arm.c (arm_default_branch_cost): New.
20670         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
20671         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
20672         (arm_fa726_tune): Set branch_cost field using
20673         arm_default_branch_cost.
20674         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
20675         current_tune structure.
20676         * dojump.c (tm_p.h): Include file.
20677
20678 2011-06-02  Julian Brown  <julian@codesourcery.com>
20679
20680         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
20681         tuning.
20682         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
20683         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
20684         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
20685         field.
20686         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
20687         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
20688         (arm_fa726te_tune): Add prefer_constant_pool setting.
20689         (arm_v6t2_tune, arm_cortex_tune): New.
20690         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
20691         prefer_constant_pool setting.
20692
20693 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
20694
20695         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
20696         switch statement.
20697         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
20698         (*movdf_internal) <case 6,7,8>: Ditto.
20699
20700         * config/i386/constraints.md (Y4): New register constraint.
20701         * config/i386/sse.md (vec_set<mode>_0): Merge with
20702         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
20703         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
20704         *vec_extractv2di_1_sse.
20705         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
20706         and *vec_concatv2di_rex64_sse.
20707
20708 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
20709
20710         PR target/48807
20711         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
20712         of cgraph_local_info for null before attempting to use it.
20713
20714 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
20715
20716         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
20717         (current_function_dynamic_alloc_count): Delete.
20718         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
20719         (expand_builtin_nonlocal_goto): Remove obsolete comment.
20720         (expand_builtin_update_setjmp_buf): Remove dead code.
20721         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
20722         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
20723         support.
20724         * function.c (instantiate_virtual_regs): Likewise.
20725         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
20726         for a block with a single abnormal incoming edge.
20727         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
20728         (SETJMP_VIA_SAVE_AREA): Delete.
20729         * config/sparc/sparc-protos.h (load_got_register): Declare.
20730         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
20731         (load_got_register): Make global.
20732         (sparc_frame_pointer_required): Add 'static'.
20733         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
20734         (sparc_builtin_setjmp_frame_value): New function.
20735         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
20736         (save_stack_nonlocal): New expander.
20737         (restore_stack_nonlocal): Likewise.
20738         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
20739         (nonlocal_goto_internal): New insn.
20740         (goto_handler_and_restore): Delete.
20741         (builtin_setjmp_setup): Likewise.
20742         (do_builtin_setjmp_setup): Likewise.
20743         (setjmp): Likewise.
20744         (builtin_setjmp_receiver): New expander.
20745
20746 2011-06-01  David Li  <davidxl@google.com>
20747
20748         PR middle-end/49261
20749         * tree-pretty-print.c (dump_function_header): Format cleanup.
20750
20751 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
20752
20753         PR target/49238
20754         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
20755         needed when original operands are used for msw_skip comparison.
20756
20757 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
20758
20759         PR debug/49250
20760         * var-tracking.c (add_uses, add_stores): Don't call
20761         cselib_subst_to_values on ENTRY_VALUE.
20762
20763 2011-06-01  Diego Novillo  <dnovillo@google.com>
20764
20765         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
20766         output_record_start with LTO_null instead of output_zero.
20767         (lto_output_ts_binfo_tree_pointers): Likewise.
20768         (lto_output_tree): Likewise.
20769         (output_eh_try_list): Likewise.
20770         (output_eh_region): Likewise.
20771         (output_eh_lp): Likewise.
20772         (output_eh_regions): Likewise.
20773         (output_bb): Likewise.
20774         (output_function): Likewise.
20775         (output_unreferenced_globals): Likewise.
20776         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
20777         instead of NUM_TREE_CODES.
20778         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
20779         (lto_output_int_in_range): Change << to >> when shifting VAL.
20780
20781 2011-06-01  Diego Novillo  <dnovillo@google.com>
20782
20783         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
20784         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
20785
20786 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
20787
20788         PR target/45074
20789         * optabs.h (valid_multiword_target_p): Declare.
20790         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
20791         doing multi-word operations.
20792         * optabs.c (expand_binop): Likewise.
20793         (expand_doubleword_bswap): Likewise.
20794         (expand_absneg_bit): Likewise.
20795         (expand_unop): Likewise.
20796         (expand_copysign_bit): Likewise.
20797         (multiword_target_p): New function.
20798
20799 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
20800
20801         PR rtl-optimization/48830
20802         PR rtl-optimization/48808
20803         PR rtl-optimization/48792
20804         * reload.c (push_reload): Check contains_reg_of_mode.
20805         * reload1.c (strip_paradoxical_subreg): New function.
20806         (gen_reload_chain_without_interm_reg_p): Use it to handle
20807         paradoxical subregs.
20808         (emit_output_reload_insns, gen_reload): Likewise.
20809
20810 2011-06-01  David Li  <davidxl@google.com>
20811
20812         * predict.c : Change pass name
20813         * ipa.c: Ditto.
20814         * dce.c: Ditto.
20815         * tree-profile.c: Ditto.
20816         * except.c: Ditto.
20817
20818 2011-06-01  David Li  <davidxl@google.com>
20819
20820         * tree-pretty-print.c (dump_function_header): New function.
20821         * final.c (rest_of_clean_state): Use header dumper.
20822         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
20823         * passes.c (pass_init_dump_file): Use header dumper.
20824
20825 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
20826
20827         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
20828         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
20829         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
20830         New functions.
20831         (mem_loc_descriptor): Use them.
20832
20833         * var-tracking.c (create_entry_value): New function.
20834         (vt_add_function_parameter): Use it.
20835
20836 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20837
20838         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
20839         Include <signal.h>, <ucontext.h>.
20840         (sigill_caught): Define.
20841         (sigill_hdlr): New function.
20842         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
20843         insns can be executed.
20844         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
20845         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
20846
20847 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20848
20849         * config/t-slibgcc-darwin: Move to ...
20850         * config/t-slibgcc-dummy: ... this.  Clarify comments.
20851         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
20852         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
20853         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
20854         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
20855         Remove i386/t-crtstuff from tmake_file.
20856         (i[34567]86-*-solaris2*): Remove t-svr4,
20857         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
20858         t-slibgcc-dummy.
20859         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
20860         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
20861         sparc/t-crtfm from tmake_file.
20862         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
20863         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
20864         Remove extra_parts.
20865         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
20866         * config/i386/t-nwld (SHLIB_LINK): Remove.
20867         * config/i386/t-rtems-i386: Rename to ...
20868         * config/i386/t-rtems: ... this.
20869         ($(T)crti.o, $(T)crtn.o): Remove.
20870         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
20871         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
20872         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
20873         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
20874         EXTRA_MULTILIB_PARTS): Remove.
20875         * config/sparc/t-sol2-64: Likewise.
20876         * config/sparc/t-sol2: Remove.
20877         * config/sparc/t-crtin: Remove.
20878         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
20879         * config/i386/gmon-sol2.c: Remove.
20880         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
20881         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
20882         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
20883         * config/i386/sol2-gc1.asm: Remove.
20884         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
20885         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
20886         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
20887         * config/t-slibgcc-sld: Remove.
20888
20889 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
20890
20891         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
20892         base_type_for_mode with op_mode instead of mode.
20893
20894 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
20895
20896         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
20897         Cortex-A15.
20898         * config/arm/arm-tune.md: Regenerate.
20899         * config/arm/arm-tables.opt: Regenerate.
20900         * config/arm/arm.c (FL_DIV): Rename...
20901         (FL_THUMB_DIV): ... to this.
20902         (FL_ARM_DIV): Define.
20903         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
20904         (arm_arch_hwdiv): Remove.
20905         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
20906         (arm_issue_rate): Add cortexr5.
20907         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
20908         __ARM_ARCH_EXT_IDIV__.
20909         (TARGET_IDIV): Define.
20910         (arm_arch_hwdiv): Remove.
20911         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
20912         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
20913         (divsi3, udivsi3): New patterns.
20914         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
20915         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
20916
20917 2011-06-01  Martin Jambor  <mjambor@suse.cz>
20918
20919         * ipa-utils.c (ipa_dfs_info): New field scc_no.
20920         * ipa-utils.c (searchc): Set scc_no.
20921
20922 2011-06-01  Martin Jambor  <mjambor@suse.cz>
20923
20924         * ipa-utils.c (searchc_env): New field allow_overwritable.
20925         (searchc): do not ignore edges to overwritable nodes if indicated
20926         by env->allow_overwritable.
20927         (ipa_reduced_postorder): Set env.allow_overwritable.
20928
20929 2011-06-01  Richard Guenther  <rguenther@suse.de>
20930
20931         * tree.c (free_lang_data): Do not reset boolean_type_node nor
20932         char_type_node.
20933         * lto-streamer.c (lto_record_common_node): Take node pointer,
20934         do not register types.
20935         (lto_preload_common_nodes): Explicitly skip preloading nodes
20936         that differ between frontends.
20937
20938 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
20939
20940         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
20941         NON_FLOAT_REGS.
20942
20943 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
20944
20945         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
20946         parameter value for dump. Dump cost on outermost call only.
20947         (rs6000_memory_move_cost): Dump cost on outermost call only.
20948
20949 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
20950
20951         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
20952         DW_OP_GNU_convert ops.
20953
20954         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
20955         cselib_preserve_constants.
20956         (cselib_lookup_1): If cselib_preserve_constants,
20957         a new VALUE is being created for REG and there is a VALUE for the
20958         same register in wider mode, add another loc with lowpart SUBREG of
20959         the wider VALUE.
20960         (cselib_subst_to_values): Handle ENTRY_VALUE.
20961         * var-tracking.c  (replace_expr_with_values): Return NULL for
20962         ENTRY_VALUE too.
20963         * dwarf2out.c (convert_descriptor_to_signed): New function.
20964         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
20965         instead of two shifts.
20966         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
20967         the right mode if needed.
20968         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
20969         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
20970         convert_descriptor_to_signed.
20971         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
20972         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
20973
20974         PR target/48688
20975         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
20976
20977 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
20978
20979         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
20980         of X87MODEI12 and SWI48x instead of SSEMODEI24.
20981         (SWI248x): New mode iterator, rename from X87MODEI.
20982         (X87MODEI): Remove mode iterator.
20983         (X87MODEI12): Ditto.
20984         (SSEMODEI24): Ditto.
20985
20986 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
20987
20988         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
20989         * doc/invoke.texi: Document max-vartrack-expr-depth.
20990         * var-tracking.c (EXPR_DEPTH): New.
20991         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
20992
20993 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
20994
20995         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
20996         * config/i386/sse.md: Add n to negated FMA pattern names.
20997
20998 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
20999
21000         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
21001
21002 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
21003
21004         * gengtype-state.c (read_state_params_structs): Initialize previous.
21005
21006 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
21007
21008         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
21009         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
21010
21011 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
21012
21013         * config/i386/i386.md (*movtf_internal): Avoid allocating general
21014         registers.  Penalize F*r->o alternative to prevent partial memory
21015         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
21016         CONST_DOUBLE immediates when optimizing function for size.  Do not move
21017         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
21018         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
21019         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
21020         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
21021         alternatives.
21022         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
21023
21024         (fp_register_operand splitters): Use fp_register_operand
21025         constraint.  Do not use FP_REG_P in insn condition.
21026         (any_fp_register_operand splitters): Use any_fp_register_operand
21027         constraint.  Do not use ANY_FP_REG_P in insn condition.
21028
21029 2011-05-31  Jan Hubicka  <jh@suse.cz>
21030
21031         * cgraph.h (cgraph_inline_failed_t): Give enum a name
21032         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
21033         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
21034         (lto_output_edge): Use output_enum and var_len_unsigned.
21035         (lto_output_varpool_node): Likewise.
21036         (input_overwrite_node): Do not take resolution parameter;
21037         extract it from a bitpack.
21038         (input_node): Do not read resolution; use input_enum and
21039         var_len_unsigned.
21040         (input_varpool_node): Likewise.
21041         (input_edge): Likewise.
21042         (input_cgraph_1): Likewise.
21043
21044 2011-05-31  Richard Guenther  <rguenther@suse.de>
21045
21046         * gimple.c (gimple_register_canonical_type): Do not register
21047         any types via gimple_register_type.
21048
21049 2011-05-31  Jan Hubicka  <jh@suse.cz>
21050
21051         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
21052         of thunks.
21053
21054 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
21055
21056         PR rtl-optimization/49235
21057         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
21058         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
21059
21060 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
21061
21062         PR tree-optimization/49093
21063         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
21064         data references.
21065
21066 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
21067
21068         PR debug/49047
21069         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
21070         for concrete functions containing the code of cloned functions.
21071
21072 2011-05-31  Richard Guenther  <rguenther@suse.de>
21073
21074         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
21075         to ...
21076         (forward_propagate_into_comparison_1): ... this.
21077         (forward_propagate_comparison): Rename to ...
21078         (forward_propagate_into_comparison): ... this.  Split out
21079         real forward propagation code to ...
21080         (forward_propagate_comparison): ... this.
21081         (forward_propagate_into_gimple_cond): Remove looping.
21082         (forward_propagate_into_cond): Likewise.
21083         (simplify_not_neg_expr): Return whether we have done something.
21084         (simplify_gimple_switch): Likewise.
21085         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
21086         (ssa_forward_propagate_and_combine): ... this.  Re-structure
21087         to do a forward forward-propagation walk on BBs and a backward
21088         stmt combining walk on BBs.  Consistently re-scan changed statements.
21089         (pass_forwprop): Adjust.
21090
21091 2011-05-30  Ian Lance Taylor  <iant@google.com>
21092
21093         * godump.c (go_format_type): Correct length of name added to
21094         obstack for anonymous field.
21095
21096 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
21097
21098         PR target/49186
21099         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
21100         part of the second operand is 0.
21101
21102 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
21103
21104         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
21105         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
21106         to memory for !TARGET_MEMORY_MISMATCH_STALL.
21107         (*movdf_internal_rex64): Do not penalize F->r alternative.
21108         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
21109         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
21110         when optimizing function for size.  Do not move CONST_DOUBLEs
21111         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
21112         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
21113         SUBREGs.  Do not check for MEM_P operands in the insn condition,
21114         check for ANY_FP_REGNO_P instead.
21115         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
21116         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
21117         function for speed.
21118         * config/i386/i386.c (ix86_option_override_internal): Do not
21119         set TARGET_INTEGER_DFMODE_MOVES here.
21120
21121 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
21122
21123         PR target/49168
21124         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
21125
21126 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
21127
21128         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
21129         DW_TAG_rvalue_reference_type even for
21130         -gdwarf-4 -fno-debug-types-section.
21131
21132 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21133
21134         PR tree-optimization/46728
21135         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
21136         (build_and_insert_binop): New.
21137         (gimple_expand_builtin_pow): Reorder args for
21138         build_and_insert_call; use build_and_insert_binop; add more
21139         optimizations for fractional exponents.
21140
21141 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
21142
21143         PR bootstrap/49190
21144
21145         Revert:
21146         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
21147
21148         * tree.h (struct tree_identifier): Inherit from tree_typed, not
21149         tree_common.
21150         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
21151         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
21152         TS_BASE instead of TS_COMMON.
21153         * varasm.c (assemble_name): Remove assert.
21154
21155 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
21156
21157         * config.gcc: Keep obselete list sorted.
21158
21159 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
21160             Eric Botcazou  <ebotcazou@adacore.com>
21161
21162         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
21163         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
21164         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
21165         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
21166         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
21167
21168 2011-05-30  Richard Guenther  <rguenther@suse.de>
21169
21170         * gimple.c (gimple_types_compatible_p_1): Compare record
21171         and union type members properly.
21172
21173 2011-05-30  Richard Guenther  <rguenther@suse.de>
21174
21175         PR tree-optimization/49210
21176         * ipa-split.c (split_function): Care for the case where the call
21177         result is not trivially convertible to the result holding variable.
21178
21179 2011-05-30  Richard Guenther  <rguenther@suse.de>
21180
21181         PR tree-optimization/49218
21182         * tree-vrp.c (adjust_range_with_scev): Properly check whether
21183         overflow occured.
21184
21185 2011-05-30  Richard Guenther  <rguenther@suse.de>
21186
21187         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
21188         New function split out from ...
21189         (forward_propagate_into_gimple_cond): ... here.  Adjust.
21190         (forward_propagate_into_cond): Likewise.
21191         (forward_propagate_comparison): Also propagate into
21192         comparisons on assignment RHS.  Change return value to
21193         behave similar to forward_propagate_into_cond.
21194         (tree_ssa_forward_propagate_single_use_vars): Handle
21195         strict-overflow warnings properly for forward_propagate_comparison.
21196
21197 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21198
21199         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
21200         from plugin linker.
21201         * configure: Regenerate.
21202
21203 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
21204
21205         PR tree-optimization/49199
21206         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
21207         non-reduction operands are either defined in the loop or by induction.
21208
21209 2011-05-29  Xinliang David Li  <davidxl@google.com>
21210
21211         * opts-global.c (handle_common_deferred_options): Handle new options.
21212         * passes.c (register_one_dump_file): Call register_pass_name.
21213         (execute_one_pass): Check explicit enable/disable flag.
21214         (passr_hash): New function.
21215         (passr_eq): Ditto.
21216         (register_pass_name): Ditto.
21217         (get_pass_by_name): Ditto.
21218         (pass_hash): Ditto.
21219         (pass_eq): Ditto.
21220         (enable_pass): Ditto.
21221         (disable_pass): Ditto.
21222         (is_pass_explicitly_enabled_or_disabled): Ditto.
21223
21224 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
21225
21226         * config/i386/i386.md (*movoi_internal_avx): Use
21227         standard_sse_constant_opcode for alternative 0.
21228         (*movti_internal_sse): Ditto.
21229         (*movti_internal_rex64): Use standard_sse_constant_opcode for
21230         alternative 2.
21231         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
21232         sselog1 type moves.
21233         (*movsi_internal): Ditto.
21234         (*movdi_internal): Ditto.  Add ssecvt type moves.
21235
21236 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
21237
21238         PR target/48830
21239         * rtlanal.c (simplify_subreg_regno): Adjust comment.
21240
21241 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
21242
21243         PR rtl-optimization/49095
21244         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
21245         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
21246
21247 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
21248
21249         PR target/43995
21250         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
21251         recurse_p argument.  Only follow register copies if it is set,
21252         and prevent mips_find_pic_call_symbol from recursing.
21253         (mips_find_pic_call_symbol): Add a recurse_p argument.
21254         Pass it to mips_pic_call_symbol_from_set.
21255         (mips_annotate_pic_calls): Update accordingly.
21256
21257 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
21258
21259         * emit-rtl.c (try_split): Use a loop to search for
21260         NOTE_INSN_CALL_ARG_LOCATIONs.
21261
21262 2011-05-29  Richard Guenther  <rguenther@suse.de>
21263
21264         PR tree-optimization/49217
21265         * ipa-pure-const.c (propagate_pure_const): Fix typos.
21266
21267 2011-05-28  Jan Hubicka  <jh@suse.cz>
21268
21269         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
21270         length.
21271         (string_slot_free): Remove
21272         (create_output_block): Initialize obstack.
21273         (destroy_output_block): Free obstack.
21274         (lto_string_index): Add PERSISTENT parameter; do not duplicate
21275         the string unless it needs to be added into the hash.
21276         (lto_output_string_with_length): Add persistent attribute;
21277         handle NULL strings.
21278         (lto_output_string): Add PERSISTENT parameter.
21279         (output_string_cst, output_identifier): Simplify.
21280         (lto_output_location_bitpack): Update.
21281         (lto_output_builtin_tree): Update.
21282         * lto-streamer.h (struct output_block): Add obstack.
21283         (lto_output_string, lto_output_string_with_length): Remove
21284         declarations; functions are static now.
21285
21286 2011-05-28  Jan Hubicka  <jh@suse.cz>
21287
21288         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
21289         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
21290         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
21291         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
21292         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
21293         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
21294         unpack_ts_decl_with_vis_value_fields,
21295         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
21296         lto_get_builtin_tree): Use enum and variable length i/o.
21297         * basic-block.h (profile_status_d): Add PROFILE_LAST.
21298         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
21299         New functions.
21300         (bp_pack_enum, bp_unpack_enum): New macros.
21301
21302 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
21303
21304         * genrecog.c: Remove redundant forward declarations.
21305
21306 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
21307
21308         * config.gcc: Deprecate mips*-*-openbsd*.
21309
21310 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
21311
21312         PR bootstrap/49195
21313         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
21314         for match_op_dup.
21315
21316 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
21317
21318         PR middle-end/48981
21319         * gengtype.c (vec_prefix_type): New function.
21320         (note_def_vec): Use vec_prefix_type and change the length
21321         attribute to be based on the prefix.
21322         * vec.c: Include coretypes.h before vec.h.
21323         (struct vec_prefix): Remove.
21324         (vec_gc_p_reserve): Change the offsetof to sizeof.
21325         (vec_gc_p_reserve_exact): Likewise.
21326         (vec_heap_p_reserve): Likewise.
21327         (vec_heap_p_reserve_exact): Likewise.
21328         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
21329         (vec_stack_p_reserve): Change the offsetof to sizeof.
21330         (vec_stack_p_reserve_exact): Likewise.
21331         * vec.h (struct vec_prefix): New struct definition.
21332         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
21333         (VEC_T_GTY(T,B)): Likewise.
21334         (DEF_VEC_FUNC_P(T)): Use prefix field.
21335         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
21336         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
21337
21338 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21339
21340         PR tree-optimization/46728
21341         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
21342         (powi_as_mults): Add gimple_set_location.
21343         (build_and_insert_call): New.
21344         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
21345         0.5, 0.25, 0.75, 1./3., or 1./6.
21346
21347 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
21348
21349         * doc/contrib.texi: Update copyright years.
21350         (Contributors): Add Zdenek Sojka.
21351
21352 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
21353
21354         * c-decl.c (c_push_function_context): Copy the current statement
21355         list stack.
21356         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
21357         (finish_struct): Call building_stmt_list_p instead of checking
21358         cur_stmt_list.
21359         * c-parser.c (c_parser_postfix_expression): Likewise.
21360         * c-typeck.c (c_end_compound_stmt): Likewise.
21361         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
21362         * tree-iterator.c (stmt_list_cache): Change to a VEC.
21363         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
21364         (free_stmt_list): Likewise.
21365         * tree.h (struct tree_statement_list): Include typed_tree instead
21366         of tree_common.
21367         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
21368         as TS_TYPED instead of TS_COMMON.
21369
21370 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21371             Uros Bizjak  <ubizjak@gmail.com>
21372
21373         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
21374         (HAVE_AS_IX86_TLSGDPTL): Define.
21375         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
21376         (HAVE_AS_IX86_TLSLDMPLT): Define.
21377         * configure: Regenerate.
21378         * config.in: Regenerate.
21379         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
21380         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
21381         TARGET_SUN_TLS, use @tlsgdplt or @plt.
21382         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
21383         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
21384         @tlsldmplt or @plt.
21385         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
21386
21387 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
21388
21389         * sched-int.h (struct _haifa_deps_insn_data): New members cond
21390         and reverse_cond.
21391         (INSN_COND, INSN_REVERSE_COND): New macros.
21392         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
21393         once.
21394         (sched_get_condition_with_rev): Cache the results, and look them up
21395         if possible.
21396         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
21397         are clobbered by the current insn.
21398         * target.def (exposed_pipline): New sched data hook.
21399         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
21400         * doc/tm.texi: Regenerate.
21401
21402 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21403
21404         PR tree-optimization/49170
21405         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
21406         sincos or cexp.
21407
21408 2011-05-27  Richard Guenther  <rguenther@suse.de>
21409
21410         PR middle-end/49189
21411         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
21412         of comparisons.
21413
21414 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
21415
21416         * haifa-sched.c (sched_scan_info): Remove.
21417         (schedule_block): Call sched_extend_luids rather than sched_init_luids
21418         with NULL args.
21419         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
21420         Remove functions.
21421         (sched_scan): Remove.
21422         (sched_extend_luids): Renamed from luids_extend_insn and no longer
21423         static.  All callers changed.
21424         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
21425         static.  All callers changed.
21426         (sched_init_luids): Remove all arguments except the first.  All
21427         callers changed.  Don't use sched_scan.
21428         (haifa_init_h_i_d): Likewise.
21429         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
21430         manually rather than using sched_init_luids.  Likewise with
21431         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
21432         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
21433         rather than sched_init_luids with NULL args.
21434         * sel-sched-ir.c (new_insns): Remove variable.
21435         (sched_scan): New static function, previously in haifa-sched.c.  Remove
21436         all arguments but the first two; all callers changed.
21437         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
21438         rather than sched_init_luids.
21439         (sel_init_bbs): Remove second argument.  All callers changed.
21440         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
21441         with NULL arguments.
21442         (create_insn_rtx_from_pattern): Likewise.
21443         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
21444         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
21445         (sched_init_insn_luid, sched_extend_luids): Declare.
21446         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
21447         declarations.
21448
21449 2011-05-27  Richard Guenther  <rguenther@suse.de>
21450
21451         PR middle-end/49177
21452         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
21453         A CMP B ? (T) true : (T) false for non-integral types T again.
21454
21455 2011-05-27  Jan Hubicka  <jh@suse.cz>
21456
21457         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
21458         so 0 means NULL string.
21459         (lto_output_string_with_length): ... here.
21460         (lto_output_string, output_string_cst, output_identifier): Update
21461         handling of NULL strings.
21462         (lto_output_location_bitpack): New function.
21463         (lto_output_location): Use it.
21464         (lto_output_tree_ref): Use output_record_start.
21465         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
21466         len values.
21467         * lto-streamer-in.c (string_for_index): Break out from ...; offset
21468         values by 1.
21469         (input_string_internal): ... here;
21470         (input_string_cst, input_identifier, lto_input_string): Update handling
21471         of NULL strings.
21472         (lto_input_location_bitpack): New function
21473         (lto_input_location): Use it.
21474         (unpack_ts_type_common_value_fields): Pack align & alias in var len
21475         values.
21476         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
21477         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
21478         (bp_pack_value): Sanity check the value range.
21479         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
21480         New functions.
21481         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
21482         New functions.
21483
21484 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
21485
21486         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
21487         call_arg_location instructions down the floor.
21488
21489 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
21490
21491         PR rtl-optimization/49154
21492         * ira.c (setup_pressure_classes): Process class without sublcasses
21493         as a candidate for pressure classes.
21494
21495 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
21496
21497         PR rtl-optimization/48575
21498         * genrecog.c (position_type): New enum.
21499         (position): New structure.
21500         (decision): Use position structure instead of a string.
21501         (root_pos, peep2_insn_pos_list): New variables.
21502         (next_position, compare_positions): New functions.
21503         (new_decision): Use position structures instead of strings.
21504         (maybe_both_true): Likewise.
21505         (change_state): Likewise.
21506         (write_tree): Likewise.
21507         (make_insn_sequence): Likewise.
21508
21509 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
21510
21511         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
21512         TS_BASE instead of TS_COMMON.
21513         (find_decls_types_r): Check for TS_TYPED structure before looking at
21514         TREE_TYPE.
21515         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
21516         Add chain field.
21517         (BLOCK_CHAIN): Use new chain field.
21518
21519 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
21520
21521         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
21522         moves expensive on Power7 also.
21523
21524 2011-05-26  Richard Guenther  <rguenther@suse.de>
21525
21526         * fold-const.c (fold_unary_loc): Remove bogus code.
21527
21528 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
21529
21530         * tree.h (struct tree_identifier): Inherit from tree_typed, not
21531         tree_common.
21532         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
21533         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
21534         TS_BASE instead of TS_COMMON.
21535         * varasm.c (assemble_name): Remove assert.
21536
21537 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
21538
21539         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
21540         substituted first.
21541         * libgcc-std.ver: Delete file.
21542
21543 2011-05-26  Richard Guenther  <rguenther@suse.de>
21544
21545         PR tree-optimization/48702
21546         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
21547         only when we know the base address is within bounds.
21548         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
21549         assume the base address of TARGET_MEM_REFs is in bounds.
21550
21551 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21552
21553         PR target/49099
21554         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
21555         declaration in TARGET_SOLARIS.
21556
21557 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
21558
21559         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
21560         The instruction is then expanded explicitly.
21561         (supported_compare): Callable instruction.
21562         (compare): Likewise.
21563
21564 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
21565
21566         PR c++/49165
21567         * gimplify.c (shortcut_cond_r): Don't special case
21568         COND_EXPRs if they have void type on one of their arms.
21569
21570 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
21571
21572         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
21573         to reduce duplication, and to achieve a slightly more logical order
21574         of operations.
21575
21576 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
21577
21578         PR tree-optimization/49161
21579         * tree-vrp.c (struct case_info): New type.
21580         (compare_case_labels): Sort case_info structs instead of
21581         trees, and not primarily by CASE_LABEL uids but by
21582         label_for_block indexes.
21583         (find_switch_asserts): Put case labels into struct case_info
21584         array instead of TREE_VEC, adjust sorting, compare label_for_block
21585         values instead of CASE_LABELs.
21586
21587 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
21588
21589         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
21590         ("orndi3_neon"): Likewise.
21591         ("bic<mode>3_neon"): Likewise.
21592
21593 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
21594
21595         PR tree-optimization/49038
21596         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
21597         Ensure at least one epilogue iteration if required by data
21598         accesses with gaps.
21599         * tree-vectorizer.h (struct _loop_vec_info): Add new field
21600         to mark loops that require peeling for gaps.
21601         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
21602         (vect_get_known_peeling_cost): Take peeling for gaps into
21603         account.
21604         (vect_transform_loop): Generate epilogue if required by data
21605         access with gaps.
21606         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
21607         loop as requiring an epilogue if there are gaps in the end of
21608         the strided group.
21609
21610 2011-05-25  Ian Lance Taylor  <iant@google.com>
21611
21612         * godump.c (go_format_type): Output the first field with a usable
21613         Go type, if any.
21614
21615 2011-05-25  Ian Lance Taylor  <iant@google.com>
21616
21617         * godump.c (go_format_type): Check for invalid type names, pointer
21618         target types, and struct field types.
21619
21620 2011-05-25  Jason Merrill  <jason@redhat.com>
21621
21622         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
21623
21624 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
21625
21626         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
21627
21628 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
21629
21630         * config/i386/i386.md (*movqi_extv_1)): Put back
21631         "register_operand" check in "type" calculation.
21632         (*movqi_extzv_2): Likewise.
21633
21634 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
21635
21636         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
21637
21638 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
21639
21640         PR bootstrap/49160
21641         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
21642         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
21643         __divxc3, __divtc3): Wrap definitions in #ifndef.
21644
21645 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
21646
21647         PR target/49142
21648         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
21649         "register_operand" check and replace q_regs_operand with
21650         QIreg_operand in "type" calculation.
21651         (*movqi_extv_1): Likewise.
21652         (*movqi_extzv_2_rex64): Likewise.
21653         (*movqi_extzv_2): Likewise.
21654
21655         * config/i386/predicates.md (QIreg_operand): New.
21656
21657 2011-05-25  Richard Guenther  <rguenther@suse.de>
21658
21659         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
21660         type-based offset disambiguation, streamline MEM_REF and
21661         TARGET_MEM_REF handling.
21662
21663 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
21664
21665         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
21666         (bdesc_special_args): Add pause intrinsic.
21667
21668         * config/i386/i386.md (UNSPEC_PAUSE): New.
21669         (pause): Likewise.
21670         (*pause): Likewise.
21671         * config/i386/ia32intrin.h (__pause): Likewise.
21672
21673         * doc/extend.texi (X86 Built-in Functions): Add documentation for
21674         pause intrinsic.
21675
21676 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21677
21678         PR tree-optimization/46728
21679         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
21680         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
21681
21682 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
21683
21684         * tree.h (struct tree_exp): Inherit from struct tree_typed.
21685         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
21686         instead of TS_COMMON.
21687
21688 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
21689
21690         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
21691         LIBGCC2_GNU_PREFIX is defined.
21692         (__N): New macro.
21693         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
21694         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
21695         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
21696         __clz_tab): Define using __N.
21697         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
21698         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
21699         * target.def (libfunc_gnu_prefix): New hook.
21700         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
21701         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
21702         * doc/tm.texi: Regenerate.
21703         * system.h (LIBGCC2_GNU_PREFIX): Poison.
21704         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
21705         account.
21706         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
21707         (init_optabs): Likewise for the bswap libfuncs.
21708         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
21709         and divide.
21710         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
21711         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
21712         * libgcc-std.ver: Remove.
21713         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
21714         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
21715         libgcc-std.ver.
21716         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
21717         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
21718         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
21719         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
21720         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
21721         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
21722         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
21723         * config/fixed-bit.h (FIXED_OP): Define differently depending on
21724         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
21725         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
21726
21727 2011-05-25  Jan Hubicka  <jh@suse.cz>
21728
21729         * lto-streamer-out.c (output_record_start): Use lto_output_enum
21730         (lto_output_tree): Use output_record_start.
21731         * lto-streamer-in.c (input_record_start): Use lto_input_enum
21732         (lto_get_pickled_tree): Use input_record_start.
21733         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
21734         (lto_value_range_error): New function.
21735         * lto-streamer.h (lto_value_range_error): Declare.
21736         (lto_output_int_in_range, lto_input_int_in_range): New functions.
21737         (lto_output_enum, lto_input_enum): New macros.
21738
21739 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
21740
21741         * common.opt (flag_stack_usage_info): New variable.
21742         (-Wstack-usage): New option.
21743         * doc/invoke.texi (Warning options): Document -Wstack-usage.
21744         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
21745         <OPT_fstack_usage>: Likewise.
21746         * toplev.c (output_stack_usage): Handle -Wstack-usage.
21747         * calls.c (expand_call): Test flag_stack_usage_info variable instead
21748         of flag_stack_usage.
21749         (emit_library_call_value_1): Likewise.
21750         * explow.c (allocate_dynamic_stack_space): Likewise.
21751         * function.c (instantiate_virtual_regs ): Likewise.
21752         (prepare_function_start): Likewise.
21753         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
21754         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
21755         * config/arm/arm.c (arm_expand_prologue): Likewise.
21756         (thumb1_expand_prologue): Likewise.
21757         * config/avr/avr.c (expand_prologue): Likewise.
21758         * config/i386/i386.c (ix86_expand_prologue): Likewise.
21759         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
21760         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
21761         * config/mips/mips.c (mips_expand_prologue): Likewise.
21762         * config/pa/pa.c (hppa_expand_prologue): Likewise.
21763         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
21764         * config/s390/s390.c (s390_emit_prologue): Likewise.
21765         * config/sh/sh.c (sh_expand_prologue): Likewise.
21766         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
21767         * config/spu/spu.c (spu_expand_prologue): Likewise.
21768
21769 2011-05-25  Richard Guenther  <rguenther@suse.de>
21770
21771         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
21772         (gimple_canonical_types_compatible_p): Likewise.
21773
21774 2011-05-25  Jan Hubicka  <jh@suse.cz>
21775
21776         PR middle-end/49062
21777         * ipa.c (function_and_variable_visibility): Only add to same
21778         comdat group list if DECL_ONE_ONLY.
21779
21780 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
21781
21782         PR rtl-optimization/49014
21783         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
21784
21785 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
21786
21787         PR target/49128
21788         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
21789
21790 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
21791
21792         PR rtl-optimization/48757
21793         * ira-build.c (loop_with_eh_edge_p): Rename to
21794         loop_with_complex_edge_p, check edges on complexity, make function
21795         conditional.
21796         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
21797         conditional.
21798
21799 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
21800
21801         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
21802         force flag_ira_share_save_slots to 0.
21803
21804 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
21805
21806         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
21807         (vt_initialize): Set PROLOGUE_BB unconditionally.
21808         Add block comment about CFA_BASE_RTX machinery.
21809         Reset FP_CFA_OFFSET to -1 on all invalid paths.
21810         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
21811
21812 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
21813
21814         PR objc/48187
21815         * c-parser.c (c_parser_objc_class_instance_variables): More robust
21816         parsing of syntax error in ObjC instance variable lists.  In
21817         particular, avoid an infinite loop if there is a stray ']'.
21818         Updated error message.
21819
21820 2011-05-24  Ian Lance Taylor  <iant@google.com>
21821
21822         * godump.c (go_define): Don't accept a string immediately after
21823         another operand.
21824
21825 2011-05-24  Ian Lance Taylor  <iant@google.com>
21826
21827         * godump.c (struct godump_container): Add invalid_hash field.
21828         (go_format_type): Return false if type is found in invalid_hash.
21829         (go_output_typedef): Add invalid type to invalid_hash.
21830         (go_finish): Create and delete invalid_hash.
21831
21832 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21833
21834         PR tree-optimization/46728
21835         * tree-ssa-math-opts.c (powi_table): New.
21836         (powi_lookup_cost): New.
21837         (powi_cost): New.
21838         (powi_as_mults_1): New.
21839         (powi_as_mults): New.
21840         (gimple_expand_builtin_powi): New.
21841         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
21842         (gate_cse_sincos): Remove sincos/cexp restriction.
21843
21844 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21845
21846         PR target/3746
21847         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
21848         mips-tdump native.
21849         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
21850         * mips-tdump.c: Likewise.
21851
21852 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
21853
21854         PR target/49128
21855         * config/i386/driver-i386.c (host_detect_local_cpu): Always
21856         add -mno-XXX.  Handle FMA.
21857
21858 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
21859
21860         PR rtl-optimization/48633
21861         * ira-build.c (loop_with_eh_edge_p): New function.
21862         (mark_loops_for_removal): Use it.
21863
21864 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
21865
21866         PR rtl-optimization/48971
21867         * ira.c (setup_pressure_classes): Don't check register move cost
21868         for classes with one registers.  Don't add pressure class if there
21869         is a pressure class with the same available hard registers.
21870         Check contains_reg_of_mode.  Fix a typo in collecting
21871         temp_hard_regset.  Ignore hard registers not belonging to a class.
21872
21873 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
21874
21875         PR target/49133
21876         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
21877
21878 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
21879             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21880
21881         PR gcov-profile/48845
21882         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
21883
21884 2011-05-24  Richard Guenther  <rguenther@suse.de>
21885
21886         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
21887         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
21888         (gimple_types_compatible_p_1): Adjust.
21889         (iterative_hash_canonical_type): Do not bother about complete vs.
21890         incomplete types.
21891         (gimple_canonical_types_compatible_p): Likewise.
21892
21893 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21894
21895         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
21896
21897 2011-05-24  Richard Guenther  <rguenther@suse.de>
21898
21899         PR bootstrap/49078
21900         * gimple.c (gimple_register_canonical_type): Revert
21901         previous change.
21902         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
21903         does not for a tree for the case where it matters.  Cache
21904         pointer-type alias-sets.
21905
21906 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
21907
21908         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
21909         (OBJS): Remove options.o, opts-common.o and prefix.o.
21910         (OBJS-libcommon-target): New.
21911         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
21912         (BACKEND): Include libcommon-target.a.
21913         (MOSTLYCLEANFILES): Include libcommon-target.a.
21914         (libcommon-target.a): New.
21915         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
21916         prefix.o.
21917
21918 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
21919
21920         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
21921         parts of output shared with the driver.
21922         * optc-gen.awk: Don't generate parts of output not shared with the
21923         driver.
21924         * opth-gen.awk: Remove GCC_DRIVER conditionals.
21925         * doc/options.texi (SourcerInclude): Mention options-save.c.
21926         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
21927         (OBJS): Add options-save.o.
21928         (options-save.c, options-save.o): New.
21929         (options.o): Update dependencies.
21930         (gcc-options.o): Remove.
21931         (mostlyclean): Remove options-save.c.
21932
21933 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
21934
21935         PR debug/49032
21936         * dbxout.c: Include cgraph.h.
21937         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
21938         and without value expr, return NULL if no varpool node exists for
21939         it or if it is not needed.
21940         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
21941
21942         PR c/49120
21943         * c-decl.c (start_decl): Convert expr to void_type_node.
21944
21945 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
21946
21947         PR rtl-optimization/48826
21948         * emit-rtl.c (try_split): When splitting a call that is followed
21949         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
21950
21951 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
21952
21953         * cfgexpand.c (expand_debug_expr): For unused non-addressable
21954         parameters passed in memory prefer using DECL_INCOMING_RTL over
21955         the pseudos it will be copied into.
21956
21957 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
21958
21959         PR target/47315
21960         * config/i386/i386.c (ix86_option_override_internal): Save the
21961         initial options after checking vzeroupper.
21962
21963 2011-05-23  David Li  <davidxl@google.com>
21964
21965         PR tree-optimization/48988
21966         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
21967         Initialize has_valid_pred for each pred chain.
21968
21969 2011-05-23  Richard Guenther  <rguenther@suse.de>
21970
21971         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
21972         (iterative_hash_gimple_type): Always hash type names.
21973
21974 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
21975
21976         * c-typeck.c (build_function_call_vec): Tweak call to
21977         check_function_arguments.
21978
21979 2011-05-23  Richard Guenther  <rguenther@suse.de>
21980
21981         PR tree-optimization/49115
21982         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
21983         is not necessarily carried out, do not claim it kills the ref.
21984         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
21985
21986 2011-05-23  Richard Guenther  <rguenther@suse.de>
21987
21988         PR middle-end/15419
21989         * builtins.c (fold_builtin_memory_op): Be less restrictive about
21990         what pointer types we accept for folding.
21991
21992 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21993
21994         * gthr-gnat.c: Remove.
21995         * gthr-gnat.h: Remove.
21996         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
21997         * config/t-freebsd (LIB2ADDEH): Likewise.
21998         * config/t-linux (LIB2ADDEH): Likewise.
21999         * config/t-sol2 (LIB2ADDEH): Likewise.
22000         * config/ia64/t-vms (LIB2ADDEH): Likewise.
22001         * configure.ac (target_thread_file): Remove gnat handling.
22002         * configure: Regenerate.
22003         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
22004
22005 2011-05-23  Tristan Gingold  <gingold@adacore.com>
22006             Eric Botcazou  <ebotcazou@adacore.com>
22007
22008         * gcov.c (create_file_names): If no object directory is specified,
22009         keep the directory of the file.
22010
22011 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22012
22013         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
22014         * configure: Regenerate.
22015
22016 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
22017
22018         PR middle-end/48973
22019         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
22020         failed and the comparison has a single bit signed type, use
22021         constm1_rtx instead of const1_rtx for true value.
22022         (do_store_flag): If ops->type is single bit signed type, disable
22023         signel bit test optimization and pass -1 instead of 1 as last
22024         parameter to emit_store_flag_force.
22025
22026 2011-05-23  Tom de Vries  <tom@codesourcery.com>
22027
22028         PR target/45098
22029         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
22030         function.
22031         (infer_loop_bounds_from_undefined): Use new function.
22032
22033 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
22034
22035         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
22036         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
22037         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
22038         and -O0 otherwise.
22039         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
22040
22041 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
22042
22043         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
22044         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
22045         returns true.
22046
22047 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
22048
22049         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
22050
22051 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
22052
22053         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
22054         UNSPEC_MOVE_PIC pattern.
22055
22056 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
22057
22058         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
22059         (sparc-*-rtems*): Likewise.
22060         (sparc64-*-elf*): Likewise.
22061         (sparc64-*-rtems*): Likewise.
22062         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
22063         * config/sparc/t-crtin: New file.
22064         * config/sparc/t-sol2 (crti.o): Delete rule.
22065         (crtn.o): Likewise.
22066         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
22067         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
22068         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
22069         (ENDFILE_SPEC): Add crtn.o.
22070
22071 2011-05-22  Tom de Vries  <tom@codesourcery.com>
22072
22073         PR middle-end/48689
22074         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
22075         CODE_CONTAINS_STRUCT (TS_COMMON).
22076
22077 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
22078
22079         PR middle-end/49029
22080         * expmed.c (extract_fixed_bit_field): Test whether target can be used
22081         only after deciding which mode to use.
22082
22083 2011-05-22  Tom de Vries  <tom@codesourcery.com>
22084
22085         PR target/45098
22086         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
22087         for call to get_shiftadd_cost.
22088
22089 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
22090
22091         PR target/49104
22092         * config/i386/cpuid.h (bit_MMXEXT): New define.
22093
22094 2011-05-22  Nick Clifton  <nickc@redhat.com>
22095
22096         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
22097         initialisation of non-existant args[2] element.  Use args[] array
22098         not arg[] array to pass arguments to build_function_type_list.
22099
22100 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
22101
22102         PR tree-optimization/49087
22103         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
22104
22105 2011-05-21  Jason Merrill  <jason@redhat.com>
22106
22107         PR c++/49092
22108         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
22109         static storage duration.
22110
22111 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
22112
22113         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
22114         frame pointer.
22115
22116 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
22117
22118         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
22119         false if there are call-saved registers here...
22120         (sparc_can_use_return_insn_p): ...but here instead.
22121         (save_or_restore_regs): Fix thinko.
22122         (sparc_expand_prologue): Use current_function_is_leaf.
22123         (sparc_frame_pointer_required): Likewise.
22124
22125 2011-05-21  Nick Clifton  <nickc@redhat.com>
22126
22127         PR target/49098
22128         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
22129
22130 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
22131
22132         * gengtype.c (walk_type): Implemented "atomic" GTY option.
22133         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
22134
22135 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
22136
22137         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
22138         * optc-gen.awk: Move common code to opt-read.awk.
22139         * opth-gen.awk: Likewise.
22140         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
22141
22142 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
22143
22144         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
22145
22146 2011-05-20  Tom de Vries  <tom@codesourcery.com>
22147
22148         PR target/45098
22149         * tree-ssa-loop-ivopts.c: Include expmed.h.
22150         (get_shiftadd_cost): New function.
22151         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
22152
22153 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
22154
22155         PR bootstrap/49086
22156         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
22157         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
22158
22159 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
22160
22161         * Makefile.in: Update comment referring to $(OBJS-common).
22162
22163 2011-05-20  Ian Lance Taylor  <iant@google.com>
22164
22165         * godump.c (go_output_typedef): Put enum constants in the macro
22166         hash table to avoid duplicate Go const definitions.
22167
22168 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
22169
22170         * Makefile.in (LIBDEPS): Add libcommon.a.
22171         (LIBS): Likewise.
22172         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
22173         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
22174         pretty-print.o and version.o.
22175         (OBJS-libcommon): New.
22176         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
22177         (BACKEND): Add libcommon.a.
22178         (MOSTLYCLEANFILES): Likewise.
22179         (libcommon.a): New.
22180         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
22181         (cpp$(exeext)): Likewise.
22182         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
22183         pretty-print.o and input.o.
22184         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
22185         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
22186         (errors.o): Remove.
22187         (mips-tfile): Don't explicitly use version.o.
22188         (mips-tdump): Likewise.
22189         (gcov.o): Depend on $(DIAGNOSTIC_H).
22190         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
22191         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
22192         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
22193         * gcov-dump.c: Include intl.h and diagnostic.h.
22194         (main): Initialize diagnostics.
22195         * gcov.c: Include diagnostic.h.
22196         (fnotice): Remove.
22197         (main): Initialize diagnostics.
22198         * lto-wrapper.c: Include diagnostic.h.
22199         (main): Initialize diagnostics.
22200
22201 2011-05-20  Michael Matz  <matz@suse.de>
22202
22203         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
22204
22205 2011-05-20  Michael Matz  <matz@suse.de>
22206             Richard Guenther  <rguenther@suse.de>
22207
22208         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
22209         use lto_streamer_cache_append directly instead of returning a VEC.
22210         (preload_common_node): Remove.
22211         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
22212         track seen nodes.
22213         (lto_streamer_cache_create): Call lto_preload_common_nodes.
22214
22215 2011-05-20  Richard Guenther  <rguenther@suse.de>
22216
22217         PR tree-optimization/49079
22218         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
22219         MEM_REFs correctly for the trailing array access detection.
22220         Special case constants the same way as decls for overall size
22221         constraining.
22222
22223 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
22224
22225         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
22226         argument expansion.
22227
22228 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
22229
22230         PR tree-optimization/49073
22231         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
22232         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
22233         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
22234
22235 2011-05-20  Richard Guenther  <rguenther@suse.de>
22236
22237         PR middle-end/48849
22238         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
22239         of pointer types the same way the middle-end does.
22240
22241 2011-05-20  Richard Guenther  <rguenther@suse.de>
22242
22243         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
22244         or pointer-to chains.  Delay all fixup to uniquify_nodes.
22245
22246 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
22247
22248         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
22249         (fma4_fmaddsub): Likewise
22250
22251 2011-05-19  Jan Hubicka  <jh@suse.cz>
22252
22253         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
22254         (GIMPLE_TYPE_PAIR_SIZE): New macro.
22255         (type_pair_cache): New static var.
22256         (lookup_type_pair): Use fixed sized custom hash; make inline.
22257         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
22258         calls of lookup_type_pair.
22259         (print_gimple_types_stats): Remove cache stats.
22260         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
22261         and gtc_ob.
22262
22263 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
22264
22265         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
22266         when TARGET_RDRND is active.
22267         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
22268         Generate dummy SImode target register when target is NULL.
22269
22270 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
22271
22272         * config/arm/arm-fpus.def: New.
22273         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
22274         arm-fpus.def.
22275         * config/arm/arm-tables.opt: Regenerate.
22276         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
22277         (arm_option_override): Don't decode FPU name to string here.
22278         * config/arm/arm.opt (mfpu=): Use Enum.
22279         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
22280         Update dependencies.
22281
22282 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
22283
22284         * collect2.c: Include diagnostic.h.
22285         (fatal_perror, fatal, error, fancy_abort): Remove.
22286         (main): Set progname.  Call xmalloc_set_program_name and
22287         diagnostic_initialize.
22288         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
22289         scan_libraries, resolve_lib_name): Call fatal_error instead of
22290         fatal and fatal_perror.
22291         * collect2.h (error, fatal, fatal_perror): Don't declare.
22292         * tlink.c: Include diagnostic-core.h.
22293         (recompile_files): Call fatal_error instead of fatal_perror.
22294         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
22295         pretty-print.o and input.o.
22296         (collect2.o, tlink.o): Update dependencies.
22297
22298 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22299
22300         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
22301
22302 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22303
22304         PR target/40483
22305         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
22306         COMDAT group syntax, both SPARC and x86 variants.
22307         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
22308         * configure: Regenerate.
22309         * config/sol2.h (TARGET_SOLARIS): Define.
22310         (PUSHSECTION_FORMAT): Remove.
22311         (SECTION_NAME_FORMAT): Define.
22312         * config/sol2.c: Include hashtab.h.
22313         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
22314         expansion, using SECTION_NAME_FORMAT.
22315         (solaris_comdat_htab): New variable.
22316         (struct comdat_entry): Define.
22317         (comdat_hash): New function.
22318         (comdat_eq): New function.
22319         (solaris_elf_asm_comdat_section): New function.
22320         (solaris_define_comdat_signature): New function.
22321         (solaris_code_end): New function.
22322         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
22323         (solaris_code_end): Declare.
22324         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
22325         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
22326         solaris_code_end.
22327         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
22328         Remove ATTRIBUTE_UNUSED.
22329         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
22330         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
22331         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
22332         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
22333         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
22334         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
22335         (PUSHSECTION_FORMAT): Remove.
22336         (SECTION_NAME_FORMAT): Redefine.
22337
22338 2011-05-19  Kai Tietz  <ktietz@redhat.com>
22339
22340         * tree-cfg.c (verify_gimple_assign_binary): Barf on
22341         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
22342         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
22343
22344 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
22345             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22346
22347         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
22348
22349 2011-05-19  Richard Guenther  <rguenther@suse.de>
22350
22351         PR middle-end/48985
22352         * tree-object-size.c (addr_object_size): If the pointed-to
22353         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
22354
22355 2011-05-19  Richard Guenther  <rguenther@suse.de>
22356
22357         * gimple.c (gimple_types_compatible_p_1): Compare names of
22358         the types themselves.
22359         (iterative_hash_gimple_type): And hash them that way.
22360         (gimple_register_type_1): If we register a main variant properly
22361         initialize the leader to ourselves.
22362
22363 2011-05-19  Tom de Vries  <tom@codesourcery.com>
22364
22365         PR target/45098
22366         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
22367         get_loop_invariant_expr_id.
22368         (get_loop_invariant_expr_id): Use get_expr_id.
22369         (parm_decl_cost): New function.
22370         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
22371         Improve bound cost estimation.  Use different inv_expr_id for elim and
22372         express cases.
22373
22374 2011-05-19  Tom de Vries  <tom@codesourcery.com>
22375
22376         PR target/45098
22377         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
22378         cost_base.cost == 0.
22379
22380 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
22381
22382         PR target/49002
22383         * config/i386/sse.md
22384         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
22385         load cast.
22386
22387 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
22388
22389         PR tree-optimization/49039
22390         * tree-vrp.c (extract_range_from_binary_expr): For
22391         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
22392         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
22393
22394 2011-05-18  Tom de Vries  <tom@codesourcery.com>
22395
22396         PR target/45098
22397         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
22398
22399 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
22400
22401         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
22402         (*tls_global_dynamic_64): Ditto.
22403         (*tls_local_dynamic_base_32_gnu): Ditto.
22404         (*tls_local_dynamic_base_64): Ditto.
22405         (tls_initial_exec_64_sun): Ditto.
22406
22407 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
22408
22409         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
22410         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
22411         bf592-none.
22412         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
22413         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
22414         * config/bfin/bfin.c (bfin_cpus): Add bf592.
22415         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
22416         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
22417         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
22418         * config/bfin/elf.h (LIB_SPEC): Add bf592.
22419
22420 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
22421
22422         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
22423         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
22424         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
22425         target_thread_pointer, arm_structure_size_boundary, struct
22426         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
22427         struct abi_name, arm_all_abis): Remove.
22428         (arm_option_override) Don't process most enumerated option values here.
22429         Don't process target_fpe_name here.  Work with integer not string for
22430         structure size boundary; use separate diagnostics for each case.
22431         * config/arm/arm.h (enum float_abi_type, enum
22432         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
22433         to arm-opts.h.
22434         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
22435         arm_structure_size_boundary): Remove.
22436         * config/arm/arm.opt (mabi=): Use Enum and Init.
22437         (arm_abi_type): New Enum and EnumValue entries.
22438         (mfloat-abi=): Use Enum and Init.
22439         (float_abi_type): New Enum and EnumValue entries.
22440         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
22441         (mfp16-format=): Use Enum and Init.
22442         (arm_fp16_format_type): New Enum and EnumValue entries.
22443         (mstructure-size-boundary=): Use UInteger and Init.
22444         (mtp=): Use Enum and Init.
22445         (arm_tp_type): New Enum and EnumValue entries.
22446
22447 2011-05-18  Richard Guenther  <rguenther@suse.de>
22448
22449         PR tree-optimization/49018
22450         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
22451         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
22452         gimple_has_side_effects.
22453
22454 2011-05-18  Richard Guenther  <rguenther@suse.de>
22455
22456         * gimple.c (gimple_register_type_1): New function, split out from ...
22457         (gimple_register_type): ... here.  Avoid infinite recursion.
22458
22459 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
22460
22461         PR tree-optimization/41881
22462         * tree-vectorizer.h (struct _loop_vec_info): Add new field
22463         reduction_chains along with a macro for its access.
22464         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
22465         (destroy_loop_vec_info): Free reduction chains.
22466         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
22467         (vect_is_slp_reduction): New function.
22468         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
22469         (vect_create_epilog_for_reduction): Support SLP reduction chains.
22470         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
22471         definition types for reduction chains.
22472         (vect_supported_load_permutation_p): Don't allow permutations for
22473         reduction chains.
22474         (vect_analyze_slp_instance): Support reduction chains.
22475         (vect_analyze_slp): Try to build SLP instance from reduction chains.
22476         (vect_get_constant_vectors):  Handle reduction chains.
22477         (vect_schedule_slp_instance): Mark the first statement of the
22478         reduction chain as reduction.
22479
22480 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
22481
22482         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
22483         names for group elements access.
22484         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
22485         reduction chains as well.  Remove data reference and interleaving
22486         related words from the fields names.
22487         * tree-vect-loop.c (vect_transform_loop): Use new names for group
22488         elements access.
22489         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
22490         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
22491         vect_update_interleaving_chain, vect_same_range_drs,
22492         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
22493         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
22494         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
22495         vect_analyze_group_access, vect_analyze_data_ref_access,
22496         vect_create_data_ref_ptr, vect_transform_strided_load,
22497         vect_record_strided_load_vectors): Likewise.
22498         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
22499         vect_model_load_cost, vectorizable_store, vectorizable_load,
22500         vect_remove_stores, new_stmt_vec_info): Likewise.
22501         * tree-vect-slp.c (vect_build_slp_tree,
22502         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
22503
22504 2011-05-18  Richard Guenther  <rguenther@suse.de>
22505
22506         PR middle-end/48989
22507         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
22508         operand verification.
22509         (verify_gimple_assign_binary): Likewise.
22510         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
22511         to non-1-precision BOOLEAN_TYPEs.
22512
22513 2011-05-18  Tom de Vries  <tom@codesourcery.com>
22514
22515         PR target/45098
22516         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
22517
22518 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
22519
22520         PR tree-optimization/49000
22521         * tree-ssa.c (execute_update_addresses_taken): Call
22522         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
22523         be rewritten and decl has been marked for renaming, reset
22524         the debug stmt.
22525
22526 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
22527
22528         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
22529         enum_opts_set when testing if attributes have set -mfpmath=.
22530
22531 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
22532
22533         * config/mips/mips.c (mips_handle_option): Remove unused variable.
22534
22535 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
22536
22537         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
22538         info->entry with 0
22539         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
22540         id.transform_lang_insert_block with NULL.
22541
22542 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
22543
22544         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
22545         (output_fp_compare): Change args 3 and 4 to bool.
22546         (ix86_expand_call): Change arg 6 to bool.
22547         (ix86_attr_length_immediate_default): Change arg 2 to bool.
22548         (ix86_attr_length_vex_default): Change arg 3 to bool.
22549         * config/i386/i386.md: Update all uses.
22550         * config/i386/i386.c: Ditto.
22551         (ix86_flags_dependent): Change return type to bool.
22552
22553 2011-05-17  Richard Guenther  <rguenther@suse.de>
22554
22555         * gimple.c (type_hash_pair_compare): Fix comparison.
22556
22557 2011-05-17  Richard Guenther  <rguenther@suse.de>
22558
22559         * gimple.c (iterative_hash_gimple_type): Simplify singleton
22560         case some more, fix final hash value of the non-singleton case.
22561
22562 2011-05-17  Richard Guenther  <rguenther@suse.de>
22563
22564         PR bootstrap/49013
22565         Revert
22566         2011-05-16  Richard Guenther  <rguenther@suse.de>
22567
22568         * gimple.c (gimple_types_compatible_p_1): Use names of the
22569         type itself, not its main variant.
22570         (iterative_hash_gimple_type): Likewise.
22571
22572 2011-05-17  Richard Guenther  <rguenther@suse.de>
22573
22574         * gimple.c (gimple_register_canonical_type): Use the main-variant
22575         leader for computing the canonical type.
22576
22577 2011-05-17  Nick Clifton  <nickc@redhat.com>
22578
22579         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
22580         moves.
22581
22582         * config/rx/rx.md: Add peephole to remove redundant extensions
22583         after loads.
22584         (bitset_in_memory): Use rx_restricted_mem_operand.
22585         (bitinvert_in_memory): Likewise.
22586         (bitclr_in_memory): Likewise.
22587
22588 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
22589             Nick Clifton  <nickc@redhat.com>
22590
22591         * config/rx/rx.md: Add peepholes to match a register move followed
22592         by a comparison of the moved register.  Replace these with an
22593         addition of zero that does both actions in one instruction.
22594
22595 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
22596
22597         PR target/48986
22598         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
22599         predicate to allow CONST_INT.
22600         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
22601
22602 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
22603
22604         * opts-common.c (opt_enum_arg_to_value): New.
22605         * opts.h (opt_enum_arg_to_value): Declare.
22606         * config/i386/i386.opt (fpmath): Remove.
22607         (mfpmath=): Use Enum, Init and Save.
22608         (fpmath_unit): New Enum and EnumValue entries.
22609         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
22610         name for function fpmath state.
22611         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
22612         * config/i386/i386.c: Include diagnostic.h.
22613         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
22614         (ix86_target_string): Take enum fpmath_unit value instead of string.
22615         (ix86_debug_options): Update call to ix86_target_string.
22616         (ix86_option_override_internal): Don't process fpmath strings here.
22617         (x86_function_specific_save, ix86_function_specific_restore):
22618         Don't handle fpmath state specially.
22619         (ix86_function_specific_print): Pass fpmath state to
22620         ix86_target_string instead of printing in this function.
22621         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
22622         Handle enum attributes.
22623         (IX86_ATTR_ENUM, ix86_opt_enum): New.
22624         (ix86_valid_target_attribute_tree): Update option_strings
22625         handling.  Handle fpmath as enum option.
22626         (ix86_can_inline_p): Update field names for function fpmath state.
22627         (ix86_expand_builtin): Update call to ix86_target_string.
22628         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
22629         (ix86_fpmath): Remove.
22630         * config/i386/t-i386 (i386.o): Update dependencies.
22631
22632 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
22633
22634         PR preprocessor/48677
22635         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
22636         from decoded_options[0], not from itself.
22637
22638 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
22639
22640         * config/i386/constraints.md (z): New constraint.
22641         * config/i386/i386.c (c): New mode attribute.
22642         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
22643         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
22644         constraint for operand 0.
22645         (*call_vzeroupper): Ditto.
22646         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
22647         (*call_rex64_ms_sysv_vzeroupper): Ditto.
22648         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
22649         Use "lzm" constraint for operand 0.
22650         (*call_pop_vzeroupper): Ditto.
22651         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
22652         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
22653         constraint for operand 0.
22654         (*sibcall_vzeroupper): Ditto.
22655         (*sibcall_rex64_ms_sysv): Ditto.
22656         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
22657         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
22658         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
22659         (*sibcall_pop_vzeroupper): Ditto.
22660         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
22661         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
22662         mode iterator.  Use "<c>zm" constraint for operand 1.
22663         (*call_value_vzeroupper): Ditto.
22664         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
22665         for operand 1.
22666         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
22667         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
22668         *call_value_pop_1.  Use "lzm" constraint for operand 1.
22669         (*call_value_pop_vzeroupper): Ditto.
22670         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
22671         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
22672         mode iterator.  Use "Uz" constraint for operand 1.
22673         (*sibcall_value_vzeroupper): Ditto.
22674         (*sibcall_value_rex64_ms_sysv): Ditto.
22675         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
22676         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
22677         constraint for operand 1.
22678         (*sibcall_value_pop_vzeroupper): Ditto.
22679         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
22680         and "z" constraint for operand 2.
22681         (*tls_global_dynamic_32_gnu): Ditto.
22682         (*tls_local_dynamic_base_32_gnu): Ditto.
22683         (*tls_local_dynamic_base_64): Ditto.
22684         (*tls_local_dynamic_32_once): Ditto.
22685         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
22686         Update all callers.
22687         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
22688
22689 2011-05-16  Richard Guenther  <rguenther@suse.de>
22690
22691         * gimple.c (gimple_types_compatible_p_1): Use names of the
22692         type itself, not its main variant.
22693         (iterative_hash_gimple_type): Likewise.
22694
22695 2011-05-16  Richard Guenther  <rguenther@suse.de>
22696
22697         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
22698         always visit pointer target and function result and argument types.
22699
22700 2011-05-16  Jason Merrill  <jason@redhat.com>
22701
22702         PR c++/48999
22703         * tree-inline.c (copy_statement_list): Put back recursion.
22704
22705 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
22706
22707         PR target/27663
22708         PR target/41076
22709         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
22710         * config/avr/avr.md ("*ior<mode>qi.byte0",
22711         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
22712
22713 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
22714
22715         PR target/45099
22716         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
22717         register is needed for a function argument.
22718
22719 2011-05-16  Richard Guenther  <rguenther@suse.de>
22720
22721         * gimple.c (struct type_hash_pair): New type.
22722         (type_hash_pair_compare): New function.
22723         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
22724
22725 2011-05-16  Revital Eres  <revital.eres@linaro.org>
22726
22727         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
22728
22729 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
22730
22731         * config/i386/i386.md (floating point move splitters): Fix
22732         usage of standard_80387_constant_p.
22733         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
22734
22735 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
22736
22737         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
22738
22739 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
22740
22741         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
22742         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
22743         (tree_ssa_lim_finalize): Likewise.
22744
22745 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
22746
22747         * config/i386/constraint.md (Yd, Yx): New register constraints.
22748         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
22749         Yd conditional register constraint.
22750         (*movtf_internal): Use standard_sse_constant_opcode.
22751         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
22752         Yx conditional register constraint.
22753         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
22754         Yd conditional register constraint.  Use standard_sse_constant_p to
22755         check for valid SSE constants and call standard_sse_constant_opcode to
22756         output SSE insn.
22757         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
22758         constants and call standard_sse_constant_opcode to output SSE insn.
22759         * config/i386/i386.c (ix86_option_ovverride_internal): Set
22760         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
22761         optimize_size is set.
22762         (standard_sse_constant_opcode): Output conditional AVX insn templates.
22763
22764 2011-05-14  Tobias Burnus  <burnus@net-b.de>
22765
22766         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
22767
22768 2011-05-13  Martin Jambor  <mjambor@suse.cz>
22769
22770         * ipa-prop.c (ipa_cst_from_jfunc): New function.
22771         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
22772         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
22773         (evaluate_conditions_for_ipcp_clone): Removed.
22774         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
22775         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
22776         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
22777
22778 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
22779
22780         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
22781         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
22782         lieu of MAY_HAVE_DEBUG_STMTS.
22783         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
22784         debug statements if !MAY_HAVE_DEBUG_STMTS.
22785
22786 2011-05-13  Martin Thuresson  <martint@google.com>
22787
22788         PR gcov-profile/47793
22789         * libgcov.c (gcov_exit): Support relative profile paths.
22790         * doc/invoke.texi (-fprofile-dir): Update for above change.
22791
22792 2011-05-13  Richard Guenther  <rguenther@suse.de>
22793
22794         * gimple.c (gimple_canonical_types_compatible_p): Do not use
22795         type-pair caching, do not compare hashes.
22796
22797 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
22798
22799         PR middle-end/48965
22800         * tree-cfg.c (edge_to_cases_cleanup): Return true.
22801         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
22802
22803 2011-05-13  Kai Tietz  <ktietz@redhat.com>
22804
22805         * gimplify.c (gimplify_expr): Make sure operand is boolified.
22806         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
22807         compatible type for TRUTH_NOT_EXPR.
22808
22809 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
22810
22811         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
22812         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
22813         can_create_pseudo_p ().
22814
22815 2011-05-13  Richard Guenther  <rguenther@suse.de>
22816
22817         PR lto/48978
22818         * gimple.c (iterative_hash_gimple_type): Revert change in
22819         pointer target and function result and argument hashing.
22820
22821 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
22822
22823         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
22824         (*movxf_internal_nointeger): Ditto.
22825         (*movdf_internal_rex64): Ditto.
22826         (*movdf_internal): Ditto.
22827         (*movdf_internal_nointeger): Ditto.
22828         (*movsf_internal): Ditto.
22829         (sincos splitters): Use can_create_pseudo ().
22830
22831 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
22832
22833         * config/i386/i386-opts.h: New.
22834         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
22835         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
22836         ix86_section_threshold): Remove.
22837         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
22838         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
22839         OPT_mbranch_cost_.
22840         (ix86_option_override_internal): Don't decode strings for options
22841         other than -march=, -mtune= and -mfpmath=.  Don't allow for
22842         __attribute__ uses in remaining diagnostics for options with
22843         string arguments.  Don't check for integer arguments being negative.
22844         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
22845         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
22846         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
22847         ix86_branch_cost, ix86_section_threshold): Remove.
22848         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
22849         HeaderInclude.
22850         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
22851         but not Var.
22852         (masm=): Use Enum and Init.
22853         (asm_dialect): New Enum and EnumValue entries.
22854         (mbranch-cost=): Use UInteger.
22855         (mlarge-data-threshold=): Use UInteger and Init.
22856         (mcmodel=): Use Enum and Init.
22857         (cmodel): New Enum and EnumValue entries.
22858         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
22859         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
22860         mregparm=): Use UInteger.
22861         (mstringop-strategy=): Use Enum and Init.
22862         (stringop_alg): New Enum and EnumValue entries.
22863         (mtls-dialect=): Use Enum and Init.
22864         (tls_dialect): New Enum and EnumValue entries.
22865         (mabi=): Use Enum and Init.
22866         (calling_abi): New Enum and EnumValue entries.
22867         (mveclibabi=): Use Enum and Init.
22868         (ix86_veclibabi): New Enum and EnumValue entries.
22869
22870 2011-05-13  Nick Clifton  <nickc@redhat.com>
22871
22872         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
22873         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
22874
22875 2011-05-13  Kai Tietz  <ktietz@redhat.com>
22876
22877         PR middle-end/48984
22878         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
22879         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
22880         (gimple_boolify): Check for cast for boolean_type_node instead for
22881         BOOLEAN_TYPE.
22882
22883 2011-05-13  Richard Guenther  <rguenther@suse.de>
22884
22885         PR tree-optimization/48172
22886         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
22887         multiplying by number of iterations for equal step.
22888         (vect_create_cond_for_alias_checks): Likewise.
22889
22890 2011-05-13  Andreas Schwab  <schwab@redhat.com>
22891
22892         * configure.ac: Use AS_HELP_STRING throughout.
22893         * configure: Regenerate.
22894
22895 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
22896
22897         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
22898         (ix86_emit_restore_regs_using_mov): Likewise.
22899         (ix86_emit_restore_sse_regs_using_mov): Likewise.
22900
22901 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
22902
22903         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
22904         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
22905         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
22906         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
22907         RTX_OK_FOR_OLO10_P): ...here.
22908         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
22909         SYMBOLIC_CONST.
22910
22911 2011-05-12  Kai Tietz  <ktietz@redhat.com>
22912
22913         * gimplify.c (gimple_boolify): Re-boolify expression
22914         arguments even if expression type is of kind BOOLEAN_TYPE.
22915         (gimplify_boolean_expr): Removed.
22916         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
22917         and XOR. Additional take care that we keep expression's type.
22918         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
22919         of TRUTH_AND|OR|XOR_EXPR.
22920
22921 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
22922
22923         PR tree-optimization/48975
22924         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
22925         on all bbs here and free and clear ifc_bbs at the end.
22926
22927 2011-05-12  Richard Guenther  <rguenther@suse.de>
22928
22929         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
22930         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
22931         until after simple checks.
22932         (gimple_types_compatible_p): Likewise.
22933         (iterative_hash_gimple_type): Always hash pointer targets
22934         and function return and argument types.
22935         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
22936         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
22937         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
22938         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
22939         completely in the simple compare section.
22940         (gimple_register_canonical_type): Query the cache again after
22941         registering.
22942
22943 2011-05-12  Richard Guenther  <rguenther@suse.de>
22944
22945         PR tree-optimization/48172
22946         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
22947         the number of iterations from the segment size calculation.
22948         (vect_create_cond_for_alias_checks): Adjust.
22949
22950 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
22951
22952         PR debug/48967
22953         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
22954         if validate_subreg fails.
22955
22956 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
22957
22958         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
22959         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
22960         early.
22961
22962 2011-05-12  DJ Delorie  <dj@redhat.com>
22963
22964         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
22965         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
22966         created builtin into rx_builtins array.
22967         (rx_builtin_decl): New function.
22968         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
22969
22970 2011-05-12  DJ Delorie  <dj@redhat.com>
22971             Nick Clifton  <nickc@redhat.com>
22972
22973         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
22974         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
22975         (rx_is_legitimate_address): Add pre-decrement and post-increment
22976         addressing in HImode and QImode.  Fix test for out of range
22977         REG+INT addressing.
22978         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
22979         (rx_align_for_label): Test label before extracting its usage count.
22980         (rx_adjust_insn_lengths): Fix selection of insn codes.
22981         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
22982
22983 2011-05-11  Jason Merrill  <jason@redhat.com>
22984
22985         * tree.c (type_hash_canon): Use struct tree_type_non_common.
22986
22987 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
22988
22989         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
22990         reindent the subsequent block.
22991
22992 2011-05-11  Satoru Takabayashi  <satorux@google.com>
22993             Paul Pluzhnikov  <ppluzhnikov@google.com>
22994
22995         * doc/install.texi (Configuration): Document --with-linker-hash-style.
22996         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
22997         * config.in: Add LINKER_HASH_STYLE.
22998         * configure.ac: Add --with-linker-hash-style.
22999         * configure: Regenerate.
23000
23001 2011-05-11  Richard Guenther  <rguenther@suse.de>
23002
23003         PR middle-end/48964
23004         * gimple.c (iterative_hash_canonical_type): Fix typo.
23005
23006 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
23007
23008         * config/i386/i386.c (legitimize_tls_address)
23009         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
23010         expanders directly for TARGET_GNU2_TLS.  Determine pic and
23011         __tls_get_addr symbol reference here.  Update call to
23012         gen_tls_global_dynamic_{32,64} for added arguments.
23013         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
23014         expanders directly for TARGET_GNU2_TLS.  Determine
23015         __tls_get_addr symbol reference here.  Update call to
23016         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
23017         unique UNSPEC REG_EQUIV to libcall block.
23018         (ix86_tls_get_addr): Declare static.
23019         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
23020         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
23021         Do not determine pic and __tls_get_addr symbol reference here. Do not
23022         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
23023         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
23024         (tls_global_dynamic_64): Add operand 2.  Do not determine
23025         __tls_get_addr symbol reference here.  Do not call
23026         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
23027         (tls_local_dynamic_base64): Ditto for operand 1.
23028
23029 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
23030
23031         * function.c (expand_function_start): Initialize stack_check_probe_note
23032         only if the generic stack checking mechanism is used.
23033
23034 2011-05-11  Richard Guenther  <rguenther@suse.de>
23035
23036         PR tree-optimization/15256
23037         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
23038         (A & B) | C, combine (A op CST1) op CST2.
23039         (tree_ssa_forward_propagate_single_use_vars): Only bother to
23040         visit assigns that have uses.
23041
23042 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
23043
23044         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
23045         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
23046         (unpack_ts_type_common_value_fields): ...this.  Update comment.
23047         (unpack_value_fields): Adjust for renaming.
23048         (lto_input_ts_type_tree_pointers): Split into...
23049         (lto_input_ts_type_common_tree_pointer): ...this and...
23050         (lto_input_ts_type_non_common_tree_pointers): ...this.
23051         (lto_input_tree_pointers): Adjust for above split.
23052         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
23053         (pack_ts_type_common_value_fields): ...this.  Update comment.
23054         (lto_output_ts_type_tree_pointers): Split into...
23055         (lto_output_ts_type_common_tree_pointers): ...this and...
23056         (lto_output_ts_type_non_common_tree_pointers): ...this.
23057         (lto_output_tree_pointers): Adjust for above split.
23058         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
23059         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
23060         * stor-layout.c (vector_type_mode): Adjust location of mode field.
23061         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
23062         Define.
23063         (struct tree_type): Split into...
23064         (struct tree_type_common: ...this and...
23065         (struct tree_type_with_lang_specific): ...this and...
23066         (struct tree_type_non_common): ...this.  Adjust accessor macros
23067         accordingly.
23068         (TYPE_VALUES_RAW): Define.
23069         (union tree_node): Update for above changes.
23070         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
23071         TS_TYPE_NON_COMMON.
23072         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
23073         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
23074         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
23075         * treestructu.def (TS_TYPE): Remove.
23076         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
23077         Define.
23078
23079 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
23080
23081         PR debug/48159
23082         * tree-ssa.c (reset_debug_uses): New function.
23083         * tree-flow.h (reset_debug_uses): New prototype.
23084         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
23085         * tree-loop-distribution.c (generate_loops_for_partition): Call
23086         reset_debug_uses on the stmts that will be removed.  Keep around
23087         all debug stmts, don't count them as bits in partition bitmap.
23088         (generate_builtin): Don't count debug stmts or labels as bits in
23089         partition bitmap.
23090
23091 2011-05-11  Richard Guenther  <rguenther@suse.de>
23092
23093         * gimple.c (gimple_type_hash_1): Merge with ...
23094         (gimple_type_hash): ... this.
23095         (gtc_visit): Remove mode parameter and simplify accordingly.
23096         (gimple_types_compatible_p_1): Likewise.
23097         (gimple_types_compatible_p): Likewise.
23098         (iterative_hash_gimple_type): Likewise.
23099         (visit): Likewise.
23100         (gimple_type_eq): Adjust.
23101
23102 2011-05-11  Revital Eres  <revital.eres@linaro.org>
23103
23104         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
23105         enters the branch create an anti edge in the opposite direction
23106         to prevent the creation of reg-moves.
23107         * modulo-sched.c: Adjust comment to reflect the fact we are
23108         scheduling closing branch.
23109         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
23110         (stage_count): New field in struct partial_schedule.
23111         (calculate_stage_count): New function.
23112         (normalize_sched_times): Rename to reset_sched_times and handle
23113         incrementing the sched time of the nodes by a constant value
23114         passed as parameter.
23115         (duplicate_insns_of_cycles): Skip closing branch.
23116         (sms_schedule_by_order): Schedule closing branch.
23117         (ps_insn_find_column): Handle closing branch.
23118         (sms_schedule): Call reset_sched_times and adjust the code to
23119         support scheduling of the closing branch.
23120         (ps_insert_empty_row): Update calls to normalize_sched_times
23121         and rotate_partial_schedule functions.
23122
23123 2011-05-11  Richard Guenther  <rguenther@suse.de>
23124
23125         PR middle-end/48953
23126         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
23127
23128 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
23129
23130         * opts.c (finish_options): Move warning settings from process_options.
23131         * toplev.c (process_options): Move warning settings to finish_options.
23132
23133 2011-05-11  Richard Guenther  <rguenther@suse.de>
23134
23135         PR tree-optimization/18041
23136         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
23137         (simplify_bitwise_binary): ... this.  Handle operand conversions
23138         by applying them to the result instead.
23139         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
23140
23141 2011-05-11  Richard Guenther  <rguenther@suse.de>
23142
23143         * gimple.c (gimple_canonical_types_compatible_p): Split out
23144         from gimple_types_compatible_p and friends.  Do not recurse
23145         to pointed-to types.
23146         (gimple_canonical_type_eq): Use it.
23147         (iterative_hash_canonical_type): Split out from
23148         iterative_hash_gimple_type and friends.  Do not recurse
23149         to pointed-to types.
23150         (gimple_canonical_type_hash): Use it, allocate the hash here.
23151
23152 2011-05-11  Revital Eres  <revital.eres@linaro.org>
23153
23154         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
23155         recognizing doloop.
23156
23157 2011-05-11  Revital Eres  <revital.eres@linaro.org>
23158
23159         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
23160         instead of PREV_INSN.
23161
23162 2011-05-11  Revital Eres  <revital.eres@linaro.org>
23163
23164         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
23165         * loop-doloop.c (doloop_condition_get): Likewise.
23166         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
23167         (doloop_end): New.
23168         * config/arm/arm.md (*addsi3_compare0): Remove "*".
23169
23170 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
23171
23172         * tree.def (CASE_LABEL_EXPR): Add an operand.
23173         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
23174
23175 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
23176
23177         * c-decl.c (c_override_global_bindings_to_false): Remove.
23178         (global_bindings_p): Don't check
23179         c_override_global_bindings_to_false.
23180         * c-tree.h (c_override_global_bindings_to_false): Remove.
23181         * c-typeck.c (composite_type): Don't set
23182         c_override_global_bindings_to_false.
23183
23184 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
23185
23186         PR target/48857, 48495
23187         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
23188         (VSX_MODE): Ditto.
23189         (VSX_MOVE_MODE): Ditto.
23190         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
23191         VSX vector types.  Add V2DImode.
23192         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
23193         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
23194         (MODES_TIEABLE_P): Ditto.
23195
23196         * config/rs6000/rs6000.c (rs6000_emit_move): Use
23197         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
23198         VSX_VECTOR_MODE.
23199         (init_cumulative_args): Ditto.
23200         (rs6000_function_arg_boundary): Ditto.
23201         (rs6000_function_arg_advance_1): Ditto.
23202         (rs6000_function_arg): Ditto.
23203         (rs6000_function_ok_for_sibcall): Ditto.
23204         (emit_frame_save): Ditto.
23205         (rs6000_function_value): Ditto.
23206         (rs6000_libcall_value): Ditto.
23207
23208 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
23209
23210         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
23211         i386/darwin-lib.h to $libgcc_tm_file.
23212         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
23213
23214 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
23215
23216         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
23217
23218 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
23219
23220         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
23221         * config/rs6000/rs6000-tables.opt: New file (generated).
23222         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
23223         rs6000/rs6000-tables.opt to extra_options.
23224         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
23225         * config/rs6000/rs6000.c (rs6000_select): Remove.
23226         (processor_target_table): Move contents to rs6000-cpus.def.
23227         (darwin_rs6000_override_options): Check
23228         global_options_set.x_rs6000_cpu_index instead of
23229         rs6000_select[1].string.
23230         (rs6000_option_override_internal): Likewise.
23231         (rs6000_handle_option): Don't assert that global structures are in
23232         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
23233         (rs6000_default_cpu): New variable.
23234         (rs6000_file_start): Set it instead of local default_cpu.  Check
23235         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
23236         global_options_set.x_rs6000_tune_index instead of rs6000_select.
23237         (rs6000_darwin_file_start): Check rs6000_default_cpu and
23238         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
23239         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
23240         rs6000_select): Remove.
23241         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
23242         Remove.
23243         (mcpu=, mtune=): Use Var, Init, Enum and Save.
23244         * config/rs6000/t-rs6000
23245         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
23246         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
23247         global_options_set.x_rs6000_cpu_index instead of
23248         rs6000_select[1].string.
23249         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
23250         global_options_set.x_rs6000_cpu_index instead of
23251         rs6000_select[1].string.
23252
23253 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
23254
23255         * config.gcc (libgcc_tm_file): Define instead of including files
23256         from ../../libgcc/config/ in tm_file.
23257         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
23258         * configure: Regenerate.
23259         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
23260         libgcc_tm.h, cs-libgcc_tm.h): New.
23261         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
23262         (clean): Remove libgcc_tm.h.
23263         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
23264         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
23265         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
23266
23267 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
23268
23269         PR target/48896
23270         * config/avr/avr.c (avr_ret_register): Return unsigned int
23271         instead of int.
23272         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
23273         it to avr_libcall_value.
23274         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
23275         expand_expr.
23276         (avr_expand_binop_builtin): Ditto.
23277         (avr_expand_unop_builtin): Ditto.
23278
23279 2011-05-10  DJ Delorie  <dj@redhat.com>
23280
23281         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
23282         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
23283         * config/rx/rx.c (rx_align_for_label): Add label and
23284         uses_threshold parameters.  Do not align when the label is not
23285         used enough.
23286         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
23287
23288 2011-05-10  Richard Guenther  <rguenther@suse.de>
23289
23290         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
23291         a series of conversions and apply foldings similar to what
23292         fold-const does.
23293         (tree_ssa_forward_propagate_single_use_vars): Call it.
23294
23295 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
23296
23297         PR tree-optimization/48611
23298         PR tree-optimization/48794
23299         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
23300         referenced from RESX or EH_DISPATCH arguments.
23301
23302         PR debug/48928
23303         * dfp.c (decimal_to_decnumber): Handle conversion from
23304         dconst{1,2,m1,half}.
23305
23306 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
23307
23308         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
23309         for !flag_prefer_avx128.
23310         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
23311
23312 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
23313
23314         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
23315         (fold_ternary_loc): Use expr_location_or.
23316
23317 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
23318
23319         PR debug/48853
23320         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
23321         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
23322         Pmode and mem_mode is not VOIDmode.
23323
23324 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
23325
23326         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
23327         TYPE_QUAL_RESTRICT): Convert to enum.
23328
23329 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
23330
23331         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
23332         (const_pow2_1_to_8_operand): Ditto.
23333         (const_pow2_1_to_128_operand): Ditto.
23334         (const_pow2_1_to_32768_operand): Ditto.
23335         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
23336         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
23337         in insn constraint to check integer value of operand 3.
23338         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
23339
23340         (PINSR_MODE): New mode iterator.
23341         (sse2p4_1): New mode attribute.
23342         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
23343         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
23344         iterator.  Use const_int_operand instead of
23345         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
23346         exact_log2 in insn constraint to check integer value of operand 3.
23347
23348 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
23349
23350         * config/i386/sse.md (blendbits): Remove mode attribute.
23351         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
23352         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
23353         Check integer value of operand 3 in insn constraint.
23354
23355 2011-05-09  Richard Guenther  <rguenther@suse.de>
23356
23357         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
23358         for diagnostics.
23359         (lto_symtab_merge): Likewise.  Do not register types here.
23360         (lto_symtab_merge_decls_2): Likewise.
23361         (lto_symtab_merge_decls_1): Likewise.
23362         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
23363         * gimple.c (enum gtc_mode): Declare.
23364         (gimple_types_compatible_p): Make static.
23365
23366 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23367
23368         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
23369         temporary register to match Pmode.
23370
23371 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
23372
23373         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
23374         and *vec_concatv4si_1_avx.
23375
23376 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
23377
23378         PR rtl-optimization/48927
23379         * ira-conflicts.c (commutative_constraint_p): Use
23380         recog_data.alternative_enabled_p to disable alternatives where
23381         "enabled" attribute is false.
23382         (get_dup_num): Ditto.
23383         * ira-lives.c (single_reg_class): Ditto.
23384         (ira_implicitly_set_insn_hard_regs): Ditto.
23385
23386 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
23387
23388         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
23389         (dataflow_set_preserve_mem_locs): Likewise.
23390
23391 2011-05-09  Philipp Thomas  <pth@suse.de>
23392
23393         * config/mep/mep.c (mep_validate_vliw): Syntax description
23394         should not be translated.
23395
23396 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
23397
23398         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
23399         * config/mips/mips-tables.opt: New file (generated).
23400         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
23401         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
23402         MIPS_ARCH_OPTION_NATIVE): Define.
23403         * config/mips/mips.c (mips_cpu_info_table): Move contents to
23404         mips-cpus.def.
23405         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
23406         mips_parse_cpu): Remove.
23407         (mips_cpu_info_from_opt, mips_default_arch): New.
23408         (mips_handle_option): Don't assert that global structures are in
23409         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
23410         (mips_option_override): Use new variables and functions to set
23411         state of these options.  Use strcmp to check for individual CPU names.
23412         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
23413         definition.
23414         * config/mips/mips.opt (march=): Use ToLower and Enum.
23415         (mips): Use ToLower, Enum and Var.
23416         (mtune=): Use ToLower and Enum.
23417         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
23418
23419 2011-05-08  Jan Hubicka  <jh@suse.cz>
23420
23421         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
23422         Arrange type pairs to be UID ordered.
23423         (gimple_lookup_type_leader): Make inline.
23424
23425 2011-05-09  Nick Clifton  <nickc@redhat.com>
23426
23427         PR target/48899
23428         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
23429         PROCESSOR_DEFAULT.
23430
23431         PR target/48897
23432         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
23433         variable 's'.
23434
23435 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
23436
23437         * combine.c (simplify_comparison): Abstract out parts into...
23438         (simplify_compare_const): ... new function.
23439         (try_combine): Generalize parallel arithmetic/compare combining
23440         to call simplify_compare_const() and CANONICALIZE_COMPARE().
23441
23442 2011-05-08  Jan Hubicka  <jh@suse.cz>
23443
23444         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
23445         (cgraph_create_virtual_clone): Call hooks once virtual clone
23446         is finished.
23447         * cgraph.h (cgraph_clone_node): Update prototype.
23448         * ipa-cp.c (ipcp_estimate_growth): Use
23449         estimate_ipcp_clone_size_and_time.
23450         * ipa-inline-transform.c (clone_inlined_nodes): Update.
23451         * lto-cgraph.c (input_node): Update.
23452         * ipa-inline.c (recursive_inlining): Update.
23453         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
23454         (evaluate_conditions_for_known_args): Break out from ...
23455         (evaluate_conditions_for_edge): ... here.
23456         (evaluate_conditions_for_ipcp_clone): New function.
23457         (inline_node_duplication_hook): Update clone summary based
23458         on parameter map.
23459         (estimate_callee_size_and_time): Rename to ...
23460         (estimate_node_size_and_time): take NODE instead of EDGE;
23461         take POSSIBLE_TRUTHS as argument.
23462         (estimate_callee_size_and_time): Update.
23463         (estimate_ipcp_clone_size_and_time): New function.
23464         (do_estimate_edge_time): Update.
23465
23466 2011-05-08  Richard Guenther  <rguenther@suse.de>
23467
23468         PR middle-end/48908
23469         PR middle-end/48905
23470         * expmed.c (expand_shift_1): Compute adjusted constant shift
23471         amount manually.
23472
23473 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
23474
23475         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
23476
23477 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
23478
23479         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
23480
23481 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
23482
23483         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
23484
23485 2011-05-07  Jan Hubicka  <jh@suse.cz>
23486
23487         * ipa-inline-transform.c (inline_call): Account when program size
23488         decreases.
23489         * ipa-inline.c (relative_time_benefit): New function.
23490         (edge_badness): Reorganize to be power 2 based; fix thinko when
23491         computing badness for negative growth; update comments to match
23492         reality; better dumps.
23493
23494 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
23495
23496         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
23497         type to bool and adjust comment.
23498         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
23499         (fold_mathfn_compare): Remove calls to global_bindings_p.
23500         (fold_inf_compare): Likewise.
23501         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
23502         * c-tree.h (global_bindings_p): Adjust prototype.
23503         * c-decl.c (global_bindings_p): Return bool and simplify.
23504
23505 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
23506
23507         PR tree-optimization/48837
23508         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
23509         when accumulator transformation is performed.
23510
23511 2011-05-06  Jan Hubicka  <jh@suse.cz>
23512
23513         * i386.h (ix86_tune_indices): Add
23514         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
23515         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
23516         * i386.c (initial_ix86_tune_features): Add
23517         X86_SOFTARE_PREFETCHING_BENEFICIAL.
23518         (software_prefetching_beneficial_p): Remove predicate.
23519         (ix86_option_override_internal): Use new macro.
23520
23521 2011-05-06  Jan Hubicka  <jh@suse.cz>
23522
23523         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
23524
23525 2011-05-06  Jan Hubicka  <jh@suse.cz>
23526
23527         * cgraph.c (cgraph_add_thunk): Create real function node instead
23528         of alias node; finalize it and mark needed/reachale; arrange visibility
23529         to be right and add it into the corresponding same comdat group list.
23530         (dump_cgraph_node): Dump thunks.
23531         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
23532         cgraph_function_with_gimple_body_p,
23533         cgraph_first_function_with_gimple_body,
23534         cgraph_next_function_with_gimple_body): New functions.
23535         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
23536         New macros.
23537         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
23538         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
23539         * cgraphunit.c (cgraph_finalize_function): Only look into possible
23540         devirtualization when optimizing.
23541         (verify_cgraph_node): Verify thunks.
23542         (cgraph_analyze_function): Analyze thunks.
23543         (cgraph_mark_functions_to_output): Output thunks only in combination
23544         with function they are assigned to.
23545         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
23546         alias into normal node.
23547         (assemble_thunks): New functoin.
23548         (cgraph_expand_function): Use it.
23549         * lto-cgraph.c (lto_output_node): Stream thunks.
23550         (input_overwrite_node): Stream in thunks.
23551         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
23552         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
23553         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
23554         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
23555         (inline_analyze_function): Do not care about thunk jump functions.
23556         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
23557         * ipa-prop.c (ipa_prop_write_jump_functions): Use
23558         cgraph_function_with_gimple_body_p.
23559         * passes.c (do_per_function_toporder): Use
23560         cgraph_function_with_gimple_body_p.
23561         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
23562         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
23563         (function_called_by_processed_nodes_p): Likewise.
23564
23565 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
23566
23567         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
23568         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
23569         entries.
23570         (mabi=): Replace with separate entries for mabi=altivec,
23571         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
23572         mabi=ieeelongdouble and mabi=ibmlongdouble.
23573         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
23574         check for -mabi=spe without SPE ABI support here.
23575         (rs6000_handle_option): Replace OPT_mabi_ handling with
23576         OPT_mabi_altivec and OPT_mabi_spe handling.
23577
23578 2011-05-06  Cary Coutant  <ccoutant@google.com>
23579
23580         * dwarf2out.c (contains_subprogram_definition): New function.
23581         (should_move_die_to_comdat): Call it.
23582
23583 2011-05-06  Jeff Law  <law@redhat.com>
23584
23585         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
23586         remove_ctrl_stmt_and_useless_edges.
23587         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
23588         (fixup_template_block, thread_single_edge): Likewise.
23589         (mark_threaded_blocks): Use THREAD_TARGET.
23590
23591 2011-05-06  Alan Modra  <amodra@gmail.com>
23592
23593         PR target/48900
23594         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
23595         const0_rtx as the arg to the dummy __tls_get_addr libcall.
23596
23597 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
23598
23599         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
23600         constraint modifier to "r".
23601
23602 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
23603
23604         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
23605         fall through for OPT_mcmodel_.
23606
23607 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23608
23609         * config/s390/s390.c (s390_asm_trampoline_template): Comment
23610         instruction sizes.
23611         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
23612
23613 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
23614
23615         PR target/47930
23616         * config/arm/arm.opt (marm): Document it.
23617         (mthumb): Reject negative variant.
23618
23619 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
23620
23621         PR target/48898
23622         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
23623         Fix typo in "ccvt" variable name.
23624
23625 2011-05-06  Tristan Gingold  <gingold@adacore.com>
23626
23627         PR target/48895
23628         * config/vms/vms-ar.c (main): Remove cwd variable.
23629
23630 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
23631
23632         PR debug/48902
23633         * var-tracking.c (prepare_call_arguments): Move else before #endif.
23634
23635 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
23636
23637         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
23638         * gimplify.c (gimplify_switch_expr): Likewise.
23639         * omp-low.c (expand_omp_sections): Likewise.
23640         * tree-eh.c (lower_try_finally_switch): Likewise.
23641         (lower_eh_dispatch): Likewise.
23642         * tree.h (build_case_label): Declare.
23643         * tree.c (build_case_label): Define.
23644
23645 2011-05-05  Jason Merrill  <jason@redhat.com>
23646
23647         PR c++/40975
23648         * tree-inline.c (copy_tree_r): Use copy_statement_list.
23649         (copy_statement_list): Don't recurse.
23650         * stor-layout.c (copy_self_referential_tree_r): Don't allow
23651         STATEMENT_LIST.
23652
23653 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
23654
23655         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
23656         through from -mfpu= handling.
23657         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
23658
23659 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
23660
23661         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
23662         POST_MODIFY.
23663
23664 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
23665
23666         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
23667         for 11.31.
23668         (hppa[12]*-*-hpux11*): Ditto.
23669         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
23670         * config/ia64/hpux-unix2003.h: New.
23671         * config/pa/pa-hpux1131.opt: New.
23672         * config/pa/pa-hpux1131.h: New.
23673         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
23674         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
23675         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
23676
23677 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
23678
23679         PR debug/48853
23680         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
23681         instead of mode as 3rd argument to recursive call.
23682         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
23683         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
23684         VOIDmode.
23685         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
23686         don't give up if mode is Pmode and mem_mode is not VOIDmode.
23687         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
23688         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
23689
23690 2011-05-05  Julian Brown  <julian@codesourcery.com>
23691
23692         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
23693         parenthesis in D-register case.
23694
23695 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
23696
23697         * opt-functions.awk (var_type_struct): Handle Enum options.
23698         * optc-gen.awk: Don't check range of variables of character type.
23699         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
23700         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
23701         rs6000_sdata_name, rs6000_explicit_options): Remove.
23702         (rs6000_option_override_internal): Check for -malign-power here.
23703         Use global_options_set instead of rs6000_explicit_options.
23704         (rs6000_parse_fpu_option): Remove.
23705         (rs6000_handle_option): Access variables via opts and opts_set
23706         pointers.  Use error_at and warning_at.  Add fall-through
23707         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
23708         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
23709         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
23710         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
23711         here.  Don't use rs6000_parse_fpu_option.
23712         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
23713         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
23714         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
23715         (mrecip=): Use Var.
23716         (mspe): Use Var and Save.
23717         (mtraceback=): Use Enum and Var.
23718         (rs6000_traceback_type): New Enum and EnumValue entries.
23719         (mfloat-gprs=): Use Enum, Var and Save.
23720         (rs6000_float_gprs): New Enum and EnumValue entries.
23721         (mlong-double-): use Var and Save.
23722         (msched-costly-dep=, minsert-sched-nops=): Use Var.
23723         (malign-): Use Enum and Var.
23724         (rs6000_alignment_flags): New Enum and EnumValue entries.
23725         (mfpu=): Use Enum.
23726         (fpu_type_t): New Enum and EnumValue entries.
23727         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
23728         global_options_set instead of rs6000_explicit_options.
23729         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
23730         global_options_set instead of rs6000_explicit_options.
23731         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
23732         global_options_set instead of rs6000_explicit_options.
23733         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
23734         global_options_set instead of rs6000_explicit_options.
23735         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
23736         global_options_set instead of rs6000_explicit_options.
23737         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
23738         global_options_set instead of rs6000_explicit_options.
23739         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
23740         definition.
23741         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
23742         global_options_set instead of rs6000_explicit_options.
23743         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
23744         (rs6000_cmodel): New Enum and EnumValue entries.
23745         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
23746         global_options_set instead of rs6000_explicit_options.
23747         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
23748         (mtls-size=): Use Enum and Var.
23749         (rs6000_tls_size): New Enum and EnumValue entries.
23750
23751 2011-05-05  Michael Matz  <matz@suse.de>
23752
23753         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
23754         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
23755         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
23756         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
23757         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
23758         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
23759         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
23760         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
23761         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
23762         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
23763         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
23764         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
23765         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
23766         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
23767         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
23768         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
23769
23770 2011-05-05  Richard Guenther  <rguenther@suse.de>
23771
23772         * expmed.c (expand_variable_shift): Rename to ...
23773         (expand_shift_1): ... this.  Take an expanded shift amount.
23774         For rotates recurse directly not building trees for the shift amount.
23775         (expand_variable_shift): Wrap around expand_shift_1.
23776         (expand_shift): Adjust.
23777
23778 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
23779
23780         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
23781
23782 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
23783
23784         * tree.h (get_pending_sizes): Remove prototype.
23785         (put_pending_size): Likewise.
23786         (put_pending_sizes): Likewise.
23787         * stor-layout.c (pending_sizes): Delete.
23788         (get_pending_sizes): Likewise.
23789         (put_pending_size): Likewise.
23790         (put_pending_sizes): Likewise.
23791         (variable_size): Do not call put_pending_size and tidy up.
23792         * function.h (struct function): Remove dont_save_pending_sizes_p.
23793         * lto-streamer-in.c (input_function): Do not stream it.
23794         * lto-streamer-out.c (output_function): Likewise.
23795         * tree-inline.c (initialize_cfun): Do not copy it.
23796         * c-decl.c (store_parm_decls): Do not set it.
23797         * omp-low.c (create_task_copyfn): Likewise.
23798         * tree-optimize.c (tree_rest_of_compilation): Likewise.
23799
23800 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
23801
23802         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
23803         conditions.
23804         (*movdf_internal): Ditto.
23805         (*movdf_internal_nointeger): Ditto.
23806         (*movsf_internal): Ditto.
23807
23808 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
23809
23810         * c-decl.c (finish_decl): Don't call get_pending_sizes.
23811         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
23812         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
23813         (c_variable_size): Remove.
23814         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
23815         call put_pending_sizes.
23816         (get_parm_info): Add parameter expr.  Use it to set
23817         arg_info->pending_sizes.
23818         (store_parm_decls): Use arg_info->pending_sizes instead or calling
23819         get_pending_sizes.
23820         * c-parser.c (c_parser_parms_declarator): Update call to
23821         c_parser_parms_list_declarator.
23822         (c_parser_parms_list_declarator): Take parameter expr.  Update
23823         call to push_parm_decl.  Update recursive call.  Don't call
23824         get_pending_sizes.  Update calls to get_parm_info.
23825         (c_parser_objc_method_definition): Update calls to
23826         c_parser_objc_method_decl and objc_start_method_definition.
23827         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
23828         (c_parser_objc_method_decl): Add parameter expr.  Update call to
23829         grokparm.
23830         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
23831         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
23832         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
23833
23834 2011-05-05  Michael Hope  <michael.hope@linaro.org>
23835
23836         PR pch/45979
23837         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
23838         __ARM_EABI__ hosts.
23839
23840 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23841
23842         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
23843         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
23844         (spu_output_mi_thunk): New function.
23845
23846 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23847
23848         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
23849         targetm.asm_out.print_operand.
23850         * config/sol2.c: Include target.h.
23851
23852 2011-05-04  Jan Hubicka  <jh@suse.cz>
23853
23854         * ipa-inline.c (reset_edge_caches): New function.
23855         (update_caller_keys): Add check_inlinablity_for; do not
23856         reset edge caches; remove now unnecesary loop.
23857         (update_callee_keys): Add comments; reset node_growth_cache of callee.
23858         (update_all_callee_keys): Likewise.
23859         (inline_small_functions): Sanity check cache; update code
23860         recomputing it.
23861
23862 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
23863
23864         PR rtl-optimization/47612
23865         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
23866         as the last insn of the sequence to be moved.
23867
23868 2011-05-04  Tobias Burnus  <burnus@net-b.de>
23869
23870         PR fortran/48864
23871         * doc/invoke.texi (Ofast): Document that it
23872         enables Fortran's -fno-protect-parens.
23873
23874 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
23875
23876         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
23877
23878 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
23879
23880         * stor-layout.c (variable_size): Do not issue errors.
23881
23882 2011-05-04  Richard Guenther  <rguenther@suse.de>
23883
23884         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
23885         for array-ref indices.
23886         (tree_coverage_counter_addr): Likewise.
23887         (build_fn_info_type): Use size_int for index types.
23888         (build_gcov_info): Likewise.
23889
23890 2011-05-04  Richard Guenther  <rguenther@suse.de>
23891
23892         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
23893         to build_int_cst.
23894         * c-typeck.c (really_start_incremental_init): Use bitsize_int
23895         for constructor indices.
23896         (push_init_level): Likewise.
23897
23898 2011-05-04  Richard Guenther  <rguenther@suse.de>
23899
23900         * explow.c (promote_mode): Move variable declarations before code.
23901
23902 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
23903
23904         * tree.h (build_function_type_array): Declare.
23905         (build_varargs_function_type_array): Declare.
23906         (build_function_type_vec, build_varargs_function_type_vec): Define.
23907         * tree.c (build_function_type_array_1): New function.
23908         (build_function_type_array): New function.
23909         (build_varargs_function_type_array): New function.
23910
23911 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
23912
23913         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
23914         before setting STMT_VINFO_TYPE.
23915
23916 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23917
23918         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
23919         instead of spu_pass_by_reference.
23920
23921 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23922
23923         * calls.c (emit_library_call_value_1): Invoke
23924         promote_function_mode hook on libcall arguments.
23925         * explow.c (promote_function_mode, promote_mode): Handle TYPE
23926         argument being NULL.
23927         * targhooks.c (default_promote_function_mode): Lisewise.
23928         * config/s390/s390.c (s390_promote_function_mode): Likewise.
23929         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
23930
23931         * doc/tm.texi: Document that TYPE argument might be NULL.
23932
23933 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
23934
23935         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
23936
23937 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
23938
23939         From Bernd Schmidt
23940         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
23941
23942 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23943
23944         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
23945         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
23946         Move ...
23947         * mips-tfile.c: ... here.
23948         Don't include coretypes.h, tm.h, filenames.h.
23949         (saber_stop): Remove definition and all calls.
23950         [__SABER__]: Remove.
23951         (__LINE__): Remove default.
23952         (Size_t, Ptrdiff_t): Remove definitions.
23953         Replace by size_t, ptrdiff_t.
23954         [!MIPS_DEBUGGING_INFO]: Remove.
23955         (SHASH_SIZE, THASH_SIZE): Remove defaults.
23956         (progname): Add const.
23957         (STATIC): Remove.
23958         Replace all uses by static.
23959         (ALIGN_SYMTABLE_OFFSET): Remove default.
23960         * mips-tdump.c: Don't include coretypes.h, tm.h.
23961         Remove !MIPS_IS_STAB guard.
23962         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
23963         $(TM_H), filenames.h dependencies.
23964         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
23965
23966 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
23967
23968         From Jie Zhang
23969         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
23970         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
23971
23972 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
23973
23974         From Bernd Schmidt
23975         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
23976         account and save/restore RETS.
23977         (PROFILE_BEFORE_PROLOGUE): Define.
23978         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
23979         the push insn to use predecrement.
23980
23981 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
23982
23983         From Jie Zhang
23984         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
23985
23986 2011-05-04  Nick Clifton  <nickc@redhat.com>
23987
23988         * config/mn10300/mn10300.c: Include cfgloop.h.
23989         (DUMP): New macro.
23990         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
23991         Lcc or a FLcc insn into the instruction stream.
23992         (mn10300_block_contains_call): New function.  Returns true if the
23993         given basic block contains a CALL insn.
23994         (mn10300_loop_contains_call_insn): New function.  Returns true if
23995         the given loop contains a CALL insn.
23996         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
23997         to use the SETLB and Lcc or FLcc insns.
23998         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
23999         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
24000         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
24001         disable the SETLB optimization.
24002         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
24003         __SETLB__ or __NO_SETLB__.
24004         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
24005         (movsf_internal): Handle MDR register.
24006         (cmpsi): Make visible.
24007         (setlb): New pattern.
24008         (Lcc): New pattern.
24009         (FLcc): New pattern.
24010
24011 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
24012
24013         PR target/48860
24014         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
24015         for reg<->xmm moves.
24016         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
24017         (vec_concatv2di_rex64_sse): Ditto.
24018         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
24019         (*vec_extractv2di_1_rex64): Ditto.
24020
24021         Revert:
24022         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
24023
24024         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
24025         reg<->xmm moves.
24026         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
24027
24028 2011-05-04  Richard Guenther  <rguenther@suse.de>
24029
24030         * tree.h (int_const_binop): Remove notrunc argument.
24031         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
24032         create integer constants that are properly truncated.
24033         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
24034         (const_binop): Remove zero notrunc argument to int_const_binop.
24035         (size_binop_loc): Likewise.
24036         (fold_div_compare): Likewise.
24037         (maybe_canonicalize_comparison_1): Likewise.
24038         (fold_comparison): Likewise.
24039         (fold_binary_loc): Likewise.
24040         (multiple_of_p): Likewise.
24041         * expr.c (store_constructor): Likewise.
24042         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
24043         (maybe_fold_stmt_addition): Likewise.
24044         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
24045         * stor-layout.c (layout_type): Likewise.
24046         * tree-data-ref.c (tree_fold_divides_p): Likewise.
24047         * tree-sra.c (build_ref_for_offset): Likewise.
24048         (build_user_friendly_ref_for_offset): Likewise.
24049         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
24050         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
24051         * tree-ssa-loop-niter.c (inverse): Likewise.
24052         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
24053         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
24054         * tree-switch-conversion.c (check_range): Likewise.
24055         (build_constructors): Likewise.
24056         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
24057         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
24058         (extract_range_from_assert): Likewise.
24059         (vrp_int_const_binop): Likewise.
24060         (extract_range_from_binary_expr): Likewise.
24061         (extract_range_from_unary_expr): Likewise.
24062         (check_array_ref): Likewise.
24063         (find_case_label_range): Likewise.
24064         (simplify_div_or_mod_using_ranges): Likewise.
24065         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
24066         comparing case labels for merging.
24067
24068 2011-05-03  Mark Wielaard  <mjw@redhat.com>
24069
24070         * dwarf2out.c (debug_str_hash_forced): Removed.
24071         (gen_label_for_indirect_string): Removed.
24072         (get_debug_string_label): Removed.
24073         (AT_string_form): Generate label directly.
24074         (output_indirect_string): Test indirect_string_node for
24075         DW_FORM_strp instead of checking label and refcount.
24076         (prune_indirect_string): Removed.
24077         (prune_unused_types): Don't check debug_str_hash_forced or
24078         call prune_indirect_string.
24079
24080 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
24081
24082         PR other/48093
24083         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
24084
24085 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
24086
24087         PR debug/47994
24088         PR debug/47919
24089         * combine.c (try_combine): Skip debug insns at m_split tests.
24090
24091 2011-04-26  Mark Wielaard  <mjw@redhat.com>
24092
24093         PR42288
24094         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
24095         when info_section_emitted.
24096
24097 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
24098
24099         * config/mips/mips-opts.h: New.
24100         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
24101         to mips-opts.h.
24102         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
24103         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
24104         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
24105         via opts pointer.
24106         * config/mips/mips.h (enum mips_code_readable_setting): Move to
24107         mips-opts.h.
24108         (mips_abi, mips_code_readable): Don't declare.
24109         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
24110         (mabi=): Use Enum and Var.
24111         (mips_abi): New Enum and EnumValue entries.
24112         (mcode-readable=): Use Enum and Var.
24113         (mips_code_readable_setting): New Enum and EnumValue entries.
24114         (mr10k-cache-barrier=): Use Enum and Var.
24115         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
24116
24117 2011-05-03  Jan Hubicka  <jh@suse.cz>
24118
24119         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
24120         replace hash by pointer map.
24121         (cgraph_node_set_element_def, cgraph_node_set_element,
24122         const_cgraph_node_set_element, varpool_node_set_element_def,
24123         varpool_node_set_element, const_varpool_node_set_element): Remove.
24124         (free_cgraph_node_set, free_varpool_node_set): New function.
24125         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
24126         * tree-emutls.c: Free varpool node set.
24127         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
24128         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
24129         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
24130         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
24131         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
24132         Move here from ipa.c; implement using pointer_map
24133         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
24134         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
24135         debug_cgraph_node_set, varpool_node_set_new,
24136         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
24137         dump_varpool_node_set, debug_varpool_node_set):
24138         Move to ipa-uitls.c.
24139         * passes.c (ipa_write_summaries): Update.
24140
24141 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
24142
24143         From Mike Frysinger:
24144         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
24145         bf542/bf544/bf547/bf548/bf549.
24146
24147 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
24148
24149         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
24150
24151 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
24152
24153         From Bernd Schmidt:
24154         * config/bfin/bfin.md (MOVCC): New mode_macro.
24155         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
24156         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
24157         comments from generated assembly.
24158
24159 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
24160
24161         From Bernd Schmidt
24162         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
24163         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
24164         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
24165         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
24166         * config/bfin/lib1funcs.asm (___muldi3): New function.
24167
24168 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
24169
24170         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
24171         build_function_type_list instead of build_function_type.
24172         Rearrange initialization of `args' to do so.
24173
24174 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
24175
24176         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
24177         instead of build_function_type.
24178
24179 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
24180
24181         * config/rs6000/rs6000.c (spe_init_builtins): Call
24182         build_function_type_list instead of build_function_type.
24183         (paired_init_builtins, altivec_init_builtins): Likewise.
24184         (builtin_function_type): Likewise.
24185
24186 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
24187
24188         * config/sh/sh.c (sh_media_init_builtins): Call
24189         build_function_type_list instead of build_function_type.
24190
24191 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
24192
24193         * config/sparc/sparc.c (sparc_file_end): Call
24194         build_function_type_list instead of build_function_type.
24195
24196 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
24197
24198         * config/alpha/alpha.c (alpha_init_builtins): Call
24199         build_function_type_list instead of build_function_type.
24200
24201 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
24202
24203         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
24204         build_function_type_list instead of build_function_type.
24205
24206 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
24207
24208         * config/iq2000/i2000.c (iq2000_init_builtins): Call
24209         build_function_type_list instead of build_function_type.
24210         Delete `endlink' variable.
24211
24212 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
24213
24214         * config/avr/avr.c (avr_init_builtins): Call
24215         build_function_type_list instead of build_function_type.
24216
24217 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
24218
24219         * config/picochip/picochip.c (picochip_init_builtins): Call
24220         build_function_type_list instead of build_function_type.
24221         Delete `endlink' variable.
24222
24223 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
24224
24225         * config/bfin/bfin.c (bfin_init_builtins): Call
24226         build_function_type_list instead of build_function_type.
24227
24228 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
24229
24230         From Bernd Schmidt
24231         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
24232         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
24233
24234 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
24235
24236         From Jie Zhang:
24237         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
24238         libbffastfp overrides libgcc when -mfast-fp.
24239
24240 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
24241
24242         Originally from Bernd Schmidt
24243         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
24244         * config/bfin/bfin.c (override_options): Test it and error if
24245         TARGET_FDPIC.
24246
24247 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
24248
24249         Originally From Bernd Schmidt
24250         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
24251         FD-PIC.
24252
24253 2011-05-03  Jeff Law  <law@redhat.com>
24254
24255         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
24256         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
24257         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
24258         than accessing AUX field directly.  Free the AUX field before
24259         clearing it.
24260         (thread_block, thread_through_loop_header): Likewise.
24261         (thread_single_edge, mark_threaded_blocks): Likewise.
24262         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
24263         (register_jump_thread): Do not attempt to thread to a NULL edge.
24264
24265 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
24266
24267         * function.c (init_function_start): Call decide_function_section.
24268         * varasm.c (decide_function_section): New function.
24269         (assemble_start_function): When not using
24270         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
24271         or first_function_block_is_cold.
24272         * rtl.h (decide_function_section): Declare.
24273
24274 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
24275             Jakub Jelinek  <jakub@redhat.com>
24276
24277         PR target/48774
24278         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
24279         only succeed if req_mode is the same as set_mode.
24280
24281 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
24282
24283         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
24284         * genemit.c (gen_exp): Handle RETURN.
24285         * emit-rtl.c (verify_rtx_sharing): Likewise.
24286         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
24287         * rtl.c (copy_rtx): RETURN is shared.
24288         * rtl.h (enum global_rtl_index): Add GR_RETURN.
24289         (ret_rtx): New.
24290         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
24291         * config/s390/s390.c (s390_emit_epilogue): Likewise.
24292         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
24293         * config/cris/cris.c (cris_expand_return): Likewise.
24294         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
24295         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
24296         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
24297         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
24298         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
24299         Likewise.
24300         * config/v850/v850.c (expand_epilogue): Likewise.
24301         * config/bfin/bfin.c (bfin_expand_call): Likewise.
24302         * config/arm/arm.md (epilogue): Likewise.
24303         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
24304         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
24305         variable to ret_reg.
24306
24307 2011-05-03  Richard Guenther  <rguenther@suse.de>
24308
24309         PR lto/48846
24310         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
24311         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
24312         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
24313
24314 2011-05-03  Richard Guenther  <rguenther@suse.de>
24315
24316         * c-decl.c (grokdeclarator): Instead of looking at
24317         TREE_OVERFLOW check if the constant fits in the index type.
24318
24319 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
24320
24321         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
24322         (vec_store_lanes<mode><mode>): Likewise.
24323
24324 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
24325
24326         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
24327         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
24328         convert_optab_index values.
24329         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
24330         * genopinit.c (optabs): Initialize the new optabs.
24331         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
24332         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
24333         (expand_STORE_LANES): New functions.
24334         * tree.h (build_array_type_nelts): Declare.
24335         * tree.c (build_array_type_nelts): New function.
24336         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
24337         (vect_model_load_cost): Likewise.
24338         (vect_store_lanes_supported, vect_load_lanes_supported)
24339         (vect_record_strided_load_vectors): Declare.
24340         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
24341         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
24342         (vect_transform_strided_load): Split out statement recording into...
24343         (vect_record_strided_load_vectors): ...this new function.
24344         * tree-vect-stmts.c (create_vector_array, read_vector_array)
24345         (write_vector_array, create_array_ref): New functions.
24346         (vect_model_store_cost): Add store_lanes_p argument.
24347         (vect_model_load_cost): Add load_lanes_p argument.
24348         (vectorizable_store): Try to use store-lanes functions for
24349         interleaved stores.
24350         (vectorizable_load): Likewise load-lanes and loads.
24351         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
24352         to vect_model_store_cost.
24353         (vect_build_slp_tree): Likewise vect_model_load_cost.
24354
24355 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
24356
24357         * hooks.h (hook_bool_mode_uhwi_false): Declare.
24358         * hooks.c (hook_bool_mode_uhwi_false): New function.
24359         * target.def (array_mode_supported_p): New hook.
24360         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
24361         * doc/tm.texi: Regenerate.
24362         * stor-layout.c (mode_for_array): New function.
24363         (layout_type): Use it.
24364         * config/arm/arm.c (arm_array_mode_supported_p): New function.
24365         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
24366
24367 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
24368
24369         PR target/48723
24370         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
24371         for -fstack-check if the size to allocate is negative.
24372
24373 2011-05-02  Lawrence Crowl  <crowl@google.com>
24374
24375         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
24376         (timevar_cond_start): New for starting a timer only when it is not
24377         already running.
24378         (timevar_cond_stop): New for stopping a timer when it was not already
24379         running.
24380
24381         * timevar.c (timevar_stop): Enable start/stop timers to start again.
24382         (timevar_cond_start): New as above.
24383         (timevar_cond_stop): New as above.
24384
24385         * timevar.def: Add start/stop timers for compiler phases,
24386         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
24387         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
24388         and TV_PHASE_FINALIZE.
24389         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
24390         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
24391         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
24392         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
24393         Make unused TV_OVERLOAD into a start/stop timer.
24394
24395         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
24396         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
24397         to indicate that they are start/stop timers.
24398
24399         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
24400         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
24401         Move initialization to do_compile.
24402         (do_compile): Add initialization from above.
24403         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
24404
24405         * c-decl.c (c_write_global_declarations): Add start/stop of
24406         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
24407
24408         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
24409         or TV_PARSE_INLINE, as appropriate.
24410         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
24411         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
24412
24413 2011-05-02  Jason Merrill  <jason@redhat.com>
24414
24415         PR c++/40975
24416         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
24417
24418 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
24419
24420         PR c/35445
24421         * c-decl.c (finish_decl): Only create a composite if the types are
24422         compatible.
24423
24424 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
24425
24426         * config/fr30/fr30-protos.h (Mmode): Don't define.
24427         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
24428         definition where used.
24429         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
24430         define.  Expand definitions where used.
24431         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
24432         Expand definitions where used.
24433         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
24434         rx_function_arg, rx_function_arg_advance,
24435         rx_function_arg_boundary): Expand definitions of those macros.
24436         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
24437         definition where used.
24438
24439 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
24440
24441         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
24442         reg<->xmm moves.
24443         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
24444         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
24445         with *movv2sf_internal_rex64_avx.
24446         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
24447         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
24448         Use %v prefix in insn mnemonic to handle TARGET_AVX.
24449         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
24450         "vex" in "prefix" attribute calculation.
24451         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
24452
24453 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
24454
24455         PR target/47951
24456         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
24457         inputs match the output.
24458
24459 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
24460
24461         PR target/47955
24462         * config/m68k/m68k.c (m68k_expand_prologue): Set
24463         current_function_static_stack_size.
24464
24465 2011-05-02   Jan Hubicka  <jh@suse.cz>
24466
24467         * lto-streamer.c (lto_streamer_cache_insert_1,
24468         lto_streamer_cache_lookup, lto_streamer_cache_create,
24469         lto_streamer_cache_delete): Use pointer map instead of hashtable.
24470         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
24471
24472 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
24473
24474         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
24475         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
24476         config/m68k/t-opts: New files.
24477         * config/m68k/m68k-tables.opt: New file (generated).
24478         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
24479         extra_options and m68k/t-opts to tmake_file.
24480         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
24481         (all_isas): Initialize using m68k-isas.def.
24482         (all_microarchs): Initialize using m68k-microarchs.def.
24483         (m68k_find_selection): Remove.
24484         (m68k_handle_option): Don't assert that global structures are in
24485         use.  Use error_at.  Access variables via opts pointer.  Don't
24486         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
24487         directly for -m68020-40 and -m68020-60.
24488         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
24489         m68k_tune_entry here.
24490         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
24491         to m68k-opts.h.
24492         (m68k_library_id_string): Remove declaration.
24493         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
24494         (m68k_library_id_string): New Variable.
24495         (march=, mcpu=, mtune=): Use Enum and Var.
24496
24497 2011-05-02  Richard Guenther  <rguenther@suse.de>
24498
24499         * varasm.c (output_constructor_regular_field): Compute zero-based
24500         index with double-ints.  Make sure to ICE instead of producing
24501         wrong code.
24502         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
24503         in asserts.  Properly use a signed type.
24504
24505 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
24506
24507         * config/i386/sse.md (V): New mode iterator.
24508         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
24509         TARGET_SSE2.
24510         (V_256): Rename from AVX256MODE.
24511         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
24512         condition to all users.
24513         (VF1): Ditto.
24514         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
24515         condition to all users.
24516         (VF_128): Make V4SF mode unconditional.
24517         (VF_256): Rename from AVX256MODEF2P.
24518         (VI4F_128): Rename from SSEMODE4S.
24519         (VI8F_128): Rename from SSEMODE2D.
24520         (VI4F_256): Rename from AVX256MODE8P.
24521         (VI8F_256): Rename from AVX256MODE4P.
24522         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
24523         (ssescalarmodesuffix): Remove SF and DF modes.
24524         (SSEMODE124): Remove.
24525         (SSEMODE1248): Ditto.
24526         (SSEMODEF2P): Ditto.
24527         (AVXMODEF2P): Ditto.
24528         (AVXMODEFDP): Ditto.
24529         (AVXMODEFSP): Ditto.
24530         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
24531         unconditional.
24532         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
24533         unconditional.
24534         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
24535         xop_pcmov_<mode>256.  Use V mode iterator.
24536
24537         Adjust RTX patterns globally for renamed mode attributes.
24538
24539 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24540
24541         * haifa-sched.c (sched_emit_insn): Emit insn before first
24542         non-scheduled insn.  Inform back-end about new insn.  Add
24543         new insn to scheduled_insns list.
24544
24545 2011-05-02  Richard Guenther  <rguenther@suse.de>
24546
24547         PR tree-optimization/48822
24548         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
24549         (process_scc): Indicate which iteration we start.
24550
24551 2011-05-02  Jan Hubicka  <jh@suse.cz>
24552
24553         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
24554         (lto_section_overrun): New.
24555         * lto-section-out.c (append_block): Rename to ...
24556         (lto_append_block): ... this one; export.
24557         (lto_output_1_stream): Move lto lto-streamer.h
24558         (lto_output_data_stream): Update.
24559         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
24560         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
24561         functions.
24562
24563 2011-05-02  Richard Guenther  <rguenther@suse.de>
24564
24565         * tree.c (tree_code_counts): New global array.
24566         (record_node_allocation_statistics): Count individual tree codes.
24567         (dump_tree_statistics): Dump individual code stats.
24568
24569 2011-05-01  Jan Hubicka  <jh@suse.cz>
24570
24571         * ipa-inline.c (caller_growth_limits): Fix thinko when
24572         looking for largest stack frame.
24573         * ipa-inline.h (dump_inline_summary): Declare.
24574         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
24575         on stack usage.
24576         (dump_inline_summary): Export.
24577         (debug_inline_summary): Declare as DEBUG_FUNCTION.
24578
24579 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
24580
24581         * reginfo.c (memory_move_cost): Change rclass argument type form
24582         'enum reg_class' to reg_class_t.
24583         * reload.h (memory_move_cost): Update prototype.
24584         * postreload.c reload_cse_simplify_set): Change type dclass var to
24585         reg_class_t.
24586         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
24587         Update prototype.
24588         (ira_allocate_and_set_costs): Change aclass argument type form
24589         'enum reg_class' to reg_class_t.
24590         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
24591         Change aclass argument type to reg_class_t.
24592         (update_conflict_hard_reg_costs): Change type aclass and pref vars
24593         to reg_class_t.
24594         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
24595         memory_move_cost call.
24596
24597         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
24598         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
24599         Change type tmp var to reg_class_t.
24600
24601 2011-04-30  Jan Hubicka  <jh@suse.cz>
24602
24603         * ipa-inline.c (can_inline_edge_p): Disregard limits when
24604         inlining into function with flatten attribute.
24605         (want_inline_small_function_p): Be more realistic about inlining
24606         cold calls where callee size grows.
24607
24608 2011-04-30  Jan Hubicka  <jh@suse.cz>
24609
24610         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
24611         flags.
24612
24613 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
24614
24615         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
24616         PRINT_OPERAND_PUNCT_VALID_P): Remove.
24617         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
24618         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
24619         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
24620         (print_operand): Rename to...
24621         (sparc_print_operand): ...this. Make static. Adjust
24622         sparc_print_operand function call.
24623         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
24624         functions.
24625
24626 2011-04-30  Jan Hubicka  <jh@suse.cz>
24627
24628         PR middle-end/48752
24629         * ipa-inline.c (early_inliner): Disable when doing late
24630         addition of function.
24631
24632 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
24633
24634         * dwarf2out.c (get_address_mode): New inline.
24635         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
24636         if not dwarf_strict emit
24637         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
24638         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
24639         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
24640         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
24641         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
24642         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
24643         mem_loc_descriptor callers.
24644         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
24645         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
24646         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
24647         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
24648         (base_types): New variable.
24649         (get_base_type_offset, calc_base_type_die_sizes,
24650         base_type_for_mode, mark_base_types, base_type_cmp,
24651         move_marked_base_types): New functions.
24652         (calc_die_sizes): Assert that die_offset is 0 or equal to
24653         next_die_offset.
24654         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
24655         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
24656         callers.  If not dwarf_strict, call mem_loc_descriptor even for
24657         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
24658         (gen_subprogram_die): Don't give up on call site parameters
24659         with non-integral or large integral modes.  Adjust
24660         mem_loc_descriptor callers.
24661         (prune_unused_types): Call prune_unused_types_mark on base_types
24662         vector entries.
24663         (resolve_addr): Call mark_base_types.
24664         (dwarf2out_finish): Call move_marked_base_types.
24665
24666         PR tree-optimization/48809
24667         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
24668         type.
24669         (gen_inbound_check): Don't compute index_expr - range_min in utype
24670         again, instead reuse SSA_NAME initialized in build_arrays.
24671         Remove two useless gsi_for_stmt calls.
24672
24673 2011-04-29  Jeff Law  <law@redhat.com>
24674
24675         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
24676
24677 2011-04-29  Martin Jambor  <mjambor@suse.cz>
24678
24679         * cgraph.h (cgraph_postorder): Remove declaration.
24680         * ipa-utils.h (ipa_free_postorder_info): Declare.
24681         (ipa_reverse_postorder): Likewise.
24682         * cgraphunit.c: Include ipa-utils.h.
24683         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
24684         * ipa-inline.c: Include ipa-utils.h.
24685         (ipa_inline): Update call to ipa_reverse_postorder.
24686         * ipa-pure-const.c (propagate_pure_const): Update call to
24687         ipa_reduced_postorder and ipa_print_order.  Call
24688         ipa_free_postorder_info to clean up.
24689         (propagate_nothrow): Likewise.
24690         * ipa-reference.c (propagate): Removed a useless call to
24691         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
24692         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
24693         * ipa.c: Include ipa-utils.h.
24694         (ipa_profile): Update call to ipa_reverse_postorder.
24695         (cgraph_postorder): Moved to...
24696         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
24697         (ipa_utils_print_order): Renamed to ipa_print_order.
24698         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
24699         comments.
24700         (ipa_free_postorder_info): New function.
24701         * passes.c: Include ipa-utils.h.
24702         (do_per_function_toporder): Update call to ipa_reverse_postorder.
24703         (ipa_write_summaries): Likewise.
24704         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
24705         (cgraphunit.o): Likewise.
24706         (ipa.o): Likewise.
24707         (ipa-inline.o): Likewise.
24708
24709 2011-04-29  Jan Hubicka  <jh@suse.cz>
24710
24711         * ipa-inline.h (clause_t): Turn into unsigned int.
24712         * ipa-inline-analysis.c (add_clause): Do more simplification.
24713         (and_predicates): Shortcut more cases.
24714         (predicates_equal_p): Move forward; check that clauses are properly
24715         ordered.
24716         (or_predicates): Shortcut more cases.
24717         (edge_execution_predicate): Rewrite as...
24718         (set_cond_stmt_execution_predicate): ... this function; handle
24719         __builtin_constant_p.
24720         (set_switch_stmt_execution_predicate): New .
24721         (compute_bb_predicates): New.
24722         (will_be_nonconstant_predicate): Update TODO.
24723         (estimate_function_body_sizes): Use compute_bb_predicates
24724         and free them later, always try to estimate if stmt is constant.
24725         (estimate_time_after_inlining, estimate_size_after_inlining):
24726         Gracefully handle optimized out edges.
24727         (read_predicate): Fix off by one error.
24728
24729 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
24730
24731         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
24732
24733 2011-04-27  Xinliang David Li  <davidxl@google.com>
24734
24735         * tree-profile.c (init_ic_make_global_vars): Set
24736         tls attribute on ic vars.
24737         * coverage.c (coverage_end_function): Initialize
24738         function_list with zero.
24739
24740 2011-04-29  Richard Guenther  <rguenther@suse.de>
24741
24742         * builtins.c (fold_builtin_classify_type): Use integer_type_node
24743         for the type of the result.
24744         (fold_builtin_isascii): Likewise.
24745         (fold_builtin_toascii): Use integer_type_node where appropriate.
24746         (fold_builtin_logb): Likewise.
24747         (fold_builtin_frexp): Likewise.
24748         (fold_builtin_strstr): Likewise.
24749         (fold_builtin_strpbrk): Likewise.
24750         (fold_builtin_fputs): Likewise.
24751         (fold_builtin_sprintf): Likewise.
24752         (fold_builtin_snprintf): Likewise.
24753         (fold_builtin_printf): Likewise.
24754         (do_mpfr_remquo): Use a proper type for the assigned constant.
24755         (do_mpfr_lgamma_r): Likewise.
24756         * dwarf2out.c (resolve_one_addr): Use size_int.
24757         * except.c (init_eh): Likewise.
24758         (assign_filter_values): Use integer_type_node for filter values.
24759         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
24760         indices.
24761         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
24762         for EH region numbers.
24763         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
24764         for the shift amount.
24765
24766 2011-04-29  Richard Guenther  <rguenther@suse.de>
24767
24768         * expr.h (expand_shift): Rename to ...
24769         (expand_variable_shift): ... this.
24770         (expand_shift): Take a constant shift amount.
24771         * expmed.c (expand_shift): Rename to ...
24772         (expand_variable_shift): ... this.
24773         (expand_shift): New wrapper around expand_variable_shift.
24774         * expr.c (convert_move, emit_group_load_1, emit_group_store,
24775         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
24776         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
24777         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
24778         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
24779         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
24780         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
24781         emit_store_flag_1, emit_store_flag): Likewise.
24782         * builtins.c (expand_builtin_signbit): Likewise.
24783         * calls.c (load_register_parameters): Likewise.
24784         * function.c (assign_parm_setup_block): Likewise.
24785         * lower-subreg.c (resolve_shift_zext): Likewise.
24786         * optabs.c (widen_bswap, expand_abs_nojump,
24787         expand_one_cmpl_abs_nojump, expand_float): Likewise.
24788         * spu/spu.c (spu_expand_extv): Likewise.
24789         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
24790
24791 2011-04-29  Richard Guenther  <rguenther@suse.de>
24792
24793         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
24794         for the remapped region number.
24795         * predict.c (build_predict_expr): Use integer_type_node for the
24796         predict kind.
24797         * fold-const.c (fold_binary_loc): Use integer_type_node for
24798         the shift amount.  Use a proper type for the PLUS_EXPR operand.
24799
24800 2011-04-29  Michael Matz  <matz@suse.de>
24801
24802         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
24803         other trees that just builtins.
24804         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
24805
24806 2011-04-29  Richard Guenther  <rguenther@suse.de>
24807
24808         * tree-nested.c (get_trampoline_type): Use size_int.
24809         (get_nl_goto_field): Likewise.
24810         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
24811         for all indexes.
24812         (lower_eh_constructs_2): Likewise.
24813         (lower_resx): Likewise.
24814         (lower_eh_dispatch): Likewise.
24815         * tree-mudflap.c (mf_build_string): Use size_int.
24816         (mudflap_register_call): Use integer_type_node for the flag.
24817         (mudflap_enqueue_constant): Use size_int.
24818         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
24819         instead of rebuilding it.
24820
24821 2011-04-29  Richard Guenther  <rguenther@suse.de>
24822
24823         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
24824         Handle OBJ_TYPE_REF.
24825         (find_func_aliases_for_call): Use it more consistently.
24826
24827 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
24828
24829         * haifa-sched.c (last_nondebug_scheduled_insn): New.
24830         (rank_for_schedule): Use it.
24831         (schedule_block): Set it.
24832
24833 2011-04-28  David Li  <davidxl@google.com>
24834
24835         * tree.c (crc32_string): Use crc32_byte.
24836         (crc32_byte): New function.
24837         * tree.h (crc32_byte): New function.
24838         * gcov.c (read_graph_file): Handle new cfg_cksum.
24839         (read_count_file): Ditto.
24840         * profile.c (instrument_values): Ditto.
24841         (get_exec_counts): Ditto.
24842         (read_profile_edge_counts): Ditto.
24843         (compute_branch_probabilities): Ditto.
24844         (compute_value_histograms): Ditto.
24845         (branch_prob): Ditto.
24846         (end_branch_prob): Ditto.
24847         * coverage.c (read_counts_file): Ditto.
24848         (get_coverage_counts): Ditto.
24849         (tree_coverage_counter_addr): Ditto.
24850         (coverage_checksum_string): Ditto.
24851         (coverage_begin_output): Ditto.
24852         (coverage_end_function): Ditto.
24853         (build_fn_info_type): Ditto.
24854         (build_fn_info_value): Ditto.
24855         * libgcov.c (gcov_exit): Ditto.
24856         * gcov-dump.c (tag_function): Ditto.
24857         (compute_checksum): Remove.
24858
24859 2011-04-29  Alan Modra  <amodra@gmail.com>
24860
24861         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
24862         unspec plus offset.  Tidy macho code.
24863
24864 2011-04-29  Martin Jambor  <mjambor@suse.cz>
24865
24866         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
24867         node instead of a decl.  Update all callers.
24868         * cgraph.h: Update declaration.
24869
24870 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
24871
24872         PR tree-optimization/48765
24873         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
24874         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
24875         to indicate if loop aware SLP is being used.  Scan the statements
24876         and update the vectorization factor according to the type of
24877         vectorization before statement analysis.
24878         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
24879         pass it to vect_analyze_loop_operations.
24880         (vectorizable_reduction): Set number of copies to 1 in case of pure
24881         SLP statement.
24882         * tree-vect-stmts.c (vectorizable_conversion,
24883         vectorizable_assignment, vectorizable_shift,
24884         vectorizable_operation, vectorizable_type_demotion,
24885         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
24886         Likewise.
24887         (vectorizable_condition): Move the check that it is not SLP
24888         vectorization before the number of copies check.
24889         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
24890         to vectorize the loop using SLP.
24891
24892 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
24893
24894         PR middle-end/48597
24895         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
24896         inline asm.
24897
24898 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
24899
24900         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
24901         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
24902         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
24903         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
24904         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
24905         linux*.h headers.
24906         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
24907         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
24908         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
24909         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
24910         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
24911         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
24912         REG_NAME.
24913         * config/i386/linux.h (REG_NAME): Don't define.
24914         * config/i386/linux64.h (REG_NAME): Don't define.
24915         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
24916         Undefine before defining.
24917
24918 2011-04-28  Jan Hubicka  <jh@suse.cz>
24919
24920         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
24921         nonconstant_names array.
24922         (estimate_function_body_sizes): Build nonconstant_names array; handle
24923         BUILT_IN_CONSTANT_P.
24924
24925 2011-04-28  Richard Guenther  <rguenther@suse.de>
24926
24927         PR bootstrap/48804
24928         Revert
24929         2011-04-28  Richard Guenther  <rguenther@suse.de>
24930
24931         * tree-ssa-structalias.c (solve_constraints): Build succ graph
24932         as late as possible.
24933
24934 2011-04-28  Richard Guenther  <rguenther@suse.de>
24935
24936         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
24937         (debug_constraint): Do it here.
24938         (dump_constraints): And here.
24939         (rewrite_constraints): And here.
24940         (dump_constraint_edge): Remove.
24941         (dump_constraint_graph): Rewrite to produce DOT output.
24942         (solve_constraints): Build succ graph as late as possible.
24943         Dump constraint graphs before and after solving.
24944
24945 2011-04-28  Richard Guenther  <rguenther@suse.de>
24946
24947         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24948         New function split out from ...
24949         (find_func_aliases): ... here.  Call it.
24950         (find_func_aliases_for_call): Likewise.
24951
24952 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
24953
24954         * internal-fn.h (internal_fn_name_array): Declare.
24955         (internal_fn_flags_array): Likewise.
24956
24957 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
24958
24959         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
24960         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
24961         Move from sse.md.
24962         (ssemodefsuffix): Remove.
24963         (ssevecmodesuffix): New mode attribute.
24964         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
24965         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
24966         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
24967         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
24968         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
24969         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
24970         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
24971         ssemodesuffix mode attribute.
24972         (float splitters): Use ssevecmodesuffix mode attribute.
24973         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
24974         (sseinsmode): Rename from avxvecmode.
24975         (avxsizesuffix): Rename from avxmodesuffix.
24976         (sseintvecmode): Rename from avxpermvecmode.
24977         (ssedoublevecmode): Rename from ssedoublesizemode.
24978         (ssehalfvecmode): Rename from avxhalfvecmode.
24979         (ssescalarmode): Rename from avxscalarmode.
24980         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
24981         templates for ssemodesuffix mode attribute.
24982         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
24983         mode attribute.
24984
24985         Adjust RTX patterns globally for renamed mode attributes.
24986
24987 2011-04-27  Jan Hubcika  <jh@suse.cz>
24988
24989         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
24990         * ipa-inline-analysis.c: Include alloc-pool.h.
24991         (edge_predicate_pool): New.
24992         (trye_predicate_p): New function
24993         (false_predicate_p): New function.
24994         (add_clause): Sanity check that false clauses are "optimized";
24995         never add clauses to predicate that is already known to be false.
24996         (and_predicate): Use flase_predicate_p.
24997         (evaulate_predicate): Rename to ...
24998         (evaluate_predicate): ... this one; update all callers; assert
24999         that false is not listed among possible truths.
25000         (dump_predicate): Use true_predicate_p.
25001         (account_size_time): Use false_predicate_p.
25002         (evaulate_conditions_for_edge): Rename to ...
25003         (evaluate_conditions_for_edge) ... this one.
25004         (edge_set_predicate): New function.
25005         (inline_edge_duplication_hook): Duplicate edge predicates.
25006         (inline_edge_removal_hook): Free edge predicates.
25007         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
25008         (dump_inline_summary): Update.
25009         (estimate_function_body_sizes): Set edge predicates.
25010         (estimate_calls_size_and_time): Handle predicates.
25011         (estimate_callee_size_and_time): Update.
25012         (remap_predicate): Add toplev_predicate; update comment.
25013         (remap_edge_predicates): New function.
25014         (inline_merge_summary): Compute toplev predicate; update.
25015         (read_predicate): New function.
25016         (read_inline_edge_summary): Use it.
25017         (inline_read_section): Likewise.
25018         (write_predicate): New function.
25019         (write_inline_edge_summary): Use it.
25020         (inline_write_summary): Likewise.
25021         (inline_free_summary): Free alloc pool and edge summary vec.
25022
25023 2011-04-27  Richard Guenther  <rguenther@suse.de>
25024
25025         * tree-ssa-structalias.c (changed_count): Remove.
25026         (changed): Use a bitmap.
25027         (unify_nodes): Adjust.
25028         (do_sd_constraint): Likewise.
25029         (do_ds_constraint): Likewise.
25030         (do_complex_constraint): Likewise.
25031         (solve_graph): Likewise.
25032
25033 2011-04-27  Jan Hubicka  <jh@suse.cz>
25034
25035         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
25036
25037 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
25038
25039         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
25040         (avx_vperm2f128_*_operand): Ditto.
25041         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
25042         Use avx_vpermilp_parallel in insn condition.
25043         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
25044         Use avx_vperm2f128_parallel in insn condition.
25045
25046 2011-04-27  Richard Guenther  <rguenther@suse.de>
25047
25048         * Makefile.in (tree-ssa-structalias.o): Remove
25049         gt-tree-ssa-structalias.h dependency.
25050         (GTFILES): Remove tree-ssa-structalias.c.
25051         * tree.c (allocate_decl_uid): New function.
25052         (make_node_stat): Use it.
25053         (copy_node_stat): Likewise.
25054         * tree.h (allocate_decl_uid): Declare.
25055         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
25056         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
25057         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
25058         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
25059         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
25060         (struct heapvar_map): Likewise.
25061         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
25062         heapvar_insert): Likewise.
25063         (make_heapvar_for): Rename to ...
25064         (make_heapvar): ... this.  Simplify.
25065         (fake_var_decl_obstack): New global var.
25066         (build_fake_var_decl): New function.
25067         (make_constraint_from_heapvar): Adjust.
25068         (handle_lhs_call): Likewise.
25069         (create_function_info_for): Likewise.
25070         (intra_create_variable_infos): Likewise.
25071         (init_alias_vars): Allocate fake_var_decl_obstack.
25072         (init_alias_heapvars, delete_alias_heapvars): Remove.
25073         (compute_points_to_sets): Do not call init_alias_heapvars.
25074         (ipa_pta_execute): Likewise.
25075         (delete_points_to_sets): Free fake_var_decl_obstack.
25076
25077 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25078
25079         * config/spu/divmovti4.c (union qword_UTItype): New data type.
25080         (si_from_UTItype, si_to_UTItype): New functions.
25081         (__udivmodti4): Use them to implement type-punning.
25082         * config/spu/multi3.c (union qword_TItype): New data type.
25083         (si_from_TItype, si_to_TItype): New functions.
25084         (__multi3): Use them to implement type-punning.
25085
25086 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25087
25088         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
25089
25090 2011-04-27  Jan Hubicka  <jh@suse.cz>
25091
25092         * ipa-prop.c (function_insertion_hook_holder): New holder.
25093         (ipa_add_new_function): New function.
25094         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
25095         Register/deregister holder.
25096
25097 2011-04-27  Richard Guenther  <rguenther@suse.de>
25098
25099         PR tree-optimization/48772
25100         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
25101
25102 2011-04-27  Richard Guenther  <rguenther@suse.de>
25103
25104         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
25105         TARGET_MEM_REF handling.
25106
25107 2011-04-27  Nick Clifton  <nickc@redhat.com>
25108
25109         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
25110         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
25111         (REG_CLASS_NAMES): Likewise.
25112         (REG_CLASS_CONTENTS): Likewise.
25113         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
25114         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
25115         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
25116         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
25117         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
25118         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
25119         duplicate register classes.
25120         (frv_class_likely_spilled_p): Likewise.
25121         (frv_register_move_cost): Likewise.
25122
25123         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
25124         end of the regno_reg_class array.
25125
25126 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
25127
25128         PR c/48742
25129         * c-typeck.c (build_binary_op): Don't wrap arguments if
25130         int_operands is true.
25131
25132 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
25133
25134         PR target/48767
25135         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
25136         targetm.calls.must_pass_in_stack for void type.
25137
25138 2011-04-26  Jan Hubicka  <jh@suse.cz>
25139
25140         * cgraphbuild.c (build_cgraph_edges): Update call
25141         of cgraph_create_edge and cgraph_create_indirect_edge.
25142         * cgraph.c (cgraph_create_edge_including_clones,
25143         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
25144         cgraph_update_edges_for_call_stmt_node): Do not take nest
25145         argument; do not initialize call_stmt_size/time.
25146         (dump_cgraph_node): Do not dump nest.
25147         (cgraph_clone_edge): Do not take loop_nest argument;
25148         do not propagate it; do not clone call_stmt_size/time.
25149         (cgraph_clone_node): Likewise.
25150         (cgraph_create_virtual_clone): Update.
25151         * cgraph.h (struct cgraph_edge): Remove
25152         call_stmt_size/call_stmt_time/loop_nest.
25153         (cgraph_create_edge, cgraph_create_indirect_edge,
25154         cgraph_create_edge_including_clones, cgraph_clone_node): Update
25155         prototype.
25156         * tree-emutls.c (gen_emutls_addr): Update.
25157         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
25158         loop_nest; handle indirect calls, too.
25159         (clone_inlined_nodes): Do not care about updating inline summaries.
25160         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
25161         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
25162         stream call_stmt_size/call_stmt_time/loop_nest.
25163         * ipa-inline.c (edge_badness): Update.
25164         (ipa_inline): dump summaries after inlining.
25165         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
25166         New.
25167         (inline_edge_summary): New function.
25168         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
25169         (inline_edge_removal_hook): Handle edge summaries.
25170         (inline_edge_duplication_hook): New hook.
25171         (inline_summary_alloc): Alloc hooks.
25172         (initialize_growth_caches): Do not register removal hooks.
25173         (free_growth_caches); Do not free removal hook.
25174         (dump_inline_edge_summary): New function.
25175         (dump_inline_summary): Use it.
25176         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
25177         (inline_update_callee_summaries): New function.
25178         (inline_merge_summary): Use it.
25179         (do_estimate_edge_time, do_estimate_edge_growth): Update.
25180         (read_inline_edge_summary): New function.
25181         (inline_read_section): Use it.
25182         (write_inline_edge_summary): New function.
25183         (inline_write_summary): Use it.
25184         (inline_free_summary): Free edge new holders.
25185         * tree-inline.c (copy_bb): Update.
25186
25187 2011-04-26  Jason Merrill  <jason@redhat.com>
25188
25189         * tree-eh.c (lower_try_finally_switch): Create the label along with
25190         the CASE_LABEL_EXPR.
25191
25192 2011-04-26  David S. Miller  <davem@davemloft.net>
25193             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25194
25195         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
25196         * configure: Regenerate.
25197
25198 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
25199
25200         PR target/48258
25201         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
25202         reduction.
25203         (VEC_reduc): New code iterator and splitters for vector reduction.
25204         (VEC_reduc_name): Ditto.
25205         (VEC_reduc_rtx): Ditto.
25206         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
25207         (reduc_<VEC_reduc_name>_v4sf): Ditto.
25208
25209         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
25210         support for extracting SF on VSX.
25211
25212         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
25213         generating xscvspdp.
25214         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
25215         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
25216         double add, minimum, maximum vector reduction.
25217         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
25218         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
25219         optimize double vector reduction.
25220         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
25221
25222 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
25223
25224         * config/fr30/fr30.h (inhibit_libc): Don't define.
25225         * config/m32r/m32r-protos.h: Correct comment.
25226         * config/v850/v850.h (GHS_default_section_names,
25227         GHS_current_section_names): Use tree, not union tree_node *.
25228
25229 2011-04-26  Xinliang David Li  <davidxl@google.com>
25230
25231         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
25232         * c-family/c-opts.c (c_common_handle_option): Set
25233         warn_maybe_uninitialized.
25234         * opts.c (common_handle_option): Ditto.
25235         * common.opt:  New option.
25236         * tree-ssa.c (warn_uninit): Add one more parameter.
25237         (warn_uninitialized_var): Pass warning code.
25238         * tree-flow.h: Interface change.
25239
25240 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25241
25242         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
25243         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
25244         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
25245
25246 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25247
25248         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
25249         * config/mips/mips.opt (mmips-tfile): Remove.
25250
25251         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
25252         mips-tdump reference to ...
25253         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
25254         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
25255         reference by Tru64 UNIX.
25256
25257 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
25258
25259         PR debug/48768
25260         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
25261         is error_mark_node, set value to NULL.
25262
25263         PR tree-optimization/48734
25264         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
25265         if return value from maybe_fold_*_comparsions isn't something
25266         the code is prepared to handle.
25267
25268 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
25269
25270         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
25271         mode check.
25272         (ext_QIreg_nomode_operands): Remove.
25273         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
25274         (*andsi_1): Ditto.
25275         (*andhi_1): Ditto.
25276
25277 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
25278
25279         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
25280
25281 2011-04-26  Richard Guenther  <rguenther@suse.de>
25282
25283         * c-typeck.c (build_unary_op): Do not expand array-refs via
25284         pointer arithmetic.  Only adjust qualifiers for function types.
25285
25286 2011-04-26  Richard Guenther  <rguenther@suse.de>
25287
25288         PR middle-end/48694
25289         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
25290         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
25291         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
25292         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
25293
25294 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
25295
25296         * doc/extend.texi: Document __underlying_type.
25297
25298 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
25299
25300         * config/rs6000/titan.md (automata_option "progress"): Remove.
25301
25302 2011-04-25  Jeff Law  <law@redhat.com>
25303
25304         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
25305
25306 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
25307
25308         * system.h (ENUM_BITFIELD): Remove.
25309
25310 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
25311             Eric Botcazou  <ebotcazou@adacore.com>
25312
25313         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
25314         for STORE_FLAG_VALUE==-1 case.
25315
25316 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
25317
25318         PR target/43804
25319         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
25320         LEGITIMATE_PIC_OPERAND_P.
25321
25322 2011-04-24  Jan Hubicka  <jh@suse.cz>
25323
25324         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
25325         WPA hack.
25326         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
25327         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
25328         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
25329         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
25330         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
25331         Sanity check predicate length.
25332         (remap_predicate): Likewise; sanity check jump functions.
25333         (inline_read_section, inline_write_summary): Sanity check
25334         predicate length.
25335
25336 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
25337
25338         PR other/48748
25339         * doc/extend.texi (Type Traits): Document __is_standard_layout,
25340         __is_literal_type, and __is_trivial; update throughout about
25341         possibly cv-qualified void types.
25342
25343 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
25344
25345         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
25346         testsuite and make it version agnostic.
25347
25348 2011-04-22  Jan Hubicka  <jh@suse.cz>
25349
25350         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
25351
25352 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
25353
25354         PR c/48685
25355         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
25356         to VOID_TYPE even around MODIFY_EXPR.
25357
25358 2011-04-22  Mike Stump  <mikestump@comcast.net>
25359
25360         * gensupport.c (read_md_rtx): Fix typo in comment.
25361         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
25362         comment.
25363
25364 2011-04-22  Jan Hubicka  <jh@suse.cz>
25365
25366         * gengtype.c (open_base_files): Add ipa-inline.h include.
25367         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
25368         ipa-prop.c; update all uses.
25369         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
25370         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
25371         merge summary of inlined function into former caller.
25372         * ipa-inline.c (max_benefit): Remove.
25373         (edge_badness): Compensate for removal of benefits.
25374         (update_caller_keys): Use
25375         reset_node_growth_cache/reset_edge_growth_cache.
25376         (update_callee_keys): Likewise.
25377         (update_all_callee_keys): Likewise.
25378         (inline_small_functions): Do not collect max_benefit; do not reset
25379         estimated_growth; call free_growth_caches and initialize_growth_caches.
25380         * ipa-inline.h (struct condition, type clause_t, struct predicate,
25381         struct size_time_entry): New structures.
25382         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
25383         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
25384         and estimated_growth.
25385         (edge_growth_cache_entry): New structure.
25386         (node_growth_cache, edge_growth_cache): New global vars.
25387         (estimate_growth): Turn into inline.
25388         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
25389         initialize_growth_caches, free_growth_caches): Declare.
25390         (estimate_edge_growth): Rewrite.
25391         (estimate_edge_time): Implement as inline cache lookup.
25392         (reset_node_growth_cache, reset_edge_growth_cache): New inline
25393         functions.
25394         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
25395         (NUM_CONDITIONS): New constant.
25396         (predicate_conditions): New enum.
25397         (IS_NOT_CONSTANT): New constant.
25398         (edge_removal_hook_holder): New var.
25399         (node_growth_cache, edge_growth_cache): New global vars.
25400         (true_predicate, single_cond_predicate, false_predicate,
25401         not_inlined_predicate, add_condition, add_clause, and_predicates,
25402         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
25403         dump_clause, dump_predicate, account_size_time,
25404         evaulate_conditions_for_edge): New functions.
25405         (inline_summary_alloc): Move to heap.
25406         (inline_node_removal_hook): Clear condition and entry vectors.
25407         (inline_edge_removal_hook): New function.
25408         (initialize_growth_caches, free_growth_caches): New function.
25409         (dump_inline_summary): Update.
25410         (edge_execution_predicate): New function.
25411         (will_be_nonconstant_predicate): New function.
25412         (estimate_function_body_sizes): Compute BB and constantness predicates.
25413         (compute_inline_parameters): Do not clear estimated_growth.
25414         (estimate_edge_size_and_time): New function.
25415         (estimate_calls_size_and_time): New function.
25416         (estimate_callee_size_and_time): New function.
25417         (remap_predicate): New function.
25418         (inline_merge_summary): New function.
25419         (do_estimate_edge_time): New function based on...
25420         (estimate_edge_time): ... this one.
25421         (do_estimate_edge_growth): New function.
25422         (do_estimate_growth): New function based on....
25423         (estimate_growth): ... this one.
25424         (inline_analyze_function): Analyze after deciding on jump functions.
25425         (inline_read_section): New function.
25426         (inline_read_summary): Use it.
25427         (inline_write_summary): Write all the new data.
25428         * ipa-prop.c (ipa_get_param_decl_index): Export.
25429         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
25430         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
25431         Declare.
25432         (ipa_get_lattice): Move here from ipa-cp.c
25433         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
25434         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
25435         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
25436         cgraph_edge_inlinable_p): Remove.
25437         * cgraphunit.c: Include ipainline.h
25438         (cgraph_process_new_functions): Update call of
25439         compute_inline_parameters.
25440
25441 2011-04-22  Richard Guenther  <rguenther@suse.de>
25442
25443         * tree.c (build_int_cst): Properly create canonicalized integer
25444         constants.
25445         (build_int_cst_type): Remove scary comments.
25446
25447 2011-04-22  Xinliang David Li  <davidxl@google.com>
25448
25449         * toplev.c (process_options): Enable -Werror=coverage-mismatch
25450         by default when -Wno-error is not specified.
25451         * opts-global.c (decode_options): Remove call to
25452         control_warning_options.
25453
25454 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
25455
25456         PR tree-optimization/48717
25457         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
25458         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
25459
25460 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
25461
25462         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
25463         definition where used.
25464
25465 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
25466
25467         PR c/48716
25468         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
25469         TREE_STATIC variables declared inside of some OpenMP construct.
25470
25471 2011-04-22  Martin Jambor  <mjambor@suse.cz>
25472
25473         PR middle-end/48585
25474         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
25475
25476 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
25477
25478         PR c/36750
25479         * c-typeck.c (pop_init_level): Do not warn about initializing
25480         with ` = {0}'.
25481
25482 2011-04-22  Alan Modra  <amodra@gmail.com>
25483
25484         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
25485         when returning call_cookie.
25486         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
25487         pointers, to functions with no more vector args than the current
25488         function, and some non-local calls for ABI_V4.
25489         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
25490         sibcall_nonlocal_aix64): Combine to ..
25491         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
25492         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
25493         (sibcall_value_nonlocal_aix<mode>): ..likewise.
25494         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
25495         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
25496         operand.
25497         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
25498         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
25499         sibcall_value_symbolic_64): Delete.
25500
25501 2011-04-21  Xinliang David Li  <davidxl@google.com>
25502
25503         * cgraph.h: Remove pid.
25504         * cgraph.c: Remove pid.
25505         * value-prof.c (init_node_map): New function.
25506         (del_node_map): New function.
25507         (find_func_by_funcdef_no): New function.
25508         (gimple_ic_transform): Call new function.
25509         * cgraphunit.c (cgraph_finalize_function): Remove pid.
25510         * function.c (get_last_funcdef_no): New function.
25511         * function.h (get_last_funcdef_no): New function.
25512         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
25513         to libgcov function.
25514         (tree-profiling): Call node map init and delete function.
25515
25516 2011-04-21  Ian Lance Taylor  <iant@google.com>
25517
25518         * godump.c (go_format_type): Use exported Go name for anonymous
25519         field name.
25520
25521 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
25522
25523         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
25524         Call builtin_function_type_list instead of builtin_function_type.
25525         (UNARY, BINARY, TRINARY, QUAD): Likewise.
25526
25527 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
25528
25529         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
25530         build_function_type_list instead of build_function_type.
25531         Delete variable `endlink'.
25532
25533 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
25534
25535         * config/s390/s390.c (s390_init_builtins): Call
25536         build_function_type_list instead of build_function_type.
25537
25538 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
25539
25540         * config/ia64/ia64.c (ia64_init_builtins): Call
25541         build_function_type_list instead of builtin_function_type.
25542
25543 2011-04-21  Easwaran Raman  <eraman@google.com>
25544
25545         * cfgexpand.c (stack_var): Remove OFFSET...
25546         (add_stack_var): ...and its reference here...
25547         (expand_stack_vars): ...and here.
25548         (stack_var_cmp): Sort by descending order of size.
25549         (partition_stack_vars): Change heuristic.
25550         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
25551         (dump_stack_var_partition): Add newline after each partition.
25552
25553 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
25554             Jeff Law  <law@redhat.com>
25555
25556         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
25557         * gengtype.c (matching_file_name_substitute): Likewise.
25558
25559 2011-04-21  Richard Guenther  <rguenther@suse.de>
25560
25561         PR lto/48703
25562         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
25563
25564 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
25565
25566         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
25567
25568 2011-04-21  Richard Guenther  <rguenther@suse.de>
25569
25570         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
25571         file name.
25572
25573 2011-04-21  Richard Guenther  <rguenther@suse.de>
25574
25575         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
25576         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
25577         Use DECL_P, not SSA_VAR_P.
25578         (ptr_derefs_may_alias_p): Likewise.
25579         (ptr_deref_may_alias_ref_p_1): Likewise.
25580         (decl_refs_may_alias_p): Likewise.
25581         (refs_may_alias_p_1): Likewise.
25582         (ref_maybe_used_by_call_p_1): Likewise.
25583         (call_may_clobber_ref_p_1): Likewise.
25584         (indirect_ref_may_alias_decl_p): Assume indirect refrences
25585         are either MEM_REF or TARGET_MEM_REF.
25586         (indirect_refs_may_alias_p): Likewise.
25587         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
25588         for MEM_EXPR of indirect calls.
25589
25590 2011-04-21  Tristan Gingold  <gingold@adacore.com>
25591
25592         * vmsdbgout.c (write_srccorr): Compute file length from the string.
25593         (dst_file_info_struct): Remove flen field.
25594         (lookup_filename): Remove code that set flen field.
25595
25596 2011-04-21  Tristan Gingold  <gingold@adacore.com>
25597
25598         * config/ia64/ia64.c (ia64_start_function): Add a guard.
25599
25600 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
25601
25602         PR target/48708
25603         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
25604         vec_extract and vec_concat for non-SSE4_1 targets.
25605
25606 2011-04-21  Richard Guenther  <rguenther@suse.de>
25607
25608         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
25609         return statements.
25610
25611 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
25612
25613         * config/i386/cygming.h (union tree_node, TREE): Don't define or
25614         undefine.
25615         (FILE): Don't undefine.
25616
25617 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
25618
25619         * config/alpha/alpha.c (struct machine_function): Use rtx, not
25620         struct rtx_def *.
25621         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
25622         struct rtx_def *.
25623         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
25624         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
25625         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
25626         rtx_def *.
25627         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
25628         definitions where used.
25629         * config/microblaze/microblaze.h (struct microblaze_args): Use
25630         rtx, not struct rtx_def *.
25631         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
25632         rtx_def *.
25633         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
25634         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
25635         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
25636         not struct rtx_def *.
25637         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
25638         struct rtx_def *.
25639         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
25640         rtx_def *.
25641         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
25642
25643 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
25644
25645         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
25646         operand_equal_p to compare DR_BASE_ADDRESSes.
25647         (vect_check_interleaving): Likewise.
25648
25649 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
25650
25651         PR target/46329
25652         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
25653         for all Neon struct constants.
25654
25655 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
25656
25657         * target.def (legitimate_constant_p): New hook.
25658         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
25659         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
25660         * doc/tm.texi: Regenerate.
25661         * hooks.h (hook_bool_mode_rtx_true): Declare.
25662         * hooks.c (hook_bool_mode_rtx_true): Define.
25663         * system.h (LEGITIMATE_CONSTANT_P): Poison.
25664         * calls.c (precompute_register_parameters): Replace uses of
25665         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
25666         (emit_library_call_value_1): Likewise.
25667         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
25668         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
25669         * ira-costs.c (scan_one_insn): Likewise.
25670         * recog.c (general_operand, immediate_operand): Likewise.
25671         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
25672         * reload1.c (init_eliminable_invariants): Likewise.
25673
25674         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
25675         mode argument.
25676         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
25677         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
25678         argument.
25679         (TARGET_LEGITIMATE_CONSTANT_P): Define.
25680         * config/alpha/predicates.md (input_operand): Update call to
25681         alpha_legitimate_constant_p.
25682
25683         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
25684         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
25685         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
25686         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25687         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
25688         (arm_legitimate_constant_p): New functions.
25689         (arm_cannot_force_const_mem): Make static.
25690
25691         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
25692
25693         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
25694         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
25695         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
25696         instead of bfin_legitimate_constant_p.
25697         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
25698         (TARGET_LEGITIMATE_CONSTANT_P): Define.
25699
25700         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
25701
25702         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
25703
25704         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
25705         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
25706         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25707         (frv_legitimate_constant_p): Make static.  Add a mode argument.
25708
25709         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
25710         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
25711         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
25712
25713         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
25714         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
25715         * config/i386/i386.c (legitimate_constant_p): Rename to...
25716         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
25717         argument.
25718         (ix86_cannot_force_const_mem): Update accordingly.
25719         (ix86_legitimate_address_p): Likewise.
25720         (TARGET_LEGITIMATE_CONSTANT_P): Define.
25721         * config/i386/i386.md: Update commentary.
25722
25723         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
25724         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
25725         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25726         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
25727
25728         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
25729
25730         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
25731         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
25732         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25733         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
25734
25735         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
25736         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
25737         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
25738
25739         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
25740         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25741         (m32r_legitimate_constant_p): New function.
25742
25743         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
25744         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
25745         LEGITIMATE_CONSTANT_P.
25746         (LEGITIMATE_CONSTANT_P): Delete.
25747         * config/m68k/m68k.c (m68k_expand_prologue): Call
25748         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
25749         (m68k_legitimate_constant_p): New function.
25750         * config/m68k/m68k.md: Update comments.
25751
25752         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
25753         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25754         (mcore_legitimate_constant_p): New function.
25755
25756         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
25757         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
25758         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
25759         Add a mode argument.
25760         (mep_legitimate_address): Update accordingly.
25761         (TARGET_LEGITIMATE_CONSTANT_P): Define.
25762
25763         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
25764         Delete.
25765         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
25766         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
25767         static.  Check OP's mode for VOIDmode.
25768         (microblaze_legitimate_constant_p): New function.
25769         (TARGET_LEGITIMATE_CONSTANT_P): Define.
25770
25771         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
25772         * config/mips/mips.c (mips_legitimate_constant_p): New function.
25773         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
25774         (TARGET_LEGITIMATE_CONSTANT_P): Define.
25775         * config/mips/predicates.md: Update comments.
25776
25777         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
25778         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
25779         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25780         (mmix_legitimate_constant_p): Make static, return a bool, and take
25781         a mode argument.
25782         (mmix_print_operand_address): Update accordingly.
25783
25784         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
25785         Delete.
25786         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
25787         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
25788         static.  Add a mode argument.
25789         (TARGET_LEGITIMATE_CONSTANT_P): Define.
25790
25791         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
25792
25793         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
25794         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25795         (pa_legitimate_constant_p): New function.
25796
25797         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
25798
25799         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
25800         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25801         (pdp11_legitimate_constant_p): New function.
25802
25803         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
25804         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25805         (rs6000_legitimate_constant_p): New function.
25806
25807         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
25808         (rx_legitimate_constant_p): ...this.
25809         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
25810         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
25811         (rx_legitimate_constant_p): ...this.
25812         (TARGET_LEGITIMATE_CONSTANT_P): Define.
25813         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
25814
25815         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
25816         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
25817         * config/s390/s390.c (legitimate_constant_p): Rename to...
25818         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
25819         and add a mode argument.
25820         (TARGET_LEGITIMATE_CONSTANT_P): Define.
25821
25822         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
25823
25824         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
25825         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25826         (sh_legitimate_constant_p): New function.
25827
25828         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
25829         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
25830         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25831         (legitimate_constant_p): Rename to...
25832         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
25833         argument.
25834         (constant_address_p): Update accordingly.
25835
25836         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
25837         argument and return a bool.
25838         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
25839         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25840         (spu_legitimate_constant_p): Add a mode argument and return a bool.
25841         (spu_rtx_costs): Update accordingly.
25842         * config/spu/predicates.md (vec_imm_operand): Likewise.
25843
25844         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
25845
25846         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
25847         * config/v850/v850.c (v850_legitimate_constant_p): New function.
25848         (TARGET_LEGITIMATE_CONSTANT_P): Define.
25849
25850         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
25851         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
25852         * config/vax/vax.c (legitimate_constant_p): Likewise.
25853
25854         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
25855         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25856         (xtensa_legitimate_constant_p): New function.
25857
25858 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
25859
25860         * target.def (cannot_force_const_mem): Add a mode argument.
25861         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
25862         * doc/tm.texi: Regenerate.
25863         * hooks.h (hook_bool_mode_rtx_false): Declare.
25864         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
25865         (hook_bool_mode_const_rtx_true): Likewise.
25866         (hook_bool_mode_rtx_false): New function.
25867         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
25868         to be non-VOID.  Update call to cannot_force_const_mem.
25869         (find_reloads): Update accordingly.
25870         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
25871         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
25872         argument.
25873         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
25874         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
25875         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
25876         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
25877         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
25878         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
25879         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
25880         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
25881         (m68k_cannot_force_const_mem): ...this new function.
25882         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
25883         argument.
25884         (mips_const_insns, mips_legitimize_const_move): Update calls.
25885         (mips_secondary_reload_class): Likewise.
25886         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
25887         (pa_cannot_force_const_mem): ...this new function.
25888         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
25889         (rs6000_cannot_force_const_mem): ...this new function.
25890         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
25891         argument.
25892         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
25893         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
25894         to...
25895         (xtensa_cannot_force_const_mem): ...this new function.
25896
25897 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
25898
25899         * config/mips/mips.c (mips16_build_function_stub): Call
25900         build_function_type_list instead of build_function_type.
25901         (mips16_build_call_stub): Likewise.
25902
25903 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
25904
25905         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
25906         instead of build_function_type.
25907
25908 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
25909
25910         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
25911         instead of build_function_type.
25912
25913 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
25914
25915         PR target/48678
25916         * config/i386/i386.md (insv): Change operand 0 constraint to
25917         "register_operand".  Change operand 1 and 2 constraint to
25918         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
25919         * config/i386/sse.md (sse4_1_pinsrb): Export.
25920         (sse2_pinsrw): Ditto.
25921         (sse4_1_pinsrd): Ditto.
25922         (sse4_1_pinsrq): Ditto.
25923         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
25924         * config/i386/i386.c (ix86_expand_pinsr): New.
25925
25926 2011-04-20  Easwaran Raman  <eraman@google.com>
25927
25928         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
25929         containing union type only with -fstrict-aliasing.
25930
25931 2011-04-20  Jim Meyering  <meyering@redhat.com>
25932
25933         Remove useless if-before-free tests.
25934         * calls.c (expand_call, save_area): Likewise.
25935         * cfgcleanup.c (try_forward_edges): Likewise.
25936         * collect2.c (collect_execute): Likewise.
25937         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
25938         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
25939         * coverage.c (coverage_checksum_string): Likewise.
25940         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
25941         * cselib.c (cselib_init): Likewise.
25942         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
25943         (df_set_clean_cfg): Likewise.
25944         * function.c (free_after_compilation): Likewise.
25945         * gcc.c (do_spec_1, main): Likewise.
25946         * gcov.c (create_file_names): Likewise.
25947         * gensupport.c (identify_predicable_attribute): Likewise.
25948         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
25949         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
25950         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
25951         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
25952         * ipa-pure-const.c (local_pure_const): Likewise.
25953         * ipa-reference.c (propagate): Likewise.
25954         * ira-costs.c (free_ira_costs): Likewise.
25955         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
25956         * matrix-reorg.c (mat_free): Likewise.
25957         * prefix.c (get_key_value): Likewise.
25958         * profile.c (compute_value_histograms): Likewise.
25959         * reload1.c (free_reg_equiv): Likewise.
25960         * sched-deps.c (free_deps): Likewise.
25961         * sel-sched-ir.c (fence_clear): Likewise.
25962         * sese.c (set_rename, if_region_set_false_region): Likewise.
25963         * tree-data-ref.c (free_rdg): Likewise.
25964         * tree-eh.c (lower_try_finally): Likewise.
25965         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
25966         * tree-ssa-live.c (delete_var_map): Likewise.
25967         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
25968         * tree-ssa-pre.c (phi_trans_add): Likewise.
25969
25970 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
25971
25972         PR tree-optimization/48611
25973         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
25974         beyond ERT_MUST_NOT_THROW region.
25975
25976 2011-04-20  Catherine Moore  <clm@codesourcery.com>
25977
25978         * config/mips/mips.opt (mfix-24k): New.
25979         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
25980         * config/mips/mips.md (length): Increase by 4 for stores if
25981         fixing 24K errata.
25982         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
25983         all noreorder if fixing 24K errata.
25984         * doc/invoke.texi: Document mfix-24k.
25985
25986 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
25987
25988         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
25989         quad-word modes, reduce to 9-bit index range when above 1016 limit.
25990
25991 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
25992
25993         * config/arm/arm.c (arm_gen_constant): Move movw support ....
25994         (const_ok_for_op): ... to here.
25995
25996 2011-04-20  Kai Tietz  <ktietz@redhat.com>
25997
25998         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
25999         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
26000
26001 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
26002
26003         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
26004
26005 2011-04-20  Richard Guenther  <rguenther@suse.de>
26006
26007         PR tree-optimization/47892
26008         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
26009         are if-convertible.
26010
26011 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
26012
26013         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
26014
26015 2011-04-20  Tristan Gingold  <gingold@adacore.com>
26016
26017         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
26018
26019 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
26020
26021         PR target/18145
26022
26023         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
26024         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
26025         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
26026         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
26027         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
26028
26029         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
26030         New prototype.
26031
26032         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
26033         (avr_asm_named_section, avr_asm_output_aligned_common,
26034         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
26035         New functions to update...
26036         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
26037         (avr_asm_init_sections): Overwrite section callbacks for
26038         data_section, bss_section.
26039         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
26040         from here to...
26041         (avr_file_end): ...here.
26042
26043 2011-04-20  Richard Guenther  <rguenther@suse.de>
26044
26045         PR middle-end/48695
26046         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
26047         objects and types here.  Adjust for their offset before comparing.
26048
26049 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
26050
26051         * tree-vect-stmts.c (vectorizable_store): Only chain one related
26052         statement per copy.
26053
26054 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
26055
26056         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
26057         (GIMPLE_H): Include $(INTERNAL_FN_H).
26058         (OBJS-common): Add internal-fn.o.
26059         (internal-fn.o): New rule.
26060         * internal-fn.def: New file.
26061         * internal-fn.h: Likewise.
26062         * internal-fn.c: Likewise.
26063         * gimple.h: Include internal-fn.h.
26064         (GF_CALL_INTERNAL): New gf_mask.
26065         (gimple_statement_call): Put fntype into a union with a new
26066         internal_fn field.
26067         (gimple_build_call_internal): Declare.
26068         (gimple_build_call_internal_vec): Likewise.
26069         (gimple_call_same_target_p): Likewise.
26070         (gimple_call_internal_p): New function.
26071         (gimple_call_internal_fn): Likewise.
26072         (gimple_call_fntype): Return null for internal calls.
26073         (gimple_call_set_fntype): Assert that the function is not internal.
26074         (gimple_call_set_fn): Likewise.
26075         (gimple_call_set_fndecl): Likewise.
26076         (gimple_call_set_internal_fn): New function.
26077         (gimple_call_addr_fndecl): Handle null functions.
26078         (gimple_call_return_type): Likewise null types.
26079         * gimple.c (gimple_build_call_internal_1): New function.
26080         (gimple_build_call_internal): Likewise.
26081         (gimple_build_call_internal_vec): Likewise.
26082         (gimple_call_same_target_p): Likewise.
26083         (gimple_call_flags): Handle calls to internal functions.
26084         (gimple_call_fnspec): New function.
26085         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
26086         (gimple_has_side_effects): Handle null functions.
26087         (gimple_rhs_has_side_effects): Likewise.
26088         (gimple_call_copy_skip_args): Handle calls to internal functions.
26089         * cfgexpand.c (expand_call_stmt): Likewise.
26090         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
26091         * gimple-fold.c (gimple_fold_call): Handle null functions.
26092         (gimple_fold_stmt_to_constant_1): Don't fold
26093         calls to internal functions.
26094         * gimple-low.c (gimple_check_call_args): Handle calls to internal
26095         functions.
26096         * gimple-pretty-print.c (dump_gimple_call): Likewise.
26097         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
26098         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
26099         (do_warn_unused_result): Likewise.
26100         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
26101         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
26102         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
26103         the target of a call.
26104         (initialize_hash_element): Update accordingly.
26105         (hashable_expr_equal_p): Use gimple_call_same_target_p.
26106         (iterative_hash_hashable_expr): Handle calls to internal functions.
26107         (print_expr_hash_elt): Likewise.
26108         * tree-ssa-pre.c (can_value_number_call): Likewise.
26109         (eliminate): Handle null functions.
26110         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
26111         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
26112         (find_func_aliases): Likewise.
26113         * value-prof.c (gimple_ic_transform): Likewise.
26114         (gimple_indirect_call_to_profile): Likewise.
26115         * lto-streamer-in.c (input_gimple_stmt): Likewise.
26116         * lto-streamer-out.c (output_gimple_stmt): Likewise.
26117
26118 2011-04-19  Jan Hubicka  <jh@suse.cz>
26119
26120         * ipa-inline-transform.c (save_inline_function_body): Add comments.
26121         * ipa-inline.c (inline_small_functions): Compute summaries first,
26122         populate heap later.
26123
26124 2011-04-19  Jan Hubicka  <jh@suse.cz>
26125
26126         * cgraph.h (save_inline_function_body): Remove.
26127         * ipa-inline-transform.c: New file, broke out of...
26128         * ipa-inline.c: ... this one; Update toplevel comment.
26129         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
26130         make global.
26131         (update_noncloned_frequencies): Move to ipa-inline-transform.c
26132         (cgraph_mark_inline_edge): Rename to inline_call; move to
26133         ipa-inline-transform.c.
26134         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
26135         move to ipa-inline-transform.c
26136         (recursive_inlining, inline_small_functions, flatten_function,
26137         ipa_inline, inline_always_inline_functions,
26138         early_inline_small_functions): Update.
26139         (inline_transform): Move to ipa-inline-transform.c.
26140         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
26141         Declare.
26142         * Makefile.in (ipa-inline-transform.o): New file.
26143         * cgraphunit.c (save_inline_function_body): Move to
26144         ipa-inline-transform.c
26145
26146 2011-04-19  DJ Delorie  <dj@redhat.com>
26147
26148         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
26149         registers if we already know there aren't any.
26150         (m32c_emit_epilogue): Don't emit a barrier here.
26151         (m32c_emit_eh_epilogue): Likewise.
26152         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
26153         operands at expand time.
26154         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
26155         int" wchar type.
26156         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
26157         duplicates.  Provide aliases instead.
26158         * config/m32c/prologue.md (eh_return): Emit a barrier here.
26159         (eh_epilogue): Add a "(return)" here as a hint to other parts of
26160         the compiler.
26161
26162 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
26163
26164         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
26165         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
26166         (general_or_i64_p, sparc_register_move_cost): New function.
26167
26168 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26169
26170         * doc/install.texi (Configuration, --enable-threads): Remove mach.
26171         Add lynx, mipssde.  Sort table.
26172
26173 2011-04-19  Xinliang David Li  <davidxl@google.com>
26174
26175         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
26176         not negative.
26177
26178 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
26179
26180         PR target/48678
26181         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
26182         is a SUBREG with non-MODE_INT mode inside of it.
26183
26184 2011-04-19  Martin Jambor  <mjambor@suse.cz>
26185
26186         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
26187         also according to actual contants.
26188         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
26189         (gimple_fold_call): Use it.
26190         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
26191
26192 2011-04-19  Martin Jambor  <mjambor@suse.cz>
26193
26194         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
26195         non-pointer assignments.
26196
26197 2011-04-19  Martin Jambor  <mjambor@suse.cz>
26198
26199         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
26200         account anc_offset and otr_type from the indirect edge info.
26201         * ipa-prop.c (get_ancestor_addr_info): New function.
26202         (compute_complex_ancestor_jump_func): Assignment analysis moved to
26203         get_ancestor_addr_info, call it.
26204         (ipa_note_param_call): Do not initialize information about polymorphic
26205         calls, return the indirect call graph edge.  Remove the last
26206         parameter, adjust all callers.
26207         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
26208         parameters.  Initialize polymorphic information in the indirect edge.
26209
26210 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
26211
26212         PR lto/48148
26213         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
26214         the types if they have different enumeration identifiers.
26215
26216 2011-04-19  Jan Hubicka  <jh@suse.cz>
26217
26218         * cgraph.h (cgraph_optimize_for_size_p): Declare.
26219         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
26220         * predict.c (cgraph_optimize_for_size_p): Break out from ...
26221         (optimize_function_for_size_p) ... here.
26222
26223 2011-04-19  Richard Guenther  <rguenther@suse.de>
26224
26225         PR lto/48207
26226         * tree.c (free_lang_data): Do not reset the decl-assembler-name
26227         langhook.
26228
26229 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
26230
26231         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
26232         if DECL_NO_INLINE_WARNING_P is set on the function.
26233
26234 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
26235
26236         PR fortran/47976
26237         * reload1.c (inc_for_reload): Return void. All callers changed.
26238         (emit_input_reload_insns): Don't try to delete previous output
26239         reloads to a register, or record spill_reg_store for autoincs.
26240
26241 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
26242
26243         * gengtype.h: Updated copyright year.
26244         (struct input_file_st): Add inpisplugin field.
26245         (type_fileloc): New function.
26246         * gengtype.c
26247         (write_typed_struct_alloc_def): Add gcc_assert.
26248         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
26249         (write_typed_alloc_defns): Don't output for plugin files.
26250         (input_file_by_name): Clear inpisplugin field.
26251         (main): Set inpisplugin field for plugin files.
26252
26253 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
26254
26255         * gengtype-state.c (string_eq): New.
26256         (read_state): Use string_eq instead of strcmp when creating the
26257         state_ident_tab.
26258
26259 2011-04-19  Wei Guozhi  <carrot@google.com>
26260
26261         PR target/47855
26262         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
26263         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
26264         linkage.
26265         * config/arm/constraints.md (Uu): New constraint.
26266         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
26267
26268 2011-04-19  Tristan Gingold  <gingold@adacore.com>
26269
26270         * config.gcc (-*-*-*vms): Added.
26271         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
26272         definitions moved.
26273         * config/vms/vms-ld.c: New file.
26274         * config/vms/vms-ar.c: New file.
26275         * config/vms/t-vmsnative: New file.
26276
26277 2011-04-18  Xinliang David Li  <davidxl@google.com>
26278
26279         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
26280
26281 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
26282
26283         PR middle-end/48661
26284         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
26285         if TREE_TYPE (v) is non-NULL.
26286
26287         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
26288         gimple_get_virt_mehtod_for_binfo.
26289         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
26290         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
26291         callers.
26292         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
26293
26294 2011-04-18  Michael Matz  <matz@suse.de>
26295             Steve Ellcey  <sje@cup.hp.com>
26296
26297         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
26298         use its mode as source mode if it isn't VOIDmode.
26299
26300 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
26301
26302         * doc/passes.texi: Fill crossref nodes.
26303
26304 2011-04-18  Jim Meyering  <meyering@redhat.com>
26305
26306         Fix doubled-word typos in comments and strings
26307         * config/alpha/vms-unwind.h: s/for for/for/
26308         * config/arm/unwind-arm.h: Likewise.
26309         * config/microblaze/microblaze.c: Likewise.
26310         * config/sh/constraints.md: s/in in/in/
26311         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
26312
26313 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
26314
26315         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
26316         (AVX_FLOAT_MODE_P): Ditto.
26317         (AVX128_VEC_FLOAT_MODE_P): Ditto.
26318         (AVX256_VEC_FLOAT_MODE_P): Ditto.
26319         (AVX_VEC_FLOAT_MODE_P): Ditto.
26320         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
26321         (UNSPEC_MASKSTORE): Ditto.
26322         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
26323         Merge from <sse>_movmsk<ssemodesuffix> and
26324         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
26325         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
26326         iterator.
26327         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
26328         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
26329         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
26330
26331 2011-04-18  Jan Hubicka  <jh@suse.cz>
26332
26333         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
26334
26335         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
26336         (want_inline_function_called_once_p): Break out the logic from
26337         ipa_inline.
26338         (edge_badness): Ensure that profile is not misupdated.
26339         (lookup_recursive_calls): Prioritize by call frequencies.
26340         (inline_small_functions): Move program size estimates here;
26341         actually process whole queue even when unit growth has been
26342         met. (to properly compute inline_failed reasons and for the
26343         case unit size decrease.) Revisit comments on recursive inlining.
26344         (ipa_inline): Remove unit summary code; first inline hot calls
26345         of functions called once, cold calls next.
26346         (order, nnodes): Remove unused variables.
26347         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
26348         (GTFILES): Remove ipa-inline.c
26349         * sel-sched.c (fill_insns): Silence uninitialized var warning.
26350
26351 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
26352
26353         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
26354
26355 2011-04-18  Jie Zhang  <jie@codesourcery.com>
26356             Richard Earnshaw  <rearnsha@arm.com>
26357
26358         * arm.c (neon_builtin_type_bits): Remove.
26359         (typedef enum neon_builtin_mode): New.
26360         (T_MAX): Don't define.
26361         (typedef enum neon_builtin_datum): Remove bits, codes[],
26362         num_vars and base_fcode.  Add mode, code and fcode.
26363         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
26364         VAR10): Change accordingly.
26365         (neon_builtin_data[]): Change accordingly
26366         (arm_init_neon_builtins): Change accordingly.
26367         (neon_builtin_compare): Remove.
26368         (locate_neon_builtin_icode): Remove.
26369         (arm_expand_neon_builtin): Change accordingly.
26370
26371         * arm.h (enum arm_builtins): Move to ...
26372         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
26373
26374         * arm.c (arm_builtin_decl): Declare.
26375         (TARGET_BUILTIN_DECL): Define.
26376         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
26377         (arm_builtin_decls[]): New.
26378         (arm_init_neon_builtins): Store builtin declarations in
26379         arm_builtin_decls[].
26380         (arm_init_tls_builtins): Likewise.
26381         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
26382         (arm_builtin_decl): New.
26383
26384 2011-04-18  Richard Guenther  <rguenther@suse.de>
26385
26386         * tree.c (upper_bound_in_type): Build properly canonicalized
26387         INTEGER_CSTs.
26388         (lower_bound_in_type): Likewise.
26389
26390 2011-04-18  Richard Guenther  <rguenther@suse.de>
26391
26392         * gimple.h (gimple_call_addr_fndecl): New function.
26393         (gimple_call_fndecl): Use it.
26394         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
26395         for direct calls.
26396         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
26397         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
26398
26399 2011-04-18  Richard Guenther  <rguenther@suse.de>
26400
26401         PR middle-end/48650
26402         * tree.c (build_string): STRING_CST is now derived from tree_typed.
26403
26404 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
26405
26406         PR lto/48492
26407         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
26408         DECL_IN_CONSTANT_POOL without RTL.
26409
26410 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
26411             Ira Rosen  <ira.rosen@linaro.org>
26412
26413         PR target/48252
26414         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
26415         to match neon_vzip/vuzp/vtrn_internal.
26416         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
26417         outputs explicitly dependent on both inputs.
26418         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
26419
26420 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
26421
26422         PR tree-optimization/48616
26423         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
26424         whether the shift is by scalar or vector based on whether all SLP
26425         scalar stmts have the same rhs.
26426
26427 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
26428
26429         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
26430         memory operands.
26431
26432 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
26433
26434         PR target/43700
26435         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
26436         registers.
26437
26438 2011-04-17  Jan Hubicka  <jh@suse.cz>
26439
26440         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
26441         * cgrpahunit.c (cgraph_finalize_function): Do not set
26442         finalized_by_frontend.
26443         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
26444         finalized_by_frontend.
26445
26446 2011-04-17  Jan Hubicka  <jh@suse.cz>
26447
26448         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
26449         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
26450         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
26451         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
26452         method.
26453         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
26454         gimple-fold.c
26455         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
26456
26457 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
26458
26459         PR lto/48538
26460         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
26461         is non-null before accessing it.
26462         (input_cgraph): Remove trailing spaces.
26463
26464 2011-04-17  Revital Eres  <revital.eres@linaro.org>
26465
26466         * params.def (sms-min-sc): New param flag.
26467         * modulo-sched.c (sms_schedule): Use it.
26468         * doc/invoke.texi (sms-min-sc): Document it.
26469
26470 2011-04-17  Jan Hubicka  <jh@suse.cz>
26471
26472         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
26473         present, also set gimple_call_set_cannot_inline.
26474         * ipa-inline.c: Update toplevel comment.
26475         (MAX_TIME): Remove.
26476         (cgraph_clone_inlined_nodes): Fix linebreaks.
26477         (cgraph_check_inline_limits): Restructure to ...
26478         (caller_growth_limits): ... this one; be more tolerant
26479         on growth in nested inline chains; add explanatory comment;
26480         fix stack accounting thinko introduced by previous patch.
26481         (cgraph_default_inline_p): Remove.
26482         (report_inline_failed_reason): New function.
26483         (can_inline_edge_p): New function.
26484         (can_early_inline_edge_p): New function.
26485         (leaf_node_p): Move upwards in file.
26486         (want_early_inline_function_p): New function.
26487         (want_inline_small_function_p): New function.
26488         (want_inline_self_recursive_call_p): New function.
26489         (cgraph_edge_badness): Rename to ...
26490         (edge_badness) ... this one; fix linebreaks.
26491         (update_edge_key): Update call of edge_baddness; add
26492         detailed dump about queue updates.
26493         (update_caller_keys): Use can_inline_edge_p and
26494         want_inline_small_function_p.
26495         (cgraph_decide_recursive_inlining): Rename to...
26496         (recursive_inlining): Use can_inline_edge_p and
26497         want_inline_self_recursive_call_p; simplify and remove no longer
26498         valid FIXME.
26499         (cgraph_set_inline_failed): Remove.
26500         (add_new_edges_to_heap): Use can_inline_edge_p and
26501         want_inline_small_function_p.
26502         (cgraph_decide_inlining_of_small_functions): Rename to ...
26503         (inline_small_functions): ... this one; cleanup; use
26504         can/want predicates; cleanup debug ouput; work edges till fibheap
26505         is exhausted and do not stop once unit growth is reached; remove
26506         later loop processing remaining edges.
26507         (cgraph_flatten): Rename to ...
26508         (flatten_function): ... this one; use can_inline_edge_p
26509         and can_early_inline_edge_p predicates.
26510         (cgraph_decide_inlining): Rename to ...
26511         (ipa_inline): ... this one; remove unreachable nodes before
26512         inlining functions called once; simplify the pass.
26513         (cgraph_perform_always_inlining): Rename to ...
26514         (inline_always_inline_functions): ... this one; use
26515         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
26516         (cgraph_decide_inlining_incrementally): Rename to ...
26517         (early_inline_small_functions): ... this one; simplify
26518         using new predicates; cleanup; make dumps prettier.
26519         (cgraph_early_inlining): Rename to ...
26520         (early_inliner): newer inline regular functions into always-inlines;
26521         fix updating of call stmt summaries.
26522         (pass_early_inline): Update for new names.
26523         (inline_transform): Fix formating.
26524         (gate_cgraph_decide_inlining): Rename to ...
26525         (pass_ipa_inline): ... this one.
26526         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
26527         * ipa-inline-analysis.c (dump_inline_summary): Update.
26528         (compute_inline_parameters): Do not compute disregard_inline_limits;
26529         look for mismatching arguments.
26530         (estimate_growth): Fix handlig of non-trivial self recursion.
26531         (inline_read_summary): Do not read info->disregard_inline_limits.
26532         (inline_write_summary): Do not write info->disregard_inline_limits.
26533         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
26534         and move all checks into can_inline_edge_p predicate; re-enable code
26535         comparing optimization levels.
26536         (expand_call_inline): Do not test inline_forbidden_into_p.
26537         * Makefile.in (ipa-inline.o): Update arguments.
26538
26539 2011-04-17  Revital Eres  <revital.eres@linaro.org>
26540
26541         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
26542
26543 2011-04-17  Revital Eres  <revital.eres@linaro.org>
26544
26545         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
26546
26547 2011-04-17  Michael Matz  <matz@suse.de>
26548
26549         PR tree-optimization/48622
26550         PR lto/48645
26551         * ipa-inline-analysis.c (inline_read_summary): Read size/time
26552         in same order as they're written.
26553
26554 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26555
26556         * config/pa/predicates.md: Reorganize and simplify predicates.
26557         Eliminate duplicate code checks.
26558         (arith_operand): Rename to arith14_operand
26559         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
26560         * config/pa/pa.md: Use renamed operands.
26561         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
26562         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
26563         arith11_operand, adddi3_operand, indexed_memory_operand,
26564         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
26565         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
26566         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
26567         move_dest_operand, move_src_operand, prefetch_cc_operand,
26568         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
26569         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
26570         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
26571         div_operand, int5_operand, movb_comparison_operator,
26572         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
26573         arith_double_operand, ireg_operand, lhs_lshift_operand,
26574         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
26575         integer_store_memory_operand): Likewise.
26576         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
26577         (integer_store_memory_operand, read_only_operand,
26578         function_label_operand, borx_reg_operand,
26579         non_hard_reg_operand): Likewise.
26580         (eq_neq_comparison_operator): Delete unused operator.
26581         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
26582         function_label_operand.
26583         (emit_move_sequence): Likewise.
26584
26585 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
26586
26587         * config/i386/sse.md (sseunpackmode): New mode attribute.
26588         (ssepackmode): Ditto.
26589         (vec_pack_trunc_<mode>): Macroize expander from
26590         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
26591         (vec_unpacks_lo_<mode>): Macroize expander from
26592         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
26593         (vec_unpacks_hi_<mode>): Macroize expander from
26594         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
26595         (vec_unpacku_lo_<mode>): Macroize expander from
26596         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
26597         (vec_unpacku_hi_<mode>): Macroize expander from
26598         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
26599         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
26600         ix86_expand_sse4_unpack.
26601         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
26602
26603 2011-04-16  Jan Hubicka  <jh@suse.cz>
26604
26605         * cgraphbuild.c: Include ipa-inline.h.
26606         (reset_inline_failed): Use initialize_inline_failed.
26607         * cgraph.c: Include ipa-inline.h.
26608         (cgraph_create_node_1): Do not initialize estimated_growth.
26609         (initialize_inline_failed): More to ipa-inline-analysis.c
26610         (dump_cgraph_node): Do not dump inline flags.
26611         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
26612         and disregard_inline_limits flags.
26613         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
26614         time, size, estimated_growth.
26615         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
26616         Update.
26617         * cgraphunit.c (cgraph_decide_is_function_needed): Use
26618         DECL_DISREGARD_INLINE_LIMITS.
26619         (cgraph_analyze_function): Do not initialize
26620         node->local.disregard_inline_limits.
26621         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
26622         inlinable, versionable and disregard_inline_limits.
26623         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
26624         cgraph_check_inline_limits, cgraph_default_inline_p,
26625         cgraph_edge_badness, update_caller_keys, update_callee_keys,
26626         add_new_edges_to_heap): Update.
26627         (cgraph_decide_inlining_of_small_function): Update; set
26628         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
26629         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
26630         cgraph_decide_inlining_incrementally): Update.
26631         * ipa-inline.h (inline_summary): Add inlinable, versionable,
26632         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
26633         time, size and estimated_growth parameters.
26634         (estimate_edge_growth): Update.
26635         (initialize_inline_failed): Declare.
26636         * ipa-split.c: Include ipa-inline.h
26637         (execute_split_functions): Update.
26638         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
26639         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
26640         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
26641         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
26642         estimated_growth to INT_MIN.
26643         (inline_node_duplication_hook): Likewise.
26644         (dump_inline_summary): Dump new fields.
26645         (compute_inline_parameters): Update.
26646         (estimate_edge_time, estimate_time_after_inlining,
26647         estimate_size_after_inlining, estimate_growth, inline_read_summary,
26648         inline_write_summary):
26649         (initialize_inline_failed): Move here from cgraph.c.
26650         * tree-sra.c: Include ipa-inline.h.
26651         (ipa_sra_preliminary_function_checks): Update.
26652         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
26653         ipa-inline.h.
26654
26655 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
26656
26657         * config/i386/sse.md (V16): New mode iterator.
26658         (VI1, VI8): Ditto.
26659         (AVXMODEQI, AVXMODEDI): Remove.
26660         (sse2, sse3): New mode attribute.
26661         (mov<mode>): Use V16 mode iterator.
26662         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
26663         (push<mode>1): Use V16 mode iterator.
26664         (movmisalign<mode>): Ditto.
26665         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
26666         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
26667         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
26668         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
26669         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
26670         avx_movdqu<avxmodesuffix>.
26671         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
26672         *avx_movdqu<avxmodesuffix>.
26673         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
26674         avx_lddqu<avxmodesuffix>.
26675         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
26676         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
26677         avx_movnt<AVXMODEDI:mode>.
26678         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
26679         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
26680
26681 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
26682
26683         PR target/48629
26684         * haifa-sched.c (prune_ready_list, schedule_block): Use
26685         sched_pressure_p rather than flag_sched_pressure.
26686
26687 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
26688
26689         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
26690         cgraph_get_node instead of cgraph_get_create_node.
26691
26692 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
26693
26694         * cfgexpand.c (expand_debug_expr): Use
26695         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
26696
26697 2011-04-15  Michael Matz  <matz@suse.de>
26698
26699         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
26700         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
26701         * function.c (gimplify_parameters): Ditto.
26702         * gimplify.c (gimplify_vla_decl): Ditto.
26703
26704         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
26705         (gimple_call_set_alloca_for_var): New inline function.
26706         (gimple_call_alloca_for_var_p): Ditto.
26707         * gimple.c (gimple_build_call_from_tree): Remember
26708         CALL_ALLOCA_FOR_VAR_P state.
26709         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
26710
26711         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
26712         calls if they were for VLA objects.
26713
26714 2011-04-15  Martin Jambor  <mjambor@suse.cz>
26715
26716         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
26717         of ADR_EXPRs.
26718
26719 2011-04-15  Martin Jambor  <mjambor@suse.cz>
26720
26721         PR middle-end/48601
26722         * tree-emutls.c (lower_emutls_function_body): Call
26723         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
26724         result is non-NULL.
26725
26726 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
26727
26728         * c-decl.c (detect_field_duplicates): Call
26729         objc_detect_field_duplicates instead of objc_get_interface_ivars.
26730
26731 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
26732
26733         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
26734         * gimple.c (gimple_asm_clobbers_memory_p): Define.
26735         * ipa-pure-const.c (check_stmt): Call it.
26736         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
26737
26738 2011-04-15  Richard Guenther  <rguenther@suse.de>
26739
26740         PR tree-optimization/48290
26741         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
26742         Properly decide inhibiting propagation based on the valueized
26743         operand.  Do loop-closed SSA form preserving here ...
26744         (init_copy_prop): ... not here.
26745
26746 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
26747
26748         PR target/48612
26749         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
26750         (*ieee_smax<mode>3): Likewise.
26751
26752 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26753
26754         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
26755         Replace match_operand with match_dup for the third operand in
26756         these expanders.
26757
26758 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
26759
26760         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
26761         to track processing of conditionals.  Update all callers.
26762         (try_combine, simplify_if_then_else): Update.
26763
26764 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
26765
26766         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
26767         -fsched-pressure.
26768
26769 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
26770
26771         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
26772         instead of match_operand for operand 3.
26773
26774 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
26775
26776         * recog.h (insn_operand_data): Add an "allows_mem" field.
26777         * genoutput.c (output_operand_data): Initialize it.
26778         * optabs.c (maybe_legitimize_operand_same_code): New function.
26779         (maybe_legitimize_operand): Use it when matching the original
26780         op->value.
26781
26782 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
26783
26784         * gimplify.c: Fix issues in comments throughout.
26785         (voidify_wrapper_expr): Fix long line.
26786         (build_stack_save_restore): Likewise.
26787         (gimplify_loop_expr): Likewise.
26788         (gimplify_compound_lval): Likewise.
26789         (gimplify_init_ctor_eval): Likewise.
26790         (gimplify_modify_expr_rhs): Likewise.
26791         (omp_notice_threadprivate_variable): Likewise.
26792
26793 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
26794
26795         * cfgexpand.c (expand_call_stmt): Convert the function type to the
26796         original one if this is not a builtin function.
26797
26798 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
26799
26800         PR target/48605
26801         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
26802         offset it as needed based on top 2 bits in operands[3], change
26803         MEM mode to SFmode and mask those 2 bits away from operands[3].
26804
26805 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
26806
26807         * c-parser.c (c_parser_objc_protocol_definition): Updated for
26808         change from objc_declare_protocols() to objc_declare_protocol().
26809
26810 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
26811
26812         * config/i386/sse.md (sse4_1): New mode attribute.
26813         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
26814         avx_blend<ssemodesuffix><avxmodesuffix> and
26815         sse4_1_blend<ssemodesuffix> using VF mode iterator.
26816         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
26817         avx_blendv<ssemodesuffix><avxmodesuffix> and
26818         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
26819         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
26820         avx_dp<ssemodesuffix><avxmodesuffix> and
26821         sse4_1_dp<ssemodesuffix> using VF mode iterator.
26822         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
26823         (sse4_1_packusdw): Merge with *avx_packusdw.
26824         (sse4_1_pblendvb): Merge with *avx_pblendvb.
26825         (sse4_1_pblendw): Merge with *avx_pblendw.
26826         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
26827         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
26828         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
26829         VF mode iterator.
26830         (sse4_1_round<ssescalarmodesuffix>): Merge with
26831         *avx_round<ssescalarmodesuffix>.
26832         (aesenc): Merge with *avx_aesenc.
26833         (aesenclast): Merge with *avx_aesenclast.
26834         (aesdec): Merge with *avx_aesdec.
26835         (aesdeclast): Merge with *avx_aesdeclast.
26836         (pclmulqdq): Merge with *pclmulqdq.
26837         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
26838         New predicate.
26839         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
26840
26841 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
26842
26843         PR middle-end/48608
26844         * cfgexpand.c (get_decl_align_unit): Renamed to ...
26845         (align_local_variable): This.  Update DECL_ALIGN.
26846         (add_stack_var): Updated.
26847         (expand_one_stack_var): Likewise.
26848
26849 2011-04-14  Richard Guenther  <rguenther@suse.de>
26850
26851         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
26852         Remove.
26853         (dse_initialize_block_local_data, dse_leave_block,
26854         record_voperand_set, get_stmt_uid): Likewise.
26855         (dse_possible_dead_store_p): Allow any kind of killing stmt.
26856         (dse_optimize_stmt): Remove voperand set handling code.
26857         Simplify and improve to handle any kind of killing stmt.
26858         (dse_record_phi): Remove.
26859         (dse_enter_block): Simplify.
26860         (tree_ssa_dse): Likewise.
26861         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
26862
26863 2011-04-14  Jan Hubicka  <jh@suse.cz>
26864
26865         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
26866         * cgraph.h (struct inline_summary): Move to ipa-inline.h
26867         (cgraph_local_info): Remove inline_summary.
26868         * ipa-cp.c: Include ipa-inline.h.
26869         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
26870         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
26871         accesor.
26872         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
26873         (input_overwrite_node): Do not set inline summary.
26874         (input_node): Do not stream inline summary.
26875         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
26876         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
26877         growth; we do not have inline parameters computed for that anyway.
26878         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
26879         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
26880         (inline_summary_t): New type and VECtor.
26881         (debug_inline_summary, dump_inline_summaries): Declare.
26882         (inline_summary): Use VOCtor.
26883         (estimate_edge_growth): Kill hack computing call stmt size directly.
26884         * lto-section-in.c (lto_section_name): Add inline section.
26885         * ipa-inline-analysis.c: Include lto-streamer.h
26886         (node_removal_hook_holder, node_duplication_hook_holder): New holders
26887         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
26888         (inline_summary_vec): Define.
26889         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
26890         dump_inline_summaries): New functions.
26891         (estimate_function_body_sizes): Properly compute size/time of outgoing
26892         calls.
26893         (compute_inline_parameters): Alloc inline_summary; do not compute
26894         size/time of incomming calls.
26895         (estimate_edge_time): Avoid missing time summary hack.
26896         (inline_read_summary): Read inline summary info.
26897         (inline_write_summary): Write inline summary info.
26898         (inline_free_summary): Free all hooks and inline summary vector.
26899         * lto-streamer.h: Add LTO_section_inline_summary section.
26900         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
26901         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
26902
26903 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
26904
26905         * tree-vectorizer.h (vect_strided_store_supported): Add a
26906         HOST_WIDE_INT argument.
26907         (vect_strided_load_supported): Likewise.
26908         (vect_permute_store_chain): Return void.
26909         (vect_transform_strided_load): Likewise.
26910         (vect_permute_load_chain): Delete.
26911         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
26912         count argument.  Check that the count is a power of two.
26913         (vect_strided_load_supported): Likewise.
26914         (vect_permute_store_chain): Return void.  Update after above changes.
26915         Assert that the access is supported.
26916         (vect_permute_load_chain): Likewise.
26917         (vect_transform_strided_load): Return void.
26918         * tree-vect-stmts.c (vectorizable_store): Update calls after
26919         above interface changes.
26920         (vectorizable_load): Likewise.
26921         (vect_analyze_stmt): Don't check for strided powers of two here.
26922
26923 2011-04-14  Richard Guenther  <rguenther@suse.de>
26924
26925         PR tree-optimization/48590
26926         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
26927         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
26928         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
26929         BUILT_IN_STACK_SAVE.
26930         * tree-ssa-dce.c (propagate_necessity): Handle
26931         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
26932
26933 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
26934
26935         * c-parser.c (c_parser_objc_class_declaration): Updated call to
26936         objc_declare_class.
26937
26938 2011-04-14  Richard Guenther  <rguenther@suse.de>
26939
26940         * tree.h (get_object_alignment_1): Declare.
26941         * builtins.c (get_object_alignment_1): Split out worker from ...
26942         (get_object_alignment): ... here.
26943         * fold-const.c (get_pointer_modulus_and_residue): Use
26944         get_object_alignment_1.
26945
26946 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
26947
26948         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
26949         type parameter.
26950         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
26951         parameter.  Generalise code to handle arrays as well as vectors.
26952         (vect_setup_realignment): Update accordingly.
26953         * tree-vect-stmts.c (vectorizable_store): Likewise.
26954         (vectorizable_load): Likewise.
26955
26956 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
26957
26958         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
26959         within the per-copy loop.
26960
26961 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
26962
26963         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
26964         in the dump file.
26965
26966 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
26967
26968         * doc/options.texi (Negative): Explicitly mention that the
26969         Negative chain must be circular.
26970
26971 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
26972
26973         * function.h (block_chainon): Declare.
26974         * function.c (block_chainon): Define.
26975
26976 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
26977             Eric Weddington  <eric.weddington@atmel.com>
26978             Georg-Johann Lay  <avr@gjlay.de>
26979
26980         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
26981         New Includes
26982         (avr_init_builtins, avr_expand_builtin,
26983         avr_expand_delay_cycles, avr_expand_unop_builtin,
26984         avr_expand_binop_builtin ): New functions.
26985         (avr_builtin_id): New enum
26986         (struct avr_builtin_description): New struct
26987         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
26988         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
26989
26990         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
26991         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
26992         UNSPECV_DELAY_CYCLES): new enumeration values
26993         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
26994         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
26995         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
26996         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
26997         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
26998         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
26999         "fmulsu"): New insns
27000
27001         * config/avr/avr-c.c: fix line endings
27002         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
27003         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
27004         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
27005         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
27006         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
27007
27008         * doc/extend.texi (AVR Built-in Functions): New node
27009         (Target Builtins): Add documentation of AVR
27010         built-in functions.
27011
27012 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
27013
27014         PR target/44643
27015         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
27016         alone. Error if non-const data has attribute progmem.
27017
27018 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
27019
27020         * tree.h (struct tree_constructor): Include tree_typed instead of
27021         tree_common.
27022         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
27023         TS_TYPED instead of TS_COMMON.
27024
27025 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
27026
27027         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
27028         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
27029         (sse2_psadbw): Merge with *avx_psadbw.
27030         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
27031         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
27032         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
27033         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
27034         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
27035         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
27036         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
27037         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
27038         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
27039         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
27040         (ssse3_palignrti): Merge with *avx_palignrti.
27041
27042 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
27043
27044         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
27045         * tree-ssanames.c (fini_ssanames): VEC_free it.
27046         (make_ssa_name_fn): Update for VECness of free_ssanames.
27047         (release_ssa_name, release_dead_ssa_names): Likewise.
27048         * tree.h (struct tree_ssa_name): Include tree_typed instead of
27049         tree_common.
27050         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
27051         TS_TYPED instead of TS_COMMON.
27052
27053 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
27054
27055         * postreload-gcse.c (gcse_after_reload_main): Add calls to
27056         statistics_counter_event.
27057         * tree-ssa-copyrename.c (stats): Define.
27058         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
27059         statistics_counter_event.
27060         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
27061         (bswap_stats, widen_mul_stats): Define.
27062         (insert_reciprocals): Increment rdivs_inserted.
27063         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
27064         rfuncs_inserted.  Add calls to statistics_counter_event.
27065         (execute_cse_sincos_1): Increment inserted.
27066         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
27067         statistics_counter_event.
27068         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
27069         of bswap_stats.  Add calls to statistics_counter_event.
27070         (convert_mult_to_widen): Increment widen_mults_inserted.
27071         (convert_plusminus_to_widen): Increment maccs_inserted.
27072         (convert_mult_to_fma): Increment fmas_inserted.
27073         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
27074         calls to statistics_counter_event.
27075
27076 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
27077
27078         PR rtl-optimization/48455
27079         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
27080         `temp_costs->mem_cost'.
27081
27082 2011-04-13  Jan Hubicka  <jh@suse.cz>
27083
27084         * ipa-inline.h: New file.
27085         * ipa-inline-analysis.c: New file. Broken out of ...
27086         * ipa-inline.c: ... this file; update toplevel comment;
27087         include ipa-inline.h
27088         (inline_summary): Move to ipa-inline.h
27089         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
27090         ipa-inline-analysis.c.
27091         (cgraph_estimate_time_after_inlining): Rename to
27092         estiamte_time_after_inlining; move to ipa-inline-analysis.c
27093         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
27094         to estimate_edge_growth.
27095         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
27096         rename to estimate_size_after_inlining.
27097         (cgraph_mark_inline_edge): Update for new naming convention.
27098         (cgraph_check_inline_limits): Likewise.
27099         (cgraph_edge_badness): Likewise.
27100         (cgraph_decide_recursive_inlining): Likewise.
27101         (cgraph_decide_inlining_of_small_functions): Likewise.
27102         (cgraph_decide_inlining_incrementally): Likewise.
27103         (cgraph_estimate_growth): Rename to estimate_growth; move to
27104         ipa-inline-analysis.c.
27105         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
27106         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
27107         (compute_inline_parameters): Likewise.
27108         (compute_inline_parameters_for_current): Likewise.
27109         (pass_inline_parameters): Likewise.
27110         (inline_indirect_intraprocedural_analysis): Likewise.
27111         (analyze_function): Rename to inline_analyze_function; likewise.
27112         (add_new_function): Move to ipa-inline-analysis.c.
27113         (inline_generate_summary): Likewise.
27114         (inline_read_summary): Likewise.
27115         (inline_write_summary): Likewise.
27116         * Makefile.in (ipa-inline-analysis.c): New file.
27117
27118 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27119
27120         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
27121         * configure: Regenerate.
27122
27123 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
27124
27125         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
27126         instead of tree_common.
27127         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
27128         Likewise.
27129         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
27130         TS_TYPED rather than TS_COMMON.
27131         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
27132
27133 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
27134
27135         PR target/45263
27136         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
27137         r20 around calls of __tablejump_elpm__
27138
27139 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
27140
27141         PR middle-end/48591
27142         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
27143         NULL.
27144         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
27145
27146 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
27147
27148         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
27149         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
27150         (cfi_vec): New typedef.
27151         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
27152         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
27153         (cie_cfi_vec): New static variable.
27154         (cie_cfi_head): Delete.
27155         (add_cfi): Accept a cfi_vec * as first argument. All callers and
27156         declaration changed. Use vector rather than list operations.
27157         (new_cfi): Don't initialize the dw_cfi_next field.
27158         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
27159         rather than list operations.
27160         (lookup_cfa): Use vector rather than list operations.
27161         (output_cfis): New argument upto. Accept a cfi_vec rather than
27162         a dw_cfi_ref list head as argument. All callers changed.
27163         Iterate over the vector using upto as a maximum index.
27164         (output_all_cfis): New static function.
27165         (output_fde): Use vector rather than list operations. Use the
27166         new upto argument for output_cfis rather than manipulating a
27167         list.
27168         (dwarf2out_begin_prologue): Change initializations to match
27169         new struct members.
27170         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
27171         from the vector length rather than searching for the end of a list.
27172         Use output_all_cfis.
27173         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
27174
27175 2011-04-13  Nick Clifton  <nickc@redhat.com>
27176
27177         * config/rx/rx.md (movmemsi): Do not use this pattern when
27178         volatile pointers are involved.
27179
27180 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
27181
27182         * config/i386/sse.md (pinsrbits): Remove.
27183         (sse2_packsswb): Merge with *avx_packsswb.
27184         (sse2_packssdw): Merge with *avx_packssdw.
27185         (sse2_packuswb): Merge with *avx_packuswb.
27186         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
27187         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
27188         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
27189         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
27190         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
27191         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
27192         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
27193         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
27194         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
27195         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
27196         (sse2_loadld): Merge with *avx_loadld.
27197         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
27198         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
27199         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
27200         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
27201         (vec_concatv2di): Merge with *vec_concatv2di_avx.
27202
27203 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
27204
27205         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
27206         calling TREE_CHAIN.
27207         * print-tree.c (print_node): Likewise.
27208         * tree-inline.c (copy_tree_r): Likewise.
27209         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
27210         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
27211         instead of TS_COMMON.
27212         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
27213         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
27214         (copy_node_stat): Zero TREE_CHAIN only if necessary.
27215         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
27216         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
27217         ...and these...
27218         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
27219         * tree.h: ...here.
27220         (TREE_CHAIN): Check for a TS_COMMON structure.
27221         (TREE_TYPE): Check for a TS_TYPED structure.
27222
27223 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
27224
27225         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
27226         cgraph_get_create_node instead of cgraph_node.
27227
27228 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
27229
27230         * c-parser.c (c_parser_initelt): Updated call to
27231         objc_build_message_expr.
27232         (c_parser_postfix_expression): Likewise.
27233
27234 2011-04-12  Kai Tietz  <ktietz@redhat.com>
27235
27236         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
27237         MASK_MS_BITFIELD_LAYOUT bit.
27238
27239 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
27240
27241         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
27242         assert it is always true.
27243         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
27244         moves.
27245
27246 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
27247
27248         * c-parser.c (c_lex_one_token): Rewritten conditional used when
27249         compiling Objective-C to be more efficient.
27250
27251 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
27252
27253         * opts-common.c (decode_cmdline_options_to_array): Remove variable
27254         argv_copied.
27255
27256 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
27257
27258         * recog.h, genoutput.c, optabs.c: Revert last patch.
27259
27260 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
27261
27262         PR target/48090
27263         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
27264
27265 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
27266
27267         * recog.h (insn_operand_data): Add an "allows_mem" field.
27268         * genoutput.c (output_operand_data): Initialize it.
27269         * optabs.c (maybe_legitimize_operand_same_code): New function.
27270         (maybe_legitimize_operand): Use it when matching the original
27271         op->value.
27272
27273 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
27274
27275         * genpreds.c (process_define_predicate): Move most processing
27276         to gensupport.c.  Continue to validate the expression.
27277         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
27278         (process_define_predicate): Move processing to gensupport.c.
27279         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
27280         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
27281         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
27282         argument.
27283         (valid_predicate_name_p): New function, split out from old
27284         genpreds.c:process_define_predicate.
27285         (process_define_predicate): New function, combining code from
27286         old genpreds.c and genrecog.c functions.
27287         (process_rtx): Call it for DEFINE_PREDICATE and
27288         DEFINE_SPECIAL_PREDICATE.
27289
27290 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
27291
27292         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
27293         size of a '%A' memory reference.
27294         (T_DREG, T_QREG): New neon_builtin_type_bits.
27295         (arm_init_neon_builtins): Assert that the load and store operands
27296         are neon_struct_operands.
27297         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
27298         (NEON_ARG_MEMORY): New builtin_arg.
27299         (neon_dereference_pointer): New function.
27300         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
27301         Handle NEON_ARG_MEMORY.
27302         (arm_expand_neon_builtin): Update after above interface changes.
27303         Use NEON_ARG_MEMORY for loads and stores.
27304         * config/arm/predicates.md (neon_struct_operand): New predicate.
27305         * config/arm/iterators.md (V_two_elem): Tweak formatting.
27306         (V_three_elem): Use BLKmode for accesses that have no associated mode.
27307         (V_four_elem): Tweak formatting.
27308         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
27309         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
27310         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
27311         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
27312         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
27313         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
27314         (neon_vst4<mode>): Replace pointer operand with a memory operand.
27315         Use %A in the output template.
27316         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
27317         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
27318         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
27319         the width of the memory access.  Remove post-increment.
27320         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
27321
27322 2011-04-12  Nick Clifton  <nickc@redhat.com>
27323
27324         * config/v850/v850.c (expand_prologue): Do not use the CALLT
27325         instruction for interrupt handlers if the target is the basic V850
27326         architecture.
27327         (expand_epilogue): Likewise.
27328
27329 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
27330
27331         PR rtl-optimization/48549
27332         * combine.c (propagate_for_debug): Also stop after BB_END of
27333         this_basic_block.  Process LAST and just stop processing after it.
27334         (combine_instructions): If last_combined_insn has been deleted,
27335         set last_combined_insn to its PREV_INSN.
27336
27337 2011-04-12  Richard Guenther  <rguenther@suse.de>
27338
27339         PR tree-optimization/46076
27340         * gimple.h (struct gimple_statement_call): Add fntype field.
27341         (gimple_call_fntype): Adjust.
27342         (gimple_call_set_fntype): New function.
27343         * gimple.c (gimple_build_call_1): Set the call function type.
27344         * gimplify.c (gimplify_call_expr): Preserve the function
27345         type the frontend used for the call.
27346         (gimplify_modify_expr): Likewise.
27347         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
27348         function type.
27349         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
27350         function type.
27351         * tree-ssa.c (useless_type_conversion_p): Function pointer
27352         conversions are useless.
27353
27354 2011-04-12  Martin Jambor  <mjambor@suse.cz>
27355
27356         * cgraph.h (cgraph_node): Remove function declaration.
27357         (cgraph_create_node): Declare.
27358         (cgraph_get_create_node): Likewise.
27359         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
27360         Updated all callers.
27361         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
27362         the decl does not already exist.  Call cgraph_get_create_node instead
27363         of cgraph_node.
27364         (cgraph_get_create_node): New function.
27365         (cgraph_same_body_alias): Update comment.
27366         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
27367         assert it does not return NULL.
27368         (cgraph_update_edges_for_call_stmt): Likewise.
27369         (cgraph_clone_edge): Likewise.
27370         (cgraph_create_virtual_clone): Likewise.
27371         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
27372         instead of cgraph_node.
27373         (cgraph_add_new_function): Call cgraph_create_node or
27374         cgraph_get_create_node instead of cgraph_node.
27375         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
27376         instead of cgraph_node.
27377         (record_eh_tables): Likewise.
27378         (mark_address): Likewise.
27379         (mark_load): Likewise.
27380         (build_cgraph_edges): Call cgraph_get_create_node instead
27381         of cgraph_node.
27382         (rebuild_cgraph_edges): Likewise.
27383         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
27384         instead of cgraph_node.
27385         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
27386         cgraph_node.
27387         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
27388         cgraph_create_node instead of cgraph_node.
27389         * c-decl.c (finish_function): Call cgraph_get_create_node instead
27390         of cgraph_node.
27391         * lto-cgraph.c (input_node): Likewise.
27392         * lto-streamer-in.c (input_function): Likewise.
27393         * varasm.c (mark_decl_referenced): Likewise.
27394         (assemble_alias): Likewise.
27395
27396 2011-04-12  Martin Jambor  <mjambor@suse.cz>
27397
27398         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
27399         instead of cgraph_node and assert it does not return NULL.
27400         * lto-streamer-in.c (lto_read_body): Likewise.
27401         * omp-low.c (new_omp_context): Likewise.
27402         (create_task_copyfn): Likewise.
27403         * tree-emutls.c (lower_emutls_function_body): Likewise.
27404         * matrix-reorg.c (transform_allocation_sites): Likewise.
27405
27406 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
27407
27408         PR c/48552
27409         * c-typeck.c (build_asm_expr): Error out on attempts to use
27410         void type outputs or inputs for constraints that allow reg or
27411         don't allow memory.
27412
27413 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
27414             Richard Earnshaw  <rearnsha@arm.com>
27415
27416         PR target/48250
27417         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
27418         to use sign-magnitude offsets. Reject unsupported unaligned
27419         cases. Add detailed description in comments.
27420         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
27421         condition from TARGET_32BIT to TARGET_ARM.
27422
27423 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
27424
27425         * tree.h (struct typed_tree): New.
27426         (struct tree_common): Include it instead of tree_base.
27427         (TREE_TYPE): Update for new location of type field.
27428         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
27429         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
27430         (union tree_node): Add typed field.
27431         * treestruct.def (TS_TYPED): New.
27432         * lto-streamer.c (check_handled_ts_structures): Handle it.
27433         * tree.c (MARK_TS_TYPED): New macro.
27434         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
27435
27436 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
27437
27438         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
27439         (force_nonfallthru): Do not alter the loop nest if no basic block
27440         was created.
27441
27442 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
27443
27444         * config/i386/sse.md (VI): New mode iterator.
27445         (SSEMODEI): Remove.
27446         (AVX256MODEI): Ditto.
27447         (AVXMODEF4P): Ditto.
27448         (avxvecpsmode): Ditto.
27449         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
27450         (sse2_andnot<mode>3): New expander.
27451         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
27452         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
27453         (<any_logic:code><mode>3): Use VI mode iterator.
27454         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
27455         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
27456         (*andnottf3): Handle AVX three-operand constraints.
27457         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
27458
27459 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
27460             Robert Millan  <rmh@gnu.org>
27461
27462         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
27463         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
27464         GNU_USER_DYNAMIC_LINKER64): Define.
27465         (REG_NAME): Don't undefine.
27466         (MD_UNWIND_SUPPORT): Undefine.
27467         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
27468         (REG_NAME): Don't undefine.
27469         (MD_UNWIND_SUPPORT): Undefine.
27470         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
27471
27472 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
27473
27474         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
27475         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
27476
27477 2011-04-11  Xinliang David Li  <davidxl@google.com>
27478
27479         * value-profile.c (check_ic_target): New function.
27480         (gimple_ic_transform): Sanity check indirect call target.
27481         * gimple-low.c (gimple_check_call_args): Interface change.
27482         (gimple_check_call_matching_types): New function.
27483         * tree-inline.c (tree_can_inline_p): Call new function.
27484
27485 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
27486
27487         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
27488         tree-pretty-print.h & realmpfr.h.
27489
27490 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
27491
27492         PR middle-end/48464
27493         * ira.c (setup_pressure_classes): Fix typo in loop condition.
27494         (setup_allocno_and_important_classes): Ditto.
27495
27496 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
27497
27498         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
27499         GNU_USER_DYNAMIC_LINKER.
27500         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
27501         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27502         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
27503         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
27504         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
27505         GNU_USER_TARGET_OS_CPP_BUILTINS.
27506         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
27507         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27508         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
27509         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27510         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
27511         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
27512         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
27513         GNU_USER_TARGET_OS_CPP_BUILTINS.
27514         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
27515         GNU_USER_DYNAMIC_LINKER.
27516         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
27517         GNU_USER_TARGET_OS_CPP_BUILTINS.
27518         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
27519         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27520         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
27521         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27522         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
27523         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
27524         GNU_USER_DYNAMIC_LINKER64): Remove.
27525         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
27526         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27527         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
27528         GNU_USER_DYNAMIC_LINKER.
27529         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
27530         GNU_USER_TARGET_OS_CPP_BUILTINS.
27531         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
27532         GNU_USER_TARGET_OS_CPP_BUILTINS.
27533         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
27534         to GNU_USER_TARGET_OS_CPP_BUILTINS.
27535         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
27536         GNU_USER_TARGET_OS_CPP_BUILTINS.
27537         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
27538         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
27539         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
27540         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
27541         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27542         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
27543         GNU_USER_DYNAMIC_LINKER.
27544         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
27545         GNU_USER_TARGET_OS_CPP_BUILTINS.
27546         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
27547         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27548         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
27549         GNU_USER_DYNAMIC_LINKER.
27550         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
27551         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27552         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
27553         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27554         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
27555         GNU_USER_DYNAMIC_LINKER.
27556         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
27557         GNU_USER_DYNAMIC_LINKERN32.
27558         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
27559         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
27560         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
27561         GNU_USER_DYNAMIC_LINKER32.
27562         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
27563         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27564         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
27565         GNU_USER_DYNAMIC_LINKER.
27566         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
27567         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27568         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
27569         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27570         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
27571         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
27572         GNU_USER_DYNAMIC_LINKER32.
27573         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
27574         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
27575         GNU_USER_DYNAMIC_LINKER.
27576         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
27577         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27578         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
27579         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
27580         GNU_USER_DYNAMIC_LINKER64.
27581         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
27582         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27583         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
27584         GNU_USER_DYNAMIC_LINKER.
27585         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
27586         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27587         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
27588         GNU_USER_DYNAMIC_LINKER.
27589         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
27590         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27591         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
27592         GNU_USER_DYNAMIC_LINKER32.
27593         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
27594         GNU_USER_DYNAMIC_LINKER64.
27595         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
27596         GNU_USER_DYNAMIC_LINKER64.
27597         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
27598         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27599         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
27600         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27601         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
27602
27603 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
27604
27605         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
27606         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
27607         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
27608         GNU_USER_DYNAMIC_LINKER.
27609         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
27610         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
27611         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
27612         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
27613         GNU_USER_DYNAMIC_LINKER64.
27614         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
27615         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
27616         GNU_USER_LINK_EMULATION.
27617         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
27618         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
27619         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
27620         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
27621         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
27622         CPP_SPEC, CC1_SPEC): Remove.
27623         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
27624         (GNU_USER_DYNAMIC_LINKER): Define.
27625         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
27626         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
27627         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
27628         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
27629         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
27630         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
27631         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
27632         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
27633         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
27634         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
27635         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
27636         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
27637         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
27638         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
27639         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
27640         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
27641         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
27642         GNU_USER_DYNAMIC_LINKER.
27643         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
27644         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
27645         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
27646         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
27647         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
27648         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
27649         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
27650         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
27651         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
27652         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
27653
27654 2011-04-11  Kai Tietz  <ktietz@redhat.com>
27655
27656         PR target/9601
27657         PR target/11772
27658         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
27659         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
27660         comment.
27661         (ix86_is_msabi_thiscall): Removed.
27662         (ix86_is_type_thiscall): Likewise.
27663         (ix86_get_callcvt): New function.
27664         (ix86_comp_type_attributes): Simplify check.
27665         (ix86_function_regparm): Use ix86_get_callcvt for calling
27666         convention attribute checks.
27667         (ix86_return_pops_args): Likewise.
27668         (ix86_static_chain): Likewise.
27669         (x86_this_parameter): Likewise.
27670         (x86_output_mi_thunk): Likewise.
27671         (ix86_function_type_abi): Optimize check for types without attributes.
27672         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
27673         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
27674         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
27675         by flag-values.
27676         (IX86_BASE_CALLCVT): Helper macro.
27677         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
27678         Use ix86_get_callcvt for calling convention attribute checks and avoid
27679         symbol-decoration for stdcall in TARGET_RTD case.
27680         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
27681         Likewise.
27682         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
27683         for declaration.
27684
27685 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
27686
27687         * config/i386/sse.md (VI_128): New mode iterator.
27688         (VI12_128): Rename from SSEMODE12.
27689         (VI14_128): Rename from SSEMODE14.
27690         (VI124_128): New mode iterator.
27691         (VI24_128): Rename from SSEMODE248.
27692         (VI248_128): Rename from SSEMODE248.
27693         (SSEMODE124C8): Remove.
27694         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
27695         (*sse2_<plusminus_insn><mode>3): Merge with
27696         *avx_<plusminus_insn><mode>3.
27697         (*mulv8hi3): Merge with *avx_mulv8hi3.
27698         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
27699         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
27700         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
27701         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
27702         (ashr<mode>3): Merge with *avx_ashr<mode>3.
27703         (lshr<mode>3): Merge with *avx_lshr<mode>3.
27704         (ashl<mode>3): Merge with *avx_ashl<mode>3.
27705         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
27706         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
27707         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
27708         (*<smaxmin:code>v8hi3): Ditto.
27709         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
27710         (*<smaxmin:code>v16qi3): Ditto.
27711         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
27712         (*sse2_eq<mode>3): Ditto.
27713         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
27714         (*sse2_gt<mode>3): Ditto.
27715         (vcondv2di): Split out of vcond<mode>.
27716         (vconduv2di): Split out of vcondu<mode>.
27717
27718 2011-04-11  Richard Guenther  <rguenther@suse.de>
27719
27720         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
27721         before calling tree_low_cst.
27722
27723 2011-04-11  Richard Guenther  <rguenther@suse.de>
27724
27725         * stor-layout.c (layout_type): Compute all array index size operations
27726         in the original type.
27727         (initialize_sizetypes): Add comment.
27728         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
27729
27730 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
27731
27732         * common.opt (Tbss=, Tdata=, Ttext=): New options.
27733
27734 2011-04-11  Martin Jambor  <mjambor@suse.cz>
27735
27736         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
27737         of cgraph_node, handle NULL return value.
27738         (cgraph_global_info): Likewise.
27739         (cgraph_rtl_info): Likewise.
27740         * tree-inline.c (estimate_num_insns): Likewise.
27741         * gimplify.c (unshare_body): Likewise.
27742         (unvisit_body): Likewise.
27743         (gimplify_body): Likewise.
27744         * predict.c (optimize_function_for_size_p): Likewise.
27745         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
27746         (call_may_clobber_ref_p_1): Likewise.
27747         * varasm.c (function_section_1): Likewise.
27748         (assemble_start_function): Likewise.
27749
27750 2011-04-11  Martin Jambor  <mjambor@suse.cz>
27751
27752         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
27753         of cgraph_node.
27754         * final.c (rest_of_clean_state): Likewise.
27755         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
27756         * passes.c (pass_init_dump_file): Likewise.
27757         (execute_all_ipa_transforms): Likewise.
27758         (function_called_by_processed_nodes_p): Likewise.
27759         * predict.c (maybe_hot_frequency_p): Likewise.
27760         (probably_never_executed_bb_p): Likewise.
27761         (compute_function_frequency): Likewise.
27762         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
27763         (unnest_nesting_tree_1): Likewise.
27764         (lower_nested_functions): Likewise.
27765         * tree-optimize.c (execute_fixup_cfg): Likewise.
27766         (tree_rest_of_compilation): Likewise.
27767         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
27768         * tree-sra.c (ipa_early_sra): Likewise.
27769         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
27770         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
27771         * ipa.c (record_cdtor_fn): Likewise.
27772         * ipa-inline.c (cgraph_early_inlining): Likewise.
27773         (compute_inline_parameters_for_current): Likewise.
27774         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
27775         * ipa-pure-const.c (local_pure_const): Likewise.
27776         * ipa-split.c (split_function): Likewise.
27777         (execute_split_functions): Likewise.
27778         * cgraphbuild.c (build_cgraph_edges): Likewise.
27779         (rebuild_cgraph_edges): Likewise.
27780         (cgraph_rebuild_references): Likewise.
27781         (remove_cgraph_callee_edges): Likewise.
27782         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
27783         (verify_cgraph_node): Likewise.
27784         (cgraph_analyze_functions): Likewise.
27785         (cgraph_preserve_function_body_p): Likewise.
27786         (save_inline_function_body): Likewise.
27787         (save_inline_function_body): Likewise.
27788         * tree-inline.c (copy_bb): Likewise.
27789         (optimize_inline_calls): Likewise.
27790
27791 2011-04-11  Martin Jambor  <mjambor@suse.cz>
27792
27793         PR tree-optimization/48195
27794         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
27795         ipa_check_create_edge_args.
27796         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
27797         ipa_check_create_edge_args.
27798         * ipa-inline.c (inline_generate_summary): Do not call
27799         ipa_check_create_node_params and ipa_check_create_edge_args.
27800         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
27801         ipa_check_create_edge_args.
27802
27803 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
27804
27805         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
27806         instead of loop.
27807         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
27808         * function.c (record_hard_reg_sets): Likewise.
27809         * ira.c (compute_regs_asm_clobbered): Likewise.
27810         * sched-deps.c (sched_analyze_1): Likewise.
27811         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
27812
27813 2011-04-09  Xinliang David Li  <davidxl@google.com>
27814
27815         PR tree-optimization/PR48484
27816         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
27817         has_valid_pred lazily
27818
27819 2011-04-09  Duncan Sands  <baldrick@free.fr>
27820
27821         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
27822
27823 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
27824
27825         * combine.c (combine_validate_cost): Adjust comments.  Set registered
27826         cost of I0 to zero at the end, if any.
27827
27828 2011-04-08  Xinliang David Li  <davidxl@google.com>
27829
27830         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
27831         to insane profile data.
27832
27833 2011-04-08  Xinliang David Li  <davidxl@google.com>
27834
27835         * ipa-cp.c (ipcp_update_profiling): Correct
27836          negative scale factor due to insane profile data.
27837
27838 2011-04-08  Xinliang David Li  <davidxl@google.com>
27839
27840         * final.c (dump_basic_block_info): New function.
27841         (final): Dump basic block.
27842         (final_scan_insn): Remove old dump.
27843
27844 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
27845
27846         PR target/47829
27847         * config.gcc (i386-*-freebsd): Disable unwind table generation for
27848         crtbegin/crtend.
27849
27850 2011-04-08  Michael Matz  <matz@suse.de>
27851
27852         PR middle-end/48389
27853         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
27854         functions.
27855         (rebuild_jump_labels): Call rebuild_jump_labels_1.
27856         * rtl.h (rebuild_jump_labels_chain): Declare.
27857         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
27858         insns inserted on edges.
27859
27860 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
27861
27862         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
27863         * config/arm/arm-arches.def: New.
27864         * config/arm/arm-opts.h: New.
27865         * config/arm/genopt.sh: New.
27866         * config/arm/arm-tables.opt: New (generated).
27867         * config/arm/arm.c (arm_handle_option, arm_target_help,
27868         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
27869         (all_architectures): Get most table contents from arm-arches.def.
27870         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
27871         arm_selected_tune here.
27872         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
27873         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
27874         (march=, mcpu=, mtune=): Use Enum and Var.
27875         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
27876         (arm.o): Update dependencies.
27877
27878 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
27879
27880         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
27881         of header_file.
27882         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
27883         (write_typed_alloc_defns): Likewise.
27884         (main): Calls write_typed_alloc_defns with output_header.
27885
27886 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
27887
27888         PR inline-asm/48435
27889         * ira-color.c (setup_profitable_hard_regs): Add comments.
27890         Don't take prohibited hard regs into account.
27891         (setup_conflict_profitable_regs): Rename to
27892         get_conflict_profitable_regs.
27893         (check_hard_reg_p): Check prohibited hard regs.
27894
27895 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
27896
27897         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
27898         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
27899         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
27900
27901 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27902
27903         PR target/48366
27904         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
27905         move from floating point to shift amount register.
27906         (emit_move_sequence): Remove secondary reload support for floating
27907         point to shift amount amount register copies.
27908         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
27909         amount register copies.
27910         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
27911         register, return false if mode isn't a scalar integer mode.
27912         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
27913
27914 2011-04-08  Richard Guenther  <rguenther@suse.de>
27915
27916         * gimple.c (gimple_call_flags): Remove kludge.
27917
27918 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
27919
27920         * sel-sched.c (sel_region_init): Move call to
27921         sel_setup_region_sched_flags after setup_current_loop_nest.
27922
27923 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
27924
27925         PR rtl-optimization/48272
27926         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
27927         init_insn_reg_pressure_info.  Adjust a caller.
27928         * sched-int.h (init_insn_reg_pressure_info): Declare.
27929         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
27930         when sched-pressure is enabled.
27931
27932 2011-04-08  Richard Guenther  <rguenther@suse.de>
27933
27934         * gimple.c (gimple_set_modified): Do not queue calls to
27935         MODIFIED_NORETURN_CALLS here ...
27936         * tree-ssa-operands.c (update_stmt_operands): ... but here.
27937
27938 2011-04-08  Richard Guenther  <rguenther@suse.de>
27939
27940         PR lto/48467
27941         * toplev.c (lang_dependent_init): Do not open asm_out_file
27942         in WPA mode, nor perform debug machinery initialization.
27943         (finalize): Do not unlink asm_out_file in WPA mode.
27944
27945 2011-04-08  Richard Guenther  <rguenther@suse.de>
27946
27947         * gimple.h (gimple_call_fntype): New function.
27948         (gimple_call_return_type): Use it.
27949         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
27950         * gimple-low.c (gimple_check_call_args): Likewise.
27951         * gimple.c (gimple_call_flags): Likewise.
27952         (gimple_call_arg_flags): Likewise.
27953         (gimple_call_return_flags): Likewise.
27954         * tree-cfg.c (verify_gimple_call): Likewise.
27955         (do_warn_unused_result): Likewise.
27956         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
27957         * value-prof.c (gimple_ic_transform): Fix fndecl check.
27958
27959 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
27960
27961         PR rtl-optimization/48235
27962         * sel-sched.c (code_motion_process_successors): Recompute the last
27963         insn in basic block if control flow changed.
27964         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
27965         Update condition for ilist_remove.
27966
27967 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
27968
27969         PR rtl-optimization/48302
27970         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
27971         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
27972         it to record added preheader blocks.
27973         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
27974         on to sel_add_loop_preheaders.
27975         (sel_region_init): Move call to setup_current_loop_nest after
27976         sel_init_bbs.
27977
27978 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
27979
27980         PR target/48273
27981         * cfgloop.h (loop_has_exit_edges): New helper.
27982         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
27983         non-clonable.
27984         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
27985         that have no exit edges.
27986
27987 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
27988
27989         PR rtl-optimization/48442
27990         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
27991         all callers.  Adjust assert.
27992
27993 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
27994
27995         PR tree-optimization/48377
27996         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
27997         is_packed to true even for types with smaller TYPE_ALIGN than
27998         TYPE_SIZE.
27999
28000 2011-04-08  Richard Guenther  <rguenther@suse.de>
28001
28002         PR bootstrap/48513
28003         * doc/tm.texi: Re-generate.
28004
28005 2011-04-08  Wei Guozhi  <carrot@google.com>
28006
28007         PR target/47855
28008         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
28009         * config/arm/arm.c (arm_attr_length_push_multi): New function.
28010         * config/arm/arm.md (*push_multi): Change the length computation to
28011         call a C function.
28012
28013 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
28014
28015         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
28016         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
28017         * doc/tm.texi: Regenerate.
28018         * system.h (ASM_OUTPUT_BSS): Poison.
28019         * varasm.c (asm_output_bss): Remove function.
28020         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
28021
28022         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
28023         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
28024         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
28025         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
28026         Likewise.
28027         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
28028         Likewise.
28029         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
28030         Likewise.
28031         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
28032
28033 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
28034
28035         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
28036         EnumValue lines.
28037
28038 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
28039
28040         * config/m68k/m68k.c (m68k_handle_option): Don't handle
28041         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
28042         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
28043         OPT_mcpu32.
28044         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
28045         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
28046         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
28047         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
28048         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
28049         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
28050         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
28051         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
28052         options.  Don't map other m68k options manually.  Don't handle
28053         old-style options as canonical.
28054         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
28055         * doc/install.texi (m68k-*-*): Document binutils version requirement.
28056
28057 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
28058
28059         * basic-block.h (force_nonfallthru): Move to...
28060         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
28061         (force_nonfallthru): ...here.
28062         * cfghooks.c (force_nonfallthru): New function.
28063         * cfgrtl.c (force_nonfallthru): Rename into...
28064         (rtl_force_nonfallthru): ...this.
28065         (commit_one_edge_insertion): Do not set AUX field.
28066         (commit_edge_insertions): Do not discover new basic blocks.
28067         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
28068         (cfg_layout_rtl_cfg_hooks): Likewise.
28069         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
28070         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
28071         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
28072
28073 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
28074
28075         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
28076         Remove macros.
28077
28078 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
28079
28080         * config/i386/sse.md: Update copyright year.
28081         (avxcvtvecmode): Remove.
28082         (sse_movhlps): Merge with *avx_movhlps.
28083         (sse_movlhps): Merge with *avx_movlhps.
28084         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
28085         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
28086         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
28087         (sse_loadhps): Merge with *avx_loadhps.
28088         (sse_storelps): Merge with *avx_storelps.
28089         (sse_loadlps): Merge with *avx_loadlps.
28090         (sse_movss): Merge with *avx_movss.
28091         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
28092         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
28093         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
28094         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
28095         (vec_set<mode>_0): Ditto.
28096         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
28097         (sse4_1_insertps): Merge with *avx_insertps.
28098         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
28099         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
28100         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
28101         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
28102         (sse2_storehpd): Merge with *avx_storehpd.
28103         (sse2_loadhpd): Merge with *avx_loadhpd.
28104         (sse2_loadlpd): Merge with *avx_loadlpd.
28105         (sse2_movsd): Merge with *avx_movsd.
28106         (*vec_concatv2df): Merge with *vec_concatv2df.
28107
28108 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
28109
28110         PR debug/48343
28111         * combine.c (combine_instructions): Add last_combined_insn,
28112         update it if insn is after it, pass it to all try_combine calls.
28113         (try_combine): Add last_combined_insn parameter, pass it instead of
28114         i3 to propagate_for_debug.
28115
28116 2011-04-07  Nick Clifton  <nickc@redhat.com>
28117
28118         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
28119         to handle MDR <-> data register transfers.
28120         (movhi_internal): Likewise.
28121
28122 2011-04-07  Alan Modra  <amodra@gmail.com>
28123
28124         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
28125         previous stack info.
28126
28127 2011-04-07  Tom de Vries  <tom@codesourcery.com>
28128
28129         PR target/43920
28130         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
28131         flow_find_cross_jump.  Swap variables to implement backward replacement.
28132         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
28133
28134 2011-04-07  Tom de Vries  <tom@codesourcery.com>
28135
28136         PR target/43920
28137         * cfgcleanup.c (walk_to_nondebug_insn): New function.
28138         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
28139         and bb2.
28140         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
28141         src1 or src2.  Redirect edges to the last basic block.  Update
28142         frequency and count on multiple basic blocks in case of fallthru.
28143
28144 2011-04-07  Tom de Vries  <tom@codesourcery.com>
28145
28146         PR target/43920
28147         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
28148         function.
28149         (old_insns_match_p): Change return type.  Replace return false/true
28150         with return dir_none/dir_both.  Use can_replace_by.
28151         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
28152         direction from dir_p.  Register replacement direction in dir, last_dir
28153         and afterlast_dir.  Handle new return type of old_insns_match_p using
28154         merge_dir.  Return replacement direction in dir_p.
28155         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
28156         return type of old_insns_match_p.
28157         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
28158         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
28159         flow_find_cross_jump.
28160         * basic-block.h (enum replace_direction): New type.
28161         (flow_find_cross_jump): Add parameter to declaration.
28162
28163 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
28164
28165         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
28166         (AVXMODEDCVTPS2DQ): Ditto.
28167         (VEC_FLOAT_MODE): Ditto.
28168         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
28169         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
28170         (<any_logic:code><mode>3): Use VF mode iterator.
28171         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
28172         Use VF mode iterator.
28173         (copysign<mode>3): Use VF mode iterator.
28174         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
28175         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
28176         (*<any_logic:code><MODEF:mode>3): Merge with
28177         *avx_<any_logic:code><MODEF:mode>3.
28178         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
28179         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
28180         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
28181         (avx_cvtdq2ps<avxmodesuffix>): Remove.
28182         (sse2_cvtdq2ps): Use %v modifier.
28183         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
28184         (avx_cvtps2dq<avxmodesuffix>): Remove.
28185         (sse2_cvtps2dq): Use %v modifier.
28186         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
28187         (avx_cvttps2dq<avxmodesuffix>): Remove.
28188         (sse2_cvttps2dq): Use %v modifier.
28189         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
28190         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
28191         (sse2_cvtsd2siq): Fix insn template.
28192         (sse2_cvtsd2siq_2): Ditto.
28193         (sse2_cvttsd2siq): Ditto.
28194         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
28195         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
28196
28197 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
28198
28199         * gcov-io.c: Use GCC Runtime Library Exception.
28200
28201 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
28202
28203         PR debug/48466
28204         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
28205         as base_reg whatever register reg has been eliminated to, instead
28206         of hardcoding STACK_POINTER_REGNUM.
28207
28208 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
28209
28210         * doc/tm.texi.in: Document C target hooks as separate from general
28211         target hooks.
28212         * doc/tm.texi: Regenerate.
28213         * genhooks.c (struct hook_desc): Add docname field.
28214         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
28215         docname field.
28216         (hook_array): Include c-target.def.
28217         (emit_documentation): Use docname field in output.
28218         (emit_init_macros): Take docname argument.  Only emit definitions
28219         for hooks matching docname.
28220         (main): Expect additional arguments in all cases.  Pass argument
28221         to emit_init_macros.
28222         * target.def: Move initial macro definitions and comments to
28223         target-hooks-macros.h.
28224         (gcc_targetcm): Move to c-family/c-target.def.
28225         * target.h (targetcm): Move declaration to c-family/c-target.h.
28226         * targhooks.c (default_handle_c_option): Move to
28227         c-family/c-opts.c.
28228         * targhooks.h (default_handle_c_option): Move declaration to
28229         c-family/c-common.h.
28230         * target-hooks-macros.h: New file.
28231         * config.gcc (target_has_targetcm): Define and use to add to
28232         c_target_objs and cxx_target_objs.
28233         * config/default-c.c: New file.
28234         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
28235         of target.h and target-def.h.
28236         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
28237         (darwin_objc_construct_string, darwin_cfstring_ref_p,
28238         darwin_check_cfstring_format_arg): Make static.
28239         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
28240         TARGET_STRING_OBJECT_REF_TYPE_P,
28241         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
28242         * config/darwin-protos.h (darwin_objc_construct_string,
28243         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
28244         declare.
28245         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
28246         TARGET_STRING_OBJECT_REF_TYPE_P,
28247         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
28248         * config/t-darwin (darwin-c.o): Update dependencies.
28249         * system.h (TARGET_HAS_TARGETCM): Poison.
28250         * Makefile.in (TARGET_H): Update.
28251         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
28252         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
28253         (default-c.o): New target.
28254         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
28255         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
28256         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
28257         c-target.def.
28258         (build/genhooks.o): Update dependencies.
28259
28260 2011-04-06  Richard Guenther  <rguenther@suse.de>
28261
28262         * ipa-inline.c (enum inlining_mode): Remove.
28263         (cgraph_flatten): Use some other token.
28264         (cgraph_edge_early_inlinable_p): New function, split out from ...
28265         (cgraph_perform_always_inlining): New function, split out from ...
28266         (cgraph_decide_inlining_incrementally): ... here.
28267         (cgraph_mark_inline_edge): Adjust.
28268         (cgraph_early_inlining): Re-structure.
28269         (pass_early_inline): Require SSA form.
28270
28271 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
28272             Julian Brown  <julian@codesourcery.com>
28273             Mark Shinwell  <shinwell@codesourcery.com>
28274
28275         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
28276         LO_REGS only for Thumb-1.
28277         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
28278         be used in short instructions when optimising for size on Thumb-2.
28279
28280 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
28281
28282         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
28283         associated with user returns to be preserved.
28284
28285 2011-04-06  Tristan Gingold  <gingold@adacore.com>
28286
28287         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
28288         symbol_queue_size, DBXOUT_DECR_NESTING,
28289         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
28290         if XCOFF_DEBUGGING_INFO.
28291
28292 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
28293
28294         * config/i386/i386.md (attribute isa): New.
28295         (attribute enabled): New.
28296         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
28297         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
28298         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
28299         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
28300         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
28301         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
28302         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
28303         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
28304
28305         * config/i386/sse.md (VF): New mode iterator.
28306         (VF1): Ditto.
28307         (VF2): Ditto.
28308         (VF_128): Ditto.
28309         (SSEMODEF4): Remove.
28310         (attribute sse): Handle V8SF and V4DF modes.
28311         (<absneg:code><mode>2): Use VF mode iterator.
28312         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
28313         mode iterator.
28314         (<plusminus_insn><mode>3): Use VF mode iterator.
28315         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
28316         Use VF mode iterator.
28317         (<sse>_vm<plusminus_insn><mode>3): Merge with
28318         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
28319         (mul<mode>3): Use VF mode iterator.
28320         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
28321         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
28322         mode iterator.
28323         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
28324         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
28325         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
28326         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
28327         mode iterator.
28328         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
28329         Use VF1 mode iterator.
28330         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
28331         (sqrt<VF2:mode>2): New expander.
28332         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
28333         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
28334         and sqrtv2df2.  Use VF mode iterator.
28335         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
28336         mode iterator.
28337         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
28338         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
28339         Use VF1 mode iterator.
28340         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
28341         (<smaxmin:code><mode>3): Use VF mode iterator.
28342         (*<smaxmin:code><mode>3_finite): Merge with
28343         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
28344         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
28345         (<sse>_vm<smaxmin:code><mode>2): Merge with
28346         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
28347         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
28348         mode iterator.
28349         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
28350         mode iterator.
28351         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
28352         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
28353         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
28354         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
28355         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
28356         VF mode iterator.
28357         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
28358         Use VF_128 mode iterator.
28359         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
28360         mode iterator.
28361         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
28362         VF_128 mode iterator.
28363         (vcond<mode>): Use VF mode iterator.
28364         * config/i386/predicates.md (sse_comparison_operator): Merge with
28365         avx_comparison_float_operator.  Do not declare as special_predicate.
28366         * config/i386/i386.c (struct builtin_description): Update for renamed
28367         compare patterns.
28368         (ix86_expand_args_builtin): Ditto.
28369         (ix86_expand_sse_compare_mask): Ditto.
28370
28371 2011-04-06  Richard Guenther  <rguenther@suse.de>
28372
28373         * tree-inline.c (estimate_num_insns): For calls simply account
28374         for all passed arguments and a used return value.
28375
28376 2011-04-06  Richard Guenther  <rguenther@suse.de>
28377
28378         PR tree-optimization/47663
28379         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
28380         call_stmt_time fields.
28381         (cgraph_edge_inlinable_p): Declare.
28382         (cgraph_edge_recursive_p): New inline function.
28383         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
28384         (cgraph_clone_edge): Copy it.
28385         * ipa-inline.c (cgraph_estimate_edge_time): New function.
28386         Account for call stmt time.
28387         (cgraph_estimate_time_after_inlining): Take edge argument.
28388         (cgraph_estimate_edge_growth): Account call stmt size.
28389         (cgraph_estimate_size_after_inlining): Take edge argument.
28390         (cgraph_mark_inline_edge): Adjust.
28391         (cgraph_check_inline_limits): Likewise.
28392         (cgraph_recursive_inlining_p): Remove.
28393         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
28394         (cgraph_decide_recursive_inlining): Take edge argument and
28395         adjust.
28396         (cgraph_decide_inlining_of_small_functions): Do not avoid
28397         diags for recursive inlining here.
28398         (cgraph_flatten): Adjust.
28399         (cgraph_decide_inlining_incrementally): Likewise.
28400         (estimate_function_body_sizes): Remove call cost handling.
28401         (compute_inline_parameters): Initialize caller edge call costs.
28402         (cgraph_estimate_edge_growth): New function.
28403         (cgraph_estimate_growth): Use it.
28404         (cgraph_edge_badness): Likewise.
28405         (cgraph_check_inline_limits): Take an edge argument.
28406         (cgraph_decide_inlining_of_small_functions): Adjust.
28407         (cgraph_decide_inlining): Likewise.
28408         * tree-inline.c (estimate_num_insns): Only account for call
28409         return value if it is used.
28410         (expand_call_inline): Avoid diagnostics on recursive inline
28411         functions here.
28412         * lto-cgraph.c (lto_output_edge): Output edge call costs.
28413         (input_edge): Input edge call costs.
28414
28415 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28416
28417         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
28418
28419 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
28420
28421         * doc/invoke.texi (Spec Files): Fix typo.
28422
28423 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
28424
28425         * profile.c (branch_prob): Move declaration of local variable.  Remove
28426         obsolete ??? comment.  Expand the location explicitly instead of using
28427         the LOCATION_FILE and LOCATION_LINE macros.
28428
28429 2011-04-06  Wei Guozhi  <carrot@google.com>
28430
28431         PR target/47855
28432         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
28433         (arm_cond_branch): Likewise.
28434         (arm_cond_branch_reversed): Likewise.
28435         (arm_jump): Likewise.
28436         (push_multi): Likewise.
28437         * config/arm/constraints.md (Py): New constraint.
28438
28439 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
28440
28441         PR bootstrap/48471
28442         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
28443         Move these...
28444         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
28445         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
28446         #ifdef DBX_DEBUGGING_INFO.
28447
28448 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
28449
28450         PR bootstrap/48403
28451         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
28452         if old and new states differ.
28453
28454 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
28455
28456         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
28457         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
28458         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
28459         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
28460         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
28461         mcfv4e): Use Alias.
28462         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
28463         ColdFire options to -mcpu= options.
28464
28465 2011-04-05  Jeff Law  <law@redhat.com>
28466
28467         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
28468         check if BB is a successor of LOOP->header and return
28469         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
28470
28471 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
28472
28473         * cprop.c (struct reg_use): Remove.
28474         (reg_use_table): Make an array of RTX.
28475         (find_used_regs, constprop_register, local_cprop_pass,
28476         bypass_block): Simplify users of reg_use_table.
28477         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
28478         on one of the uses found by find_used_regs.
28479
28480 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
28481
28482         PR bootstrap/48469
28483         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
28484         declaration.
28485
28486 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
28487
28488         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
28489         as an rtx.
28490         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
28491
28492 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
28493
28494         PR middle-end/48441
28495         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
28496
28497 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
28498
28499         * combine.c: Include obstack.h.
28500         (struct insn_link): Define.
28501         (uid_log_links): Adjust type.
28502         (FOR_EACH_LOG_LINK): New macro.
28503         (insn_link_obstack): Declare.
28504         (alloc_insn_link): Define.
28505         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
28506         type of link variables.
28507         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
28508         (try_combine, record_promoted_values, distribute_notes): Likewise.
28509         (distribute_links): Likewise.  Tweak prototype.
28510         (clear_log_links): Delete.
28511         (adjust_for_new_dest): Call alloc_insn_link.
28512         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
28513
28514 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
28515
28516         * gcse.c (modify_mem_list): Convert to an array of VECs.
28517         (canon_modify_mem_list, compute_transp): Tweak formatting.
28518         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
28519         (load_killed_in_block_p): Likewise.
28520         (record_last_mem_set_info): Likewise.
28521         (clear_modify_mem_tables): Likewise.
28522
28523 2011-04-05  Tom de Vries  <tom@codesourcery.com>
28524
28525         PR middle-end/48461
28526         * function.c (emit_use_return_register_into_block): Only define if
28527         HAVE_return.
28528
28529 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
28530
28531         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
28532
28533 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
28534
28535         * config/rx/rx-opts.h: New.
28536         * config/rx/rx.c (rx_cpu_type): Remove.
28537         (rx_handle_option): Don't assert that global structures are in
28538         use.  Access variables via opts pointer.  Defer most handling of
28539         OPT_mint_register_.  Use error_at.
28540         (rx_option_override): Handle deferred OPT_mint_register_ here.
28541         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
28542         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
28543         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
28544         (rx_cpu_types): New Enum and EnumValue entries.
28545         (mint-register=): Use Defer and use Var accordingly.
28546
28547 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
28548
28549         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
28550         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
28551         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
28552         Move these...
28553         (debug_free_queue, debug_nesting, symbol_queue_index):
28554         ...and these...
28555         * dbxout.c: ...to here.  Make static.
28556
28557 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
28558
28559         * gcse.c (modify_pair): Define.  Define a VEC of it.
28560         (canon_modify_mem_list): Convert to an array of VECs.
28561         (free_insn_expr_list_list): Delete.
28562         (clear_modify_mem_tables): Call VEC_free instead.
28563         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
28564         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
28565         (canon_list_insert, compute_transp): Likewise.
28566
28567 2011-04-05  Tom de Vries  <tom@codesourcery.com>
28568
28569         PR target/43920
28570         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
28571         for size.
28572
28573 2011-04-05  Tom de Vries  <tom@codesourcery.com>
28574
28575         PR target/43920
28576         * function.c (emit_use_return_register_into_block): New function.
28577         (thread_prologue_and_epilogue_insns): Use
28578         emit_use_return_register_into_block.
28579
28580 2011-04-05  Tom de Vries  <tom@codesourcery.com>
28581
28582         PR target/43920
28583         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
28584         insn.
28585
28586 2011-04-05  Tom de Vries  <tom@codesourcery.com>
28587
28588         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
28589
28590 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
28591
28592         * config/arm/arm.md (define_constants for unspec): Replace with
28593         define_c_enum.
28594         (define_constants for unspecv): Replace with define_c_enum.
28595         * config/arm/neon.md (define_constants for unspec): Replace with
28596         define_c_enum.
28597
28598 2011-04-04  Richard Henderson  <rth@redhat.com>
28599
28600         PR bootstrap/48400
28601         * dwarf2out.c (output_line_info): Always emit line info from
28602         at least one section.
28603         (dwarf2out_init): Create text_section_line_info here ...
28604         (set_cur_line_info_table): ... not here.
28605
28606 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
28607
28608         PR target/48380
28609         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
28610         not called.
28611
28612         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
28613
28614 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
28615
28616         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
28617         (expr_equiv_p): Remove.
28618         (insert_set_in_table): Look at <dest, src> pair instead of expr.
28619         (hash_scan_set): Update call to insert_set_in_table.
28620         (dump_hash_table): Dump <dest, src> pair.
28621         (lookup_set): Simplify.  Lookup <dest, src> pair.
28622         (compute_transp): Remove, fold heavily simplified code into...
28623         (compute_local_properties): ...here.  Expect COMP and TRANSP
28624         unconditionally.
28625         (find_avail_set): Take set directly from struct expr.
28626         (find_bypass-set): Likewise.
28627         (bypass_block): Likewise.
28628         (cprop_insn): Likewise.  Remove redundant INSN_P test.
28629
28630         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
28631         checks on form of COND from find_implicit_sets to here.
28632         (find_implicit_sets): Cleanup control flow. Split critical edges
28633         if it exposes implicit sets.  Allocate/resize implicit_sets as
28634         necessary.
28635         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
28636         changed something.  Run df_analyze after find_implicit_sets if any
28637         edges were split.  Do not allocate implicit_sets here.
28638
28639         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
28640         (gcse_obstack): Renamed to cprop_obstack.
28641         (GNEW, GNEWVEC, GNEWVAR): Remove.
28642         (gmalloc): Remove.
28643         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
28644         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
28645         (gcse_alloc): Likewise, and rename to cprop_alloc.
28646         (alloc_gcse_men, free_gcse_mem): Remove.
28647         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
28648         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
28649         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
28650
28651         * cprop.c (oprs_not_set_p): Remove.
28652         (mark_set, mark_clobber): Remove.
28653         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
28654         (reg_not_set_p): New function.
28655         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
28656         (cprop_insn): Likewise.
28657         (cprop_jump): Use FOR_EACH_EDGE.
28658
28659 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
28660
28661         PR bootstrap/48403
28662         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
28663         (rank_for_schedule): Use scheduled_insns vector instead of
28664         last_scheduled_insn.
28665         (ok_for_early_queue_removal): Likewise.
28666         (queue_to_ready): Search forward in nonscheduled_insns_begin if
28667         we have a dbg_cnt.
28668         (choose_ready): Likewise.
28669         (commit_schedule): Use VEC_iterate.
28670         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
28671         a dbg_cnt, use it and ensure the first insn is in the ready list.
28672         (haifa_sched_init): Allocate scheduled_insns.
28673         (sched_extend_ready_list): Don't allocate it; reserve space.
28674         (haifa_sched_finish): Free it.
28675
28676 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
28677
28678         * optc-gen.awk: Always remove type from Variable entry before
28679         recording in var_seen.
28680
28681 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
28682
28683         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
28684         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
28685         call to tidy_fallthru_edges.
28686
28687 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
28688
28689         * doc/options.texi (ToLower): Document.
28690         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
28691         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
28692         * opts.h (cl_option): Add cl_tolower field.
28693         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
28694         arguments with lowercase strings.
28695         * config/rx/rx.opt (mcpu=): Add ToLower.
28696         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
28697         argument.
28698
28699 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
28700
28701         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
28702
28703 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
28704
28705         * config/vax/vax.c: Include reload.h.
28706
28707 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
28708
28709         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
28710         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
28711         (sparc_preferred_reload_class): New function.
28712
28713 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
28714
28715         PR debug/48401
28716         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
28717         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
28718
28719 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
28720
28721         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
28722         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
28723
28724 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
28725
28726         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
28727         (ASM_OUTPUT_ALIGNED_BSS): Define.
28728
28729 2011-04-03  Michael Matz  <matz@suse.de>
28730
28731         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
28732         and next_slot members.
28733         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
28734         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
28735         (lto_streamer_cache_append): Declare.
28736         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
28737         unsigned index, remove offset parameter, ensure that we append
28738         or update existing entries.
28739         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
28740         parameter, update next_slot for append.
28741         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
28742         parameter.
28743         (lto_streamer_cache_insert_at): Likewise.
28744         (lto_streamer_cache_append): New function.
28745         (lto_streamer_cache_lookup): Use unsigned index.
28746         (lto_streamer_cache_get): Likewise.
28747         (lto_record_common_node): Don't test tree_node_can_be_shared.
28748         (preload_common_node): Adjust call to lto_streamer_cache_insert.
28749         (lto_streamer_cache_delete): Don't free offsets member.
28750         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
28751         (lto_output_string_with_length): Use lto_output_data_stream.
28752         (lto_output_tree_header): Remove ix parameter, don't write it.
28753         (lto_output_builtin_tree): Likewise.
28754         (lto_write_tree): Adjust callers to above, don't track and write
28755         offset, write unsigned index.
28756         (output_unreferenced_globals): Don't emit all global vars.
28757         (write_global_references): Use unsigned indices.
28758         (lto_output_decl_state_refs): Likewise.
28759         (write_symbol): Likewise.
28760         * lto-streamer-in.c (lto_input_chain): Move earlier.
28761         (input_function): Use unsigned index.
28762         (input_alias_pairs): Don't read and then ignore all global vars.
28763         (lto_materialize_tree): Remove ix_p parameter, don't read index,
28764         don't pass it back, use lto_streamer_cache_append.
28765         (lto_register_var_decl_in_symtab): Use unsigned index.
28766         (lto_register_function_decl_in_symtab): Likewise.
28767         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
28768         index.
28769         (lto_get_builtin_tree): Don't read index, use
28770         lto_streamer_cache_append.
28771         (lto_read_tree): Adjust call to lto_materialize_tree.
28772
28773         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
28774         don't use function calls in arguments to MIN.
28775
28776         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
28777         twice.
28778
28779         * gimple.c (gimple_type_leader_entry): Mark deletable.
28780
28781 2011-04-03  Alan Modra  <amodra@gmail.com>
28782
28783         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
28784
28785 2011-04-03  Michael Matz  <matz@suse.de>
28786
28787         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
28788         an integer.
28789         * tree.h (tree_decl_non_common.vindex): Adjust comment.
28790
28791 2011-04-03  Michael Matz  <matz@suse.de>
28792
28793         * cgraphbuild.c (record_reference): Canonicalize constructor values.
28794         * gimple-fold.c (canonicalize_constructor_val): Accept being called
28795         without function context.
28796         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
28797         current_function_decl and cfun.
28798
28799 2011-04-03  Michael Matz  <matz@suse.de>
28800
28801         * tree.c (decl_init_priority_insert): Don't create entry for
28802         default priority.
28803         (decl_fini_priority_insert): Ditto.
28804         (fields_compatible_p, find_compatible_field): Remove.
28805         * tree.h (fields_compatible_p, find_compatible_field): Remove.
28806         * gimple.c (gimple_compare_field_offset): Adjust block comment.
28807
28808 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
28809
28810         * combine.c (try_combine): Remove useless local variable.
28811
28812 2011-04-03  Richard Guenther  <rguenther@suse.de>
28813             Ira Rosen  <ira.rosen@linaro.org>
28814
28815         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
28816         non-variable offsets and compare the remaining bases of the two
28817         accesses instead of looking for exact same data-ref.
28818
28819 2011-04-02  Kai Tietz  <ktietz@redhat.com>
28820
28821         PR target/48416
28822         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
28823
28824         * i386.c (ix86_is_msabi_thiscall): New helper function.
28825         (ix86_is_type_thiscall): New helper function.
28826         (ix86_comp_type_attributes): Handle thiscall for method-functions
28827         special.
28828         (init_cumulative_args): Likewise.
28829         (find_drap_reg): Likewise.
28830         (ix86_static_chain): Likewise.
28831         (x86_this_parameter): Likewise.
28832         (x86_output_mi_thunk): Likewise.
28833
28834 2011-04-01  Olivier Hainque  <hainque@adacore.com>
28835             Nicolas Setton  <setton@adacore.com>
28836             Eric Botcazou  <ebotcazou@adacore.com>
28837
28838         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
28839         (add_gnat_descriptive_type_attribute): New function.
28840         (gen_array_type_die): Call it.
28841         (gen_enumeration_type_die): Likewise.
28842         (gen_struct_or_union_type_die): Likewise.
28843         (modified_type_die): Likewise.
28844         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
28845         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
28846         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
28847
28848 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
28849
28850         PR bootstrap/48148
28851         * dwarf2out.c (resolve_addr): Don't call force_decl_die
28852         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
28853
28854         Revert:
28855         2011-03-17  Richard Guenther  <rguenther@suse.de>
28856
28857         PR bootstrap/48148
28858         * lto-cgraph.c (input_overwrite_node): Clear the abstract
28859         origin for decls in other ltrans units.
28860         (input_varpool_node): Likewise.
28861
28862 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
28863
28864         PR middle-end/48335
28865         * expr.c (expand_assignment): Handle all possibilities
28866         if TO_RTX is CONCAT.
28867         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
28868         (store_split_bit_field): If SUBREG_REG (op0) or
28869         op0 itself has smaller mode than word, return it
28870         for offset 0 and const0_rtx for out-of-bounds stores.
28871         If word is const0_rtx, skip it.
28872
28873 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
28874
28875         * config/h8300/h8300.c (print_operand_address): Rename to...
28876         (h8300_print_operand_address): ...this. Make static. Adjust comments.
28877         Call h8300_print_operand and h8300_print_operand_address instead of
28878         print_operand and print_operand_address. Declare.
28879         (print_operand): Renake to...
28880         (h8300_print_operand): ...this. Make static. Adjust comments.
28881         Call h8300_print_operand instead of print_operand. Declare.
28882         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
28883         (h8300_register_move_cost): Likewise.
28884         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
28885         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
28886         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
28887         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
28888         * config/h8300/h8300-protos.h (print_operand): Delete.
28889         (print_operand_address): Delete.
28890
28891 2011-04-01  Richard Henderson  <rth@redhat.com>
28892
28893         PR 48400
28894         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
28895         in strict mode before dwarf4.  Re-order tests to early out
28896         before switching sections.
28897
28898 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
28899
28900         * config/h8300/constraints.md: New file.
28901         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
28902         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
28903         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
28904         * config/h8300/predicates.md (bit_operand): Likewise.
28905         (incdec_operand): Use satisfies_constraint_M and
28906         satisfies_constraint_O.  Don't use C code block.
28907         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
28908         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
28909         (compute_mov_length): Use satisfies_constraint_G.
28910         (fix_bit_operand): Use satisfies_constraint_U.
28911         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
28912         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
28913         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
28914         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
28915         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
28916         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
28917         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28918         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
28919         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
28920         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
28921         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
28922         (EXTRA_MEMORY_CONSTRAINT): Delete.
28923
28924 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
28925             Michael Meissner  <meissner@linux.vnet.ibm.com>
28926
28927         PR target/48262
28928         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
28929         operands, as per the specifications.
28930
28931         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
28932         (vec_extract_evenv4sf): Ditto.
28933         (vec_extract_evenv8hi): Ditto.
28934         (vec_extract_evenv16qi): Ditto.
28935         (vec_extract_oddv4si): Ditto.
28936
28937 2011-03-31  Mark Wielaard  <mjw@redhat.com>
28938
28939         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
28940         high_pc attribute if the CU has no associated code. Only output
28941         DW_AT_entry_pc for CU if not generating strict dwarf and
28942         dwarf_version < 4.
28943
28944 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
28945
28946         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
28947         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
28948         out of ...
28949         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
28950         * final.c (final_start_function): Call the new function rather
28951         than using a NULL argument for dwarf2out_frame_debug.
28952
28953         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
28954         that contains the prologue.
28955
28956         * haifa-sched.c (queue_insn): New arg REASON.  All callers
28957         changed.  Print it in debugging output.
28958
28959         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
28960
28961         * sched-ebb.c (begin_schedule_ready): Remove second argument.
28962         Split most of the code into...
28963         (begin_move_insn): ... here.  New function.
28964         (ebb_sched_info): Add a pointer to it.
28965         * haifa-sched.c (scheduled_insns): New static variable.
28966         (sched_extend_ready_list): Allocate it.
28967         (schedule_block): Use it to record the order of scheduled insns.
28968         Perform RTL changes to move insns only after all scheduling
28969         decisions have been made.
28970         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
28971         begin_move_insn field.
28972         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
28973         * sched-int.h (struct haifa_sched_info): Remove second argument
28974         from begin_schedule_ready hook.  Add new member begin_move_insn.
28975         * sched-rgn.c (begin_schedule_ready): Remove second argument.
28976         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
28977
28978         * haifa-sched.c (prune_ready_list): New function, broken out of
28979         schedule_block.
28980         (schedule_block): Use it.
28981
28982 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28983
28984         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
28985
28986 2011-04-01  Kai Tietz  <ktietz@redhat.com>
28987
28988         * config.gcc (*-*-mingw*): Allow as option the
28989         posix threading model.
28990         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
28991         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
28992         definition.
28993         (CPP_SPEC): Add pthread/no-pthread handling.
28994         (LIB_SPEC): Likewise.
28995         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
28996         (LIB_SPEC): Likewise.
28997         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
28998         flag to pass -pthread option for shared libgcc build.
28999         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
29000         for shared libgcc build.
29001         * config/i386/t-mingw-pthread: New file.
29002         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
29003         New define to enable use of library pthread by default.
29004         * config/i386/mingw.opt (pthread): New driver option.
29005         (no-pthread): New driver option.
29006         * config/i386/cygming.opt: Make sure trailing empty line is retained.
29007         * config/i386/mingw-w64.opt: Likewise.
29008
29009 2011-04-01  Gary Funck  <gary@intrepid.com>
29010
29011         * c-decl.c (grokdeclarator): Fix formatting.
29012
29013 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
29014
29015         * expr.c (emit_block_move_via_movmem): Use n_generator_args
29016         instead of n_operands.
29017         (set_storage_via_setmem): Likewise.
29018         * optabs.c (maybe_gen_insn): Likewise.
29019         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
29020         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
29021         (mips_expand_builtin_direct): Likewise.
29022         * config/spu/spu.c (expand_builtin_args): Likewise.
29023
29024 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
29025
29026         * recog.h (insn_data_d): Add n_generator_args.
29027         * genoutput.c (data): Likewise.
29028         (output_insn_data): Print it.
29029         (max_opno, num_dups): Delete.
29030         (scan_operands): Just fill in "d->operand[...]".
29031         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
29032
29033 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
29034
29035         * gensupport.h (pattern_stats): New structure.
29036         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
29037         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
29038         (max_operand_1, max_operand_vec): Delete.
29039         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
29040
29041 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
29042
29043         * emit-rtl.c (emit_pattern_after_setloc): New function.
29044         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
29045         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
29046         (emit_pattern_after): New function.
29047         (emit_insn_after, emit_jump_insn_after): Call it.
29048         (emit_call_insn_after, emit_debug_insn_after): Likewise.
29049         (emit_pattern_before_setloc): New function.
29050         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
29051         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
29052         Likewise.
29053         (emit_pattern_before): New function.
29054         (emit_insn_before, emit_jump_insn_before): Call it.
29055         (emit_call_insn_before, emit_debug_insn_before): Likewise.
29056
29057 2011-03-31  Richard Henderson  <rth@redhat.com>
29058
29059         * dwarf2out.c (dw_separate_line_info_ref): Remove.
29060         (dw_separate_line_info_entry): Remove.
29061         (enum dw_line_info_opcode): New.
29062         (dw_line_info_entry): Use it.
29063         (dw_line_info_table, dw_line_info_table_p): New.
29064         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
29065         (line_info_table, line_info_label_num): Remove.
29066         (line_info_table_in_use): Remove.
29067         (separate_line_info_table): Remove.
29068         (separate_line_info_table_allocated): Remove.
29069         (separate_line_info_table_in_use): Remove.
29070         (LINE_INFO_TABLE_INCREMENT): Remove.
29071         (line_info_label_num): New.
29072         (cur_line_info_table): New.
29073         (text_section_line_info, cold_text_section_line_info): New.
29074         (separate_line_info): New.
29075         (SEPARATE_LINE_CODE_LABEL): Remove.
29076         (print_dwarf_line_table): Remove.
29077         (debug_dwarf): Don't dump it.
29078         (output_one_line_info_table): New.
29079         (output_line_info): Use it.
29080         (new_line_info_table): New.
29081         (set_cur_line_info_table): New.
29082         (dwarf2out_switch_text_section): Use it.
29083         (dwarf2out_begin_function): Likewise.
29084         (push_dw_line_info_entry): New.
29085         (dwarf2out_source_line): Rewrite for new line info tables.
29086         (dwarf2out_init): Remove dead initailizations.
29087
29088 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
29089
29090         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
29091         various flags.
29092         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
29093         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
29094         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
29095         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
29096         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
29097         * opt-functions.awk (flag_init, switch_bit_fields): New.
29098         (switch_flags): Don't handle flags moved to bit-fields.  Don't
29099         generate CL_MISSING_OK or CL_SAVE.
29100         * optc-gen.awk: Update to generate bit-field output as well as
29101         flags field.
29102         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
29103         bit-field instead of CL_REJECT_DRIVER flag.
29104         * opts-common.c (generate_canonical_option,
29105         decode_cmdline_option): Use bit-fields instead of CL_* flags.
29106         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
29107         instead of CL_REJECT_NEGATIVE flag.
29108         * toplev.c (print_switch_values): Use cl_report bit-field instead
29109         of CL_REPORT flag.
29110
29111 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
29112
29113         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
29114         a zero minimum index only if it is redundant.
29115
29116 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
29117
29118         PR rtl-optimization/48381
29119         * ira-color.c (assign_hard_reg): Use hard reg set intersection
29120         instead of ira_class_hard_reg_index for calculating conflicting
29121         hard registers.
29122
29123 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
29124
29125         * cprop.c: Clean up hash table building.
29126         (reg_avail_info): Remove.
29127         (oprs_available_p): Remove.
29128         (record_last_reg_set_info): Remove.
29129         (record_last_set_info): Remove.
29130         (reg_available_p): New function.
29131         (gcse_constant_p): Do not treat unfolded conditions as constants.
29132         (make_set_regs_unavailable): New function.
29133         (hash_scan_set): Simplify with new reg_available_p.
29134         (compute_hash_table_work): Traverse insns stream only once.
29135         Do not compute reg_avail_info. Traverse insns in reverse order.
29136         Record implicit sets after recording explicit sets from the block.
29137
29138 2011-03-31  Michael Matz  <matz@suse.de>
29139
29140         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
29141
29142 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
29143
29144         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
29145         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
29146         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
29147         (h8300_mode_dependent_address_p): New function.
29148         (h8300_get_index): Make static.
29149
29150 2011-03-31  Jeff Law  <law@redhat.com>
29151
29152         * reload1.c (elimination_effects): Fix typo in recent change.
29153
29154         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
29155         typo potentially leading to null pointer dereference.
29156
29157         * caller-save.c (new_saved_hard_reg): Eliminate return value.
29158         (setup_save_areas): Corresponding changes to avoid useless
29159         assignments.
29160
29161         * jump.c (reversed_comparison_code_parts): Avoid successive return
29162         statements when REVERSE_CONDITION is defined.
29163
29164         * expr.c (expand_assignment): Avoid useless assignments.
29165         (expand_expr_real_1): Likewise.
29166         (expand_expr_real_2): Avoid useless statements.
29167
29168         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
29169
29170         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
29171
29172         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
29173         statements.
29174
29175         * stmt.c (expand_expr_stmt): Avoid useless assignment.
29176
29177 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
29178
29179         PR target/47109
29180         * doc/tm.texi.in (TARGET_VERSION): Remove.
29181         * doc/tm.texi: Regenerate.
29182         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
29183         * collect2.c (main): Don't use TARGET_VERSION.
29184         * mips-tdump.c (main): Don't use TARGET_VERSION.
29185         * mips-tfile.c (main): Don't use TARGET_VERSION.
29186         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
29187         * config/rs6000/vxworksae.h: Remove.
29188         * config/alpha/alpha.h (TARGET_VERSION): Remove.
29189         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
29190         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
29191         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
29192         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
29193         * config/arm/arm.h (TARGET_VERSION): Remove.
29194         * config/arm/coff.h (TARGET_VERSION): Remove.
29195         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
29196         * config/arm/elf.h (TARGET_VERSION): Remove.
29197         * config/arm/freebsd.h (TARGET_VERSION): Remove.
29198         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
29199         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
29200         * config/arm/pe.h (TARGET_VERSION): Remove.
29201         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
29202         * config/arm/semi.h (TARGET_VERSION): Remove.
29203         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
29204         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
29205         * config/arm/vxworks.h (TARGET_VERSION): Remove.
29206         * config/avr/avr.h (TARGET_VERSION): Remove.
29207         * config/bfin/bfin.h (TARGET_VERSION): Remove.
29208         * config/fr30/fr30.h (TARGET_VERSION): Remove.
29209         * config/frv/frv.h (TARGET_VERSION): Remove.
29210         * config/h8300/h8300.h (TARGET_VERSION): Remove.
29211         * config/i386/cygwin.h (TARGET_VERSION): Remove.
29212         * config/i386/darwin.h (TARGET_VERSION): Remove.
29213         * config/i386/darwin64.h (TARGET_VERSION): Remove.
29214         * config/i386/djgpp.h (TARGET_VERSION): Remove.
29215         * config/i386/freebsd.h (TARGET_VERSION): Remove.
29216         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
29217         * config/i386/gnu.h (TARGET_VERSION): Remove.
29218         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
29219         * config/i386/i386elf.h (TARGET_VERSION): Remove.
29220         * config/i386/linux.h (TARGET_VERSION): Remove.
29221         * config/i386/linux64.h (TARGET_VERSION): Remove.
29222         * config/i386/lynx.h (TARGET_VERSION): Remove.
29223         * config/i386/mingw32.h (TARGET_VERSION): Remove.
29224         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
29225         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
29226         * config/i386/netware.h (TARGET_VERSION): Remove.
29227         * config/i386/nto.h (TARGET_VERSION): Remove.
29228         * config/i386/openbsd.h (TARGET_VERSION): Remove.
29229         * config/i386/vxworks.h (TARGET_VERSION): Remove.
29230         * config/ia64/elf.h (TARGET_VERSION): Remove.
29231         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
29232         * config/ia64/hpux.h (TARGET_VERSION): Remove.
29233         * config/ia64/linux.h (TARGET_VERSION): Remove.
29234         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
29235         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
29236         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
29237         * config/lm32/lm32.h (TARGET_VERSION): Remove.
29238         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
29239         * config/m32c/m32c.h (TARGET_VERSION): Remove.
29240         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
29241         * config/m32r/m32r.h (TARGET_VERSION): Remove.
29242         * config/m68k/linux.h (TARGET_VERSION): Remove.
29243         * config/m68k/m68k.h (TARGET_VERSION): Remove.
29244         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
29245         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
29246         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
29247         * config/mep/mep.h (TARGET_VERSION): Remove.
29248         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
29249         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
29250         * config/mips/iris6.h (MACHINE_TYPE): Remove.
29251         * config/mips/linux.h (TARGET_VERSION): Remove.
29252         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
29253         * config/mips/vxworks.h (TARGET_VERSION): Remove.
29254         * config/mmix/mmix.h (TARGET_VERSION): Remove.
29255         * config/mn10300/linux.h (TARGET_VERSION): Remove.
29256         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
29257         * config/pa/pa.h (TARGET_VERSION): Remove.
29258         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
29259         * config/picochip/picochip.h (TARGET_VERSION): Remove.
29260         * config/rs6000/aix.h (TARGET_VERSION): Remove.
29261         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
29262         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
29263         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
29264         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
29265         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
29266         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
29267         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
29268         * config/rs6000/linux.h (TARGET_VERSION): Remove.
29269         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
29270         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
29271         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
29272         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
29273         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
29274         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
29275         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
29276         * config/s390/linux.h (TARGET_VERSION): Remove.
29277         * config/s390/s390.h (TARGET_VERSION): Remove.
29278         * config/s390/tpf.h (TARGET_VERSION): Remove.
29279         * config/score/score.h (TARGET_VERSION): Remove.
29280         * config/sh/linux.h (TARGET_VERSION): Remove.
29281         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
29282         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
29283         * config/sh/sh.h (TARGET_VERSION): Remove.
29284         * config/sh/sh64.h (TARGET_VERSION): Remove.
29285         * config/sh/superh.h (TARGET_VERSION): Remove.
29286         * config/sh/vxworks.h (TARGET_VERSION): Remove.
29287         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
29288         * config/sparc/linux.h (TARGET_VERSION): Remove.
29289         * config/sparc/linux64.h (TARGET_VERSION): Remove.
29290         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
29291         TARGET_NAME32, TARGET_NAME): Remove.
29292         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
29293         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
29294         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
29295         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
29296         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
29297         * config/spu/spu.h (TARGET_VERSION): Remove.
29298         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
29299         * config/v850/v850.h (TARGET_VERSION): Remove.
29300         * config/vax/linux.h (TARGET_VERSION): Remove.
29301         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
29302         * config/xtensa/elf.h (TARGET_VERSION): Remove.
29303         * config/xtensa/linux.h (TARGET_VERSION): Remove.
29304
29305 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
29306
29307         PR target/48142
29308         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
29309         frame-related from frame-unrelated adjustments to the stack pointer.
29310
29311 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
29312
29313         * common.opt (fdebug-types-section): Move earlier.
29314         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
29315
29316 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
29317
29318         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
29319         var.
29320
29321 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
29322
29323         * tree.h (CASE_CHAIN): Define.
29324         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
29325         (gimple_redirect_edge_and_branch): Likewise.
29326
29327 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
29328
29329         PR middle-end/48367
29330         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
29331         calculation.
29332
29333 2011-03-30  Jeff Law  <law@redhat.com>
29334
29335         * PR bootstrap/48371
29336         * reload1.c (reload): Fix botch in last change.
29337
29338         * reload.h (struct reload): Fix typo introduced in last change.
29339
29340 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
29341
29342         * config/arm/arm.opt (mhard-float, msoft-float): Mark
29343         Undocumented.  Remove help text.
29344         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
29345         -mhard-float.
29346
29347 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
29348
29349         * doc/options.texi (NegativeAlias): Document.
29350         (Alias): Mention NegativeAlias.
29351         * opt-functions.awk: Handle NegativeAlias.
29352         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
29353         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
29354         * opts.h (CL_NEGATIVE_ALIAS): Define.
29355         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
29356         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
29357         OPT_mspe_.
29358         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
29359         Alias entries.
29360         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
29361         mno-spe and mno-isel instead of mspe=no and -misel=no.
29362
29363 2011-03-29  Mark Wielaard  <mjw@redhat.com>
29364
29365         * common.opt (fdebug-types-section): New flag.
29366         * doc/invoke.texi: Document new -fno-debug-types-section flag.
29367         * dwarf2out.c (use_debug_types): New define.
29368         (struct die_struct): Mark die_id with GTY desc use_debug_types.
29369         (print_die): Guard output of type unit signatures using
29370         use_debug_types.
29371         (build_abbrev_table): Replace assert of dwarf_version >= 4
29372         with assert on use_debug_types.
29373         (size_of_die): Likewise.
29374         (unmark_dies): Likewise.
29375         (value_format): Decide AT_ref_external form on use_debug_types.
29376         (output_die): Replace dwarf_version version check guard with
29377         use_debug_types where appropriate.
29378         (modified_type_die): Likewise.
29379         (gen_reference_type_die): Likewise.
29380         (dwarf2out_start_source_file): Likewise.
29381         (dwarf2out_end_source_file): Likewise.
29382         (prune_unused_types_walk_attribs): Likewise.
29383         (dwarf2out_finish): Likewise.
29384
29385 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
29386
29387         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
29388
29389 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
29390
29391         PR rtl-optimization/48332
29392         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
29393         mode of input operand N and modeN to its actual mode.
29394
29395 2011-03-30  Jeff Law  <law@redhat.com>
29396
29397         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
29398         define accessor macro.
29399         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
29400         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
29401         (reg_equiv_init): Likewise.
29402         (reg_equivs_size): New variable.
29403         (reg_equiv_init_size): Remove.
29404         (allocate_initial_values): Move prototype to here from....
29405         * integrate.h (allocate_initial_values): Remove prototype.
29406         * integrate.c: Include reload.h.
29407         (allocate_initial_values): Corresponding changes.
29408         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
29409         (fix_reg_equiv_init, no_equiv): Corresponding changes.
29410         (update_equiv_regs): Corresponding changes.
29411         (ira): Corresponding changes.
29412         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
29413         (push_secondary_reload): Corresponding changes.
29414         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
29415         (make_memloc, find_reloads_address): Corresponding changes.
29416         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
29417         (find_reloads_address_1): Corresponding changes.
29418         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
29419         (refers_to_regno_for_reload_p): Corresponding changes.
29420         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
29421         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
29422         * reload1.c: Include ggc.h.
29423         (grow_reg_equivs): New function.
29424         (replace_pseudos_in, reload): Corresponding changes.
29425         (calculate_needs_all_insns, alter_regs): Corresponding changes.
29426         (eliminate_regs_1, elimination_effects): Corresponding changes.
29427         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
29428         (delete_output_reload): Likewise.
29429         * caller-save.c (mark_referenced_regs): Corresponding changes.
29430         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
29431         * frv/predicates.md (frv_load_operand): Corresponding changes.
29432         * microblaze/microblaze.c (double_memory_operand): Corresponding
29433         changes.
29434         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
29435         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
29436         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
29437         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
29438         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
29439         changes.
29440         * pa/pa.c (emit_move_sequence): Corresponding changes.
29441         * vax/vax.c (nonindexed_address_p): Corresponding changes.
29442
29443 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
29444
29445         PR target/47551
29446         * config/arm/arm.c (coproc_secondary_reload_class): Handle
29447         structure modes.  Don't check neon_vector_mem_operand for
29448         vector or structure modes.
29449
29450 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
29451             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
29452
29453         PR target/43590
29454         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
29455         operand 1 and reshuffle the operands to match.
29456         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
29457
29458 2011-03-30  Christian Schüler  <cschueler@gmx.de>
29459
29460         PR driver/48208
29461         * config/c.opt (F): Added 'Driver' to -F option.
29462
29463         PR driver/48260
29464         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
29465           handler function.
29466         * config/darwin.opt: Added '-arch' option.
29467
29468 2011-03-30  Nick Clifton  <nickc@redhat.com>
29469
29470         * config/rx/rx.md: Add peepholes and patterns to combine
29471         extending loads and simple arithmetic instructions.
29472         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
29473         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
29474         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
29475         modes to use pre-decrement and post-increment addressing.
29476         (rx_is_restricted_memory_address): Add range checking of REG+INT
29477         addresses.
29478         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
29479         (rx_memory_move_cost): Adjust cost of stores.
29480         (rx_adjust_insn_length): New function.
29481
29482 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
29483
29484         PR c/48305
29485         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
29486         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
29487         matching arg00/arg01 types.
29488
29489 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
29490
29491         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
29492         last_location to UNKNOWN_LOCATION.
29493
29494 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
29495
29496         PR target/48349
29497         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
29498         FLOAT_SSE_REGS.
29499
29500 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
29501             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29502
29503         PR bootstrap/48337
29504         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
29505         Init(PROCESSOR_V7).
29506         (sparc_cpu): Likewise.
29507         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
29508         PROCESSOR_V7.
29509
29510 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
29511
29512         PR target/48336
29513         PR middle-end/48342
29514         PR rtl-optimization/48345
29515         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
29516         hard regs for given mode from profitable regs when doing secondary
29517         allocation.
29518
29519 2011-03-29  Jeff Law  <law@redhat.com>
29520
29521         PR bootstrap/48327
29522         * tree-ssa-threadupdate.c (struct redirection_data): Remove
29523         do_not_duplicate field.
29524         (lookup_redirection_data): Corresponding changes.
29525         (create_duplicates): Always create a template block.
29526         (redirect_edges): Remove code which reused the original block
29527         when it was going to become unreachable code.
29528         (thread_block): Don't set do_not_duplicate field.
29529
29530 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
29531
29532         * lto-opts.c (register_user_option_p, lto_register_user_option):
29533         Make type argument unsigned.
29534         * lto-streamer.h (lto_register_user_option): Make type argument
29535         unsigned.
29536         * opth-gen.awk: Make CL_* macros unsigned.
29537         * opts-common.c (find_opt): Make lang_mask argument unsigned.
29538         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
29539         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
29540         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
29541         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
29542         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
29543         (find_opt): Make lang_mask argument unsigned.
29544
29545 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
29546
29547         PR rtl-optimization/48331
29548         PR rtl-optimization/48334
29549         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
29550         for any used algorithm.
29551
29552 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
29553
29554         * ira-conflicts.c (build_object_conflicts): Add unused attribute
29555         to parent_max.
29556
29557 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
29558
29559         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
29560         (alpha_option_override): Don't set alpha_sr_alias_set.
29561         (emit_frame_store_1): Use gen_frame_mem rather than calling
29562         set_mem_alias_set.
29563         (alpha_expand_epilogue): Ditto.
29564
29565 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
29566
29567         PR tree-optimization/48290
29568         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
29569         vectorization, check that relevant phis in the basic block after
29570         the inner loop are really inner loop's exit phis.
29571
29572 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
29573
29574         PR debug/48190
29575         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
29576         (cached_dw_loc_list_def): New structure.
29577         (cached_dw_loc_list): New typedef.
29578         (cached_dw_loc_list_table): New variable.
29579         (cached_dw_loc_list_table_hash): New function.
29580         (cached_dw_loc_list_table_eq): Likewise.
29581         (add_location_or_const_value_attribute): Take a bool cache_p.
29582         Cache the list when the parameter is true.
29583         (gen_formal_parameter_die): Update caller.
29584         (gen_variable_die): Likewise.
29585         (dwarf2out_finish): Likewise.
29586         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
29587         while generating debug info for the decl.
29588         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
29589         (dwarf2out_init): Initialize cached_dw_loc_list_table.
29590         (resolve_addr): Cache the result of resolving a chain of
29591         location lists.
29592
29593 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
29594
29595         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
29596         conflict object hard regset nodes have intersecting hard reg sets.
29597
29598         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
29599         after regstat_init_n_sets_and_refs.
29600
29601         * ira.c: Add more comments at the top.
29602         (setup_stack_reg_pressure_class, setup_pressure_classes):
29603         Add comments how we compute the register pressure classes.
29604         (setup_allocno_and_important_classes): Add more comments.
29605         (setup_class_translate_array, reorder_important_classes)
29606         (setup_reg_class_relations): Add comments.
29607
29608         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
29609         start of the file.
29610
29611         * ira-color.c: Add 2011 to the Copyright line.
29612         (assign_hard_reg):  Add more comments.
29613         (improve_allocation): Ditto.
29614
29615         * ira-costs.c: Add 2011 to the Copyright line.
29616         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
29617         comments.
29618         (setup_regno_cost_classes_by_mode): Ditto.
29619
29620         Initial patches from ira-improv branch:
29621
29622         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
29623
29624         * ira-build.c (ira_create_object): Remove initialization of
29625         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
29626         (ira_create_allocno): Remove initialization of
29627         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
29628         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
29629         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
29630         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
29631         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
29632         Initialize ALLOCNO_ADD_DATA.
29633         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
29634         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
29635         ALLOCNO_REG.
29636         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
29637         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
29638
29639         * ira.c (ira_reallocate): Remove.
29640         (setup_pressure_classes): Call
29641         ira_init_register_move_cost_if_necessary.  Use
29642         ira_register_move_cost instead of ira_get_register_move_cost.
29643         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
29644         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
29645
29646         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
29647         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
29648         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
29649         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
29650         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
29651         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
29652         Fix formatting.
29653         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
29654         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
29655         (struct allocno_color_data): New.
29656         (allocno_color_data_t): New typedef.
29657         (allocno_color_data): New definition.
29658         (ALLOCNO_COLOR_DATA): New macro.
29659         (struct object_color_data): New.
29660         (object_color_data_t): New typedef.
29661         (object_color_data): New definition.
29662         (OBJECT_COLOR_DATA): New macro.
29663         (update_copy_costs, calculate_allocno_spill_cost): Call
29664         ira_init_register_move_cost_if_necessary.  Use
29665         ira_register_move_cost instead of ira_get_register_move_cost.
29666         (move_spill_restore, update_curr_costs): Ditto.
29667         (allocno_spill_priority): Make it inline.
29668         (color_pass): Allocate and free allocno_color_dat and object_color_data.
29669         (struct coalesce_data, coalesce_data_t): New.
29670         (allocno_coalesce_data): New definition.
29671         (ALLOCNO_COALESCE_DATA): New macro.
29672         (merge_allocnos, coalesced_allocno_conflict_p): Use
29673         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
29674         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
29675         (coalesce_allocnos): Ditto.
29676         (setup_coalesced_allocno_costs_and_nums): Ditto.
29677         (collect_spilled_coalesced_allocnos): Ditto.
29678         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
29679         (setup_slot_coalesced_allocno_live_ranges): Ditto.
29680         (coalesce_spill_slots): Ditto.
29681         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
29682         free allocno_coalesce_data.
29683
29684         * ira-conflicts.c: Fix formatting.
29685         (process_regs_for_copy): Call
29686         ira_init_register_move_cost_if_necessary.  Use
29687         ira_register_move_cost instead of ira_get_register_move_cost.
29688         (build_object_conflicts): Optimize.
29689
29690         * ira-costs.c (record_reg_classes): Optimize.  Call
29691         ira_init_register_move_cost_if_necessary.  Use
29692         ira_register_move_cost, ira_may_move_in_cost, and
29693         ira_may_move_out_cost instead of ira_get_register_move_cost and
29694         ira_get_may_move_cost.
29695         (record_address_regs): Ditto.
29696         (scan_one_insn): Optimize.
29697         (find_costs_and_classes): Optimize.
29698         (process_bb_node_for_hard_reg_moves): Call
29699         ira_init_register_move_cost_if_necessary.  Use
29700         ira_register_move_cost instead of ira_get_register_move_cost.
29701
29702         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
29703         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
29704         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
29705         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
29706         definitions.
29707         (ira_initiate_emit_data, ira_finish_emit_data)
29708         (create_new_allocno): New functions.
29709         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
29710         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
29711         Use ira_register_move_cost instead of ira_get_register_move_cost.
29712
29713         * ira-int.h: Fix some comments.
29714         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
29715         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
29716         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
29717         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
29718         add_data.
29719         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
29720         bitfield after mode.  Make hard_regno a short int.  Make
29721         hard_regno short.  Remove first_coalesced_allocno and
29722         next_coalesced_allocno.  Move mem_optimized_dest_p,
29723         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
29724         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
29725         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
29726         temp, colorable_p.  Add new member add_data.
29727         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
29728         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
29729         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
29730         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
29731         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
29732         (ALLOCNO_ADD_DATA): New macro.
29733         (ira_emit_data_t): New typedef.
29734         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
29735         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
29736         from struct ira_allocno.
29737         (ALLOCNO_EMIT_DATA): New macro.
29738         (ira_allocno_emit_data, allocno_emit_reg): New.
29739         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
29740         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
29741         (OBJECT_ADD_DATA): New macro.
29742         (ira_reallocate): Remove.
29743         (ira_initiate_emit_data, ira_finish_emit_data): New.
29744         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
29745         (ira_init_register_move_cost_if_necessary): New.
29746         (ira_object_conflict_iter_next): Merge into
29747         ira_object_conflict_iter_cond.
29748         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
29749
29750         * ira-live.c (process_single_reg_class_operands): Call
29751         ira_init_register_move_cost_if_necessary.  Use
29752         ira_register_move_cost instead of ira_get_register_move_cost.
29753
29754         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
29755
29756         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
29757
29758         * ira-costs.c: Fix formatting.
29759         (cost_classes, cost_classes_num): Remove.
29760         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
29761         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
29762         (cost_classes_del, cost_classes_htab): New.
29763         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
29764         (initiate_regno_cost_classes, setup_cost_classes): New.
29765         (setup_regno_cost_classes_by_aclass): New.
29766         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
29767         (record_reg_classes): Use regno_cost_classes instead of
29768         cost_classes.  Move checking opposite operand up.
29769         (record_address_regs): Use regno_cost_classes
29770         instead of cost_classes.
29771         (scan_one_insn): Ditto.  Use always general register.
29772         (print_allocno_costs): Use regno_cost_classes instead of
29773         cost_classes.
29774         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
29775         (find_costs_and_classes): Set up cost classes for each registers.
29776         Use also their mode for this.  Use regno_cost_classes instead of
29777         cost_classes.
29778         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
29779         cost_classes.
29780         (free_ira_costs, ira_init_costs): Don't use cost_classes.
29781         (ira_costs, ira_set_pseudo_classes): Call
29782         initiate_regno_cost_classes and finish_regno_cost_classes.
29783
29784         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
29785
29786         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
29787
29788         * target.def (ira_cover_classes): Remove.
29789
29790         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
29791
29792         * doc/tm.texi.in: Ditto.
29793
29794         * ira-conflicts.c: Remove mentioning cover classes from the file.
29795         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
29796         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
29797
29798         * targhooks.c (default_ira_cover_classes): Remove.
29799
29800         * targhooks.h (default_ira_cover_classes): Ditto.
29801
29802         * haifa-sched.c: Remove mentioning cover classes from the file.
29803         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
29804         ira_pressure_classes and ira_pressure_classes_num instead of
29805         ira_reg_class_cover_size and ira_reg_class_cover.  Use
29806         sched_regno_pressure_class instead of sched_regno_cover_class.
29807         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
29808         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
29809
29810         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
29811         classes from the file.
29812         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
29813         (struct object_hard_regs, struct object_hard_regs_node): New.
29814         (struct ira_object): New members profitable_hard_regs,
29815         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
29816         (struct ira_allocno): Rename cover_class to aclass.  Rename
29817         cover_class_cost and updated_cover_class_cost to class_cost and
29818         updated_class_cost.  Remove splay_removed_p and
29819         left_conflict_size.  Add new members colorable_p.
29820         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
29821         (ALLOCNO_COLORABLE_P): New macro.
29822         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
29823         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
29824         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
29825         (OBJECT_...): Rename parameter C to O.
29826         (OBJECT_PROFITABLE_HARD_REGS): New macro.
29827         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
29828         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
29829         (struct target_ira_int): New members x_ira_max_memory_move_cost,
29830         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
29831         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
29832         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
29833         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
29834         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
29835         x_ira_reg_class_subunion.
29836         (ira_max_memory_move_cost, ira_max_register_move_cost)
29837         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
29838         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
29839         (ira_important_class_nums, ira_reg_class_superunion): New macros.
29840         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
29841         (ira_reg_class_union): Rename to ira_reg_class_subunion.
29842         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
29843         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
29844         (ira_tune_allocno_costs_and_cover_classes): Rename to
29845         ira_tune_allocno_costs.
29846         (ira_debug_hard_regs_forest): New.
29847         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
29848         (ira_object_conflict_iter_next): Fix comments.
29849         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
29850         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
29851         cover_class to aclass.
29852         (ira_allocate_and_accumulate_costs): Ditto.
29853         (ira_allocate_and_set_or_copy_costs): Ditto.
29854
29855         * opts.c (decode_options): Remove ira_cover_class check.
29856
29857         * ira-color.c: Remove mentioning cover classes from the file.  Use
29858         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
29859         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
29860         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
29861         (splay-tree.h): Remove include.
29862         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
29863         before copy_freq_compare_func.
29864         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
29865         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
29866         New definitions.
29867         (hard_regs_roots, hard_regs_node_vec): Ditto.
29868         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
29869         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
29870         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
29871         (create_new_object_hard_regs_node): Ditto.
29872         (add_new_object_hard_regs_node_to_forest): Ditto.
29873         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
29874         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
29875         Ditto.
29876         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
29877         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
29878         (remove_unused_object_hard_regs_nodes): Ditto.
29879         (enumerate_object_hard_regs_nodes): Ditto.
29880         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
29881         (object_hard_regs_subnode_t): Ditto.
29882         (struct object_hard_regs_subnode): Ditto.
29883         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
29884         (setup_object_hard_regs_subnode_index): Ditto.
29885         (get_object_hard_regs_subnodes_num): Ditto.
29886         (form_object_hard_regs_nodes_forest): Ditto.
29887         (finish_object_hard_regs_nodes_tree): Ditto.
29888         (finish_object_hard_regs_nodes_forest): Ditto.
29889         (allocnos_have_intersected_live_ranges_p): Rename to
29890         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
29891         (pseudos_have_intersected_live_ranges_p): Rename to
29892         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
29893         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
29894         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
29895         (update_copy_costs): Remove assert.  Skip cost update if the hard
29896         reg does not belong the class.
29897         (assign_hard_reg): Process only profitable hard regs.
29898         (uncolorable_allocnos_num): Make it scalar.
29899         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
29900         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
29901         and ira_reg_class_max_nregs.
29902         (bucket_allocno_compare_func): Check frequency first.
29903         (sort_bucket): Add compare function as a parameter.
29904         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
29905         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
29906         (push_allocno_to_stack): Rewrite for checking new allocno
29907         colorability.
29908         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
29909         (push_only_colorable): Pass new parameter to sort_bucket.
29910         (push_allocno_to_spill): Remove.
29911         (allocno_spill_priority_compare): Make it inline and rewrite.
29912         (splay_tree_allocate, splay_tree_free): Remove.
29913         (allocno_spill_sort_compare): New function.
29914         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
29915         build and use splay tree.  Choose first allocno in uncolorable
29916         allocno bucket to spill.  Remove setting spill cost.
29917         (all_conflicting_hard_regs): Remove.
29918         (setup_allocno_available_regs_num): Check only profitable hard
29919         regs.  Print info about hard regs nodes.
29920         (setup_allocno_left_conflicts_size): Remove.
29921         (put_allocno_into_bucket): Don't call
29922         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
29923         (improve_allocation): New.
29924         (color_allocnos): Call setup_profitable_hard_regs,
29925         form_object_hard_regs_nodes_forest, improve_allocation,
29926         finish_object_hard_regs_nodes_forest.  Setup spill cost.
29927         (print_loop_title): Use pressure classes.
29928         (color_allocnso): Ditto.
29929         (do_coloring): Remove allocation and freeing splay_tree_node_pool
29930         and allocnos_for_spilling.
29931         (ira_sort_regnos_for_alter_reg): Don't setup members
29932         {first,next}_coalesced_allocno.
29933         (color): Remove allocating and freeing removed_splay_allocno_vec.
29934         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
29935         prohibited_class_mode_regs.
29936
29937         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
29938         formatting.
29939         (update_allocno_pressure_excess_length): Use pressure classes.
29940         (inc_register_pressure, dec_register_pressure): Check for pressure
29941         class.
29942         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
29943         pressure class.  Use ira_reg_class_nregs instead of
29944         ira_reg_class_max_nregs.
29945         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
29946         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
29947         (single_reg_class): Use ira_reg_class_nregs instead of
29948         ira_reg_class_max_nregs.
29949         (process_bb_node_lives): Use pressure classes.
29950
29951         * ira-emit.c: Remove mentioning cover classes from the file.  Use
29952         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
29953         (change_loop): Use pressure classes.
29954         (modify_move_list): Call ira_set_allocno_class instead of
29955         ira_set_allocno_cover_class.
29956
29957         * ira-build.c: Remove mentioning cover classes from the file.  Use
29958         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
29959         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
29960         ALLOCNO_UPDATED_CLASS_COST instead of
29961         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
29962         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
29963         (ira_create_allocno): Remove initialization of
29964         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
29965         ALLOCNO_COLORABLE_P.
29966         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
29967         Update conflict regs for the objects.
29968         (create_cap_allocno): Remove assert.  Don't propagate
29969         ALLOCNO_AVAILABLE_REGS_NUM.
29970         (ira_free_allocno_costs): New function.
29971         (finish_allocno): Change a part of code into call of
29972         ira_free_allocno_costs.
29973         (low_pressure_loop_node_p): Use pressure classes.
29974         (object_range_compare_func): Don't compare classes.
29975         (setup_min_max_conflict_allocno_ids): Ditto.
29976
29977         * loop-invariant.c: Remove mentioning cover classes from the file.
29978         Use ira_pressure_classes and ira_pressure_classes_num instead of
29979         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
29980         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
29981         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
29982         Use reg_allocno_class instead of reg_cover_class.
29983         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
29984         STACK_REG_COVER_CLASS.
29985         (get_regno_cover_class): Rename to get_regno_pressure_class.
29986         (move_loop_invariants): Initialize and finalize regstat.
29987
29988         * ira.c: Remove mentioning cover classes from the file.  Add
29989         comments about coloring without cover classes.  Use ALLOCNO_CLASS
29990         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
29991         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
29992         setup_class_subset_and_memory_move_costs.
29993         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
29994         (setup_cover_and_important_classes): Rename to
29995         setup_allocno_and_important_classes.
29996         (setup_class_translate_array): New.
29997         (setup_class_translate): Call it for allocno and pressure classes.
29998         (cover_class_order): Rename to allocno_class_order.
29999         (comp_reg_classes_func): Use ira_allocno_class_translate instead
30000         of ira_class_translate.
30001         (reorder_important_classes): Set up ira_important_class_nums.
30002         (setup_reg_class_relations): Set up ira_reg_class_superunion.
30003         (print_class_cover): Rename to print_classes.  Add parameter.
30004         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
30005         Print pressure classes too.
30006         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
30007         setup_reg_subclasses.
30008         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
30009         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
30010         (setup_prohibited_class_mode_regs): Use
30011         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
30012         (clarify_prohibited_class_mode_regs): New function.
30013         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
30014         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
30015         (ira_init_once): Initialize them.
30016         (free_register_move_costs): Process them.
30017         (ira_init): Move calls of find_reg_classes and
30018         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
30019         Call clarify_prohibited_class_mode_regs.
30020         (ira_no_alloc_reg): Remove.
30021         (too_high_register_pressure_p): Use pressure classes.
30022
30023         * sched-deps.c: Remove mentioning cover classes from the file.
30024         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
30025         ira_pressure_classes and ira_pressure_classes_num instead of
30026         ira_reg_class_cover_size and ira_reg_class_cover.
30027         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
30028         sched_regno_pressure_class instead of sched_regno_cover_class.
30029         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
30030         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
30031
30032         * ira.h: Add 2010 to Copyright.
30033         (ira_no_alloc_reg): Remove external.
30034         (struct target_ira): Rename x_ira_hard_regno_cover_class,
30035         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
30036         x_ira_class_translate to x_ira_hard_regno_allocno_class,
30037         x_ira_allocno_classes_num, x_ira_allocno_classes, and
30038         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
30039         x_ira_pressure_classes, x_ira_pressure_class_translate, and
30040         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
30041         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
30042         x_ira_no_alloc_regs.
30043         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
30044         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
30045         ira_allocno_classes_num and ira_allocno_classes.
30046         (ira_class_translate): Rename to ira_allocno_class_translate.
30047         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
30048         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
30049         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
30050         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
30051         (ira_no_alloc_regs): New.
30052
30053         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
30054         classes from the file.  Use ALLOCNO_CLASS instead of
30055         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
30056         ALLOCNO_COVER_CLASS_COST.
30057         (regno_cover_class): Rename to regno_aclass.
30058         (record_reg_classes): Use ira_reg_class_subunion instead of
30059         ira_reg_class_union.
30060         (record_address_regs): Check overflow.
30061         (scan_one_insn): Ditto.
30062         (print_allocno_costs): Print total mem cost fore regional allocation.
30063         (print_pseudo_costs): Use REG_N_REFS.
30064         (find_costs_and_classes): Use classes intersected with them on the
30065         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
30066         ira_reg_class_union.  Use ira_allocno_class_translate and
30067         regno_aclass instead of ira_class_translate and regno_cover_class.
30068         Modify code for finding regno_aclass.  Setup preferred classes for
30069         the next pass.
30070         (setup_allocno_cover_class_and_costs): Rename to
30071         setup_allocno_class_and_costs.  Use regno_aclass instead of
30072         regno_cover_class.  Use ira_set_allocno_class instead of
30073         ira_set_allocno_cover_class.
30074         (init_costs, finish_costs): Use regno_aclass instead of
30075         regno_cover_class.
30076         (ira_costs): Use setup_allocno_class_and_costs instead of
30077         setup_allocno_cover_class_and_costs.
30078         (ira_tune_allocno_costs_and_cover_classes): Rename to
30079         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
30080         by processing objects.  Use ira_reg_class_max_nregs instead of
30081         ira_reg_class_nregs.
30082
30083         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
30084
30085         * sched-int.h: Remove mentioning cover classes from the file.
30086         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
30087
30088         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
30089         classes from the file.
30090         (struct reg_pref): Rename coverclass into allocnoclass.
30091         (reg_cover_class): Rename to reg_allocno_class.
30092
30093         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
30094
30095         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
30096
30097         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
30098
30099         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
30100
30101         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
30102
30103         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
30104
30105         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
30106
30107         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
30108
30109         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
30110
30111         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
30112
30113         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
30114         (i386_ira_cover_classes): Ditto.
30115
30116         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
30117
30118         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
30119
30120         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
30121
30122         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
30123
30124         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
30125
30126         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
30127
30128         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
30129         (mips_ira_cover_classes): Ditto.
30130
30131         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
30132
30133         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
30134
30135         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
30136
30137         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
30138
30139         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
30140
30141         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
30142         (IRA_COVER_CLASSES_VSX): Ditto.
30143
30144         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
30145         (rs6000_ira_cover_classes): Ditto.
30146
30147         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
30148
30149         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
30150
30151         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
30152
30153         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
30154
30155         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
30156
30157         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
30158
30159         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
30160
30161         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
30162
30163         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
30164
30165         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
30166
30167 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
30168
30169         PR debug/48253
30170         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
30171         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
30172         dw_fde_unlikely_section_end_label, cold_in_std_section,
30173         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
30174         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
30175         fields.
30176         (output_fde): Use dw_fde_second_{begin,end} if second is
30177         true, otherwise dw_fde_{begin,end}.
30178         (output_call_frame_info): Test dw_fde_second_begin != NULL
30179         instead of dw_fde_switched_sections.
30180         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
30181         fields, initialize new fields.  Initialize in_std_section
30182         unconditionally from the first partition.
30183         (dwarf2out_end_epilogue): Don't override dw_fde_end when
30184         dw_fde_second_begin is non-NULL.
30185         (dwarf2out_switch_text_section): Stop initializing removed
30186         dw_fde_struct fields, initialize new fields, initialize
30187         also dw_fde_end here.  Set dw_fde_switch_cfi even when
30188         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
30189         (struct var_loc_list_def): Add last_before_switch field.
30190         (arange_table, arange_table_allocated, arange_table_in_use,
30191         ARANGE_TABLE_INCREMENT, add_arange): Removed.
30192         (size_of_aranges): Count !in_std_section and !second_in_std_section
30193         hunks in fdes, instead of looking at arange_table_in_use.
30194         (output_aranges): Add aranges_length argument, don't call
30195         size_of_aranges here.  Instead of using aranges_table*
30196         emit ranges for fdes when !in_std_section resp.
30197         !second_in_std_section.
30198         (dw_loc_list): Break ranges crossing section switch.
30199         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
30200         use dw_fde_second_end instead of dw_fde_end as end of last range.
30201         (gen_subprogram_die): Don't call add_arange.  Use
30202         dw_fde_{begin,end} for first partition and if switched
30203         section dw_fde_second_{begin,end} for the second.
30204         (var_location_switch_text_section_1,
30205         var_location_switch_text_section): New functions.
30206         (dwarf2out_begin_function): Initialize cold_text_section even
30207         when function_section () isn't text_section.
30208         (prune_unused_types): Don't walk arange_table.
30209         (dwarf2out_finish): Don't needlessly test
30210         flag_reorder_blocks_and_partition when testing cold_text_section_used.
30211         If info_section_emitted, call size_of_aranges and if it indicates
30212         non-empty .debug_aranges, call output_aranges with the computed
30213         size.  Stop using removed dw_fde_struct fields, use
30214         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
30215         for second.
30216
30217         PR debug/48203
30218         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
30219         create ENTRY_VALUE if incoming or address of incoming's MEM
30220         is a hard REG.
30221         * dwarf2out.c (mem_loc_descriptor): Don't emit
30222         DW_OP_GNU_entry_value of DW_OP_fbreg.
30223         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
30224         on ENTRY_VALUE is able to find the canonical parameter VALUE.
30225         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
30226         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
30227         ENTRY_VALUE_EXPs.
30228         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
30229         is a REG_P or MEM_P with REG_P address, compute hash directly
30230         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
30231         (preserve_only_constants): Don't clear VALUES forwaring
30232         ENTRY_VALUE to some other VALUE.
30233
30234 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
30235
30236         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
30237         instead of GEN_INT.
30238
30239 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
30240
30241         * cfgexpand.c (expand_gimple_cond): Always set the source location and
30242         block before expanding the statement.
30243         (expand_gimple_stmt_1): Likewise.  Set them here...
30244         (expand_gimple_stmt): ...and not here.  Tidy.
30245         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
30246         unknown.
30247
30248 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
30249
30250         * Makefile.in: New rule for cprop.o.
30251         * gcse.c: Move constant/copy propagation to cprop.c.
30252         (compute_local_properties): Only handle expression tables.
30253         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
30254         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
30255         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
30256         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
30257         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
30258         compute_cprop_data, find_used_regs, try_replace_reg,
30259         find_avail_set, cprop_jump, constprop_register, cprop_insn,
30260         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
30261         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
30262         find_bypass_set, reg_killed_on_edge, bypass_block,
30263         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
30264         execute_rtl_cprop, pass_rtl_cprop): Move to...
30265         * cprop.c: ...here.  New file, constant/copy propagation for RTL
30266         moved from gcse.c to here with minor cleanups in duplicated code.
30267
30268 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
30269
30270         * config/i386/i386.c (flag_opts): Fix a typo in
30271         -mavx256-split-unaligned-store.
30272
30273 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
30274
30275         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
30276         LIBCALL_VALUE): Remove macros.
30277         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
30278         TARGET_FUNCTION_VALUE_REGNO_P): Define.
30279         (h8300_function_value, h8300_libcall_value,
30280         h8300_function_value_regno_p): New functions.
30281
30282 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
30283
30284         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
30285
30286 2011-03-28  Jeff Law  <law@redhat.com>
30287
30288         * tree-ssa-threadupdate.c (redirect_edges): Call
30289         create_edge_and_update_destination_phis as needed.
30290         (create_edge_and_update_destination_phis): Accept new BB argument.
30291         All callers updated.
30292         (thread_block): Do not update the profile when threading around
30293         intermediate blocks.
30294         (thread_single_edge): Likewise.
30295         (determine_bb_domination_status): If BB is not a successor of the
30296         loop header, return NONDOMINATING.
30297         (register_jump_thread): Note when we register a jump thread around
30298         an intermediate block.
30299         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
30300         (thread_across_edge): Use it.
30301
30302 2011-03-28  Tristan Gingold  <gingold@adacore.com>
30303
30304         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
30305         when for_return is 2.
30306
30307 2011-03-28  Jeff Law  <law@redhat.com>
30308
30309         * var-tracking.c (canonicalize_values_mark): Delete unused
30310         lhs assignment.
30311         (canonicalize_values_star, set_variable_part): Likewise.
30312         (clobber_variable_part, delete_variable_part): Likewise.
30313
30314 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
30315
30316         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
30317
30318 2011-03-28  Martin Jambor  <mjambor@suse.cz>
30319
30320         * tree-inline.c (expand_call_inline): Do not check that destination
30321         node is analyzed.
30322         (optimize_inline_calls): Assert that destination node is analyzed.
30323         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
30324         not call tree_lowering_passes.
30325         * cgraph.h (cgraph_analyze_function): Declare.
30326         * cgraphunit.c (cgraph_analyze_function): Make public.
30327
30328 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
30329
30330         * config/sparc/sparc-opts.h: New.
30331         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
30332         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
30333         (sparc_option_override): Store processor_type enumeration rather
30334         than string in cpu_default.  Remove name and enumeration from
30335         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
30336         without using sparc_select.  Use target_flags_explicit instead of
30337         fpu_option_set.
30338         * config/sparc/sparc.h (enum processor_type): Move to
30339         sparc-opts.h.
30340         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
30341         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
30342         HeaderInclude entry.
30343         (mcpu=, mtune=): Use Var and Enum.
30344         (sparc_processor_type): New Enum and EnumValue entries.
30345
30346 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30347             Iain Sandoe  <iains@gcc.gnu.org>
30348
30349         PR target/48245
30350         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
30351
30352 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
30353
30354         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
30355         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
30356         Insert new statements at it in lieu of STMT.
30357         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
30358         * tree-vect-stmts.c (vectorizable_store): Likewise.
30359         (vectorizable_load): Likewise.
30360
30361 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
30362
30363         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
30364         (divtf3): Ditto.
30365         (multf3): Ditto.
30366         (subtf3): Ditto.
30367
30368 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30369
30370         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
30371         unaligned 256bit load/store.
30372         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
30373         (*avx_movdqu<avxmodesuffix>): Likewise.
30374
30375 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30376
30377         PR target/48288
30378         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
30379         * config/pa/pa.md (iordi3): Use new predicate in expander.
30380         (iorsi3): Likewise.
30381
30382 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
30383
30384         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
30385         FUNCTION_VALUE_REGNO_P): Remove macros.
30386         * config/mips/mips-protos.h (mips_function_value): Remove.
30387         * config/mips/mips.c (mips_function_value): Rename to...
30388         (mips_function_value_1): ... this. Make static.  Handle receiving
30389         the function type in 'fn_decl_or_type' argument.
30390         (mips_function_value, mips_libcall_value,
30391         mips_function_value_regno_p): New function.
30392         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
30393         TARGET_FUNCTION_VALUE_REGNO_P): Define.
30394
30395 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30396
30397         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
30398         and -mavx256-split-unaligned-store.
30399         (ix86_option_override_internal): Split 32-byte AVX unaligned
30400         load/store by default.
30401         (ix86_avx256_split_vector_move_misalign): New.
30402         (ix86_expand_vector_move_misalign): Use it.
30403
30404         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
30405         -mavx256-split-unaligned-store.
30406
30407         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
30408         256bit load/store.  Generate unaligned store on misaligned memory
30409         operand.
30410         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
30411         256bit load/store.
30412         (*avx_movdqu<avxmodesuffix>): Likewise.
30413
30414         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
30415         -mavx256-split-unaligned-store.
30416
30417 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
30418
30419         PR target/38598
30420         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
30421         Update commentary.
30422
30423 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
30424
30425         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
30426         opno arguments with an expand_operand.  Use create_input_operand.
30427         (mips_prepare_builtin_target): Delete.
30428         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
30429         functions.
30430         (mips_expand_builtin_direct): Use create_output_operand and
30431         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
30432         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
30433         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
30434
30435 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
30436
30437         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
30438         function.
30439         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
30440
30441 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
30442
30443         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
30444         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
30445         basic blocks and call commit_edge_insertions directly.
30446         (fixup_abnormal_edges): Move from here to...
30447         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
30448         on the edges and return whether some have actually been inserted.
30449         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
30450         compensation code.
30451
30452 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
30453
30454         PR rtl-optimization/48144
30455         * sel-sched-ir.c (merge_history_vect): Factor out from ...
30456         (merge_expr_data): ... here.
30457         (av_set_intersect): Rename to av_set_code_motion_filter.
30458         Update all callers.  Call merge_history_vect when an expression
30459         is found in both sets.
30460         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
30461
30462 2011-03-26  Alan Modra  <amodra@gmail.com>
30463
30464         * config/rs6000/predicates.md (word_offset_memref_op): Handle
30465         cmodel medium addresses.
30466         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
30467         64-bit gpr loads and stores.
30468         (rs6000_secondary_reload_ppc64): New function.
30469         * config/rs6000/rs6000-protos.h: Declare it.
30470         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
30471
30472 2011-03-26  Alan Modra  <amodra@gmail.com>
30473
30474         PR target/47487
30475         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
30476         GNU Go in traceback table.
30477
30478 2011-03-25  Richard Henderson  <rth@redhat.com>
30479
30480         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
30481         if there are exactly 6 operands.
30482         (set_storage_via_setmem): Similarly.
30483
30484 2011-03-25  Kai Tietz  <ktietz@redhat.com>
30485
30486         * collect2.c (write_c_file_stat): Handle backslash
30487         as right-hand directory separator.
30488         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
30489         checking just for slash.
30490         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
30491         instead of checking for trailing slash.
30492         * gcc.c (record_temp_file): Use filename_cmp instead
30493         of strcmp.
30494         (do_spec_1): Likewise.
30495         (replace_outfile_spec_function): Likewise.
30496         (is_directory): Use filename_ncmp instead of strncmp.
30497         (print_multilib_info): Likewise.
30498         * gcov.c (find_source): Use filename_cmp instead
30499         instead of strcmp.
30500         (make_gcov_file_name): Fix order of slash/backslash
30501         checks.
30502         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
30503         (add_standard_paths): Likewise.
30504         * mips-tfile.c (saber_stop): Handle backslash.
30505         * prefix.c (update_path): Use filename_ncmp instead of
30506         strncmp.
30507         * profile.c (output_location): Use filename_cmp instead
30508         of strcmp.
30509         * read-md.c (handle_toplevel_file): Handle backslash.
30510         * tlink.c (frob_extension):  Likewise.
30511         * tree-cfg.c (same_line_p): Use filename_cmp instead of
30512         strcmp.
30513         * tree-dump.c (dequeue_and_dump): Handle backslash.
30514         * tree.c (get_file_function_name): Likewise.
30515         * gengtype.c (read_input_list): Likewise.
30516         (get_file_realbasename): Likewise.
30517         (get_output_file_with_visibility): Use filename_cmp
30518         instead of strcmp.
30519
30520 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
30521
30522         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
30523         case to VFPv1.
30524
30525 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
30526
30527         * fold-const.c (expr_location_or): New function.
30528         (fold_truth_not_expr): Call it.
30529
30530 2011-03-25  Jeff Law  <law@redhat.com>
30531
30532         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
30533         va_end.
30534         * c-family/c-common.c (def_fn_type): Likewise.
30535         * emit-rtl.c (gen_rtvec): Likewise.
30536         * lto/lto-lang.c (def_fn_type): Likewise.
30537
30538 2011-03-25  Richard Guenther  <rguenther@suse.de>
30539
30540         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
30541         also generate copies.
30542         (fini_copy_prop): Handle constant values properly.
30543
30544 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
30545
30546         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
30547         mode size instead of bitsize with DWARF2_ADDR_SIZE.
30548         (hash_loc_operands, compare_loc_operands): Handle
30549         DW_OP_GNU_entry_value.
30550
30551 2011-03-25  Kai Tietz  <ktietz@redhat.com>
30552
30553         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
30554         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
30555         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
30556         comment and use macro TARGET_64BIT_MS_ABI instead.
30557         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
30558         and change default behavior for 32-bit MS_ABI.
30559         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
30560         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
30561         32-bit, too.
30562         (ix86_cfun_abi): Likewise.
30563         (ix86_maybe_switch_abi): Adjust comment.
30564         (init_cumulative_args): Check for bit-ness in MS_ABI case.
30565         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
30566         instead of checking for SYSV_ABI.
30567         (ix86_nsaved_sseregs): Likewise.
30568         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
30569         to 16 bytes.
30570         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
30571         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
30572         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
30573         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
30574         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
30575
30576 2011-03-25  Richard Guenther  <rguenther@suse.de>
30577
30578         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
30579         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
30580         (verify_gimple): Remove.
30581         * tree-cfg.c (verify_gimple_call): Merge verification
30582         from verify_stmts.
30583         (verify_gimple_phi): Merge verification from verify_stmts.
30584         (verify_gimple_label): New function.
30585         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
30586         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
30587         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
30588         (verify_stmts): Rename to verify_gimple_in_cfg.
30589         (verify_gimple_in_cfg): New function.
30590         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
30591         * tree-ssa.c (verify_ssa): Likewise.
30592         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
30593
30594 2011-03-25  Richard Guenther  <rguenther@suse.de>
30595
30596         * passes.c (init_optimization_passes): Add FRE pass after
30597         early SRA.
30598
30599 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
30600             Andrew Stubbs  <ams@codesourcery.com>
30601
30602         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
30603         for Cortex-A8.
30604         (arm_movdi_vfp_cortexa8): New pattern.
30605         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
30606         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
30607         instructions when tuning for Cortex-A8.  Set attribute "arch".
30608         * config/arm/arm.md: Move include arm-tune.md up a bit.
30609         (define_attr "arch"): Add "onlya8" and "nota8" values.
30610         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
30611
30612 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
30613
30614         PR bootstrap/48282
30615         Revert:
30616         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
30617
30618         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
30619         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
30620         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
30621         * passes.c (init_optimization_passes): Move
30622         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
30623
30624 2011-03-25  Kai Tietz  <ktietz@redhat.com>
30625
30626         * c-typeck.c (comptypes_internal): Replace target
30627         hook call of comp_type_attributes by version in tree.c file.
30628         * gimple.c (gimple_types_compatible_p_1): Likewise.
30629         * tree-ssa.c (useless_type_conversion_p): Likewise.
30630         * tree.c (build_type_attribute_qual_variant): Likewise.
30631         (attribute_value_equal): New static helper function.
30632         (comp_type_attributes): New function.
30633         (merge_attributes): Use attribute_value_equal for comparison.
30634         (attribute_list_contained): Likewise.
30635         * tree.h (comp_type_attributes): New prototype.
30636
30637 2011-03-25  Richard Guenther  <rguenther@suse.de>
30638
30639         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
30640         of complex types at -O0.
30641         (verify_gimple_assign_binary): Likewise.
30642         (verify_gimple_assign_ternary): Likewise.
30643
30644 2011-03-24  Mark Wielaard  <mjw@redhat.com>
30645
30646         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
30647         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
30648
30649 2011-03-24  Mark Wielaard  <mjw@redhat.com>
30650
30651         PR debug/48041
30652         * dwarf2out.c (output_abbrev_section): Only write table when
30653         abbrev_die_table_in_use > 1.
30654
30655 2011-02-24  Richard Henderson  <rth@redhat.com>
30656
30657         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
30658         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
30659         (alpha_expand_unaligned_load_words): Use extql.
30660         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
30661         (emit_insxl): Handle all modes for consistency.
30662
30663 2011-02-24  Richard Henderson  <rth@redhat.com>
30664
30665         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
30666         (alpha_expand_unaligned_load): Likewise.
30667         (alpha_expand_unaligned_store): Likewise.
30668         (alpha_expand_unaligned_load_words): Likewise.
30669         (alpha_expand_unaligned_store_words): Likewise.
30670         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
30671         (alpha_split_lock_test_and_set_12): Likewise.
30672         (print_operand, alpha_fold_builtin_extxx): Likewise.
30673         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
30674         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
30675         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
30676         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
30677         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
30678         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
30679         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
30680         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
30681         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
30682         (extwl, extll, extql): Similarly.
30683         (inswh, inslh, insqh): Similarly.
30684         (mskbl, mskwl, mskll, mskql): Similarly.
30685         (mskwh, msklh, mskqh): Similarly.
30686
30687 2011-02-24  Richard Henderson  <rth@redhat.com>
30688
30689         * config/alpha/alpha.md (attribute isa): Add er, ner.
30690         (attribute enabled): Handle them.
30691         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
30692
30693 2011-02-24  Richard Henderson  <rth@redhat.com>
30694
30695         * config/alpha/alpha.md (attribute isa): Add vms.
30696         (attribute enabled): Handle it.
30697         (*movsf): Merge *movsf_{nofix,fix,nofp}.
30698         (*movdf): Merge *movdf_{nofix,fix,nofp}.
30699         (*movtf): Rename from *movtf_internal for consistency.
30700         (*movsi): Merge with *movsi_nt_vms.
30701         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
30702         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
30703         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
30704         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
30705
30706 2011-02-24  Richard Henderson  <rth@redhat.com>
30707
30708         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
30709         (extendqisi2, extendhisi2): Likewise.
30710         (extendqidi2): Simplify BWX/non-BWX expansions.
30711         (extendhidi2): Similarly.
30712
30713 2011-02-24  Richard Henderson  <rth@redhat.com>
30714
30715         * config/alpha/alpha.md (attribute isa): New.
30716         (attribute enabled): New.
30717         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
30718         (zero_extendqisi2, zero_extendqidi2): Similarly.
30719         (zero_extendhisi2, zero_extendhidi2): Similarly.
30720         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
30721
30722 2011-02-24  Richard Henderson  <rth@redhat.com>
30723
30724         * config/alpha/predicates.md (input_operand): Revert last change;
30725         update comment to mention 32-bit VMS rather than Windows.
30726
30727 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
30728
30729         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
30730         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
30731         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
30732         * passes.c (init_optimization_passes): Move
30733         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
30734
30735 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
30736
30737         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
30738
30739 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
30740
30741         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
30742         correctly.
30743
30744 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
30745
30746         PR debug/48204
30747         * simplify-rtx.c (simplify_const_unary_operation): Call
30748         real_convert when changing mode class with FLOAT_EXTEND.
30749
30750 2011-03-24  Nick Clifton  <nickc@redhat.com>
30751
30752         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
30753         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
30754         * config/rx/rx.c (rx_option_override): Set align_jumps,
30755         align_loops and align_labels if not set by the user.
30756         (rx_align_for_label): New function.
30757         (rx_max_skip_for_label): New function.
30758         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
30759         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
30760         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
30761         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
30762         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
30763
30764 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
30765
30766         PR rtl-optimization/48263
30767         * optabs.c (expand_binop_directly): Reinstate convert_modes code
30768         and original commutative_p handling.  Use maybe_gen_insn.
30769
30770 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30771
30772         * reload.c (find_reloads_subreg_address): Add address_reloaded
30773         parameter and return true there if the full address has been
30774         reloaded.
30775         (find_reloads_toplev): Pass address_reloaded flag.
30776         (find_reloads_address_1): Don't use address_reloaded parameter.
30777
30778 2011-03-24  Jeff Law  <law@redhat.com>
30779
30780         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
30781         unused variable "ann".
30782         (remove_unused_locals): Likewise.
30783
30784         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
30785         statement.
30786
30787         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
30788         after it is freed.
30789
30790 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30791
30792         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
30793         for invalid symbolic addresses.
30794         (s390_secondary_reload): Don't use s390_check_symref_alignment for
30795         larl operands.
30796
30797 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
30798
30799         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
30800         the argument in calls to fold_truth_not_expr.
30801
30802 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
30803
30804         * tree.c (record_node_allocation_statistics): New function.
30805         (make_node_stat, copy_node_stat, build_string): Call it.
30806         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
30807         (build1_stat, build_omp_clause): Likewise.
30808
30809 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
30810
30811         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
30812         last commit.
30813
30814 2011-03-24  Richard Guenther  <rguenther@suse.de>
30815
30816         PR tree-optimization/48271
30817         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
30818         blocks that still exist.
30819
30820 2011-03-24  Richard Guenther  <rguenther@suse.de>
30821
30822         PR tree-optimization/48270
30823         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
30824         not free datarefs before ddrs.
30825
30826 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
30827
30828         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
30829         from the address built for a reference with variable offset.
30830
30831 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
30832
30833         PR target/48237
30834         * config/i386/i386.md (*movdf_internal_rex64): Do not split
30835         alternatives that can be handled with movq or movabsq insn.
30836         (*movdf_internal): Disable for !TARGET_64BIT.
30837         (*movdf_internal_nointeger): Ditto.
30838         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
30839
30840 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
30841
30842         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
30843         (FUNCTION_ARG_ADVANCE): Likewise.
30844         * tm.texi.in: Change references to them to hook references.
30845         * tm.texi: Regenerate.
30846         * targhooks.c (default_function_arg): Eliminate check for target macro.
30847         (default_function_incoming_arg): Likewise.
30848         (default_function_arg_advance): Likewise.
30849         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
30850         (function_arg_advance): Likewise.
30851         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
30852
30853 2011-03-24  Richard Guenther  <rguenther@suse.de>
30854
30855         PR middle-end/48269
30856         * tree-object-size.c (addr_object_size): Do not double-account
30857         for MEM_REF offsets.
30858
30859 2011-03-24  Diego Novillo  <dnovillo@google.com>
30860
30861         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
30862         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
30863         (lto_input_data_block): Move from lto-opts.c.  Make extern.
30864         Update all users.
30865         (lto_input_string): Rename from input_string.  Make extern.
30866         Update all users.
30867         * lto-streamer-out.c (lto_output_string_with_length): Rename from
30868         output_string_with_length.
30869         Output 0 to indicate a non-NULL string.  Update all callers to
30870         not emit 0.
30871         (lto_output_string): Rename from output_string.  Make extern.
30872         Update all users.
30873         (lto_output_decl_state_streams): Make extern.
30874         (lto_output_decl_state_refs): Make extern.
30875         * lto-streamer.h (lto_input_string): Declare.
30876         (lto_input_data_block): Declare.
30877         (lto_output_string): Declare.
30878         (lto_output_string_with_length): Declare.
30879         (lto_output_decl_state_streams): Declare.
30880         (lto_output_decl_state_refs): Declare.
30881
30882 2011-03-24  Richard Guenther  <rguenther@suse.de>
30883
30884         PR tree-optimization/46562
30885         * tree.c (build_invariant_address): New function.
30886         * tree.h (build_invariant_address): Declare.
30887         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
30888         a renamed function moved ...
30889         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
30890         Take valueization callback parameter.
30891         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
30892         * gimple-fold.h: New file.
30893         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
30894         (ccp_fold, fold_const_aggregate_ref,
30895         fold_ctor_reference, fold_nonarray_ctor_reference,
30896         fold_array_ctor_reference, fold_string_cst_ctor_reference,
30897         get_base_constructor): Move ...
30898         * gimple-fold.c: ... here.
30899         (gimple_fold_stmt_to_constant_1): New function
30900         split out from ccp_fold.  Take a valueization callback parameter.
30901         Valueize all operands.
30902         (gimple_fold_stmt_to_constant): New wrapper function.
30903         (fold_const_aggregate_ref_1): New function split out from
30904         fold_const_aggregate_ref.  Take a valueization callback parameter.
30905         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
30906         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
30907         invariant POINTER_PLUS_EXPRs to invariant form.
30908         (vn_valueize): New function.
30909         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
30910         * tree-vrp.c (vrp_valueize): New function.
30911         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
30912         to fold statements to constants.
30913         * tree-ssa-pre.c (eliminate): Properly guard propagation of
30914         function declarations.
30915         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
30916         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
30917
30918 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
30919
30920         * config/h8300/predicates.md (jump_address_operand): Fix register
30921         mode check.
30922
30923 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
30924
30925         * doc/invoke.texi (max-stores-to-sink): Document.
30926         * params.h (MAX_STORES_TO_SINK): Define.
30927         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
30928         if either vectorization or if-conversion is disabled.
30929         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
30930         tree-vect-data-refs.c vect_equal_offsets.
30931         (dr_equal_offsets_p): New function.
30932         (find_data_references_in_bb): Remove static.
30933         * tree-data-ref.h (find_data_references_in_bb): Declare.
30934         (dr_equal_offsets_p): Likewise.
30935         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
30936         (vect_drs_dependent_in_basic_block): Update calls to
30937         vect_equal_offsets.
30938         (vect_check_interleaving): Likewise.
30939         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
30940         (cond_if_else_store_replacement): Rename to...
30941         (cond_if_else_store_replacement_1): ... this.  Change arguments and
30942         documentation.
30943         (cond_if_else_store_replacement): New function.
30944         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
30945         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
30946
30947 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
30948
30949         PR target/46934
30950         * config/arm/arm.md (casesi): Use the gen_int_mode() function
30951         to subtract lower bound instead of GEN_INT().
30952
30953 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
30954
30955         PR other/48179
30956         PR other/48221
30957         PR other/48234
30958         * doc/extend.texi (Alignment): Move section to match order in TOC.
30959         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
30960         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
30961
30962 2011-03-23  Jeff Law  <law@redhat.com>
30963
30964         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
30965         before removing the edge.
30966
30967         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
30968         it may have been freed by redirect_branch_edge or
30969         redirect_edge_succ_nodup.
30970
30971 2011-03-23  Richard Guenther  <rguenther@suse.de>
30972
30973         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
30974         (check_va_list_escapes): Likewise.
30975         (check_all_va_list_escapes): Likewise.
30976
30977 2011-03-23  Richard Guenther  <rguenther@suse.de>
30978
30979         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
30980         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
30981         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
30982         (alias.o): Likewise.
30983         (ipa-type-escape.o): Remove.
30984         (ipa-struct-reorg.o): Likewise.
30985         (GTFILES): Remove ipa-struct-reorg.c.
30986         * alias.c: Do not include ipa-type-escape.h.
30987         * tree-ssa-alias.c: Likewise.
30988         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
30989         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
30990         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
30991         and ipa-type-escape passes.
30992         * tree-pass.h (pass_ipa_type_escape): Remove.
30993         (pass_ipa_struct_reorg): Likewise.
30994         * ipa-struct-reorg.h: Remove.
30995         * ipa-struct-reorg.c: Likewise.
30996         * ipa-type-escape.h: Likewise.
30997         * ipa-type-escape.c: Likewise.
30998         * doc/invoke.texi (-fipa-struct-reorg): Remove.
30999         (--param struct-reorg-cold-struct-ratio): Likewise.
31000         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
31001         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
31002         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
31003
31004 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31005
31006         * config/s390/2084.md: Enable all insn reservations also for z9_ec
31007         cpu attribute value.
31008         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
31009         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
31010         * config/s390/s390.c (processor_flags_table): New constant array.
31011         (s390_handle_arch_option): Remove.
31012         (s390_handle_option): Remove s390_handle_arch_option invocations
31013         and OPT_mwarn_framesize_ handling.
31014         (s390_option_override): Remove s390_handle_arch_option invocation.
31015         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
31016         warnings.
31017         * config/s390/s390.md (cpu attribute): Add z9_ec value.
31018         * config/s390/s390.opt (s390_tune, s390_arch)
31019         (march=): Replace s390_arch_option enum and values with
31020         processor_type.  Set variable name to s390_arch.  Set
31021         initialization value.
31022         (mtune=): Replace s390_arch_option with processor_type.  Set
31023         variable name to s390_tune.  Set initialization value.
31024
31025 2011-03-23  Julian Brown  <julian@codesourcery.com>
31026
31027         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
31028         accesses which are not naturally aligned.
31029
31030 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
31031
31032         PR target/47553
31033         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
31034
31035 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
31036
31037         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
31038         parameter from "int" to "enum insn_code".
31039         (expand_operand_type): New enum.
31040         (expand_operand): New structure.
31041         (create_expand_operand): New function.
31042         (create_fixed_operand, create_output_operand): Likewise
31043         (create_input_operand, create_convert_operand_to): Likewise.
31044         (create_convert_operand_from, create_address_operand): Likewise.
31045         (create_integer_operand): Likewise.
31046         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
31047         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
31048         (expand_insn, expand_jump_insn): Likewise.
31049         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
31050         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
31051         (expand_movstr, expand_builtin___clear_cache): Likewise.
31052         (expand_builtin_lock_release): Likewise.
31053         * explow.c (allocate_dynamic_stack_space): Likewise.
31054         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
31055         and use the default handling in that case.
31056         * expmed.c (check_predicate_volatile_ok): Delete.
31057         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
31058         (emit_cstore): Likewise.
31059         * expr.c (emit_block_move_via_movmem): Likewise.
31060         (set_storage_via_setmem, expand_assignment): Likewise.
31061         (emit_storent_insn, try_casesi): Likewise.
31062         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
31063         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
31064         (expand_vec_shift_expr, expand_binop_directly): Likewise.
31065         (expand_twoval_unop, expand_twoval_binop): Likewise.
31066         (expand_unop_direct, emit_indirect_jump): Likewise.
31067         (emit_conditional_move, vector_compare_rtx): Likewise.
31068         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
31069         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
31070         (expand_sync_lock_test_and_set): Likewise.
31071         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
31072         (emit_unop_insn): Likewise.
31073         (expand_copysign_absneg): Change icode to an insn_code.
31074         (create_convert_operand_from_type): New function.
31075         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
31076         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
31077         (expand_insn, expand_jump_insn): Likewise.
31078         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
31079         than const_int_operand for operand 2.
31080
31081 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31082
31083         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
31084         if possible.
31085
31086 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
31087
31088         * emit-rtl.c (emit_pattern_before_noloc): New function.
31089         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
31090         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
31091         (emit_pattern_after_noloc): New function.
31092         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
31093         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
31094
31095 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
31096
31097         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
31098         (__ffsDI2): Likewise.
31099
31100 2011-03-22  Richard Henderson  <rth@redhat.com>
31101
31102         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
31103         of !TARGET_ABI_OPEN_VMS.
31104         (alpha_trampoline_init, alpha_start_function): Likewise.
31105         (alpha_expand_epilogue, alpha_file_start): Likewise.
31106         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
31107         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
31108         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
31109         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
31110         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
31111
31112 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31113
31114         * config/s390/s390-opts.h: New.
31115         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
31116         s390_arch_flags, s390_warn_framesize, s390_stack_size,
31117         s390_stack_guard): Remove.
31118         (s390_handle_arch_option): Return void.  Take enum
31119         s390_arch_option value instead of string and searching array.
31120         (s390_handle_option): Don't assert that global structures are in
31121         use.  Access variables via opts pointer.  Use error_at.  Don't use
31122         sscanf for -mstack-guard= or -mstack-size=.  Update call to
31123         s390_handle_arch_option.
31124         (s390_option_override): Update call to s390_handle_arch_option.
31125         (s390_emit_prologue): Use %d format for s390_stack_size in
31126         diagnostic.  Use %wd for HOST_WIDE_INT.
31127         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
31128         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
31129         * config/s390/s390.opt (config/s390/s390-opts.h): New
31130         HeaderInclude entry.
31131         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
31132         s390_arch_flags, s390_warn_framesize): New Variable entries.
31133         (s390_arch_option): New Enum and EnumValue entries.
31134         (march=): Use Enum instead of Var.
31135         (mstack-guard=, mstack-size=): Use UInteger and Var.
31136         (mtune=): Use Enum.
31137
31138 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31139
31140         * config/score/score.c (score_handle_option): Don't assert that
31141         global structures are in use.  Access target_flags via opts
31142         pointer.  Use value of -march= option to determine target_flags
31143         settings.
31144         * config/score/score.opt (march=): Use Enum.
31145         (score_arch): New Enum and EnumValue entries.
31146
31147 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31148
31149         * config/mep/mep.c (option_mtiny_specified): Remove.
31150         (mep_option_override): Move register handling for -mivc2 from
31151         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
31152         instead of option_mtiny_specified.
31153         (mep_handle_option): Access target_flags via opts pointer.  Don't
31154         assert that global structures are in use.  Defer part of -mivc2
31155         handling and move it to mep_option_override.
31156         * config/mep/mep.opt (IVC2): New Mask entry.
31157         (mivc2): Use Var and Defer instead of Mask.
31158
31159 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31160
31161         * config/v850/v850-opts.h: New.
31162         * config/v850/v850.c (small_memory): Replace with
31163         small_memory_physical_max array.  Make that array static const.
31164         (v850_handle_memory_option): Take integer value of argument.  Take
31165         gcc_options pointer, option text and location.  Return void.
31166         Update for changes to small memory structures.
31167         (v850_handle_option): Access target_flags via opts pointer.  Don't
31168         assert that global structures are in use.  Update calls to
31169         v850_handle_memory_option.
31170         (v850_encode_data_area): Update references to small memory settings.
31171         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
31172         (enum small_memory_type): Move to v850-opts.h.
31173         * config/v850/v850.opt (config/v850/v850-opts.h): New
31174         HeaderInclude entry.
31175         (small_memory_max): New Variable entry.
31176         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
31177         (mtda, mzda): Likewise.
31178
31179 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31180
31181         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
31182         pointer.  Don't assert that global structures are in use.
31183
31184 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31185
31186         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
31187         via opts pointer.  Don't assert that global structures are in use.
31188
31189 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31190
31191         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
31192         (munix=93): Use Var.
31193         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
31194         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
31195         * config/pa/pa-opts.h: New.
31196         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
31197         (pa_handle_option): Don't assert that global structures are in
31198         use.  Access target_flags via opts pointer.  Don't handle
31199         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
31200         OPT_munix_98 here.
31201         (pa_option_override): Handle deferred OPT_mfixed_range_.
31202
31203 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31204
31205         * config/mn10300/mn10300-opts.h: New.
31206         * config/mn10300/mn10300.c (mn10300_processor,
31207         mn10300_tune_string): Remove.
31208         (mn10300_handle_option): Don't assert that global structures are
31209         in use.  Access mn10300_processor via opts pointer.  Don't handle
31210         OPT_mtune_ here.
31211         * config/mn10300/mn10300.h (enum processor_type): Move to
31212         mn10300-opts.h.
31213         (mn10300_processor): Remove.
31214         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
31215         HeaderInclude entry.
31216         (mn10300_processor): New Variable entry.
31217         (mtune=): Use Var.
31218
31219 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31220
31221         * config/microblaze/microblaze.c: Don't include opts.h.
31222         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
31223         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
31224         (mno-clearbss): Use Var and Warn.
31225
31226 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31227
31228         * config/m32r/m32r-opts.h: New.
31229         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
31230         (m32r_handle_option): Don't assert that global structures are in
31231         use.  Access target_flags and m32r_cache_flush_func via opts
31232         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
31233         OPT_mno_flush_trap here.
31234         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
31235         include of m32r-opts.h.
31236         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
31237         HeaderInclude entry.
31238         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
31239         (mmodel=): Use Enum and Var.
31240         (m32r_model): New Enum and EnumValue entries.
31241         (mno-flush-trap): Use Var.
31242         (msdata=): Use Enum and Var.
31243         (m32r_sdata): New Enum and EnumValue entries.
31244
31245 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31246
31247         * config/m32c/m32c.c: Don't include opts.h.
31248         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
31249         m32c_handle_option): Remove.
31250         (m32c_option_override): Check global_options_set.x_target_memregs
31251         instead of target_memregs_set.
31252         * config/m32c/m32c.h (target_memregs): Remove.
31253         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
31254         variable.
31255
31256 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31257
31258         * config/iq2000/iq2000-opts.h: New.
31259         * config/iq2000/iq2000.c: Don't include opts.h.
31260         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
31261         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
31262         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
31263         HeaderInclude entry.
31264         (iq2000_tune): New Variable entry.
31265         (march=): Add comment.  Use Enum.
31266         (iq2000_arch): New Enum and EnumValue entries.
31267         (mcpu=): Use Enum and Var.
31268         (iq2000_tune): New Enum and EnumValue entries.
31269
31270 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31271
31272         * config/ia64/ia64-opts.h: New.
31273         * config/ia64/ia64.c (ia64_tune): Remove.
31274         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
31275         here.  Use error_at.
31276         (ia64_option_override): Handle deferred OPT_mfixed_range_.
31277         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
31278         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
31279         HeaderInclude entry.
31280         (ia64_tune): New Variable entry.
31281         (mfixed-range=): Use Defer and Var.
31282         (mtune=): Use Enum and Var.
31283         (ia64_tune): New Enum and EnumValue entries.
31284
31285 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31286
31287         * config/frv/frv-opts.h: New.
31288         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
31289         frv-opts.h.
31290         (frv_cpu_type): Remove.
31291         * config/frv/frv.c: Don't include opts.h.
31292         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
31293         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
31294         (frv_cpu_type): New Variable entry.
31295         (frv_cpu): New Enum and EnumValue entries.
31296
31297 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31298
31299         * config/cris/cris.c (cris_handle_option): Access target_flags via
31300         opts pointer.  Don't assert that global structures are in use.
31301         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
31302         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
31303
31304 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31305
31306         * config/bfin/bfin-opts.h: New.
31307         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
31308         bfin_si_revision, bfin_workarounds): Remove.
31309         (bfin_cpus): Make static const.
31310         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
31311         not bfin_lib_id_given.
31312         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
31313         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
31314         pointer. Use error_at.  Don't assert that global structures are in use.
31315         * config/bfin/bfin.h: Include bfin-opts.h.
31316         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
31317         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
31318         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
31319         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
31320         entries.
31321
31322 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31323
31324         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
31325         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
31326         or -msoft-float here.
31327         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
31328         -msoft-float and -mhard-float.
31329         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
31330         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
31331         msoft-float.
31332         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
31333         -msoft-float.
31334         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
31335         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
31336         not mhard-float.
31337         (LIBGCC_SPEC): Don't handle -msoft-float.
31338         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
31339         -mhard-float.
31340         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
31341         msoft-float.
31342         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
31343         -mfloat-abi=*, not -msoft-float and -mhard-float.
31344         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
31345         -msoft-float.
31346         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
31347         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
31348         mhard-float and msoft-float.
31349         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
31350         mfloat-abi=soft in comments, not mhard-float and msoft-float.
31351         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
31352         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
31353         mhard-float.
31354         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
31355         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
31356         msoft-float.
31357         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
31358         not mhard-float.
31359         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
31360         not msoft-float.
31361
31362 2011-03-22  Richard Henderson  <rth@redhat.com>
31363
31364         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
31365         TARGET_ABI_WINDOWS_NT.
31366         (alpha_output_function_end_prologue): Likewise.
31367         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
31368         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
31369         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
31370         (trap, *movsi_nt_vms): Likewise.
31371         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
31372         (*tablejump_osf_nt_internal): Remove.
31373         * config/alpha/predicates.md (input_operand): Only test Pmode.
31374
31375 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31376
31377         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
31378         via opts pointer.  Use error_at.  Don't assert that global
31379         structures are in use.
31380
31381 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31382
31383         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
31384         (ix86_handle_option): Access ix86_isa_flags and
31385         ix86_isa_flags_explicit via opts pointer.  Don't assert that
31386         global structures are in use.
31387         (ix86_function_specific_save, ix86_function_specific_restore):
31388         Update ix86_isa_flags_explicit field name.
31389         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
31390         (ix86_isa_flags_explicit): Rename TargetSave entry to
31391         x_ix86_isa_flags_explicit.
31392
31393 2011-03-22  Richard Henderson  <rth@redhat.com>
31394
31395         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
31396         (alpha_option_override, direct_return): Likewise.
31397         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
31398         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
31399         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
31400         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
31401         (alpha_expand_epilogue, alpha_end_function): Likewise.
31402         (alpha_init_libfuncs): Likewise.
31403         (struct machine_function): Remove unicosmk members.
31404         (print_operand) ['t']: Remove.
31405         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
31406         unicosmk_output_module_name, unicosmk_output_common,
31407         current_section_align, unicosmk_output_text_section_asm_op,
31408         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
31409         unicosmk_section_type_flags, unicosmk_unique_section,
31410         unicosmk_asm_named_section, unicosmk_insert_attributes,
31411         unicosmk_output_align, unicosmk_defer_case_vector,
31412         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
31413         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
31414         unicosmk_output_ssib, unicosmk_add_call_info_word,
31415         unicosmk_extern_head, unicosmk_output_default_externs,
31416         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
31417         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
31418         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
31419         * config/alpha/alpha-protos.h: Update.
31420         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
31421         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
31422         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
31423         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
31424         (*mulsi_se, mulvsi3): Likewise.
31425         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
31426         (*divmodsi_internal, call, call_value, realign): Likewise.
31427         (moddi3, umoddi3): Likewise; remove duplicate expander.
31428         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
31429         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
31430         (*movdi_nofix): Remove r/U alternative.
31431         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
31432         * config/alpha/constraints.md ("U"): Remove.
31433         * config/alpha/predicates.md (call_operand"): Don't test
31434         TARGET_ABI_UNICOSMK.
31435
31436 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31437
31438         * target.def (handle_option): Take gcc_options and
31439         cl_decoded_option pointers and location_t.
31440         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
31441         * doc/tm.texi: Regenerate.
31442         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
31443         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
31444         * lto-opts.c (lto_reissue_options): Generate option structure for
31445         targetm.handle_option call.
31446         * opts.c (target_handle_option): Update call to
31447         targetm.handle_option.  Remove assertions about values now passed
31448         down to hook.
31449         * targhooks.c (default_target_handle_option): New.
31450         * targhooks.h (default_target_handle_option): Declare.
31451         * config/alpha/alpha.c: Include opts.h.
31452         (alpha_handle_option): Update to new hook interface.
31453         * config/arm/arm.c: Include opts.h.
31454         (arm_handle_option): Update to new hook interface.
31455         * config/arm/t-arm (arm.o): Update dependencies.
31456         * config/bfin/bfin.c: Include opts.h.
31457         (bfin_handle_option): Update to new hook interface.
31458         * config/cris/cris.c: Include opts.h.
31459         (cris_handle_option): Update to new hook interface.
31460         * config/frv/frv.c: Include opts.h.
31461         (frv_handle_option): Update to new hook interface.
31462         * config/i386/i386.c: Include opts.h.
31463         (ix86_handle_option): Update to new hook interface.
31464         (ix86_valid_target_attribute_inner_p): Generate option structure
31465         for call to ix86_handle_option.
31466         * config/i386/t-i386 (i386.o): Update dependencies.
31467         * config/ia64/ia64.c: Include opts.h.
31468         (ia64_handle_option): Update to new hook interface.
31469         * config/ia64/t-ia64 (ia64.o): Update dependencies.
31470         * config/iq2000/iq2000.c: Include opts.h.
31471         (iq2000_handle_option): Update to new hook interface.
31472         * config/m32c/m32c.c: Include opts.h.
31473         (m32c_handle_option): Update to new hook interface.
31474         * config/m32r/m32r.c: Include opts.h.
31475         (m32r_handle_option): Update to new hook interface.
31476         * config/m68k/m68k.c: Include opts.h.
31477         (m68k_handle_option): Update to new hook interface.
31478         * config/mep/mep.c: Include opts.h.
31479         (mep_handle_option): Update to new hook interface.
31480         * config/microblaze/microblaze.c: Include opts.h.
31481         (microblaze_handle_option): Update to new hook interface.
31482         * config/mips/mips.c: Include opts.h.
31483         (mips_handle_option): Update to new hook interface.
31484         * config/mn10300/mn10300.c: Include opts.h.
31485         (mn10300_handle_option): Update to new hook interface.
31486         * config/pa/pa.c: Include opts.h.
31487         (pa_handle_option): Update to new hook interface.
31488         * config/pdp11/pdp11.c: Include opts.h.
31489         (pdp11_handle_option): Update to new hook interface.
31490         * config/rs6000/rs6000.c: Include opts.h.
31491         (rs6000_handle_option): Update to new hook interface.
31492         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
31493         * config/rx/rx.c: Include opts.h.
31494         (rx_handle_option): Update to new hook interface.
31495         * config/s390/s390.c: Include opts.h.
31496         (s390_handle_option): Update to new hook interface.
31497         * config/score/score.c: Include opts.h.
31498         (score_handle_option): Update to new hook interface.
31499         * config/sh/sh.c: Include opts.h.
31500         (sh_handle_option): Update to new hook interface.
31501         * config/sparc/sparc.c: Include opts.h.
31502         (sparc_handle_option): Update to new hook interface.
31503         * config/v850/v850.c: Include opts.h.
31504         (v850_handle_option): Update to new hook interface.
31505
31506 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31507
31508         * gcc.c (driver_unknown_option_callback): Only permit and save
31509         unknown -Wno- options.
31510         (driver_wrong_lang_callback): Save options directly instead of via
31511         driver_unknown_option_callback.
31512
31513 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
31514
31515         * combine.c (simplify_set): Try harder to find the best CC mode when
31516         simplifying a nested COMPARE on the RHS.
31517
31518 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
31519
31520         * config/alpha/gnu.h: Remove.
31521         * config/arc: Remove directory.
31522         * config/arm/netbsd.h: Remove.
31523         * config/arm/t-pe: Remove.
31524         * config/crx: Remove directory.
31525         * config/i386/netbsd.h: Remove.
31526         * config/m68hc11: Remove directory.
31527         * config/m68k/uclinux-oldabi.h: Remove.
31528         * config/mcore/mcore-pe.h: Remove.
31529         * config/mcore/t-mcore-pe: Remove.
31530         * config/netbsd-aout.h: Remove.
31531         * config/rs6000/gnu.h: Remove.
31532         * config/sh/sh-symbian.h: Remove.
31533         * config/sh/symbian-base.c: Remove.
31534         * config/sh/symbian-c.c: Remove.
31535         * config/sh/symbian-cxx.c: Remove.
31536         * config/sh/symbian-post.h: Remove.
31537         * config/sh/symbian-pre.h: Remove.
31538         * config/sh/t-symbian: Remove.
31539         * config/svr3.h: Remove.
31540         * config/vax/netbsd.h: Remove.
31541         * config.build: Don't handle i[34567]86-*-pe.
31542         * config.gcc: Remove handling of deprecations for most deprecated
31543         targets.
31544         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
31545         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
31546         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
31547         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
31548         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
31549         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
31550         Remove cases.
31551         * config.host: Don't handle i[34567]86-*-pe.
31552         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
31553         (ASM_SPEC32): Don't handle -mcall-gnu.
31554         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
31555         -mcall-gnu.
31556         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
31557         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
31558         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
31559         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
31560         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
31561         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
31562         conditional on SYMBIAN.
31563         * configure.ac: Don't handle powerpc*-*-gnu*.
31564         * configure: Regenerate.
31565         * doc/extend.texi (interrupt attribute): Don't mention CRX.
31566         * doc/install-old.texi (m6811, m6812): Don't mention.
31567         * doc/install.texi (arc-*-elf*): Don't document multilib option.
31568         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
31569         (m68k-uclinuxoldabi): Don't mention.
31570         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
31571         Remove.
31572         (-mcall-gnu): Remove.
31573         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
31574         families): Remove constraint documentation.
31575
31576 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
31577
31578         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
31579         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
31580         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
31581
31582 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
31583
31584         PR target/48226
31585         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
31586         vector when peeking at the next token for vector, don't expand the
31587         keywords.
31588
31589 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
31590
31591         * config/avr/avr-protos.h (expand_epilogue): Change prototype
31592         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
31593         * config/avr/avr.c (init_cumulative_args)
31594         (avr_function_arg_advance): Use it.
31595         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
31596         sibcall epilogues.
31597         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
31598         (avr_function_ok_for_sibcall): ...this new function.
31599         (avr_lookup_function_attribute1): New static Function.
31600         (avr_naked_function_p, interrupt_function_p)
31601         (signal_function_p, avr_OS_task_function_p)
31602         (avr_OS_main_function_p): Use it.
31603         * config/avr/avr.md ("sibcall", "sibcall_value")
31604         ("sibcall_epilogue"): New expander.
31605         ("*call_insn", "*call_value_insn"): New insn.
31606         ("call_insn", "call_value_insn"): Remove
31607         ("call", "call_value", "epilogue"): Change expander to handle
31608         sibling calls.
31609
31610 2011-03-21  Nick Clifton  <nickc@redhat.com>
31611
31612         * doc/invoke.texi (Overall Options): Move closing brace to end of
31613         options list.
31614         (Optimization Options): Add missing @gol.
31615         (Directory Options): Likewise.
31616         (i386 and x86-64 Options): Likewise.
31617         (RS6000 and PowerPC Options): Likewise.
31618         (i386 and x86-64 Windows Options): Likewise.
31619         (V850 Options): Add text missing from descriptions.
31620
31621 2011-03-22  Richard Henderson  <rth@redhat.com>
31622
31623         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
31624         (avr_incoming_return_addr_rtx): New.
31625         (emit_push_byte): New.
31626         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
31627         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
31628         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
31629         (emit_pop_byte): New.
31630         (expand_epilogue): Use it.  Pop frame pointer by bytes.
31631         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
31632         (INCOMING_RETURN_ADDR_RTX): New.
31633         (INCOMING_FRAME_SP_OFFSET): New.
31634         (ARG_POINTER_CFA_OFFSET): New.
31635         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
31636         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
31637         (pophi): Remove.
31638
31639         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
31640
31641 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
31642
31643         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
31644         (FUNCTION_ARG_ADVANCE): Likewise.
31645         * tm.texi.in: Change references to them to hook references.
31646         * tm.texi: Regenerate.
31647         * targhooks.c (default_function_arg): Eliminate check for target
31648         macro.
31649         (default_function_incoming_arg): Likewise.
31650         (default_function_arg_advance): Likewise.
31651         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
31652         (function_arg_advance): Likewise.
31653         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
31654
31655 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
31656
31657         * tree.c (build_call_1): New function.
31658         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
31659
31660 2011-03-22  Richard Guenther  <rguenther@suse.de>
31661
31662         PR tree-optimization/48228
31663         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
31664         for single-arg PHIs.
31665
31666 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
31667
31668         PR rtl-optimization/48143
31669         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
31670         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
31671         sse2_cvtps2pd): Likewise.
31672
31673 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31674
31675         * recog.c (canonicalize_change_group): Use validate_unshare_change.
31676
31677 2011-03-22  Richard Guenther  <rguenther@suse.de>
31678
31679         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
31680         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
31681         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
31682         and REALIGN_LOAD_EXPR.
31683         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
31684         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
31685         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
31686         DOT_PROD_EXPR case ...
31687         (expand_expr_real_2): ... here.
31688         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
31689         and REALIGN_LOAD_EXPR.
31690         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
31691         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
31692         (vect_create_epilog_for_reduction): Likewise.
31693         (vectorizable_reduction): Likewise.
31694         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
31695         * tree-vect-stmts.c (vectorizable_load): Likewise.
31696
31697 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
31698
31699         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
31700
31701 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31702
31703         * config/s390/s390.c (s390_delegitimize_address): Fix offset
31704         handling for PLTOFF/GOTOFF.
31705
31706 2011-03-22  Nick Clifton  <nickc@redhat.com>
31707
31708         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
31709         trailing backslash from the end of the macro definition.
31710
31711 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31712
31713         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
31714         and PLT unspecs.
31715
31716 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
31717
31718         * expr.h (prepare_operand): Move to...
31719         * optabs.h (prepare_operand): ...here and change the insn code
31720         parameter from "int" to "enum insn_code".
31721         (insn_operand_matches): Declare.
31722         * expr.c (init_expr_target): Use insn_operand_matches.
31723         (compress_float_constant): Likewise.
31724         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
31725         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
31726         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
31727         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
31728         Likewise.
31729         (gen_cond_trap): Likewise.
31730         (prepare_operand): Likewise.  Change icode to an insn_code.
31731         (insn_operand_matches): New function.
31732         * reload.c (find_reloads_address_1): Use insn_operand_matches.
31733         * reload1.c (gen_reload): Likewise.
31734         * targhooks.c (default_secondary_reload): Likewise.
31735
31736 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
31737
31738         * config/alpha/alpha.md (unspec): New define_c_enum.
31739         (unspecv): Ditto.
31740
31741 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
31742
31743         PR debug/48214
31744         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
31745         between a call and its CALL_ARG_LOCATION note.
31746
31747 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
31748
31749         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
31750
31751 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
31752
31753         PR c/42544
31754         PR c/48197
31755         * c-common.c (shorten_compare): If primopN is first sign-extended
31756         to opN and then zero-extended to result type, set primopN to opN.
31757
31758 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
31759
31760         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
31761         for barrier handlers.
31762
31763 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
31764
31765         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
31766         UNSPEC constants to be in the unspec enumeration, and redefine
31767         all UNSPECV constants to be in the unspecv enumeration, so that
31768         dumps print which unspec/unspec_volatile this is.
31769         * config/rs6000/vector.md (UNSPEC_*): Ditto.
31770         * config/rs6000/paired.md (UNSPEC_*): Ditto.
31771         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
31772         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
31773         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
31774
31775         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
31776         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
31777         UNSPECV_LWSYNC, since these are used as unspec_volatile.
31778         * config/rs6000/sync.md (isync, lwsync): Ditto.
31779
31780 2011-03-21  Richard Guenther  <rguenther@suse.de>
31781
31782         * params.def (lto-min-partition): Fix typo.
31783
31784 2011-03-21  Richard Guenther  <rguenther@suse.de>
31785
31786         PR c/47939
31787         * c-decl.c (grokdeclarator): Drop to the main variant only
31788         for array types.  Drop flag_gen_aux_info check.
31789
31790 2011-03-21  Richard Guenther  <rguenther@suse.de>
31791
31792         PR translation/47911
31793         * params.def (lto-partitions): Fix typo.
31794         (lto-min-partition): Fix wording.
31795
31796 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
31797
31798         * config/rs6000/t-freebsd: Remove duplication from file.
31799
31800 2011-03-21  Richard Guenther  <rguenther@suse.de>
31801
31802         PR middle-end/47661
31803         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
31804
31805 2011-03-21  Richard Guenther  <rguenther@suse.de>
31806
31807         PR lto/48210
31808         * params.def (lto-partitions): Require at least 1 partition.
31809
31810 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31811
31812         * gthr-solaris.h: Remove.
31813         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
31814         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
31815         (LIB_SPEC): Likewise.
31816         * config/sol2.opt (threads): Remove.
31817         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
31818         (sparc*-*-solaris2*): Likewise.
31819         * configure.ac (enable_threads): Enable solaris support.
31820         * configure: Regenerate.
31821         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
31822         * doc/install.texi (Configuration, --enable-threads=lib): Remove
31823         solaris.
31824
31825 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31826
31827         * config.gcc: Obsolete *-*-solaris2.8*.
31828         * doc/install.texi (Specific, *-*-solaris2*): Document it.
31829
31830 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31831
31832         PR bootstrap/48135
31833         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
31834         reference.  Solaris 8 perl works.
31835
31836 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31837
31838         PR bootstrap/48135
31839         * doc/install.texi (Prerequisites): Move jar etc. up.
31840         Explain support library version requirements.
31841
31842 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31843
31844         PR bootstrap/48135
31845         * doc/install.texi (Prerequisites): Move Perl to build
31846         requirements.  Always necessary on Solaris 2 with Sun ld.
31847
31848 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31849
31850         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
31851         binutils 2.21.
31852         (Specific, i?86-*-solaris2.[89]): Likewise.
31853         (Specific, i?86-*-solaris2.10): Likewise.
31854         (Specific, mips-sgi-irix6): Likewise.
31855         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
31856         Update for binutils 2.21.
31857
31858 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31859
31860         * configure.ac (gcc_cv_lto_plugin): Fix typo.
31861         Allow -fuse-linker-plugin for non-default plugin linker.
31862         * configure: Regenerate.
31863
31864 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
31865
31866         PR bootstrap/48167
31867         * gengtype.c (files_rules): Added rule for cp/parser.h.
31868
31869 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
31870
31871         PR target/48213
31872         * config/s390/s390.c (s390_delegitimize_address): Don't call
31873         lowpart_subreg if orig_x has BLKmode.
31874
31875 2011-03-21  Kai Tietz  <ktietz@redhat.com>
31876
31877         PR target/12171
31878         * doc/plugins.texi: Adjust documentation for plugin register_callback.
31879         * tree.h (attribute_spec): Add new member affects_type_identity.
31880         * attribs.c (empty_attribute_table): Adjust attribute_spec
31881         initializers.
31882         * config/alpha/alpha.c: Likewise.
31883         * config/arc/arc.c: Likewise.
31884         * config/arm/arm.c: Likewise.
31885         * config/avr/avr.c: Likewise.
31886         * config/bfin/bfin.c: Likewise.
31887         * config/crx/crx.c: Likewise.
31888         * config/darwin.h: Likewise.
31889         * config/h8300/h8300.c: Likewise.
31890         * config/i386/cygming.h: Likewise.
31891         * config/i386/i386.c: Likewise.
31892         * config/ia64/ia64.c: Likewise.
31893         * config/m32c/m32c.c: Likewise.
31894         * config/m32r/m32r.c: Likewise.
31895         * config/m68hc11/m68hc11.c: Likewise.
31896         * config/m68k/m68k.c: Likewise.
31897         * config/mcore/mcore.c: Likewise.
31898         * config/mep/mep.c: Likewise.
31899         * config/microblaze/microblaze.c: Likewise.
31900         * config/mips/mips.c: Likewise.
31901         * config/rs6000/rs6000.c: Likewise.
31902         * config/rx/rx.c: Likewise.
31903         * config/sh/sh.c: Likewise.
31904         * config/sol2.h: Likewise.
31905         * config/sparc/sparc.c: Likewise.
31906         * config/spu/spu.c: Likewise.
31907         * config/stormy16/stormy16.c: Likewise.
31908         * config/v850/v850.c: Likewise.
31909
31910 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
31911
31912         * simplify-rtx.c (simplify_binary_operation_1): Handle
31913         (xor (and A B) C) case when B and C are both constants.
31914
31915 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
31916
31917         * tree-dfa.c (add_referenced_var): Fix typo in comment.
31918
31919 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
31920
31921         PR bootstrap/48168
31922         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
31923
31924 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
31925
31926         PR rtl-optimization/48156
31927         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
31928         assume df and df_lr are not NULL.
31929
31930 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
31931
31932         PR debug/48023
31933         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
31934         between a call and its CALL_ARG_LOCATION note.
31935
31936 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
31937
31938         PR debug/48178
31939         * config/sh/sh.c (find_barrier): Don't emit a constant pool
31940         between a call and its corresponding CALL_ARG_LOCATION note.
31941
31942 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
31943
31944         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
31945         instead of loop. Use HARD_REGISTER_NUM_P predicate.
31946         * haifa-sched.c (setup_ref_regs): Ditto.
31947         * caller-save.c (add_used_regs_1): Ditto.
31948         * dse.c (look_for_hardregs): Ditto.
31949         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
31950         * sched-rgn.c (check_live_1): Ditto.
31951
31952 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
31953
31954         * c-decl.c (diagnose_mismatched_decls): Give an error for
31955         redefining a typedef with variably modified type.
31956
31957 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
31958
31959         * c-decl.c (grokfield): Don't allow typedefs for structures or
31960         unions with no tag by default.
31961         * doc/extend.texi (Unnamed Fields): Update.
31962
31963 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
31964
31965         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
31966         Rewrite using indirect functions.
31967         (lwp_slwpcb): Ditto.
31968         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
31969         (avx_vinsertf128<mode>): Ditto.
31970
31971 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31972
31973         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
31974         unspecs.
31975
31976 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31977
31978         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
31979         splitting between a call and its corresponding CALL_ARG_LOCATION note.
31980
31981 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
31982
31983         PR rtl-optimization/48170
31984         * gcse.c (hoist_code): Remove bogus asserts.
31985
31986 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
31987
31988         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
31989         computation for prologue/epilogue.
31990
31991 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31992
31993         * Makefile.in (check-consistency): Remove.
31994
31995 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
31996
31997         PR debug/48176
31998         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
31999         arange_table_in_use is 0, but either text_section_used or
32000         cold_text_section_used is true.  Don't call it if
32001         !info_section_emitted.
32002
32003 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
32004
32005         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
32006         FUNCTION_VALUE_REGNO_P): Remove.
32007         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
32008         Remove.
32009         * config/avr/avr.c (avr_ret_register): Make static inline.
32010         (avr_function_value_regno_p): New function.
32011         (avr_libcall_value): Make static. Add 'func' argument.
32012         (avr_function_value): Make static. Rename 'func' argument to
32013         'fn_decl_or_type', forward it to avr_libcall_value. Call
32014         avr_ret_register function instead of RET_REGISTER macro.
32015         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
32016
32017 2011-03-18  Jason Merrill  <jason@redhat.com>
32018
32019         PR c++/23372
32020         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
32021
32022 2011-03-18  Richard Guenther  <rguenther@suse.de>
32023
32024         * doc/install.texi (--enable-gold): Remove.
32025         (--with-plugin-ld): Document.
32026         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
32027
32028 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
32029
32030         PR middle-end/47790
32031         * expr.c (optimize_bitfield_assignment_op): Revamp to work
32032         again after expansion changes.
32033
32034 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
32035
32036         * combine.c (try_combine): Do simplification only call of
32037         subst() on i2 even when i1 is present. Update comments.
32038
32039 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
32040
32041         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
32042         and UNSPEC_PCREL_SYMOFF.
32043
32044 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32045
32046         * config/s390/s390.md: Use define_c_enum for the unspec constant
32047         definitions.
32048
32049 2011-03-18  Richard Henderson  <rth@redhat.com>
32050             Jakub Jelinek  <jakub@redhat.com>
32051
32052         PR bootstrap/48161
32053         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
32054         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
32055
32056 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
32057
32058         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
32059         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
32060         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
32061         Change return type to bool.
32062         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
32063
32064 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
32065
32066         PR debug/48163
32067         * var-tracking.c (prepare_call_arguments): If CALL target
32068         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
32069         pc instead of looking it up using cselib_lookup and use
32070         Pmode for it if x has VOIDmode.
32071         * dwarf2out.c (gen_subprogram_die): If also both first and
32072         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
32073
32074         PR debug/48163
32075         * function.c (assign_parms): For data.passed_pointer parms
32076         use MEM of data.entry_parm instead of data.entry_parm itself
32077         as DECL_INCOMING_RTL.
32078         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
32079         also when passed and declared mode is the same, DECL_RTL
32080         is a MEM with pseudo as address and DECL_INCOMING_RTL is
32081         a MEM too.
32082
32083 2011-03-16  Jeff Law  <law@redhat.com>
32084
32085         PR rtl-optimization/37273
32086         * ira-costs.c (scan_one_insn): Detect constants living in memory and
32087         handle them like argument loads from stack slots.  Do not double
32088         count memory for memory constants and argument loads from stack slots.
32089
32090 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
32091
32092         PR debug/48160
32093         * var-tracking.c (prepare_call_arguments): Check SUBREG.
32094
32095 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
32096
32097         PR target/48171
32098         * config/i386/i386.opt: Add Save to -mavx and -mfma.
32099
32100 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
32101
32102         PR bootstrap/48153
32103         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
32104         if dwarf_strict.
32105         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
32106         Clear call_arg_locations and call_arg_loc_last always.
32107
32108         PR middle-end/48152
32109         * var-tracking.c (prepare_call_arguments): If argument needs to be
32110         passed by reference, adjust argtype and mode.
32111
32112 2011-03-17  Richard Guenther  <rguenther@suse.de>
32113
32114         PR middle-end/48134
32115         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
32116         a value make sure to fold the statement.
32117
32118 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
32119
32120         PR target/43872
32121         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
32122         return condition with !cfun->calls_alloca.
32123
32124 2011-03-17  Richard Guenther  <rguenther@suse.de>
32125
32126         PR bootstrap/48148
32127         * lto-cgraph.c (input_overwrite_node): Clear the abstract
32128         origin for decls in other ltrans units.
32129         (input_varpool_node): Likewise.
32130
32131 2011-03-17  Richard Guenther  <rguenther@suse.de>
32132
32133         PR middle-end/48165
32134         * tree-object-size.c (compute_object_offset): Properly return
32135         the offset operand of MEM_REFs as sizetype.
32136
32137 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
32138
32139         PR rtl-optimization/48141
32140         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
32141         * dse.c: Include params.h.
32142         (active_local_stores_len): New variable.
32143         (add_wild_read, dse_step1): Clear it when setting active_local_stores
32144         to NULL.
32145         (record_store, check_mem_read_rtx): Decrease it when removing
32146         from the chain.
32147         (scan_insn): Likewise.  Increase it when adding to chain, if it
32148         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
32149         set active_local_stores to NULL before the addition.
32150         * Makefile.in (dse.o): Depend on $(PARAMS_H).
32151
32152         PR rtl-optimization/48141
32153         * dse.c (record_store): If no positions are needed in an insn
32154         that cannot be deleted, at least unchain it from active_local_stores.
32155
32156 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
32157
32158         PR debug/47510
32159         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
32160         (lookup_type_die_strip_naming_typedef): ... here.
32161         (get_context_die): Use it.
32162         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
32163         the anonymous struct named by the naming typedef.
32164
32165 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
32166
32167         PR target/48154
32168         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
32169         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
32170
32171 2011-03-16  Jeff Law  <law@redhat.com>
32172
32173         * tree-vrp.c (identify_jump_threads): Slightly simplify type
32174         check for operands of conditional.  Allow type to be a pointer.
32175
32176 2011-03-16  Richard Guenther  <rguenther@suse.de>
32177
32178         PR tree-optimization/48149
32179         * fold-const.c (fold_binary_loc): Fold
32180         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
32181
32182 2011-03-16  Richard Guenther  <rguenther@suse.de>
32183
32184         PR tree-optimization/26134
32185         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
32186         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
32187         (non_rewritable_mem_ref_base): Handle complex type component
32188         accesses, constrain offsets for vector and complex extracts
32189         more properly.
32190
32191 2011-03-16  Richard Guenther  <rguenther@suse.de>
32192
32193         PR tree-optimization/48146
32194         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
32195         operands avoiding the need for renaming.
32196
32197 2011-03-16  Richard Guenther  <rguenther@suse.de>
32198
32199         * gimple-fold.c (maybe_fold_reference): Open-code relevant
32200         constant folding.  Move MEM_REF canonicalization first.
32201         Rely on fold_const_aggregate_ref for initializer folding.
32202         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
32203
32204 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
32205
32206         PR middle-end/48136
32207         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
32208         arg0/arg1 or their arguments are always fold converted to matching
32209         types.
32210
32211         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
32212         to nargs.
32213
32214 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32215
32216         PR lto/46944
32217         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
32218         Handle in-tree gold.
32219         (ld_vers): Extract binutils version for gold.
32220         (gcc_cv_ld_hidden): Handle gold here.
32221         (gcc_cv_lto_plugin): Determine level of linker plugin support.
32222         * configure: Regenerate.
32223         * config.in: Regenerate.
32224         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
32225         -fuse-linker-plugin otherwise.
32226         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
32227         (LINK_COMMAND_SPEC): Use it.
32228         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
32229
32230 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
32231
32232         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
32233         * calls.c: Remove debug.h include.
32234         (emit_call_1): Don't call virtual_call_token debug hook.
32235         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
32236         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
32237         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
32238         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
32239         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
32240         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
32241         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
32242         dwarf2out_virtual_call): Remove.
32243         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
32244         copy_call_info and virtual_call hooks.
32245         (dwarf2out_init): Don't initialize vcall_insn_table,
32246         debug_dcall_section and debug_vcall_section.
32247         (prune_unused_types): Don't mark nodes from dcall_table.
32248         (dwarf2out_finish): Don't output dcall or vcall tables.
32249         * final.c (final_scan_insn): Don't call direct_call or
32250         virtual_call debug hooks.
32251         * debug.h (struct gcc_debug_hooks): Remove direct_call,
32252         virtual_call_token, copy_call_info and virtual_call hooks.
32253         (debug_nothing_uid): Remove prototype.
32254         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
32255         copy_call_info and virtual_call hooks.
32256         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
32257         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
32258         * debug.c (do_nothing_debug_hooks): Likewise.
32259         (debug_nothing_uid): Remove.
32260         * doc/invoke.texi (-fenable-icf-debug): Remove.
32261         * common.opt (-fenable-icf-debug): Likewise.
32262
32263         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
32264         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
32265         call's MEM.  Handle functions returning aggregate through a hidden
32266         first pointer.  For virtual calls add clobbered pc to call arguments
32267         chain.
32268         * dwarf2out.c (gen_subprogram_die): Emit
32269         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
32270         can't be emitted.
32271
32272         PR debug/45882
32273         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
32274         * rtl.h (ENTRY_VALUE_EXP): Define.
32275         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
32276         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
32277         * print-rtl.c (print_rtx): Likewise.
32278         * gengtype.c (adjust_field_rtx_def): Likewise.
32279         * var-tracking.c (vt_add_function_parameter): Adjust
32280         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
32281         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
32282         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
32283         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
32284         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
32285
32286         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
32287         Call var_location debug hook even on CALL_INSNs.
32288         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
32289         * rtl.def (ENTRY_VALUE): New.
32290         * dwarf2out.c: Include cfglayout.h.
32291         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
32292         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
32293         (struct call_arg_loc_node): New type.
32294         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
32295         tail_call_site_count): New variables.
32296         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
32297         DW_TAG_GNU_call_site_parameter.
32298         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
32299         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
32300         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
32301         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
32302         and DW_AT_GNU_all_source_call_sites.
32303         (mem_loc_descriptor): Handle ENTRY_VALUE.
32304         (add_src_coords_attributes): Don't add enything if
32305         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
32306         (dwarf2out_abstract_function): Save and clear call_arg_location,
32307         call_site_count and tail_call_site_count around dwarf2out_decl call.
32308         (gen_call_site_die): New function.
32309         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
32310         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
32311         (dwarf2out_function_decl): Clear call_arg_locations,
32312         call_arg_loc_last, set call_site_count and tail_call_site_count
32313         to -1 and free block_map.
32314         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
32315         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
32316         followed by any real instructions.
32317         (dwarf2out_begin_function): Set call_site_count and
32318         tail_call_site_count to 0.
32319         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
32320         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
32321         attempt to force a DIE for it and worst case remove the attribute.
32322         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
32323         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
32324         the decl itself.
32325         * var-tracking.c: Include tm_p.h.
32326         (vt_stack_adjustments): For calls call note_register_arguments.
32327         (argument_reg_set): New variable.
32328         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
32329         ensure the VALUE is resolved.
32330         (call_arguments): New variable.
32331         (prepare_call_arguments): New function.
32332         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
32333         (struct expand_loc_callback_data): Add ignore_cur_loc field.
32334         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
32335         always use the best expression.
32336         (vt_expand_loc): Add ignore_cur_loc argument.
32337         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
32338         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
32339         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
32340         note for all calls.
32341         (vt_add_function_parameter): Use cselib_lookup_from_insn.
32342         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
32343         argument.  Don't call cselib_preserve_only_values and
32344         cselib_reset_table.
32345         (note_register_arguments): New function.
32346         (vt_initialize): Compute argument_reg_set.  Call
32347         vt_add_function_parameters before processing basic blocks instead of
32348         afterwards.  For calls call prepare_call_arguments before calling
32349         cselib_process_insn.
32350         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
32351         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
32352         (var-tracking.o): Depend on $(TM_P_H).
32353         * cfglayout.h (insn_scope): New prototype.
32354         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
32355         * cfglayout.c (insn_scope): No longer static.
32356         * insn-notes.def (CALL_ARG_LOCATION): New.
32357         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
32358         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
32359         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
32360         nothing for DECL_EXTERNAL BLOCK_VARS.
32361
32362 2011-03-16  Alan Modra  <amodra@gmail.com>
32363
32364         PR target/45844
32365         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
32366         create invalid offset address for vsx splat insn.
32367         * config/rs6000/predicates.md (splat_input_operand): New.
32368         * config/rs6000/vsx.md (vsx_splat_*): Use it.
32369
32370 2011-03-15  Xinliang David Li  <davidxl@google.com>
32371
32372         PR c/47837
32373         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
32374         (normalize_preds): New function.
32375         (is_use_properly_guarded): Normalize def predicates.
32376
32377 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
32378
32379         PR target/46788
32380         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
32381         in the output template.
32382
32383 2011-03-15  Richard Guenther  <rguenther@suse.de>
32384
32385         PR middle-end/47650
32386         * tree-pretty-print.c (dump_function_declaration): Properly
32387         dump unprototyped and varargs function types.
32388
32389 2011-03-15  Richard Guenther  <rguenther@suse.de>
32390
32391         PR tree-optimization/13954
32392         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
32393         and friends.
32394
32395 2011-03-15  Richard Guenther  <rguenther@suse.de>
32396
32397         PR tree-optimization/48037
32398         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
32399         selects into BIT_FIELD_REFs.
32400         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
32401         vector select.
32402
32403 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
32404
32405         PR tree-optimization/48129
32406         * builtins.c (fold_builtin_snprintf): Convert to type of
32407         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
32408         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
32409
32410 2011-03-15  Richard Guenther  <rguenther@suse.de>
32411
32412         PR tree-optimization/41490
32413         * tree-ssa-dce.c (propagate_necessity): Handle returns without
32414         value but with VUSE.
32415         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
32416         return statements.
32417         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
32418         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
32419         * tree-tailcall.c (find_tail_calls): Ignore returns.
32420
32421 2011-03-15  Richard Guenther  <rguenther@suse.de>
32422
32423         PR middle-end/48031
32424         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
32425         or variable-indexed array accesses when in gimple form.
32426
32427 2011-03-15  Richard Guenther  <rguenther@suse.de>
32428
32429         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
32430
32431 2011-03-15  Alan Modra  <amodra@gmail.com>
32432
32433         PR target/48032
32434         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
32435         presume symbol_refs without a symbol_ref_decl are suitably
32436         aligned, nor other trees we may see here.  Handle anchor symbols.
32437         (legitimate_constant_pool_address_p): Comment.  Add mode param.
32438         Check cmodel=medium addresses.  Adjust all calls.
32439         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
32440         creating cmodel=medium optimized access to locals.
32441         * config/rs6000/constraints.md (R): Pass QImode to
32442         legitimate_constant_pool_address_p.
32443         * config/rs6000/predicates.md (input_operand): Pass mode to
32444         legitimate_constant_pool_address_p.
32445         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
32446         Update prototype.
32447
32448 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
32449
32450         PR target/48053
32451         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
32452         64-bit constants being loaded into registers other than GPRs such
32453         as loading 0 into a VSX register.
32454
32455 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32456
32457         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
32458
32459 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
32460
32461         PR middle-end/47917
32462         * builtins.c (fold_builtin_snprintf): New function.
32463         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
32464         (fold_builtin_4): Likewise.
32465
32466         PR middle-end/38878
32467         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
32468         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
32469         and C - X == X also strip nops from +/-/p+ operand.
32470         When optimizing -X == C, fold C to arg0's type.
32471
32472         PR debug/47946
32473         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
32474         emit it as add_AT_int instead of add_AT_unsigned.
32475
32476 2011-03-14  Tom Tromey  <tromey@redhat.com>
32477
32478         * unwind-dw2.c: Include sys/sdt.h if it exists.
32479         (_Unwind_DebugHook): Use STAP_PROBE2.
32480         * config.in, configure: Rebuild.
32481         * configure.ac: Check for sys/sdt.h.
32482
32483 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
32484
32485         * config/i386/i386.md (ROUND_FLOOR): New constant.
32486         (ROUND_CEIL): Ditto.
32487         (ROUND_TRUNC): Ditto.
32488         (ROUND_MXCSR): Ditto.
32489         (ROUND_NO_EXC): Ditto.
32490         (rint<mode>2): Use new defines instead of numerical constants.
32491         (floor<mode>2): Ditto.
32492         (ceil<mode>2): Ditto.
32493         (btrunc<mode>2): Ditto.
32494         * config/i386/i386-builtin-types.def: Define ROUND function type
32495         aliases.
32496         * config/i386/i386.c (enum ix86_builtins): Add
32497         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
32498         (struct builtin_description): Add
32499         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
32500         (ix86_expand_sse_round): New static function.
32501         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
32502         function types.
32503         (ix86_builtin_vectorized_function): Handle
32504         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
32505
32506 2011-03-14  Tom Tromey  <tromey@redhat.com>
32507
32508         * c-parser.c (c_parser_asm_string_literal): Clear
32509         warn_overlength_strings.
32510
32511 2011-03-14  Tom Tromey  <tromey@redhat.com>
32512
32513         * c-parser.c (disable_extension_diagnostics): Save
32514         warn_overlength_strings.
32515         (restore_extension_diagnostics): Restore warn_overlength_strings.
32516
32517 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
32518
32519         * BASE-VER: Change to 4.7.0.
32520
32521 2011-03-14  Richard Guenther  <rguenther@suse.de>
32522
32523         PR middle-end/48098
32524         * tree.c (build_vector_from_val): Adjust assert to requirements
32525         and reality.
32526
32527 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
32528
32529         PR bootstrap/48102
32530         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
32531
32532 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
32533
32534         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
32535         terms of target_flags_explicit. Adjust copyright year.
32536
32537         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
32538         * config/rs6000/t-freebsd: New file. Add override for
32539         LIB2FUNCS_EXTRA.
32540
32541 2011-03-13  Chris Demetriou  <cgd@google.com>
32542
32543         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
32544         (-fno-diagnostics-show-option): this, to reflect current default.
32545         (-Werror=): Update text about -fno-diagnostics-show-option.
32546
32547 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
32548
32549         PR target/48053
32550         * config/rs6000/predicates.md (easy_vector_constant_add_self,
32551         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
32552         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
32553         mode is not V2DImode or V2DFmode.
32554         (vspltis_constant): Do not handle V2DImode and V2DFmode.
32555         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
32556         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
32557         registers to 0.
32558         (movdi_internal64): Likewise.
32559
32560 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
32561
32562         PR tree-optimization/47127
32563         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
32564         parameter.
32565         (set_cloog_options): Same.
32566         (scop_to_clast): Same.
32567         (print_clast_stmt): Do not call cloog_state_malloc and
32568         cloog_state_free.
32569         (print_generated_program): Same.
32570         (gloog): Same.
32571         * graphite-clast-to-gimple.h (cloog_state): Declared.
32572         (scop_to_clast): Adjust declaration.
32573         * graphite.c (cloog_state): Defined here.
32574         (graphite_initialize): Call cloog_state_malloc.
32575         (graphite_finalize): Call cloog_state_free.
32576
32577 2011-03-11  Jason Merrill  <jason@redhat.com>
32578
32579         * attribs.c (lookup_attribute_spec): Take const_tree.
32580         * tree.h: Adjust.
32581
32582 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
32583
32584         * config/sparc/sparc.c (sparc_option_override): Use
32585         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
32586
32587 2011-03-11  Richard Guenther  <rguenther@suse.de>
32588
32589         PR tree-optimization/48067
32590         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
32591         multiplication result will be only used once on the target
32592         stmt.
32593
32594 2011-03-11  Richard Guenther  <rguenther@suse.de>
32595
32596         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
32597
32598 2011-03-11  Richard Guenther  <rguenther@suse.de>
32599
32600         PR lto/48073
32601         * tree.c (find_decls_types_r): Do not walk types only reachable
32602         from IDENTIFIER_NODEs.
32603
32604 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
32605
32606         PR middle-end/48044
32607         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
32608         all vnode->force_output nodes as needed.
32609
32610 2011-03-11  Jason Merrill  <jason@redhat.com>
32611
32612         PR c++/48069
32613         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
32614         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
32615
32616 2011-03-11  Martin Jambor  <mjambor@suse.cz>
32617
32618         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
32619         cgraph_node.
32620
32621 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
32622
32623         PR tree-optimization/48063
32624         * ipa-inline.c (cgraph_decide_inlining): Don't try to
32625         inline functions called once if !tree_can_inline_p (node->callers).
32626
32627 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
32628
32629         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
32630         extra_objs.
32631         * config/score/score3.c: Delete.
32632         * config/score/score3.h: Delete.
32633         * config/score/mul-div.S: Delete.
32634         * config/score/sfp-machine.h: Add new file.
32635         * config/score/constraints.md: Add new file.
32636         * config/score/t-score-softfp: Add new file.
32637         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
32638         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
32639         (score7_extra_constraint): Delete.
32640         (score7_option_override): Remove unused code.
32641         * config/score/score.c: Remove score3 and score5 define and code.
32642         * config/score/score.h: Remove score3 and score5 define and code.
32643         * config/score/score.md: Remove score3 template and unusual insn.
32644         * config/score/score.opt: Remove score3 and score5 options.
32645
32646 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
32647
32648         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
32649         when _HPUX_SOURCE is defined.
32650         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
32651
32652 2011-03-10  Jason Merrill  <jason@redhat.com>
32653
32654         PR c++/48029
32655         * stor-layout.c (layout_type): Don't set structural equality
32656         on arrays of incomplete type.
32657         * tree.c (type_hash_eq): Handle comparing them properly.
32658
32659 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
32660
32661         PR debug/48043
32662         * config/s390/s390.c (s390_delegitimize_address): Make sure the
32663         result mode matches original rtl mode.
32664
32665 2011-03-10  Nick Clifton  <nickc@redhat.com>
32666
32667         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
32668         (andsi3, andsi3_flags): Fix timings for three operand alternative.
32669
32670 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
32671
32672         PR rtl-optimization/47866
32673         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
32674         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
32675         if target wasn't scalar.
32676         * function.c (assign_stack_temp_for_type): Assert that neither
32677         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
32678         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
32679         macro.
32680         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
32681
32682 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32683
32684         * config/s390/s390-protos.h (s390_label_align): New prototype.
32685         * config/s390/s390.c (s390_label_align): New function.
32686         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
32687
32688 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
32689
32690         PR target/47755
32691         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
32692         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
32693         (output_vec_const_move): Ditto.
32694
32695 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
32696
32697         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
32698         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
32699         * config/mips/mips.c (mips_preferred_reload_class): Make static.
32700         Change 'rclass' argument and result type to reg_class_t.
32701         (TARGET_PREFERRED_RELOAD_CLASS): Define.
32702
32703 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
32704
32705         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
32706         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
32707         (TARGET_MEMORY_MOVE_COST): Define.
32708         (avr_register_move_cost, avr_memory_move_cost): New Functions.
32709
32710 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
32711
32712         PR debug/47881
32713         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
32714         removed anything.
32715
32716         PR tree-optimization/48022
32717         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
32718         for EQ/NE_EXPR.
32719
32720 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
32721
32722         PR debug/47991
32723         * var-tracking.c (find_use_val): Return NULL for
32724         cui->sets && cui->store_p BLKmode MEMs.
32725
32726 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
32727
32728         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
32729         Remove.
32730         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
32731         xstormy16_print_operand_address): Remove.
32732         * config/stormy16/stormy16.c (xstormy16_print_operand,
32733         xstormy16_print_operand_address): Make static.
32734         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
32735
32736 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
32737
32738         PR target/47862
32739         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
32740         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
32741         before definition.
32742
32743 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
32744
32745         PR bootstrap/48000
32746         * cfgloopmanip.c (fix_bb_placements): Return immediately
32747         if FROM is BASE_LOOP's header.
32748
32749 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
32750
32751         * gimplify.c (gimplify_function_tree): Fix building calls
32752         to __builtin_return_address.
32753
32754 2011-03-07  Alan Modra  <amodra@gmail.com>
32755
32756         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
32757         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
32758         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
32759         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
32760         return_mode args.
32761         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
32762         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
32763         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
32764         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
32765         * config/rs6000/rs6000.c
32766         (rs6000_elf_end_indicate_exec_stack): Rename to..
32767         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
32768         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
32769         (rs6000_file_start): ..here.
32770         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
32771         file scope variables.
32772         (call_ABI_of_interest): New function.
32773         (init_cumulative_args): Set above vars when function return value
32774         is a float, vector, or small struct.
32775         (rs6000_function_arg_advance_1): Likewise for function args.
32776         (rs6000_va_start): Set rs6000_passes_float if variable arg function
32777         references float args.
32778
32779 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
32780
32781         * doc/cfg.texi: Remove "See" before @ref.
32782         * doc/invoke.texi: Likewise.
32783
32784 2011-03-05  Jason Merrill  <jason@redhat.com>
32785
32786         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
32787
32788 2011-03-05  Anthony Green  <green@moxielogic.com>
32789
32790         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
32791
32792 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
32793
32794         PR rtl-optimization/47899
32795         * cfgloopmanip.c (fix_bb_placements): Fix first argument
32796         to flow_loop_nested_p when moving the loop upward.
32797
32798 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
32799
32800         PR target/47719
32801         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
32802
32803 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
32804
32805         PR tree-optimization/47967
32806         * ipa-cp.c (build_const_val): Return NULL instead of creating
32807         VIEW_CONVERT_EXPR for mismatching sizes.
32808         (ipcp_create_replace_map): Return NULL if build_const_val failed.
32809         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
32810         give up on versioning.
32811
32812 2011-03-05  Alan Modra  <amodra@gmail.com>
32813
32814         PR target/47986
32815         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
32816         full cmodel medium/large lo_sum + high addresses.
32817
32818 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32819
32820         * config/s390/s390.c (s390_decompose_address): Reject non-literal
32821         pool references in UNSPEC_LTREL_OFFSET.
32822
32823 2011-03-04  Jan Hubicka  <jh@suse.cz>
32824
32825         PR lto/47497
32826         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
32827         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
32828         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
32829         Add node pointers.
32830         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
32831         cgraph_add_thunk): Add node pointers.
32832         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
32833         associated to right node.
32834         (input_node): Update use of cgraph_same_body_alias
32835         and cgraph_add_thunk.
32836
32837 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
32838
32839         * config/i386/i386.opt (mprefer-avx128): New flag.
32840         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
32841         modes when the flag -mprefer-avx128 is on.
32842
32843 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
32844
32845         * dwarf2out.c (compare_loc_operands): Fix address handling.
32846
32847 2011-03-04  Alan Modra  <amodra@gmail.com>
32848
32849         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
32850
32851 2011-03-04  Richard Guenther  <rguenther@suse.de>
32852
32853         PR middle-end/47968
32854         * expmed.c (extract_bit_field_1): Prefer vector modes that
32855         vec_extract patterns can handle.
32856
32857 2011-03-04  Richard Guenther  <rguenther@suse.de>
32858
32859         PR middle-end/47975
32860         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
32861
32862 2011-03-04  Richard Henderson  <rth@redhat.com>
32863
32864         * explow.c (emit_stack_save): Remove 'after' parameter.
32865         (emit_stack_restore): Likewise.
32866         * expr.h: Update to match.
32867         * builtins.c, calls.c, stmt.c: Likewise.
32868         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
32869         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
32870         * function.c (expand_function_end): Insert the emit_stack_save
32871         sequence before parm_birth_insn instead of after.
32872
32873 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
32874
32875         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
32876         (ssse3_pmaddubsw128): Ditto.
32877         (ssse3_pmaddubsw): Ditto.
32878
32879 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
32880
32881         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
32882
32883 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
32884
32885         PR c/47963
32886         * gimplify.c (omp_add_variable): Only call omp_notice_variable
32887         on TYPE_SIZE_UNIT if it is a DECL.
32888
32889         PR debug/47283
32890         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
32891         first operand is not is_gimple_mem_ref_addr, try to fold it.
32892         If the operand still isn't is_gimple_mem_ref_addr, clear
32893         MEM_EXPR on op0.
32894
32895 2011-03-03  Richard Guenther  <rguenther@suse.de>
32896
32897         PR middle-end/47283
32898         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
32899         match comment.
32900         (refs_may_alias_p_1): For release branches return true if
32901         we are confused by our input.
32902
32903 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32904
32905         * config/s390/s390.c (s390_function_value): Rename to ...
32906         (s390_function_and_libcall_value): ... this.
32907         (s390_function_value): New function.
32908         (s390_libcall_value): New function.
32909         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
32910         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
32911         target macro definitions.
32912         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
32913
32914 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
32915
32916         * config/i386/freebsd64.h (CC1_SPEC): Define.
32917         * config/i386/linux64.h (CC1_SPEC): Define.
32918         * config/i386/x86-64.h (CC1_SPEC): Don't define.
32919
32920 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
32921
32922         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
32923         Remove.
32924         * config/stormy16/stormy16.c: Include reload.h.
32925         (xstormy16_memory_move_cost): New function.
32926         (TARGET_MEMORY_MOVE_COST): Define.
32927
32928 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
32929
32930         PR rtl-optimization/47925
32931         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
32932         with side effects.  Remove the more-specific check for volatile asms.
32933
32934 2011-03-02  Alan Modra  <amodra@gmail.com>
32935
32936         PR target/47935
32937         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
32938         toc relative addresses for valid offsets.
32939
32940 2011-03-01  Richard Guenther  <rguenther@suse.de>
32941
32942         PR tree-optimization/47890
32943         * tree-vect-loop.c (get_initial_def_for_induction): Set
32944         related stmt properly.
32945
32946 2011-03-01  Richard Guenther  <rguenther@suse.de>
32947
32948         PR lto/47924
32949         * lto-streamer.c (lto_record_common_node): Also register
32950         the canonical type.
32951
32952 2011-03-01  Richard Guenther  <rguenther@suse.de>
32953
32954         PR lto/46911
32955         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
32956         Do not stream DECL_ABSTRACT_ORIGIN.
32957         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
32958         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
32959         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
32960         Do not stream DECL_ABSTRACT_ORIGIN.
32961         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
32962         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
32963
32964 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
32965
32966         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
32967         FUNCTION_VALUE_REGNO_P): Remove.
32968         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
32969         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
32970         Add 'outgoing' argument.
32971         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
32972         function.
32973         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
32974         TARGET_FUNCTION_VALUE_REGNO_P): Define.
32975
32976 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
32977
32978         PR debug/28047
32979         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
32980         (lookup_filename): Likewise.
32981         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
32982
32983 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
32984             Jakub Jelinek  <jakub@redhat.com>
32985
32986         PR middle-end/47893
32987         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
32988         (assign_stack_local_1): Change last argument type to int.
32989         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
32990         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
32991         don't record padding space into frame_space_list nor use those areas.
32992         (assign_stack_local): Adjust caller.
32993         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
32994         of assign_stack_local, pass 0 as last argument.
32995         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
32996         callers.
32997
32998 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
32999
33000         PR debug/47283
33001         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
33002         Use target address_mode and pointer_mode hooks instead of hardcoded
33003         Pmode and ptr_mode.  Handle some simple cases of extending if
33004         POINTERS_EXTEND_UNSIGNED < 0.
33005         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
33006         Call convert_debug_memory_address.
33007         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
33008         convert_debug_memory_address.
33009
33010         PR middle-end/46790
33011         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
33012         * configure: Regenerated.
33013         * config.in: Regenerated.
33014         * varasm.c (default_function_section): Return NULL
33015         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
33016
33017 2011-02-28  Martin Jambor  <mjambor@suse.cz>
33018
33019         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
33020         the description to match the printed values.
33021
33022 2011-02-28  Richard Guenther  <rguenther@suse.de>
33023
33024         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
33025         of the copied scope tree.
33026
33027 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33028
33029         * doc/extend.texi (Function Attributes): Avoid deeply (and
33030         wrongly) nested tables.
33031
33032 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
33033
33034         PR middle-end/47903
33035         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
33036         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
33037         r isn't op0 nor op1.
33038
33039 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
33040
33041         * config/avr/avr.md: Remove magic comment for emacs.
33042
33043 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
33044
33045         PR target/45261
33046         * config/avr/avr.c (avr_option_override): Use error on bad options.
33047         (avr_help): New function.
33048         (TARGET_HELP): Define.
33049
33050 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
33051
33052         PR target/42240
33053         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
33054         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
33055
33056 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
33057
33058         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
33059         (ARM Options): Ditto.
33060         (i386 and x86-64 Options): Ditto.
33061         (RX Options): Ditto.
33062         (SPARC Options): Ditto.
33063
33064 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
33065
33066         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
33067         FreeBSD 6 and later.  Generally use cpu generic.
33068
33069 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
33070
33071         * doc/cpp.texi: Update copyright years.
33072
33073 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
33074
33075         PR target/46898
33076         * config/lm32/lm32.md (ashrsi3): Added needed variable.
33077
33078 2011-02-25  Jon Beniston  <jon@beniston.com>
33079
33080         PR target/46898
33081         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
33082         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
33083         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
33084         (lm32_block_move_inline): Add type cast to remove warning.
33085         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
33086         (gen_int_relational): Move declarations to start of function.
33087
33088 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
33089
33090         PR tree-optimization/45470
33091         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
33092         can throw internally only.
33093         * tree-vect-stmts.c (vectorizable_call): Likewise.
33094
33095 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
33096
33097         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
33098         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
33099         * config/stormy16/stormy16-protos.h
33100         (xstormy16_preferred_reload_class): Remove.
33101         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
33102         static. Change 'rclass' argument and return type to reg_class_t.
33103         (TARGET_PREFERRED_RELOAD_CLASS,
33104         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
33105
33106 2011-02-24  Richard Guenther  <rguenther@suse.de>
33107
33108         * lto-streamer-in.c (input_bb): Do not find referenced vars
33109         in debug statements.
33110
33111 2011-02-23  Jason Merrill  <jason@redhat.com>
33112
33113         * common.opt (fabi-version): Document v5 and v6.
33114
33115 2011-02-23  Richard Guenther  <rguenther@suse.de>
33116
33117         PR tree-optimization/47849
33118         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
33119
33120 2011-02-23  Jie Zhang  <jie@codesourcery.com>
33121
33122         * opts-common.c (decode_cmdline_option): Print empty string
33123         argument as "" in decoded->orig_option_with_args_text.
33124         * gcc.c (execute): Print empty string argument as ""
33125         in the verbose output.
33126         (do_spec_1): Keep empty string argument.
33127
33128 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
33129
33130         * config.gcc: Declare score-* and crx-* obsolete.
33131
33132 2011-02-23  Jie Zhang  <jie@codesourcery.com>
33133
33134         PR rtl-optimization/47763
33135         * web.c (web_main): Ignore naked clobber when replacing register.
33136
33137 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
33138
33139         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
33140         Remove.
33141
33142 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
33143
33144         PR doc/47848
33145         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
33146
33147 2011-02-22  Mike Stump  <mikestump@comcast.net>
33148
33149         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
33150         assembler.
33151         * configure: Regenerate.
33152
33153 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
33154
33155         PR rtl-optimization/46002
33156         * ira-color.c (update_copy_costs): Change class intersection
33157         test to reg_class_contents[] test of 'hard_regno'.
33158
33159 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
33160
33161         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
33162         than Driver option.
33163         * config/hpux11.opt (mt): Likewise.
33164         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
33165         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
33166         * config/vax/elf.opt (mno-asm-pic): Likewise.
33167         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
33168
33169 2011-02-21  Mike Stump  <mikestump@comcast.net>
33170
33171         PR target/47822
33172         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
33173         tree so we can get save the type.
33174         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
33175         for CFString instead of trying to use past the end of the builtins.
33176         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
33177         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
33178         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
33179         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
33180         Rename to darwin_builtin_cfstring.
33181         (darwin_init_cfstring_builtins): Return the built type.
33182
33183 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
33184
33185         PR target/47840
33186         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
33187         (_mm256_insert_epi64): Use _mm_insert_epi64.
33188
33189 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
33190
33191         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
33192         * config/stormy16/stormy16-protos.h
33193         (xstormy16_mode_dependent_address_p): Remove.
33194         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
33195         Make static. Change return type to bool. Change argument type to
33196         const_rtx. Remove dead code.
33197         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
33198
33199 2011-02-21  Richard Guenther  <rguenther@suse.de>
33200
33201         PR lto/47820
33202         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
33203         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
33204         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
33205         TUs context.
33206         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
33207         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
33208
33209 2011-02-20  Richard Guenther  <rguenther@suse.de>
33210
33211         PR lto/47822
33212         * tree.c (free_lang_data_in_decl): Clean builtins from
33213         the TU decl BLOCK_VARS.
33214
33215 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
33216
33217         PR debug/47620
33218         PR debug/47630
33219         * haifa-sched.c (fix_tick_ready): Skip tick computation
33220         for debug insns.
33221
33222 2011-02-19  Richard Guenther  <rguenther@suse.de>
33223
33224         PR lto/47647
33225         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
33226         Remove lazy BLOCK_VARS streaming.
33227         (lto_input_ts_block_tree_pointers): Likewise.
33228         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
33229
33230 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
33231
33232         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
33233
33234 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
33235
33236         * config/i386/biarch32.h, config/i386/mach.h,
33237         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
33238
33239 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
33240
33241         PR target/47800
33242         * config/i386/i386.md (peephole2 for shift and plus): Use
33243         operands[1] original mode in the first insn.
33244
33245 2011-02-18  Mike Stump  <mikestump@comcast.net>
33246
33247         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
33248
33249 2011-02-18  Jan Hubicka  <jh@suse.cz>
33250
33251         PR middle-end/47788
33252         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
33253         to zero when the function is not inlinable at all.
33254
33255 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33256
33257         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
33258         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
33259         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
33260         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
33261         * config/pa/t-pa64: Likewise.
33262         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
33263
33264 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
33265
33266         PR driver/47787
33267         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
33268
33269 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33270
33271         PR target/47792
33272         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
33273
33274 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
33275
33276         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
33277         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
33278         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
33279         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
33280         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
33281         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
33282         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
33283         m32r_load_postinc_p, m32r_store_preinc_predec_p,
33284         m32r_legitimate_address_p): New functions.
33285         * config/m32r/constraints.md (constraint "S"): Don't use
33286         STORE_PREINC_PREDEC_P.
33287         (constraint "U"): Don't use LOAD_POSTINC_P.
33288
33289 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
33290
33291         PR rtl-optimization/46178
33292         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
33293         compute ira_hard_regno_cover_class[].
33294
33295 2011-02-18  Richard Guenther  <rguenther@suse.de>
33296
33297         PR lto/47798
33298         * lto-streamer.h (lto_global_var_decls): Declare.
33299         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
33300         statics for global var processing.
33301
33302 2011-02-18  Richard Guenther  <rguenther@suse.de>
33303
33304         PR tree-optimization/47737
33305         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
33306         edge dominance check.
33307
33308 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
33309
33310         PR debug/47780
33311         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
33312         avoid invalid rtx sharing.
33313
33314 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
33315
33316         * doc/cpp.texi (Obsolete Features): Add background on the
33317         origin of assertions.
33318
33319 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
33320
33321         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
33322         objc_abi == 2.
33323         * config/darwin.c (output_objc_section_asm_op): Added support for
33324         ABI v1 and v2.
33325         (is_objc_metadata): New.
33326         (darwin_objc2_section): New.
33327         (darwin_objc1_section): New.
33328         (machopic_select_section): Added support for ABI v1 and v2.
33329         (darwin_emit_objc_zeroed): New.
33330         (darwin_output_aligned_bss): Detect objc metadata and treat it
33331         appropriately.
33332         (darwin_asm_output_aligned_decl_common): Same.
33333         (darwin_asm_output_aligned_decl_local): Same.
33334         * config/darwin-sections.def: Updated for ABI v1 and v2.
33335         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
33336         compiling Objective-C code for the NeXT runtime, default to using
33337         ABI version 0 for 32-bit, and version 2 for 64-bit.
33338
33339 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
33340
33341         * common.opt (optimize_fast): New Variable.
33342         * opts.c (default_options_optimization): Use opts->x_optimize_fast
33343         instead of local variable ofast.
33344
33345 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
33346
33347         * doc/invoke.texi (fobjc-abi-version): Documented.
33348         (fobjc-nilcheck): Documented.
33349         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
33350         version.
33351
33352 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
33353
33354         PR driver/47390
33355         * common.opt (export-dynamic): New Driver option.
33356         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
33357
33358 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
33359
33360         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
33361
33362 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
33363             Jan Hubicka  <jh@suse.cz>
33364
33365         PR debug/47106
33366         PR debug/47402
33367         * cfgexpand.c (account_used_vars_for_block): Remove.
33368         (estimated_stack_frame_size): Use referenced vars.
33369         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
33370         that were referenced in the original function.  Test src_fn
33371         rather than cfun.  Drop redundant get_var_ann.
33372         (setup_one_parameter): Drop redundant get_var_ann.
33373         (declare_return_variable): Likewise.
33374         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
33375         (copy_arguments_for_versioning): Drop redundant get_var_ann.
33376         * ipa-inline.c (compute_inline_parameters): Do not compute
33377         disregard_inline_limits here.
33378         (compute_inlinable_for_current, pass_inlinable): New.
33379         (pass_inline_parameters): Require PROP_referenced_vars.
33380         * cgraphunit.c (cgraph_process_new_functions): Don't run
33381         compute_inline_parameters explicitly unless function is in SSA form.
33382         (cgraph_analyze_function): Set .disregard_inline_limits.
33383         * tree-sra.c (convert_callers): Compute inliner parameters
33384         only for functions already in SSA form.
33385
33386 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
33387
33388         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
33389         -mlittle-endian-data.
33390
33391 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
33392
33393         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
33394         -mno-fpu, not -fpu and -no-fpu.
33395         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
33396         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
33397
33398 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
33399
33400         PR target/43653
33401         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
33402         input reload with PLUS RTX.
33403
33404 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
33405
33406         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
33407         of InverseVar(MDMX).
33408
33409 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
33410
33411         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
33412         --m4-340.
33413
33414 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
33415
33416         * config/mn10300/mn10300.opt (mno-crt0): New.
33417
33418 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
33419
33420         * config/m68k/uclinux.opt (static-libc): New Driver option.
33421
33422 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
33423
33424         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
33425
33426 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
33427
33428         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
33429         %{muser-extend-enabled}.
33430
33431 2011-02-16  Richard Guenther  <rguenther@suse.de>
33432
33433         PR tree-optimization/47738
33434         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
33435         the TODO from tree_predictive_commoning.
33436
33437 2011-02-15  Jeff Law  <law@redhat.com>
33438
33439         Revert
33440         2011-01-25  Jeff Law  <law@redhat.com>
33441
33442         PR rtl-optimization/37273
33443         * ira-costs.c (scan_one_insn): Detect constants living in memory and
33444         handle them like argument loads from stack slots.  Do not double
33445         count memory for memory constants and argument loads from stack slots.
33446
33447 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
33448
33449         PR target/47755
33450         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
33451         mode for vector constants.  Remove code that checks for TImode.
33452
33453 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
33454
33455         PR debug/47106
33456         PR debug/47402
33457         * cgraph.h (compute_inline_parameters): Return void.
33458         * ipa-inline.c (compute_inline_parameters): Adjust.
33459
33460 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
33461
33462         PR debug/47106
33463         PR debug/47402
33464         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
33465         rather than decl.
33466         * cfgexpand.c (estimated_stack_frame_size): Likewise.
33467         * ipa-inline.c (compute_inline_parameters): Adjust.
33468
33469 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
33470
33471         PR debug/47106
33472         PR debug/47402
33473         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
33474         Adjust all users.  Pass FN to...
33475         * tree-flow-inline.h (first_referenced_var): ... this.  Add
33476         fn argument.
33477         * ipa-struct-reorg.c: Adjust.
33478         * tree-dfa.c: Adjust.
33479         * tree-into-ssa.c: Adjust.
33480         * tree-sra.c: Adjust.
33481         * tree-ssa-alias.c: Adjust.
33482         * tree-ssa-live.c: Adjust.
33483         * tree-ssa.c: Adjust.
33484         * tree-ssanames.c: Adjust.
33485         * tree-tailcall.c: Adjust.
33486
33487 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
33488
33489         PR debug/47106
33490         PR debug/47402
33491         * tree-flow.h (referenced_var_lookup): Add fn parameter.
33492         Adjust all callers.
33493         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
33494         * tree-flow-inline.h: Adjust.
33495         * gimple-pretty-print.c: Adjust.
33496         * tree-into-ssa.c: Adjust.
33497         * tree-ssa.c: Adjust.
33498         * cfgexpand.c: Adjust.
33499
33500 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
33501
33502         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
33503         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
33504         (EXTRA_CONSTRAINT): Delete.
33505         * config/iq2000/constraints.md: New file.
33506         * config/iq2000/iq2000.md: Include it.
33507         (define_insn ""): Delete.
33508         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
33509         unsupported constraint letters from patterns.
33510         (call_value, call_value_internal1): Likewise.
33511         (call_value_multiple_internal1): Likewise.
33512
33513 2011-02-15  Nick Clifton  <nickc@redhat.com>
33514
33515         * config/mn10300/mn10300.c: Include tm-constrs.h.
33516         (struct liw_data): New data structure describing an LIW candidate
33517         instruction.
33518         (extract_bundle): Use struct liw_data.  Allow small integer
33519         operands for some instructions.
33520         (check_liw_constraints): Use struct liw_data.  Remove swapped
33521         parameter.  Add comments describing the checks.  Fix bug when
33522         assigning the source of liw1 to the source of liw2.
33523         (liw_candidate): Delete.  Code moved into extract_bundle.
33524         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
33525         before swapping.
33526         * config/mn10300/predicates.md (liw_operand): New predicate.
33527         Allows registers and small integer constants.
33528         * config/mn10300/constraints.md (O): New constraint.  Accetps
33529         integers in the range -8 to +7 inclusive.
33530         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
33531         for moving a small integer into a register.  Give this alternative
33532         LIW attributes.
33533         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
33534         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
33535         using the J,K,L and M constraints,
33536         (liw): Remove SI mode on second operands to allow for HI and QI
33537         mode values.
33538         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
33539         instruction.
33540
33541 2011-02-15  Richard Guenther  <rguenther@suse.de>
33542
33543         PR tree-optimization/47743
33544         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
33545         for a non-type-compatible VN lookup bail out.
33546
33547 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
33548
33549         * config/fr30/constraints.md: New file.
33550         * config/fr30/fr30.md: Include it.
33551         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
33552         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
33553         (EXTRA_CONSTRAINT): Delete.
33554
33555 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
33556
33557         * config/frv/constraints.md: New file.
33558         * config/frv/predicates.md: Include it.
33559         * config/frv/frv.c (reg_class_from_letter): Delete.
33560         (frv_option_override): Don't initialize it.
33561         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
33562         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
33563         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
33564         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
33565         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
33566         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
33567         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
33568         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
33569         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
33570         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
33571         (REG_CLASS_FROM_CONSTRAINT): Delete.
33572
33573 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
33574
33575         PR middle-end/47581
33576         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
33577         if frame size is 0 in a leaf function.
33578
33579 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33580
33581         PR pch/14940
33582         * config/alpha/host-osf.c: New file.
33583         * config/alpha/x-osf: New file.
33584         * config.host (alpha*-dec-osf*): Use it.
33585
33586 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
33587
33588         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
33589         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
33590         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
33591         (rx_mode_dependent_address_p): ...this. Make static. Change argument
33592         type to const_rtx.
33593         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
33594
33595 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
33596
33597         * config/stormy16/constraints.md: New file.
33598         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
33599         Use satisfies_constraint_Q and satisfies_constraint_R.
33600         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
33601         Delete.
33602         (xstormy16_legitiamte_address_p): Declare.
33603         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
33604         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
33605         (EXTRA_CONSTRAINT): Delete.
33606         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
33607         Un-staticize.
33608         (xstormy16_extra_constraint_p): Delete.
33609
33610 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
33611
33612         PR tree-optimization/46494
33613         * loop-unroll.c (split_edge_and_insert): Adjust comment.
33614         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
33615         (pass_rtl_loop_done): Add TODO_verify_flow.
33616         * fwprop.c (pass_rtl_fwprop): Likewise.
33617         * modulo-sched.c (pass_sms): Likewise.
33618         * tree-ssa-dom.c (pass_dominator): Likewise.
33619         * tree-ssa-loop-ch.c (pass_ch): Likewise.
33620         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
33621         (pass_tree_loop_done): Likewise.
33622         * tree-ssa-pre.c (execute_pre): Likewise.
33623         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
33624         * tree-ssa-sink.c (pass_sink_code): Likewise.
33625         * tree-vrp.c (pass_vrp): Likewise.
33626
33627 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
33628
33629         * config/v850/constraints.md: New file.
33630         * config/v850/v850.md: Include it.
33631         * config/v850/predicates.md (reg_or_0_operand): Use
33632         satisfies_constraint_G.
33633         (special_symbolref_operand): Use satisfies_constraint_K.
33634         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
33635         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
33636         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
33637         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
33638         (EXTRA_CONSTRAINT): Delete.
33639         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
33640         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
33641         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
33642
33643 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
33644
33645         PR target/47696
33646         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
33647         description.
33648
33649 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
33650
33651         * config/mcore/constraints.md: New file.
33652         * config/mcore/mcore.md: Include it.
33653         * config/mcore/mcore.c (reg_class_from_letter): Delete.
33654         * config/mcore/mcore.h (reg_class_from_letter): Delete.
33655         (REG_CLASS_FROM_LETTER): Delete.
33656         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
33657         insn_const_int_ok_for_constraint.
33658         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
33659         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
33660         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
33661         (EXTRA_CONSTRAINT): Delete.
33662
33663 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33664
33665         PR ada/41929
33666         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
33667         (IS_SIGHANDLER): Define.
33668         (sparc64_is_sighandler): New function, split off from
33669         sparc64_fallback_frame_state.
33670         (sparc_is_sighandler): New function, split off from
33671         sparc_fallback_frame_state.
33672         (sparc64_fallback_frame_state): Merge with ...
33673         (sparc_fallback_frame_state): ... this into ...
33674         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
33675         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
33676         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
33677         stack instead of hardcoded offsets.
33678
33679 2011-02-14  Andriy Gapon  <avg@freebsd.org>
33680
33681         PR target/45808
33682         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
33683
33684 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33685
33686         * configure: Regenerate.
33687
33688 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
33689
33690         PR driver/45731
33691         * gcc.c (asm_options): Correct spec matching --target-help.
33692
33693 2011-02-12  Martin Jambor  <mjambor@suse.cz>
33694
33695         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
33696         to gimple call error.
33697
33698 2011-02-12  Mike Stump  <mikestump@comcast.net>
33699
33700         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
33701         comments in backslash regions.
33702
33703 2011-02-12  Mike Stump  <mikestump@comcast.net>
33704             Jakub Jelinek  <jakub@redhat.com>
33705             Iain Sandoe  <iains@gcc.gnu.org>
33706
33707         PR target/47324
33708         * dwarf2out.c (output_cfa_loc): When required, apply the
33709         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
33710         (output_loc_sequence): Likewise.
33711         (output_loc_operands_raw): Likewise.
33712         (output_loc_sequence_raw): Likewise.
33713         (output_cfa_loc): Likewise.
33714         (output_loc_list): Suppress register number adjustment when
33715         calling output_loc_sequence()
33716         (output_die): Likewise.
33717
33718 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
33719
33720         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
33721         Remove macros.
33722         * config/xtensa/xtensa.c (xtensa_register_move_cost,
33723         xtensa_memory_move_cost): New functions.
33724         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
33725
33726 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
33727
33728         PR lto/47225
33729         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
33730         in the current directory.
33731         * configure: Rebuilt.
33732
33733 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
33734
33735         * config/darwin.c (darwin_override_options): Add a hunk missed
33736         from the commit of r168571.  Trim comment line lengths and
33737         correct indents of the preceding block.
33738
33739 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
33740
33741         * gcc.c (driver_handle_option): Concatenate the argument to -F with
33742         the switch.
33743
33744 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
33745
33746         * common.opt (nostartfiles): New Driver option.
33747
33748 2011-02-11  Xinliang David Li  <davidxl@google.com>
33749
33750         PR tree-optimization/47707
33751         * tree-chrec.c (convert_affine_scev): Keep type precision.
33752
33753 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
33754
33755         PR tree-optimization/47420
33756         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
33757
33758 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
33759
33760         PR rtl-optimization/47614
33761         * rtl.h (check_for_inc_dec): Declare.
33762         * dse.c (check_for_inc_dec): Externalize...
33763         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
33764         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
33765
33766 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
33767
33768         PR driver/47678
33769         * gcc.c (main): Do not compile inputs if there were errors in
33770         option handling.
33771         * opts-common.c (read_cmdline_option): Check for wrong language
33772         after other error checks.
33773
33774 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
33775
33776         * cgraph.c: Fix comment typos.
33777         * cgraph.h: Likewise.
33778         * cgraphunit.c: Likewise.
33779         * ipa-cp.c: Likewise.
33780         * ipa-inline.c: Likewise.
33781         * ipa-prop.c: Likewise.
33782         * ipa-pure-const.c: Likewise.
33783         * ipa-ref.c: Likewise.
33784         * ipa-reference.c: Likewise.
33785
33786 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
33787
33788         PR debug/47684
33789         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
33790
33791 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33792
33793         PR testsuite/47400
33794         * doc/sourcebuild.texi (Require Support): Document
33795         dg-require-ascii-locale.
33796
33797 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
33798
33799         * doc/lto.texi (Write summary): Fix missing parentheses.
33800
33801 2011-02-10  DJ Delorie  <dj@redhat.com>
33802
33803         * config/m32c/m32c.c (m32c_option_override): Disable
33804         -fcombine-stack-adjustments until flag value tracking and compare
33805         optimization can be rewritten.
33806
33807 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
33808
33809         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
33810         PROCESSOR_POWER7.
33811         (PROCESSOR_DEFAULT64): Likewise.
33812
33813 2011-02-10  Richard Henderson  <rth@redhat.com>
33814
33815         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
33816         change from 2011-02-03.
33817         * config/rx/rx.c (flags_from_code): Likewise.
33818         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
33819         is valid, n/pz otherwise.
33820         (rx_select_cc_mode): Return CCmode if Y is not zero.
33821
33822 2011-02-10  Richard Guenther  <rguenther@suse.de>
33823
33824         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
33825
33826 2011-02-10  Richard Guenther  <rguenther@suse.de>
33827
33828         PR tree-optimization/47677
33829         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
33830
33831 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
33832
33833         PR target/47665
33834         * combine.c (make_compound_operation): Only change shifts into
33835         multiplication for SCALAR_INT_MODE_P.
33836
33837 2011-02-10  Jie Zhang  <jie@codesourcery.com>
33838
33839         PR testsuite/47622
33840         Revert
33841         2011-02-05  Jie Zhang  <jie@codesourcery.com>
33842         PR debug/42631
33843         * web.c (entry_register): Don't clobber the number of the
33844         first uninitialized reference in used[].
33845
33846 2011-02-09  Richard Guenther  <rguenther@suse.de>
33847
33848         PR tree-optimization/47664
33849         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
33850         all edges again.
33851
33852 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
33853
33854         PR target/46481
33855         PR target/47032
33856         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
33857         PROCESSOR_POWER7.
33858         (PROCESSOR_DEFAULT64): Same.
33859         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
33860
33861 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33862
33863         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
33864
33865 2011-02-09  Martin Jambor  <mjambor@suse.cz>
33866
33867         PR middle-end/45505
33868         * tree-sra.c (struct access): New flags grp_scalar_read and
33869         grp_scalar_write.  Changed description of assignment read and write
33870         flags.
33871         (dump_access): Dump new flags, reorder all of them.
33872         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
33873         to detect multiple scalar reads.
33874         (analyze_access_subtree): Use the new scalar read write flags instead
33875         of the old flags.  Adjusted comments.
33876
33877 2011-02-08  DJ Delorie  <dj@redhat.com>
33878
33879         PR target/47548
33880         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
33881         patterns.
33882
33883 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
33884
33885         * config/m68k/uclinux.opt: New.
33886         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
33887
33888 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
33889
33890         * config/cris/elf.opt (sim): New Driver option.
33891
33892 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
33893
33894         * config/xtensa/elf.opt: New.
33895         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
33896
33897 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
33898
33899         * config/vax/elf.opt: New.
33900         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
33901
33902 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
33903
33904         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
33905
33906 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
33907
33908         * config/gnu-user.opt: New.
33909         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
33910         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
33911         *-*-uclinux*): Use gnu-user.opt.
33912
33913 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
33914
33915         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
33916         * config/i386/gnu.h (CPP_SPEC): Likewise.
33917
33918 2011-02-08  Ian Lance Taylor  <iant@google.com>
33919
33920         * common.opt (fcx-limited-range): Add SetByCombined flag.
33921         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
33922         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
33923         (fassociative-math, freciprocal-math): Likewise.
33924         (funsafe-math-optimizations): Likewise.
33925         * opth-gen.awk: Handle SetByCombined.
33926         * optc-gen.awk: Likewise.
33927         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
33928         (set_unsafe_math_optimizations_flags): Likewise.
33929         * doc/options.texi (Option properties): Document SetByCombined.
33930
33931 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
33932
33933         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
33934         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
33935         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
33936         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
33937         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
33938
33939 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
33940
33941         PR tree-optimization/46834
33942         PR tree-optimization/46994
33943         PR tree-optimization/46995
33944         * graphite-sese-to-poly.c (used_outside_reduction): New.
33945         (detect_commutative_reduction): Call used_outside_reduction.
33946         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
33947         translate_scalar_reduction_to_array only when at least one
33948         loop-phi/close-phi tuple has been detected.
33949
33950 2011-02-08  Richard Guenther  <rguenther@suse.de>
33951
33952         PR middle-end/47639
33953         * tree-vect-generic.c (expand_vector_operations_1): Update
33954         stmts here ...
33955         (expand_vector_operations): ... not here.  Cleanup EH info
33956         and the CFG if required.
33957
33958 2011-02-08  Richard Guenther  <rguenther@suse.de>
33959
33960         PR tree-optimization/47641
33961         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
33962         require type compatibility.
33963
33964 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33965
33966         * gimple-low.c (lower_function_body): Don't remove the location of
33967         the return statement here.
33968         (lower_gimple_return): Do it here instead but only if the return
33969         statement is actually used twice.
33970
33971 2011-02-08  Richard Guenther  <rguenther@suse.de>
33972
33973         PR tree-optimization/47632
33974         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
33975         unused up_to_stmt parameter, return whether cfg-cleanup is
33976         necessary, remove EH info properly.
33977         (forward_propagate_into_gimple_cond): Adjust caller.
33978         (forward_propagate_into_cond): Likewise.
33979         (forward_propagate_comparison): Likewise.
33980         (tree_ssa_forward_propagate_single_use_vars): Make
33981         forward_propagate_comparison case similar to the two others.
33982
33983 2011-02-08  Nick Clifton  <nickc@redhat.com>
33984
33985         * config/mn10300/mn10300.opt (mliw): New command line option.
33986         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
33987         (liw_bundling): New automaton.
33988         (liw): New attribute.
33989         (liw_op): New attribute.
33990         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
33991         (movsi_internal): Add LIW attributes.
33992         (andsi3): Likewise.
33993         (iorsi3): Likewise.
33994         (xorsi3): Likewise.
33995         (addsi3): Separate register and immediate alternatives.
33996         Add LIW attributes.
33997         (subsi3): Likewise.
33998         (cmpsi): Likewise.
33999         (aslsi3): Likewise.
34000         (lshrsi3): Likewise.
34001         (ashrsi3): Likewise.
34002         (liw): New pattern.
34003         * config/mn10300/mn10300.c (liw_op_names): New
34004         (mn10300_print_operand): Handle 'W' operand descriptor.
34005         (extract_bundle): New function.
34006         (check_liw_constraints): New function.
34007         (liw_candidate): New function.
34008         (mn10300_bundle_liw): New function.
34009         (mn10300_reorg): New function.
34010         (TARGET_MACHINE_DEPENDENT_REORG): Define.
34011         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
34012         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
34013         __LIW__ or __NO_LIW__.
34014         * doc/invoke.texi: Describe the -mliw command line option.
34015
34016 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34017
34018         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
34019         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
34020         pthread_mutex_unlock): Remove.
34021         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
34022         * config/pa/t-pa64: Likewise.
34023         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
34024         shared libc if not linking against libpthread.
34025         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
34026
34027 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
34028
34029         PR target/47558
34030         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
34031         on 10.6 and later to ensure that we always use the unwinder from
34032         the system.  Only add -no_compact_unwind when tarteting darwin
34033         10.6 or later.
34034
34035 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
34036
34037         PR target/46997
34038         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
34039         (vec_interleave_lowv2sf): Ditto.
34040         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
34041         (vec_extract_oddv2sf): Ditto.
34042
34043 2011-02-07  Mike Stump  <mikestump@comcast.net>
34044
34045         PR target/42333
34046         Add __ieee_divdc3 entry point.
34047         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
34048         entry point.
34049         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
34050         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
34051         * config/darwin.c (darwin_rename_builtins): Add.
34052         * config/darwin-protos.h (darwin_rename_builtins): Add.
34053
34054 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
34055
34056         PR target/47636
34057         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
34058         for the condition.
34059
34060 2011-02-07  Mike Stump  <mikestump@comcast.net>
34061
34062         * config/darwin.opt (mmacosx-version-min): Update default OS version.
34063
34064 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
34065
34066         PR target/47534
34067         * config/avr/libgcc.S (exit): Move .endfunc
34068
34069 2011-02-07  Richard Guenther  <rguenther@suse.de>
34070
34071         PR tree-optimization/47615
34072         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
34073         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
34074         (run_scc_vn): Initialize it.
34075         (visit_reference_op_load): Use it.
34076         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
34077
34078 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
34079
34080         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
34081         DImode trapping arithmetic libfuncs.
34082
34083 2011-02-07  Richard Guenther  <rguenther@suse.de>
34084
34085         PR tree-optimization/47621
34086         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
34087         two duplicates ...
34088         (execute_update_addresses_taken): ... here.  Make it more
34089         conservative in what we accept.
34090
34091 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
34092
34093         * config/sparc/freebsd.h (ASM_SPEC): Define.
34094         * config/sparc/vxworks.h (ASM_SPEC): Define.
34095
34096 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
34097
34098         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
34099
34100 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
34101
34102         * doc/invoke.texi: Remove reference to compiler internals from
34103         user documentation.
34104
34105         * reg-notes.def: Remove REG_VALUE_PROFILE.
34106         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
34107
34108 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
34109
34110         PR middle-end/47610
34111         * varasm.c (default_section_type_flags): If decl is NULL,
34112         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
34113
34114 2011-02-05  Jie Zhang  <jie@codesourcery.com>
34115
34116         PR debug/42631
34117         * web.c (entry_register): Don't clobber the number of the
34118         first uninitialized reference in used[].
34119
34120 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
34121
34122         PR tree-optimization/46194
34123         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
34124         (build_classic_dist_vector_1): Do not represent classic distance
34125         vectors when the access functions are variating in different loops.
34126
34127 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
34128
34129         * config/mips/iris6.opt: New.
34130         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
34131
34132 2011-02-04  Richard Henderson  <rth@redhat.com>
34133             Steve Ellcey  <sje@cup.hp.com>
34134
34135         PR target/46997
34136         * config/ia64/predicates.md (mux1_brcst_element): New.
34137         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
34138         * config/ia64/ia64.c (ia64_unpack_assemble): New.
34139         (ia64_unpack_sign): New.
34140         (ia64_expand_unpack): Rewrite using new routines.
34141         (ia64_expand_widen_sum): Ditto.
34142         (ia64_expand_dot_prod_v8qi): Ditto.
34143         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
34144         routines, add endian check.
34145         (pmpy2_even): Rename from pmpy2_r, add endian check.
34146         (pmpy2_odd): Rename from pmpy2_l, add endian check.
34147         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
34148         (vec_widen_smult_hi_v4hi): Ditto.
34149         (vec_widen_umult_lo_v4hi): Ditto.
34150         (vec_widen_umult_hi_v4hi): Ditto.
34151         (mulv2si3): Change endian checks.
34152         (sdot_prodv4hi): Rewrite with new calls.
34153         (udot_prodv4hi): New.
34154         (vec_pack_ssat_v4hi): Add endian check.
34155         (vec_pack_usat_v4hi): Ditto.
34156         (vec_pack_ssat_v2si): Ditto.
34157         (max1_even): Rename from max1_r, add endian check.
34158         (max1_odd): Rename from max1_l, add endian check.
34159         (*mux1_rev): Format change.
34160         (*mux1_mix): Ditto.
34161         (*mux1_shuf): Ditto.
34162         (*mux1_alt): Ditto.
34163         (*mux1_brcst_v8qi): Use new predicate.
34164         (vec_extract_evenv8qi): Remove endian check.
34165         (vec_extract_oddv8qi): Ditto.
34166         (vec_interleave_lowv4hi): Format change.
34167         (vec_interleave_highv4hi): Ditto.
34168         (mix2_even): Rename from mix2_r, add endian check.
34169         (mix2_odd): Rename from mux2_l, add endian check.
34170         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
34171         (vec_extract_evenodd_helper): Format change.
34172         (vec_extract_evenv4hi): Remove endian check.
34173         (vec_extract_oddv4hi): Remove endian check.
34174         (vec_interleave_lowv2si): Format change.
34175         (vec_interleave_highv2si): Format change.
34176         (vec_initv2si): Remove endian check.
34177         (vecinit_v2si): Add endian check.
34178         (reduc_splus_v2sf): Add endian check.
34179         (reduc_smax_v2sf): Ditto.
34180         (reduc_smin_v2sf): Ditto.
34181         (vec_initv2sf): Remove endian check.
34182         (fpack): Add endian check.
34183         (fswap): Add endian check.
34184         (vec_interleave_highv2sf): Add endian check.
34185         (vec_interleave_lowv2sf): Add endian check.
34186         (fmix_lr): Add endian check.
34187         (vec_setv2sf): Format change.
34188         (*vec_extractv2sf_0_be): Use shift to extract operand.
34189         (*vec_extractv2sf_1_be): New.
34190         (vec_pack_trunc_v4hi): Add endian check.
34191         (vec_pack_trunc_v2si): Format change.
34192
34193 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
34194
34195         PR inline-asm/23200
34196         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
34197         do bb, locus and block comparison and disallow loads if it is not set.
34198         (stmt_is_replaceable_p): New function.
34199         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
34200         callers.
34201         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
34202         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
34203         SSA_NAME_DEF_STMT.
34204         * tree-flow.h (stmt_is_replaceable_p): New prototype.
34205
34206 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
34207
34208         * config/rs6000/xilinx.opt: New.
34209         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
34210
34211 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
34212
34213         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
34214
34215 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
34216
34217         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
34218         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
34219         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
34220         secondary_reload_info, xtensa_secondary_reload): Remove.
34221         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
34222         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
34223         (xtensa_preferred_reload_class): Make static. Change return and
34224         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
34225         Use CONST_DOUBLE_P predicate.
34226         (xtensa_preferred_output_reload_class): New function.
34227         (xtensa_secondary_reload): Make static.
34228
34229 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
34230
34231         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
34232         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
34233         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
34234
34235 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
34236
34237         PR middle-end/31490
34238         * output.h (SECTION_RELRO): Define.
34239         (SECTION_MACH_DEP): Adjust.
34240         (get_variable_section): New prototype.
34241         * varpool.c (varpool_finalize_named_section_flags): New function.
34242         (varpool_assemble_pending_decls): Call it.
34243         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
34244         * cgraphunit.c (cgraph_output_in_order): Call
34245         varpool_finalize_named_section_flags.
34246         * varasm.c (get_section): Allow section flags conflicts between
34247         relro and read-only sections if the section hasn't been declared yet.
34248         Set SECTION_OVERRIDE after diagnosing section type conflict.
34249         (get_variable_section): No longer static.
34250         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
34251         readonly sections that need relocations.
34252         (decl_readonly_section_1): New function.
34253         (decl_readonly_section): Use it.
34254
34255         Revert:
34256         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
34257                     Steve Ellcey  <sje@cup.hp.com>
34258
34259         PR middle-end/31490
34260         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
34261         if section attribute used.
34262
34263 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
34264
34265         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
34266         * config/darwin.c (SECTION_NO_ANCHOR): Define.
34267         (darwin_init_sections): Remove assertion.
34268
34269 2011-02-03  Nick Clifton  <nickc@redhat.com>
34270
34271         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
34272         lt and ge.
34273         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
34274         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
34275         instead of "n" and "pz".
34276         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
34277         CC_FLAG_S.
34278
34279 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
34280
34281         PR target/47312
34282         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
34283         fma, expand FMA_EXPR as fma{,f,l} call.
34284
34285         PR lto/47274
34286         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
34287         copy them into a unsigned char variable and pass address of it to
34288         lto_output_data_stream.
34289
34290         PR target/47564
34291         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
34292         around backend_init_target and lang_dependent_init_target calls.
34293         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
34294         (verify_cgraph_node): Don't call set_cfun here.  Use
34295         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
34296         Set error_found for incorrectly represented calls to thunks.
34297
34298 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
34299
34300         PR debug/43092
34301         PR rtl-optimization/43494
34302         * rtl.h (for_each_inc_dec_fn): New type.
34303         (for_each_inc_dec): Declare.
34304         * rtlanal.c (struct for_each_inc_dec_ops): New type.
34305         (for_each_inc_dec_find_inc_dec): New fn.
34306         (for_each_inc_dec_find_mem): New fn.
34307         (for_each_inc_dec): New fn.
34308         * dse.c (struct insn_size): Remove.
34309         (replace_inc_dec, replace_inc_dec_mem): Remove.
34310         (emit_inc_dec_insn_before): New fn.
34311         (check_for_inc_dec): Use it, along with for_each_inc_dec.
34312         (canon_address): Pass mem modes to cselib_lookup.
34313         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
34314         (cselib_lookup_from_insn): Likewise.
34315         (cselib_subst_to_values): Likewise.
34316         * cselib.c (find_slot_memmode): New var.
34317         (cselib_find_slot): New fn.  Use it instead of
34318         htab_find_slot_with_hash everywhere.
34319         (entry_and_rtx_equal_p): Use find_slot_memmode.
34320         (autoinc_split): New fn.
34321         (rtx_equal_for_cselib_p): Rename and implement in terms of...
34322         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
34323         Deal with autoinc.  Special-case recursion into MEMs.
34324         (cselib_hash_rtx): Likewise.
34325         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
34326         address and MEM modes.
34327         (cselib_subst_to_values): Add memmode, pass it on.
34328         Deal with autoinc.
34329         (cselib_lookup): Add memmode argument, pass it on.
34330         (cselib_lookup_from_insn): Add memmode.
34331         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
34332         (struct cselib_record_autoinc_data): New.
34333         (cselib_record_autoinc_cb): New fn.
34334         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
34335         mode to cselib_lookup.  Reset autoinced REGs here instead of...
34336         (cselib_process_insn): ... here.
34337         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
34338         to cselib_lookup.
34339         (add_uses): Likewise, also to cselib_subst_to_values.
34340         (add_stores): Likewise.
34341         * sched-deps.c (add_insn_mem_dependence): Pass mode to
34342         cselib_subst_to_values.
34343         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
34344         * gcse.c (do_local_cprop): Adjusted.
34345         * postreload.c (reload_cse_simplify_set): Adjusted.
34346         (reload_cse_simplify_operands): Adjusted.
34347         * sel-sched-dump (debug_mem_addr_value): Pass mode.
34348
34349 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
34350
34351         PR tree-optimization/45122
34352         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
34353         unsafe assumptions when there's more than one loop exit.
34354
34355 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
34356
34357         PR target/47272
34358         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
34359         Document using vector double with the load/store builtins, and
34360         that the load/store builtins always use Altivec instructions.
34361
34362         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
34363         to use altivec memory instructions, even on VSX.
34364         (vector_altivec_store_<mode>): Ditto.
34365
34366         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
34367         function.
34368
34369         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
34370         V2DF, V2DI support to load/store overloaded builtins.
34371
34372         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
34373         altivec load/store builtins for V2DF/V2DI types.
34374
34375         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
34376         set avoid indexed addresses on power6 if -maltivec.
34377         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
34378         vector_altivec_load/vector_altivec_store builtins.
34379         (altivec_expand_st_builtin): Ditto.
34380         (altivec_expand_builtin): Add VSX memory builtins.
34381         (rs6000_init_builtins): Add V2DI types to internal types.
34382         (altivec_init_builtins): Add support for V2DF/V2DI altivec
34383         load/store builtins.
34384         (rs6000_address_for_altivec): Insure memory address is appropriate
34385         for Altivec.
34386
34387         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
34388         vec_vsx_ld and vec_vsx_st.
34389         (vsx_store_<mode>): Ditto.
34390
34391         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
34392         variables to hold long long types for VSX vector memory builtins.
34393         (RS6000_BTI_unsigned_long_long): Ditto.
34394         (long_long_integer_type_internal_node): Ditti.
34395         (long_long_unsigned_type_internal_node): Ditti.
34396
34397         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
34398         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
34399         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
34400
34401         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
34402         short cuts.
34403         (vec_vsx_st): Ditto.
34404
34405 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
34406
34407         * config/pa/pa-hpux10.opt: New.
34408         * config/hpux11.opt (pthread): New Driver option.
34409         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
34410         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
34411
34412 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
34413
34414         * config/ia64/vms.opt: New.
34415         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
34416
34417 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
34418
34419         PR target/47580
34420         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
34421         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
34422         generator functions.
34423         (vsx_floatuns<VSi><mode>2): Ditto.
34424         (vsx_fix_trunc<mode><VSi>2): Ditto.
34425         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
34426
34427 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
34428
34429         * config/i386/djgpp.opt (posix): New Driver option.
34430
34431 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
34432
34433         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
34434         Move to the unsupported targets list.
34435
34436 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
34437
34438         PR rtl-optimization/47525
34439         * df-scan.c: Update copyright years.
34440         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
34441         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
34442
34443 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34444
34445         * config/i386/sysv4.h (TARGET_VERSION): Remove.
34446         (SUBTARGET_RETURN_IN_MEMORY): Remove.
34447         (ASM_OUTPUT_ASCII): Remove.
34448         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
34449
34450 2011-02-02  Jeff Law  <law@redhat.com>
34451
34452         PR middle-end/47543
34453         * reload.c (find_reloads_address): Handle reg+d address where both
34454         components are invalid by reloading the entire address.
34455
34456 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
34457             Richard Guenther  <rguenther@suse.de>
34458
34459         PR tree-optimization/40979
34460         PR bootstrap/47044
34461         * passes.c (init_optimization_passes): After LIM call copy_prop
34462         and DCE to clean up.
34463         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
34464
34465 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
34466
34467         PR tree-optimization/47576
34468         PR tree-optimization/47555
34469         * doc/invoke.texi (scev-max-expr-complexity): Documented.
34470         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
34471         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
34472         * tree-scalar-evolution.c (follow_ssa_edge): Use
34473         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
34474
34475 2011-02-02  Richard Guenther  <rguenther@suse.de>
34476
34477         PR tree-optimization/47566
34478         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
34479
34480 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
34481
34482         PR debug/47106
34483         PR debug/47402
34484         * tree-inline.c (declare_return_variable): Remove unused caller
34485         variable.
34486
34487         PR debug/47106
34488         PR debug/47402
34489         * tree-flow-inline.h (clear_is_used, is_used_p): New.
34490         * cfgexpand.c (account_used_vars_for_block): Use them.
34491         * tree-nrv.c (tree_nrv): Likewise.
34492         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
34493         (dump_scope_block): Likewise.
34494         (remove_unused_locals): Likewise.
34495
34496         PR debug/47106
34497         PR debug/47402
34498         * tree-inline.c (declare_return_variable): Add result decl to
34499         local decls only once.
34500         * gimple-low.c (record_vars_into): Mark newly-created variables
34501         as referenced.
34502
34503 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
34504
34505         PR debug/47498
34506         PR debug/47501
34507         PR debug/45136
34508         PR debug/45130
34509         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
34510         debug insns.
34511         (no_real_insns_p, schedule_block, set_priorities): Drop special
34512         treatment of boundary debug insns.
34513         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
34514         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
34515         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
34516         (BOUNDARY_DEBUG_INSN_P): Likewise.
34517         (SCHEDULE_DEBUG_INSN_P): Likewise.
34518         * sched-rgn.c (init_ready_list): Drop special treatment of
34519         boundary debug insns.
34520         * final.c (rest_of_clean_state): Clear notes' BB.
34521
34522 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
34523
34524         * config/openbsd.opt (assert=): New Driver option.
34525
34526 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
34527
34528         * config/i386/nto.opt: New.
34529         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
34530
34531 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
34532
34533         * config/i386/netware.opt: New.
34534         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
34535
34536 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
34537
34538         * config/interix.opt (posix): New Driver option.
34539
34540 2011-02-01  DJ Delorie  <dj@redhat.com>
34541
34542         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
34543
34544         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
34545         class for A0/A1.
34546
34547 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
34548
34549         PR tree-optimization/47561
34550         * toplev.c (process_options): Print the Graphite flags.  Add
34551         flag_loop_flatten to the list of options requiring Graphite.
34552
34553 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
34554
34555         * config/i386/cygming.opt (posix): New Driver option.
34556
34557 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
34558
34559         * config/arm/vxworks.opt: New.
34560         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
34561
34562 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
34563
34564         * config/alpha/elf.opt: New.
34565         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
34566         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
34567
34568 2011-02-01  Richard Guenther  <rguenther@suse.de>
34569
34570         PR tree-optimization/47559
34571         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
34572         store-motion on references that can throw.
34573
34574 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
34575
34576         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
34577         * tree-pass.h (TDF_CSELIB): New macro.
34578         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
34579         cselib_lookup): Check for it rather than for TDF_DETAILS.
34580
34581 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
34582
34583         PR driver/47547
34584         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
34585         is HOST_BIT_BUCKET.
34586
34587         * opts.c (finish_options): Don't add x_aux_base_name if it is
34588         HOST_BIT_BUCKET.
34589
34590 2011-02-01  Richard Guenther  <rguenther@suse.de>
34591
34592         PR tree-optimization/47555
34593         Revert
34594         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
34595
34596         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
34597
34598 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
34599
34600         PR gcc/46692
34601         * config/lm32/t-lm32: Add multilib for all CPU options.
34602
34603 2011-02-01  Richard Guenther  <rguenther@suse.de>
34604
34605         PR tree-optimization/47541
34606         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
34607         sure to have a field at offset zero.
34608
34609 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
34610
34611         * config/arc/arc.opt (EB, EL): New Driver options.
34612
34613 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
34614
34615         * config/alpha/osf5.opt: New.
34616         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
34617
34618 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
34619
34620         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
34621
34622 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
34623
34624         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
34625         -floop-interchange.
34626         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
34627         is an alias of -floop-interchange and that it requires the
34628         Graphite infrastructure.
34629         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
34630         flag_loop_interchange based on the value of flag_tree_loop_linear.
34631
34632 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
34633             Richard Guenther  <rguenther@suse.de>
34634
34635         PR tree-optimization/47538
34636         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
34637         type instead of r1type, except for comparisons.  For right
34638         shifts and comparisons punt if there are mismatches in
34639         sizetype vs. non-sizetype types.
34640
34641 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34642
34643         * doc/sourcebuild.texi (Effective-Target Keywords): Document
34644         avx_runtime.
34645
34646 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34647
34648         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
34649         version number.
34650         * configure: Regenerate.
34651
34652 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34653
34654         * configure.ac (gcc_cv_ld_static_option): Define.
34655         (gcc_cv_ld_dynamic_option): Define.
34656         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
34657         instead.
34658         (HAVE_LD_STATIC_DYNAMIC): Update message.
34659         (LD_STATIC_OPTION): Define.
34660         (LD_DYNAMIC_OPTION): Define.
34661         * configure: Regenerate.
34662         * config.in: Regenerate.
34663         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
34664         HAVE_LD_STATIC_DYNAMIC]: Use them.
34665
34666 2011-01-31  Nick Clifton  <nickc@redhat.com>
34667
34668         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
34669         registers inside interrupt handlers if the handler is not a leaf
34670         function.
34671
34672 2011-01-31  Nick Clifton  <nickc@redhat.com>
34673
34674         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
34675         reg_renumber returning an INVALID_REGNUM.
34676
34677 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
34678
34679         PR libgcj/44341
34680         * doc/install.texi: Document host options discarded when cross
34681         configuring target libraries.
34682
34683 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
34684
34685         Reverted:
34686         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
34687         PR debug/45136
34688         PR debug/45130
34689         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
34690         debug insns.
34691         (no_real_insns_p, schedule_block, set_priorities): Drop special
34692         treatment of boundary debug insns.
34693         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
34694         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
34695         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
34696         (BOUNDARY_DEBUG_INSN_P): Likewise.
34697         (SCHEDULE_DEBUG_INSN_P): Likewise.
34698         * sched-rgn.c (init_ready_list): Drop special treatment of
34699         boundary debug insns.
34700         * final.c (rest_of_clean-state): Clear notes' BB.
34701
34702 2011-01-31  Alan Modra  <amodra@gmail.com>
34703
34704         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
34705         toc relative expressions as we do in print_operand_address.
34706
34707 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
34708
34709         * doc/extend.texi: Follow spelling conventions.
34710         * doc/invoke.texi: Fix a typo.
34711
34712 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
34713
34714         * config/hpux11.opt: New.
34715         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
34716         ia64*-*-hpux*): Use hpux11.opt.
34717
34718 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
34719
34720         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
34721         to tmake_file.
34722
34723 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
34724
34725         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
34726         support sites.
34727
34728 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
34729
34730         * doc/install.texi (Binaries): Remove outdated reference for
34731         Motorola 68HC11/68HC12 downloads.
34732
34733 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
34734
34735         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
34736         Drepper's paper.
34737
34738 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
34739
34740         PR bootstrap/47147
34741         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
34742         used by NetBSD.
34743
34744 2011-01-28  Ahmad Sharif  <asharif@google.com>
34745
34746         * value-prof.c (check_counter): Corrected error message.
34747
34748 2011-01-29  Jie Zhang  <jie@codesourcery.com>
34749
34750         * config/arm/arm.c (arm_legitimize_reload_address): New.
34751         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
34752         arm_legitimize_reload_address.
34753         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
34754
34755 2011-01-28  Ian Lance Taylor  <iant@google.com>
34756
34757         * godump.c (go_define): Ignore macros whose definitions include
34758         two adjacent operands.
34759
34760 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
34761
34762         PR target/42894
34763         * varasm.c (force_const_mem): Store copy of x in desc->constant
34764         instead of x itself.
34765         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
34766         itself into REG_EQUAL note.
34767
34768 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
34769
34770         * config/freebsd.opt (posix, rdynamic): New Driver options.
34771
34772 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34773
34774         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
34775         -Bstatic/-Bdynamic.
34776         * configure: Regenerate.
34777
34778 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
34779
34780         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
34781         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
34782
34783 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
34784
34785         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
34786         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
34787         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
34788         (s390_preferred_reload_class): Make static. Change return and
34789         'rclass' argument type to reg_class_t.
34790
34791 2011-01-27  Jan Hubicka  <jh@suse.cz>
34792
34793         PR middle-end/46949
34794         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
34795         (process_function_and_variable_attributes): Check defined weakrefs.
34796
34797 2011-01-27  Martin Jambor  <mjambor@suse.cz>
34798
34799         PR tree-optimization/47228
34800         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
34801         build_ref_for_offset.
34802
34803 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
34804
34805         * config/spu/spu-elf.h (ASM_SPEC): Remove.
34806
34807 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
34808
34809         PR rtl-optimization/46856
34810         * postreload.c (reload_combine_recognize_const_pattern): Do not
34811         separate cc0 setter and user on cc0 targets.
34812
34813 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
34814
34815         PR c/43082
34816         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
34817         passed a VOID_TYPE expression, immediately emit an error and
34818         return error_mark_node.
34819
34820 2011-01-26  Jeff Law  <law@redhat.com>
34821
34822         PR rtl-optimization/47464
34823         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
34824         rather than may_trap_p as needed.
34825
34826 2011-01-26  DJ Delorie  <dj@redhat.com>
34827
34828         PR rtl-optimization/46878
34829         * combine.c (insn_a_feeds_b): Check for the implicit cc0
34830         setter/user dependency as well.
34831
34832 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
34833
34834         PR rtl-optimization/44469
34835         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
34836         after removing trivially dead basic blocks.
34837
34838 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
34839
34840         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
34841         * config/frv/frv.h (LINK_SPEC): Likewise.
34842         * config/i386/netware.h (LINK_SPEC): Likewise.
34843         * config/m68k/linux.h (ASM_SPEC): Likewise.
34844         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
34845         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
34846         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
34847         * config/sparc/linux.h (ASM_SPEC): Likewise.
34848         * config/sparc/linux64.h (ASM_SPEC): Likewise.
34849         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
34850
34851 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
34852
34853         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
34854         * config/frv/frv.h (ASM_SPEC): Likewise.
34855         * config/m68k/linux.h (ASM_SPEC): Likewise.
34856         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
34857         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
34858         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
34859         * config/sparc/linux.h (ASM_SPEC): Likewise.
34860         * config/sparc/linux64.h (ASM_SPEC): Likewise.
34861         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
34862
34863 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
34864
34865         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
34866         * config/frv/frv.h (LINK_SPEC): Likewise.
34867         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
34868
34869 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
34870
34871         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
34872         * config/frv/frv.h (ASM_SPEC): Likewise.
34873         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
34874         * config/m68k/linux.h (ASM_SPEC): Likewise.
34875         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
34876         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
34877         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
34878         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
34879         * config/sparc/linux.h (ASM_SPEC): Likewise.
34880         * config/sparc/linux64.h (ASM_SPEC): Likewise.
34881         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
34882         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
34883
34884 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
34885
34886         PR target/46997
34887         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
34888         (*mux2): Ditto.
34889         (vec_extract_evenodd_help): Ditto.
34890         (vec_extract_evenv4hi): Ditto.
34891         (vec_extract_oddv4hi): Ditto.
34892         (vec_interleave_lowv2si): Ditto.
34893         (vec_interleave_highv2si): Ditto.
34894         (vec_extract_evenv2si): Ditto.
34895         (vec_extract_oddv2si: Ditto.
34896         (vec_pack_trunc_v2si): Ditto.
34897
34898 2011-01-22  Jan Hubicka  <jh@suse.cz>
34899
34900         PR target/47237
34901         * cgraph.h (cgraph_local_info): New field can_change_signature.
34902         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
34903         signature can change.
34904         (ipcp_estimate_growth): Call sequence simplify only if calle signature
34905         can change.
34906         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
34907         (cgraph_function_versioning): We can not change signature of functions
34908         that don't allow that.
34909         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
34910         (lto_input_node): Likewise.
34911         * ipa-inline.c (compute_inline_parameters): Compute
34912         local.can_change_signature.
34913         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
34914         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
34915         functions that can not change signature.
34916         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
34917         init_cumulative_args): Do not use local calling conventions
34918         for functions that can not change signature.
34919
34920 2011-01-22  Jan Hubicka  <jh@suse.cz>
34921
34922         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
34923
34924 2011-01-26  Richard Guenther  <rguenther@suse.de>
34925
34926         PR tree-optimization/47190
34927         * cgraphunit.c (process_common_attributes): New function.
34928         (process_function_and_variable_attributes): Use it.
34929
34930 2011-01-26  Richard Guenther  <rguenther@suse.de>
34931
34932         PR lto/47423
34933         * cgraphbuild.c (record_eh_tables): Record reference to personality
34934         function.
34935
34936 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
34937
34938         PR debug/45454
34939         * sel-sched.c (moveup_expr): Don't let debug insns prevent
34940         non-debug insns from moving up.
34941
34942 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
34943
34944         PR target/40125
34945         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
34946         t-dlldir{,-x} fragment for build and add it to tmake_file.
34947         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
34948         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
34949         * config/i386/t-dlldir: New file.
34950         (SHLIB_DLLDIR): Define.
34951         * config/i386/t-dlldir-x: New file.
34952         (SHLIB_DLLDIR): Define.
34953         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
34954         (SHLIB_INSTALL): Use it.
34955
34956 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
34957
34958         PR target/47246
34959         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
34960         lower bound of the allowed Thumb-2 coprocessor load/store
34961         index range to -256. Add explaining comment.
34962
34963 2011-01-25  Ian Lance Taylor  <iant@google.com>
34964
34965         * godump.c (go_define): Improve lexing of macro expansion to only
34966         accept expressions which match Go spec.
34967
34968 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
34969
34970         PR c++/43601
34971         * tree.c (handle_dll_attribute): Handle it.
34972         * doc/extend.texi (@item dllexport): Mention it.
34973         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
34974
34975 2011-01-25  Ian Lance Taylor  <iant@google.com>
34976
34977         PR tree-optimization/26854
34978         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
34979         (decl_jump_unsafe): Move higher in file, with no other change.
34980         (bind): Set has_jump_unsafe_decl if appropriate.
34981         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
34982         (check_earlier_gotos): Likewise.
34983         (c_check_switch_jump_warnings): Likewise.
34984
34985 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
34986
34987         * doc/invoke.texi (Warning Options): Add missing hyphen.
34988         (-fprofile-dir): Minor grammatical fixes.
34989         (-fbranch-probabilities): Likewise.
34990
34991 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
34992
34993         PR debug/45136
34994         PR debug/45130
34995         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
34996         debug insns.
34997         (no_real_insns_p, schedule_block, set_priorities): Drop special
34998         treatment of boundary debug insns.
34999         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
35000         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
35001         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
35002         (BOUNDARY_DEBUG_INSN_P): Likewise.
35003         (SCHEDULE_DEBUG_INSN_P): Likewise.
35004         * sched-rgn.c (init_ready_list): Drop special treatment of
35005         boundary debug insns.
35006         * final.c (rest_of_clean-state): Clear notes' BB.
35007
35008 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35009
35010         * Makefile.in (LAMBDA_H): Removed.
35011         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
35012         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
35013         lambda-trans.o, and tree-loop-linear.o.
35014         (lto-symtab.o): Remove dependence on LAMBDA_H.
35015         (tree-loop-linear.o): Remove rule.
35016         (lambda-mat.o): Same.
35017         (lambda-trans.o): Same.
35018         (lambda-code.o): Same.
35019         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
35020         (tree-vect-slp.o): Same.
35021         * hwint.h (gcd): Moved here.
35022         (least_common_multiple): Same.
35023         * lambda-code.c: Removed.
35024         * lambda-mat.c: Removed.
35025         * lambda-trans.c: Removed.
35026         * lambda.h: Removed.
35027         * tree-loop-linear.c: Removed.
35028         * lto-symtab.c: Do not include lambda.h.
35029         * omega.c (gcd): Removed.
35030         * passes.c (init_optimization_passes): Remove pass_linear_transform.
35031         * tree-data-ref.c (print_lambda_vector): Moved here.
35032         (lambda_vector_copy): Same.
35033         (lambda_matrix_copy): Same.
35034         (lambda_matrix_id): Same.
35035         (lambda_vector_first_nz): Same.
35036         (lambda_matrix_row_add): Same.
35037         (lambda_matrix_row_exchange): Same.
35038         (lambda_vector_mult_const): Same.
35039         (lambda_vector_negate): Same.
35040         (lambda_matrix_row_negate): Same.
35041         (lambda_vector_equal): Same.
35042         (lambda_matrix_right_hermite): Same.
35043         * tree-data-ref.h: Do not include lambda.h.
35044         (lambda_vector): Moved here.
35045         (lambda_matrix): Same.
35046         (dependence_level): Same.
35047         (lambda_transform_legal_p): Removed declaration.
35048         (lambda_collect_parameters): Same.
35049         (lambda_compute_access_matrices): Same.
35050         (lambda_vector_gcd): Same.
35051         (lambda_vector_new): Same.
35052         (lambda_vector_clear): Same.
35053         (lambda_vector_lexico_pos): Same.
35054         (lambda_vector_zerop): Same.
35055         (lambda_matrix_new): Same.
35056         * tree-flow.h (least_common_multiple): Removed declaration.
35057         * tree-parloops.c (lambda_trans_matrix): Moved here.
35058         (LTM_MATRIX): Same.
35059         (LTM_ROWSIZE): Same.
35060         (LTM_COLSIZE): Same.
35061         (LTM_DENOMINATOR): Same.
35062         (lambda_trans_matrix_new): Same.
35063         (lambda_matrix_vector_mult): Same.
35064         (lambda_transform_legal_p): Same.
35065         * tree-pass.h (pass_linear_transform): Removed declaration.
35066         * tree-ssa-loop.c (tree_linear_transform): Removed.
35067         (gate_tree_linear_transform): Removed.
35068         (pass_linear_transform): Removed.
35069         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
35070         flag_loop_interchange.
35071
35072 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
35073
35074         PR tree-optimization/47265
35075         PR tree-optimization/47443
35076         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
35077         if name still has some uses.
35078
35079 2011-01-25  Martin Jambor  <mjambor@suse.cz>
35080
35081         PR tree-optimization/47382
35082         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
35083         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
35084
35085 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
35086
35087         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
35088         sjlj_except_unwind_info.
35089
35090 2011-01-25  Richard Guenther  <rguenther@suse.de>
35091
35092         PR tree-optimization/47426
35093         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
35094         visible functions results escape.
35095
35096 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
35097
35098         PR target/45701
35099         * config/arm/arm.c (any_sibcall_uses_r3): New function.
35100         (arm_get_frame_offsets): Use it.
35101
35102 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35103             Jakub Jelinek  <jakub@redhat.com>
35104
35105         PR tree-optimization/47271
35106         * tree-if-conv.c (bb_postdominates_preds): New.
35107         (if_convertible_bb_p): Call bb_postdominates_preds.
35108         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
35109         (predicate_scalar_phi): Call bb_postdominates_preds.
35110
35111 2011-01-25  Nick Clifton  <nickc@redhat.com>
35112
35113         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
35114         * config/rx/rx.c (rx_function_value): Likewise.
35115         (rx_promote_function_mode): Likewise.
35116         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
35117         in order to make it legitimate.
35118         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
35119         make sure that the first operand is the same as the result register.
35120         (addsi3_unspec): Delete.
35121         (subdi3): Do not accept immediate operands.
35122         (subdi3_internal): Likewise.
35123
35124 2011-01-25  Jeff Law  <law@redhat.com>
35125
35126         PR rtl-optimization/37273
35127         * ira-costs.c (scan_one_insn): Detect constants living in memory and
35128         handle them like argument loads from stack slots.  Do not double
35129         count memory for memory constants and argument loads from stack slots.
35130
35131 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
35132
35133         PR tree-optimization/47427
35134         PR tree-optimization/47428
35135         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
35136         coalesce if the new root var would be TREE_READONLY.
35137
35138 2011-01-25  Richard Guenther  <rguenther@suse.de>
35139
35140         PR middle-end/47414
35141         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
35142         correct type for TBAA.
35143
35144 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35145
35146         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
35147         (close_phi_written_to_memory): Call for_each_index with
35148         dr_indices_valid_in_loop.
35149
35150 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35151
35152         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
35153         when it is initialized.
35154
35155 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35156
35157         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
35158         call to graphite_find_data_references_in_stmt.
35159         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
35160         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
35161         call to graphite_find_data_references_in_stmt.
35162         (analyze_drs_in_stmts): Same.
35163         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
35164         in which the scalar analysis of indices is performed.
35165         (create_data_ref): Same.  Update call to dr_analyze_indices.
35166         (find_data_references_in_stmt): Update call to create_data_ref.
35167         (graphite_find_data_references_in_stmt): Same.
35168         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
35169         declaration.
35170         (create_data_ref): Same.
35171         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
35172         call to create_data_ref.
35173
35174 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35175
35176         * graphite-sese-to-poly.c (build_poly_scop): Move
35177         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
35178
35179 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35180
35181         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
35182         VAR_DECL, PARM_DECL, and RESULT_DECL.
35183
35184 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35185
35186         * graphite-dependences.c (reduction_dr_1): Allow several reductions
35187         in a reduction PBB.
35188         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
35189         that have already been marked as PBB_IS_REDUCTION.
35190
35191 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35192
35193         * graphite-scop-detection.c (same_close_phi_node): New.
35194         (remove_duplicate_close_phi): New.
35195         (make_close_phi_nodes_unique): New.
35196         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
35197
35198 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35199
35200         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
35201         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
35202         of both data references to be the same.
35203
35204 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35205
35206         * graphite-dependences.c (build_lexicographical_constraint): Remove
35207         the gdim parameter.
35208         (build_lexicographical_constraint): Adjust call to
35209         ppl_powerset_is_empty.
35210         (dependence_polyhedron): Same.
35211         (graphite_legal_transform_dr): Same.
35212         (graphite_carried_dependence_level_k): Same.
35213         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
35214         parameter.
35215         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
35216
35217 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35218
35219         * graphite-sese-to-poly.c
35220         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
35221         (close_phi_written_to_memory): New.
35222         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
35223         and unshare_expr.
35224
35225 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35226
35227         * doc/install.texi: Update the expected version number of PPL to 0.11.
35228         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
35229         #if PPL_VERSION_MINOR < 11.
35230
35231 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35232
35233         * graphite-dependences.c: Include graphite-cloog-util.h.
35234         (new_poly_ddr): Inlined into dependence_polyhedron.
35235         (free_poly_ddr): Moved close by new_poly_ddr.
35236         (dependence_polyhedron_1): Renamed dependence_polyhedron.
35237         Early return NULL when ppl_powerset_is_empty returns true.
35238         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
35239         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
35240         (graphite_legal_transform_dr): Call new_poly_ddr.
35241         (graphite_carried_dependence_level_k): Same.
35242         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
35243         (dot_transformed_deps_stmt_1): Removed.
35244         (dot_deps_stmt_1): Call dot_deps_stmt_2.
35245         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
35246         (dot_deps_1): Call dot_deps_2.
35247         * Makefile.in (graphite-dependences.o): Add missing dependence on
35248         graphite-cloog-util.h.
35249
35250 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35251
35252         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
35253         (build_lexicographical_constraint): Same.
35254         (dependence_polyhedron_1): Same.
35255         (graphite_legal_transform_dr): Same.
35256         (graphite_carried_dependence_level_k): Same.
35257         * graphite-ppl.c (ppl_powerset_is_empty): New.
35258         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
35259         * tree-data-ref.c (dump_data_reference): Print the basic block index.
35260
35261 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35262
35263         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
35264         the "a followed by b" relation and document it.
35265
35266 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35267
35268         * graphite-dependences.c (build_lexicographical_constraint): Stop the
35269         iteration when the bag of constraints is empty.
35270
35271 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35272
35273         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
35274
35275 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35276
35277         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
35278         nest and two loop depths as parameters.
35279         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
35280         lst_perfect_nestify.
35281
35282 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35283
35284         * graphite-dependences.c (print_pddr): Call
35285         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
35286
35287 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
35288
35289         * graphite-ppl.c (debug_gmp_value): New.
35290         * graphite-ppl.h (debug_gmp_value): Declared.
35291
35292 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
35293
35294         * doc/install.texi: Document availability of cloog-0.16.
35295
35296 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
35297
35298         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
35299         invalid postdominance info.
35300
35301 2011-01-24  Jan Hubicka  <jh@suse.cz>
35302
35303         PR c/21659
35304         * doc/extend.texi (weak pragma): Drop claim that it must
35305         appear before definition.
35306         * varasm.c (merge_weak, declare_weak): Only sanity check
35307         that DECL is not output at a time it is declared weak.
35308
35309 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
35310
35311         * machmode.def: Fixed comments.
35312
35313 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
35314
35315         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
35316
35317 2011-01-24  Paul Koning  <ni1d@arrl.net>
35318
35319         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
35320         WORDS_BIG_ENDIAN.
35321
35322 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
35323
35324         PR target/46519
35325         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
35326         (block_info): Add scanned and prev.
35327         (move_or_delete_vzeroupper_2): Return if the basic block
35328         has been scanned and the upper 128bit state is unchanged
35329         from the last scan.
35330         (move_or_delete_vzeroupper_1): Return true if the exit
35331         state is changed.
35332         (move_or_delete_vzeroupper): Visit basic blocks using the
35333         work-list based algorithm based on vt_find_locations in
35334         var-tracking.c.
35335
35336         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
35337
35338 2011-01-24  Nick Clifton  <nickc@redhat.com>
35339
35340         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
35341         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
35342         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
35343         then define __v850e1__.
35344         * doc/invoke.texi: Document -mv850es.
35345
35346 2011-01-24  Richard Henderson  <rth@redhat.com>
35347
35348         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
35349         compound unordered comparisons.
35350         * config/rx/rx.c (rx_split_fp_compare): Remove.
35351         * config/rx/rx-protos.h: Update.
35352         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
35353         (cbranchsf4): Don't call rx_split_fp_compare.
35354         (*cbranchsf4): Use rx_split_cbranch.
35355         (*cmpsf): Don't accept "i" constraint.
35356         (*conditional_branch): Only valid after reload.
35357         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
35358
35359 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
35360
35361         PR target/47385
35362         * config/rs6000/altivec.md (vector constant splitters): Add
35363         support for creating vector single precision constants if -mvsx is
35364         used and we would create the constant using Altivec primitives.
35365
35366 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
35367             Richard Sandiford  <rdsandiford@googlemail.com>
35368
35369         PR rtl-optimization/47166
35370         * reload1.c (emit_reload_insns): Disable the spill_reg_store
35371         mechanism for PRE_MODIFY and POST_MODIFY.
35372         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
35373         reloadreg.
35374
35375 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
35376
35377         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
35378
35379 2011-01-22  Jan Hubicka  <jh@suse.cz>
35380
35381         PR lto/47333
35382         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
35383
35384 2011-01-22  Jan Hubicka  <jh@suse.cz>
35385
35386         PR tree-optimization/43884
35387         PR lto/44334
35388         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
35389         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
35390
35391 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
35392
35393         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
35394         * config/s390/s390.c (s390_register_move_cost,
35395         s390_memory_move_cost): New.
35396         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
35397
35398 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
35399
35400         PR middle-end/47401
35401         * except.c (sjlj_assign_call_site_values): Move setting the
35402         crtl->uses_eh_lsda flag to ...
35403         (sjlj_mark_call_sites): ... here.
35404         (sjlj_emit_function_enter): Support NULL dispatch label.
35405         (sjlj_build_landing_pads): In a function with no landing pads
35406         that still has must-not-throw regions, generate code to register
35407         a personality function with empty LSDA.
35408
35409 2011-01-21  Richard Henderson  <rth@redhat.com>
35410
35411         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
35412
35413         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
35414
35415         * compare-elim.c: New file.
35416         * Makefile.in (OBJS-common): Add it.
35417         (compare-elim.o): New.
35418         * common.opt (fcompare-elim): New.
35419         * opts.c (default_options_table): Add OPT_fcompare_elim.
35420         * tree-pass.h (pass_compare_elim_after_reload): New.
35421         * passes.c (init_optimization_passes): Add it.
35422         * recog.h: Protect against re-inclusion.
35423         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
35424         * doc/invoke.texi (-fcompare-elim): Document it.
35425         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
35426         * doc/tm.texi: Rebuild.
35427
35428 2011-01-22  Nick Clifton  <nickc@redhat.com>
35429
35430         * config/rx/rx.md (cstoresf4): Pass comparison operator to
35431         rx_split_fp_compare.
35432
35433 2011-01-22  Nick Clifton  <nickc@redhat.com>
35434
35435         * config/rx/rx.md (UNSPEC_CONST): New.
35436         (deallocate_and_return): Wrap the amount popped off the stack in
35437         an UNSPEC_CONST in order to stop it being rejected by
35438         -mmax-constant-size.
35439         (pop_and_return): Add a "(return)" rtx.
35440         (call): Drop the immediate operand.
35441         (call_internal): Likewise.
35442         (call_value): Likewise.
35443         (call_value_internal): Likewise.
35444         (sibcall_internal): Likewise.
35445         (sibcall_value_internal): Likewise.
35446         (sibcall): Likewise.  Generate an explicit call using
35447         sibcall_internal.
35448         (sibcall_value): Likewise.
35449         (mov<>): FAIL if a constant operand is not legitimate.
35450         (addsi3_unpsec): New pattern.
35451
35452         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
35453         (ok_for_max_constant): New function.
35454         (gen_safe_add): New function.
35455         (rx_expand_prologue): Use gen_safe_add.
35456         (rx_expand_epilogue): Likewise.
35457         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
35458         UNSPEC CONSTs.
35459
35460 2011-01-21  Jeff Law  <law@redhat.com>
35461
35462         PR tree-optimization/47053
35463         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
35464         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
35465         statements are deleted.
35466         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
35467         is nonempty, then purge dead edges and cleanup the CFG.
35468
35469 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
35470
35471         PR debug/47402
35472         Temporarily revert:
35473         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
35474         PR debug/47106
35475         * tree-dfa.c (create_var_ann): Mark variable as used.
35476
35477 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
35478
35479         PR middle-end/45566
35480         * except.c (convert_to_eh_region_ranges): Emit queued no-region
35481         notes from other section in hot/cold partitioning even if
35482         last_action is -3.  Increment call_site_base.
35483
35484         PR rtl-optimization/47366
35485         * fwprop.c (forward_propagate_into): Return bool.  If
35486         any changes are made, -fnon-call-exceptions is used and
35487         REG_EH_REGION note is present, call purge_dead_edges
35488         and return true if it purged anything.
35489         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
35490         any EH edges were purged.
35491
35492 2011-01-21  Jeff Law  <law@redhat.com>
35493
35494         PR rtl-optimization/41619
35495         * caller-save.c (setup_save_areas): Break out code to determine
35496         which hard regs are live across calls by examining the reload chains
35497         so that it is always used.
35498         Eliminate code which checked REG_N_CALLS_CROSSED.
35499
35500 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
35501
35502         PR tree-optimization/47355
35503         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
35504         NOP has non-debug uses beyond PHIs in new_bb.
35505
35506 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
35507
35508         PR debug/47106
35509         * cfgexpand.c (account_used_vars_for_block): Only account vars
35510         that are annotated as used.
35511         (estimated_stack_frame_size): Don't set TREE_USED.
35512         * tree-dfa.c (create_var_ann): Mark variable as used.
35513
35514 2011-01-21  Richard Guenther  <rguenther@suse.de>
35515
35516         PR middle-end/47395
35517         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
35518
35519 2011-01-21  Richard Guenther  <rguenther@suse.de>
35520
35521         PR tree-optimization/47365
35522         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
35523         (vn_reference_lookup_pieces): Adjust.
35524         (vn_reference_lookup): Likewise.
35525         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
35526         (vn_reference_lookup_3): Only look through kills if in
35527         VN_WALKREWRITE mode.
35528         (vn_reference_lookup_pieces): Adjust.
35529         (vn_reference_lookup): Likewise.
35530         (visit_reference_op_load): Likewise.
35531         (visit_reference_op_store): Likewise.
35532         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
35533         (compute_avail): Likewise.
35534         (eliminate): Likewise.
35535
35536 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
35537
35538         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
35539         DECL_IGNORED_P non-reg vars if they are used.
35540
35541         PR tree-optimization/47391
35542         * varpool.c (const_value_known_p): Return false if
35543         decl is volatile.
35544
35545 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
35546
35547         PR bootstrap/47215
35548         * config/i386/i386.c (ix86_local_alignment): Handle
35549         case for va_list_type_node is nil.
35550         (ix86_canonical_va_list_type): Likewise.
35551
35552 2011-01-21  Alan Modra  <amodra@gmail.com>
35553
35554         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
35555         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
35556
35557 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35558
35559         * config/arm/arm.md (define_attr type): Rename f_load
35560         and f_store to f_fpa_load and f_fpa_store. Update.
35561         (write_conflict): Deal with rename fallout.
35562         (*push_fp_multi): Likewise.
35563         * config/arm/fpa.md (f_load): Use f_fpa_load.
35564         (f_store): Use f_fpa_store.
35565         (*movsf_fpa): Likewise.
35566         (*movdf_fpa): Likewise.
35567         (*movxf_fpa): Likewise.
35568         (*thumb2_movsf_fpa): Likewise.
35569         (*thumb2_movdf_fpa): Likewise.
35570         (*thumb2_movxf_fpa): Likewise.
35571         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
35572         f_loadd and f_stored.
35573         (*thumb2_movdi_vfp): Likewise.
35574         (*thumb2_movsf_vfp): Fix attribute to f_loads.
35575         (*thumb2_movsi_vfp): Likewise.
35576         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
35577         Use f_loads instead of f_load.
35578         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
35579
35580 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
35581
35582         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
35583         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
35584         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
35585         (xtensa_mode_dependent_address_p): New function.
35586         (constantpool_address_p): Make static. Change return type to bool.
35587         Change argument type to const_rtx. Use CONST_INT_P predicate.
35588
35589 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
35590
35591         PR debug/46583
35592         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
35593
35594 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
35595
35596         PR debug/47283
35597         * cfgexpand.c (expand_debug_expr): Instead of generating
35598         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
35599         etc. handling.
35600
35601 2011-01-20  Richard Guenther  <rguenther@suse.de>
35602
35603         PR middle-end/47370
35604         * tree-inline.c (remap_gimple_op_r): Recurse manually for
35605         the pointer operand of MEM_REFs.
35606
35607 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
35608
35609         PR tree-optimization/46130
35610         * ipa-split.c (consider_split): If return_bb contains non-virtual
35611         PHIs other than for retval or if split_function would not adjust it,
35612         refuse to split.
35613
35614 2011-01-20  Richard Guenther  <rguenther@suse.de>
35615
35616         PR tree-optimization/47167
35617         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
35618         Revert previous change, only avoid enumeral type changes.
35619
35620 2011-01-19  Mike Stump  <mikestump@comcast.net>
35621
35622         * doc/tm.texi.in (BRANCH_COST): Englishify.
35623         * doc/tm.texi (BRANCH_COST): Likewise.
35624
35625 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
35626
35627         PR c++/47291
35628         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
35629         (gen_scheduled_generic_parms_dies): New functions.
35630         (gen_struct_or_union_type_die): Schedule template parameters DIEs
35631         generation for the end of CU compilation.
35632         (dwarf2out_finish): Generate template parameters DIEs here.
35633
35634 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
35635
35636         PR debug/46240
35637         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
35638         debug bind stmt on merge edges.
35639
35640 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
35641
35642         PR debug/47079
35643         PR debug/46724
35644         * function.c (instantiate_expr): Instantiate incoming rtl of
35645         implicit arguments, and recurse on VALUE_EXPRs.
35646         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
35647         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
35648
35649 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
35650
35651         * c-parser.c (c_parser_for_statement): Initialize
35652         collection_expression.
35653
35654 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
35655
35656         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
35657
35658 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
35659
35660         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
35661         (LINK_SHLIB_SPEC): Don't use %(link_path).
35662         (SUBTARGET_EXTRA_SPECS): Remove link_path.
35663
35664 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
35665
35666         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
35667         (NO_SHARED_LIB_SUPPORT): Remove.
35668         (LINK_SHLIB_SPEC): Remove one conditional definition.
35669
35670 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
35671
35672         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
35673         %{call_shared}.
35674         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
35675         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
35676         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
35677         %{call_shared} and conditionals on these options not being passed.
35678         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
35679         %{call_shared}.
35680
35681 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
35682
35683         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
35684         simplify.
35685
35686         * ipa-split.c: Spelling fixes.
35687
35688 2011-01-19  Richard Henderson  <rth@redhat.com>
35689
35690         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
35691         (*mulsi3): Likewise.
35692
35693         * longlong.h [__mn10300__] (count_leading_zeros): New.
35694         [__mn10300__] (umul_ppmm, smul_ppmm): New.
35695         [__mn10300__] (add_ssaaaa, subddmmss): New.
35696         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
35697         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
35698
35699 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
35700
35701         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
35702
35703 2011-01-19  Richard Henderson  <rth@redhat.com>
35704
35705         * config/mn10300/mn10300.md (addsi3_flags): New.
35706         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
35707         (subsi3_flags, subc_internal, subdi3): New.
35708         (subdi3_internal, *subdi3_degenerate): New.
35709         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
35710
35711         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
35712         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
35713         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
35714         * config/mn10300/mn10300-protos.h: Update.
35715         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
35716         (return_ret): Likewise.  Rename from return_internal_regs.
35717         (return_internal): Remove.
35718
35719         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
35720         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
35721         (mn10300_legitimate_constant_p): Likewise.
35722         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
35723         (mn10300_frame_size): New.
35724         (mn10300_expand_prologue): Use it.
35725         (mn10300_expand_epilogue): Likewise.
35726         (mn10300_initial_offset): Likewise.
35727         * config/mn10300/mn10300-protos.h: Update.
35728         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
35729         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
35730         (prologue, epilogue, return_internal): Tidy output code.
35731         (mn10300_store_multiple_operation, return): Likewise.
35732         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
35733         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
35734         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
35735         (load_pic, am33_load_pic): New.
35736         (mn10300_load_pic0, mn10300_load_pic1): New.
35737
35738         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
35739         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
35740         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
35741         (cc_flags_for_mode, cc_flags_for_code): New.
35742         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
35743         overflow flag is not valid.  Validate that the flags we need
35744         for the comparison are valid.
35745         (mn10300_output_cmp): Remove.
35746         (mn10300_output_add): New.
35747         (mn10300_select_cc_mode): Use cc_flags_for_code.
35748         (mn10300_split_cbranch): New.
35749         (mn10300_match_ccmode): New.
35750         (mn10300_split_and_operand_count): New.
35751         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
35752         to the function.
35753         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
35754         (addsi3): ... here.  Use mn10300_output_add.
35755         (*addsi3_flags): New.
35756         (*am33_subsi3, *mn10300_subsi3): Merge...
35757         (subsi3): ... here.  Use attribute isa.
35758         (*subsi3_flags): New.
35759         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
35760         when possible.
35761         (*am33_andsi3, *mn10300_andsi3): Merge...
35762         (andsi3): ... here.
35763         (*andsi3_flags): New.
35764         (andsi3 splitters): New.
35765         (*am33_iorsi3, *mn10300_iorsi3): Merge...
35766         (iorsi3): ... here.
35767         (*iorsi3_flags): New.
35768         (*am33_xorsi3, *mn10300_xorsi3): Merge...
35769         (xorsi3): ... here.
35770         (*xorsi3_flags): New.
35771         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
35772         (one_cmplsi2): ... here.
35773         (*one_cmplsi2_flags): New.
35774         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
35775         instead of "dax" in constraints.  Use mn10300_split_cbranch.
35776         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
35777         use matching constraints to eliminate a self-comparison.
35778         (*integer_conditional_branch): Rename from integer_conditional_branch.
35779         Use int_mode_flags to match CC_REG.
35780         (*cbranchsi4_btst, *btstsi): New.
35781         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
35782         mn10300_split_cbranch.
35783         (*am33_cmpsf): Rename from am33_cmpsf.
35784         (*float_conditional_branch): Rename from float_conditional_branch.
35785         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
35786         (zero_extendqisi2): ... here.
35787         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
35788         (zero_extendhisi2): ... here.
35789         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
35790         (extendqisi2): ... here.
35791         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
35792         (extendhisi2): ... here.
35793         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
35794         (ashlsi3): ... here.
35795         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
35796         (lshrsi3): ... here.
35797         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
35798         (ashrsi3): ... here.
35799         (consecutive add peephole): Remove.
35800         * config/mn10300/predicates.md (label_ref_operand): New.
35801         (int_mode_flags): New.
35802         (CCZN_comparison_operator): New.
35803
35804         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
35805         (throughput_42_latency_43): New reservation.
35806         (mulsidi3, umulsidi3): New expanders.
35807         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
35808         the MDR register to allocation; separately allocate the low and
35809         high parts of the DImode result.
35810         (umulsidi3_internal): Similarly.
35811         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
35812         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
35813         (udivsi3, umodsi3): Remove.
35814         (udivmodsi4, divmodsi4): New expanders.
35815         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
35816         (*divmodsi4): Simiarly.
35817         (ext_internal): New.
35818
35819         * config/mn10300/constraints.md ("z"): New constraint.
35820         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
35821         (FIXED_REGISTERS): Don't fix MDR.
35822         (CALL_USED_REGSITERS): Reformat nicely.
35823         (REG_ALLOC_ORDER): Add MDR.
35824         (enum regclass): Add MDR_REGS.
35825         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
35826         (IRA_COVER_CLASSES): Add MDR_REGS.
35827         (REGNO_REG_CLASS): Handle MDR_REG.
35828         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
35829         (mn10300_register_move_cost): Likewise.
35830         * config/mn10300/mn10300.md (MDR_REG): New.
35831         (*movsi_internal): Handle moves to/from MDR_REGS.
35832
35833         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
35834         POST_MODIFY.
35835         (mn10300_secondary_reload): Tidy combination reload classes.
35836         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
35837         addresses for AM33.  Allow symbolic offsets for reg+imm.
35838         (mn10300_regno_in_class_p): New.
35839         (mn10300_legitimize_reload_address): New.
35840         * config/mn10300/mn10300.h (enum reg_class): Remove
35841         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
35842         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
35843         SP_OR_GENERAL_REGS.
35844         (REG_CLASS_NAMES): Update to match.
35845         (REG_CLASS_CONTENTS): Likewise.
35846         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
35847         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
35848         (REGNO_IN_RANGE_P): Remove.
35849         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
35850         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
35851         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
35852         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
35853         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
35854         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
35855         (REGNO_GENERAL_P): New.
35856         (HAVE_POST_MODIFY_DISP): New.
35857         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
35858         (LEGITIMIZE_RELOAD_ADDRESS): New.
35859         * config/mn10300/mn10300-protos.h: Update.
35860
35861         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
35862         DATA_REGS for AM33 stack-pointer destination.
35863         (mn10300_preferred_output_reload_class): Likewise.
35864         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
35865         into a form appropriate for ...
35866         (TARGET_SECONDARY_RELOAD): New.
35867         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
35868         * config/mn10300/mn10300-protos.h: Update.
35869         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
35870         reload_insi; use the "A" constraint for the scratch; handle AM33
35871         moves of sp to non-address registers.
35872
35873         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
35874         (*movqi_internal): ... here.
35875         (*am33_movhi, *mn10300_movhi): Merge into...
35876         (*movhi_internal): ... here.
35877         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
35878         as the source/destination of moves from/to SP.
35879         (movsf): Only allow for AM33-2.
35880         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
35881         any integer constant constraint.  Only allow for AM33-2.  Tidy
35882         all of the alternative outputs.
35883         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
35884         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
35885         for MN103.
35886         (udivsi3, umodsi3): New patterns for MN103 only.
35887
35888 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
35889
35890         * doc/tm.texi.in: Spell out that a lack of register class unions
35891         can lead to ICEs.
35892         * doc/tm.texi: Regenerate.
35893
35894 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
35895
35896         PR rtl-optimization/47337
35897         * dce.c (check_argument_store): New function.
35898         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
35899
35900         PR tree-optimization/47290
35901         * tree-eh.c (infinite_empty_loop_p): New function.
35902         (cleanup_empty_eh): Use it.
35903
35904 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
35905
35906         PR target/46997
35907         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
35908         (a64_expand_widen_sum): Ditto.
35909         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
35910         (vec_extract_evenodd_help): Ditto.
35911         (vec_extract_evenv4hi): Ditto.
35912         (vec_extract_oddv4hi): Ditto.
35913         (vec_extract_evenv2si): Ditto.
35914         (vec_extract_oddv2si): Ditto.
35915         (vec_extract_evenv2sf): Ditto.
35916         (vec_extract_oddv2sf): Ditto.
35917         (vec_pack_trunc_v4hi: Ditto.
35918         (vec_pack_trunc_v2si): Ditto.
35919         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
35920         (vec_interleave_highv8qi): Ditto.
35921         (mix1_r): Ditto.
35922         (vec_extract_oddv8qi): Ditto.
35923         (vec_interleave_lowv4hi): Ditto.
35924         (vec_interleave_highv4hi): Ditto.
35925         (vec_interleave_lowv2si): Ditto.
35926         (vec_interleave_highv2si): Ditto.
35927
35928 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35929
35930         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
35931         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
35932         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
35933         (pa_c_mode_for_suffix): New.
35934         (TARGET_EXPAND_BUILTIN): Define.
35935         (TARGET_C_MODE_FOR_SUFFIX): Define.
35936         (pa_builtins): Define.
35937         (pa_init_builtins): Register __float128 type and init new support
35938         builtins.
35939         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
35940         * config/pa/quadlib.c (_U_Qfcopysign): New.
35941
35942 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
35943
35944         PR middle-end/46894
35945         * explow.c (allocate_dynamic_stack_space): Do not assume more than
35946         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
35947         are defined.
35948
35949 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
35950
35951         PR tree-optimization/47179
35952         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
35953         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
35954
35955 2011-01-18  Richard Guenther  <rguenther@suse.de>
35956
35957         PR rtl-optimization/47216
35958         * emit-rtl.c: Include tree-flow.h.
35959         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
35960         of replicating it with different semantics.
35961         * Makefile.in (emit-rtl.o): Adjust.
35962
35963 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35964
35965         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
35966         (cortex_a9_dp): Handle neon types correctly.
35967
35968 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
35969
35970         PR rtl-optimization/47299
35971         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
35972         subtarget.  Use normal multiplication if both operands are constants.
35973         * expmed.c (expand_widening_mult): Don't try to optimize constant
35974         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
35975         before using it.
35976
35977 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35978
35979         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
35980         spacing after 'e.g.', typos, comma, hyphenation.
35981
35982 2011-01-17  Richard Henderson  <rth@redhat.com>
35983
35984         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
35985         (rx_restricted_mem_operand): New.
35986         (rx_shift_operand): Use register_operand.
35987         (rx_source_operand, rx_compare_operand): Likewise.
35988         * config/rx/rx.md (addsi3_flags): New expander.
35989         (adddi3): Rewrite as expander.
35990         (adc_internal, *adc_flags, adddi3_internal): New patterns.
35991         (subsi3_flags): New expander.
35992         (subdi3): Rewrite as expander.
35993         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
35994
35995         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
35996         (rx_init_builtins): Remove sat builtin.
35997         (rx_expand_builtin): Likewise.
35998         * config/rx/rx.md (ssaddsi3): New.
35999         (*sat): Rename from sat.  Represent the CC_REG input.
36000
36001         * config/rx/predicates.md (rshift_operator): New.
36002         * config/rx/rx.c (rx_expand_insv): Remove.
36003         * config/rx/rx-protos.h: Update.
36004         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
36005         operand to the canonical position.
36006         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
36007         (*bitclr, *bitclr_in_memory): Similarly.
36008         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
36009         (insv): Retain the zero_extract in the expansion.
36010
36011         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
36012         (bswaphi2, bitinvert, revw): Likewise.
36013
36014         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
36015         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
36016         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
36017         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
36018         (bitset, bitset_in_memory): Likewise.
36019         (bitinvert, bitinvert_in_memory): Likewise.
36020         (bitclr, bitclr_in_memory): Likewise.
36021         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
36022         (rx_strend, rx_cmpstrn): Likewise.
36023         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
36024         (bitop peep2 patterns): Remove.
36025
36026         * config/rx/rx.c (rx_match_ccmode): New.
36027         * config/rx/rx-protos.h: Update.
36028         * config/rx/rx.md (abssi2): Clobber, don't set flags.
36029         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
36030         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
36031         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
36032         (fix_truncsfsi2, floatsisf2): Likewise.
36033         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
36034         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
36035         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
36036         (*subsi3_flags, *xorsi3_flags): New.
36037
36038         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
36039
36040         * config/rx/rx.c (rx_print_operand): Remove workaround for
36041         unsplit comparison operations.
36042
36043         * config/rx/rx.md (movsicc): Split after reload.
36044         (*movsicc): Merge *movsieq and *movsine via match_operator.
36045         (*stcc): New pattern.
36046
36047         * config/rx/rx.c (rx_float_compare_mode): Remove.
36048         * config/rx/rx.h (rx_float_compare_mode): Remove.
36049         * config/rx/rx.md (cstoresi4): Split after reload.
36050         (*sccc): New pattern.
36051
36052         * config/rx/predicates.md (label_ref_operand): New.
36053         (rx_z_comparison_operator): New.
36054         (rx_zs_comparison_operator): New.
36055         (rx_fp_comparison_operator): New.
36056         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
36057         Validate that the flags are set properly for the comparison.
36058         (rx_gen_cond_branch_template): Remove.
36059         (rx_cc_modes_compatible): Remove.
36060         (mode_from_flags): New.
36061         (flags_from_code): Rename from flags_needed_for_conditional.
36062         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
36063         (rx_select_cc_mode): Likewise.
36064         (rx_split_fp_compare): New.
36065         (rx_split_cbranch): New.
36066         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
36067         (*cbranchsi4): Use match_operator and rx_split_cbranch.
36068         (*cbranchsf4): Similarly.
36069         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
36070         match_operator and rx_split_cbranch.
36071         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
36072         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
36073         (*cmpsi): Rename from cmpsi.
36074         (*tstsi): Rename from tstsi.
36075         (*cmpsf): Rename from cmpsf; use CC_Fmode.
36076         (*conditional_branch): Rename from conditional_branch.
36077         (*reveresed_conditional_branch): Remove.
36078         (b<code>): Remove expander.
36079         * config/rx/rx-protos.h: Update.
36080
36081         * config/rx/rx.c (rx_compare_redundant): Remove.
36082         * config/rx/rx.md (cmpsi): Don't use it.
36083         * config/rx/rx-protos.h: Update.
36084
36085         * config/rx/rx-modes.def (CC_F): New mode.
36086         * config/rx/rx.c (rx_select_cc_mode): New.
36087         * config/rx/rx.h (SELECT_CC_MODE): Use it.
36088         * config/rx/rx-protos.h: Update.
36089
36090 2011-01-17  Richard Henderson  <rth@redhat.com>
36091
36092         * except.c (dump_eh_tree): Fix stray ; after for statement.
36093
36094 2011-01-17  Richard Guenther  <rguenther@suse.de>
36095
36096         PR tree-optimization/47313
36097         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
36098         handling before copying the body.  Properly deal with
36099         by-reference result in SSA form.
36100
36101 2011-01-17  Ian Lance Taylor  <iant@google.com>
36102
36103         PR target/47219
36104         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
36105         (struct_value_alias_set): Don't define.
36106         (sparc_option_override): Don't set sparc_sr_alias_set and
36107         struct_value_alias_set.
36108         (save_or_restore_regs): Use gen_frame_mem rather than calling
36109         set_mem_alias_set.
36110         (sparc_struct_value_rtx): Likewise.
36111
36112 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
36113
36114         PR target/47318
36115         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
36116         (_mm_maskstore_pd): Likewise.
36117         (_mm_maskload_ps): Likewise.
36118         (_mm_maskstore_ps): Likewise.
36119         (_mm256_maskload_pd): Change mask to __m256i.
36120         (_mm256_maskstore_pd): Likewise.
36121         (_mm256_maskload_ps): Likewise.
36122         (_mm256_maskstore_ps): Likewise.
36123
36124         * config/i386/i386-builtin-types.def: Updated.
36125         (ix86_expand_special_args_builtin): Likewise.
36126
36127         * config/i386/i386.c (bdesc_special_args): Update
36128         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
36129         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
36130         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
36131         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
36132
36133         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
36134         Use <avxpermvecmode> on mask register.
36135         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
36136
36137 2011-01-17  Olivier Hainque  <hainque@adacore.com>
36138             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
36139             Eric Botcazou  <ebotcazou@adacore.com>
36140
36141         PR target/46655
36142         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
36143         if <= USHRT_MAX in 32-bit mode.
36144
36145 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36146
36147         * doc/install.texi (Configuration, Specific): Wrap long
36148         lines in examples.  Allow line wrapping in long options
36149         and URLs where beneficial for PDF output.
36150
36151 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
36152
36153         * config/mips/mips.c (mips_classify_symbol): Don't return
36154         SYMBOL_PC_RELATIVE for nonlocal labels.
36155
36156 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
36157
36158         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
36159
36160 2011-01-15  Jan Hubicka  <jh@suse.cz>
36161
36162         PR tree-optimization/47276
36163         * ipa.c (function_and_variable_visibility): Do not try to mark alias
36164         declarations as needed.
36165
36166 2011-01-15  Martin Jambor  <mjambor@suse.cz>
36167
36168         * common.opt (fdevirtualize): New flag.
36169         * doc/invoke.texi (Option Summary): Document it.
36170         * opts.c (default_options_table): Add devirtualize flag.
36171         * ipa-prop.c (detect_type_change): Return immediately if
36172         devirtualize flag is not set.
36173         (detect_type_change_ssa): Likewise.
36174         (compute_known_type_jump_func): Likewise.
36175         (ipa_analyze_virtual_call_uses): Likewise.
36176
36177 2011-01-14  Martin Jambor  <mjambor@suse.cz>
36178
36179         PR tree-optimization/45934
36180         PR tree-optimization/46302
36181         * ipa-prop.c (type_change_info): New type.
36182         (stmt_may_be_vtbl_ptr_store): New function.
36183         (check_stmt_for_type_change): Likewise.
36184         (detect_type_change): Likewise.
36185         (detect_type_change_ssa): Likewise.
36186         (compute_complex_assign_jump_func): Check for dynamic type change.
36187         (compute_complex_ancestor_jump_func): Likewise.
36188         (compute_known_type_jump_func): Likewise.
36189         (compute_scalar_jump_functions): Likewise.
36190         (ipa_analyze_virtual_call_uses): Likewise.
36191         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
36192
36193 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36194
36195         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
36196         * config/i386/i386.opt (msse5): New Alias.
36197
36198 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36199
36200         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
36201         * config/sparc/linux64.h (CC1_SPEC): Likewise.
36202         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
36203         * config/sparc/sparc.h (CC1_SPEC): Likewise.
36204
36205 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36206
36207         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
36208         -mcpu options.
36209         * config/sparc/linux64.h (CC1_SPEC): Likewise.
36210         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
36211         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
36212         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
36213         Likewise.
36214         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
36215
36216 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36217
36218         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
36219
36220 2011-01-14  Mike Stump  <mikestump@comcast.net>
36221
36222         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
36223         * config/fr30/fr30.md: Likweise
36224         (movsi_push): Likewise.
36225         (movsi_pop): Likewise.
36226         (enter_func): Likewise.
36227         * config/moxie/moxie.md (movsi_push): Likewise.
36228         (movsi_pop): Likewise.
36229
36230 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36231
36232         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
36233         %{no_archive} %{exact_version}.
36234         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
36235         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
36236         %{no_archive} %{exact_version}.
36237         * config/mips/openbsd.h (LINK_SPEC): Likewise.
36238         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
36239         * config/mips/vxworks.h: Likewise.
36240
36241 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36242
36243         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
36244
36245 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36246
36247         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
36248         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
36249
36250 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36251
36252         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
36253         -nodefaultlib.
36254
36255 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36256
36257         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
36258         for mcpu not cpu.
36259         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
36260         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
36261         not cpu.
36262         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
36263         Don't handle -shlib.
36264
36265 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36266
36267         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
36268         (CC1_SPEC): Don't handle -profile.
36269
36270 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36271
36272         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
36273         * config/mips/mips.h (CC1_SPEC): Likewise.
36274
36275 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36276
36277         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
36278         * config/mips/mips.h (CC1_SPEC): Likewise.
36279
36280 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36281
36282         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
36283         * config/m32r/linux.h (LINK_SPEC): Likewise.
36284         * config/mips/linux.h (LINK_SPEC): Likewise.
36285         * config/mips/linux64.h (LINK_SPEC): Likewise.
36286         * config/sparc/linux.h (LINK_SPEC): Likewise.
36287         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
36288         LINK_SPEC): Likewise.
36289         * config/xtensa/linux.h (LINK_SPEC): Likewise.
36290
36291 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36292
36293         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
36294         %{version:-v}.
36295         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
36296
36297 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36298
36299         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
36300         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
36301
36302 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
36303
36304         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
36305
36306 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36307
36308         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
36309         supports -Bstatic/-Bdynamic.
36310         * configure: Regenerate.
36311
36312 2011-01-14  Jan Hubicka  <jh@suse.cz>
36313             Jack Howarth  <howarth@bromo.med.uc.edu>
36314
36315         PR target/46037
36316         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
36317         when checking debug_info_level. Test write_symbols instead of
36318         debug_hooks->var_location when setting flag_var_tracking_uninit.
36319
36320 2011-01-14  Richard Guenther  <rguenther@suse.de>
36321
36322         PR tree-optimization/47179
36323         * target.def (ref_may_alias_errno): New target hook.
36324         * targhooks.h (default_ref_may_alias_errno): Declare.
36325         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
36326         (default_ref_may_alias_errno): New function.
36327         * target.h (struct ao_ref_s): Declare.
36328         * tree-ssa-alias.c: Include target.h.
36329         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
36330         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
36331         (targhooks.o): Likewise.
36332         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
36333         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
36334
36335 2011-01-14  Richard Guenther  <rguenther@suse.de>
36336
36337         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
36338
36339 2011-01-14  Richard Guenther  <rguenther@suse.de>
36340
36341         PR tree-optimization/47280
36342         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
36343         return CFG changes.
36344         (tree_ssa_forward_propagate_single_use_vars): Deal with
36345         CFG changes from associate_plusminus.
36346
36347 2011-01-14  Richard Guenther  <rguenther@suse.de>
36348
36349         PR middle-end/47281
36350         Revert
36351         2011-01-11  Richard Guenther  <rguenther@suse.de>
36352
36353         PR tree-optimization/46076
36354         * tree-ssa.c (useless_type_conversion_p): Conversions from
36355         unprototyped to empty argument list function types are useless.
36356
36357 2011-01-14  Richard Guenther  <rguenther@suse.de>
36358
36359         PR tree-optimization/47286
36360         * tree-ssa-structalias.c (new_var_info): Register variables are global.
36361
36362 2011-01-14  Martin Jambor  <mjambor@suse.cz>
36363
36364         PR middle-end/46823
36365         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
36366
36367 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
36368
36369         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
36370         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
36371         * config/xtensa/xtensa.c (xtensa_libcall_value,
36372         xtensa_function_value_regno_p): New functions.
36373         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
36374
36375 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
36376
36377         PR c++/47213
36378         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
36379         PE specific hook.
36380         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
36381         New function prototype.
36382         * config/i386/winnt.c (i386_pe_assemble_visibility):
36383         Warn only if attribute was specified by user.
36384
36385 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
36386
36387         PR target/47251
36388         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
36389         floating point.
36390         (floatunsdidf2_fcfidu): Ditto.
36391
36392 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36393
36394         * config/s390/s390.c (print_operand_address): Replace 'error' with
36395         'output_operand_lossage'.
36396         (print_operand): Likewise.
36397
36398 2011-01-13  Jeff Law  <law@redhat.com>
36399
36400         PR rtl-optimization/39077
36401         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
36402         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
36403         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
36404         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
36405         * gcse.c (prune_insertions_deletions): New function.
36406         (compute_pre_data): Use it.
36407
36408 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
36409
36410         PR debug/PR46973
36411         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
36412         static function.
36413         (prune_unused_types_mark): Use it.
36414
36415 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
36416
36417         PR rtl-optimization/45352
36418         * sel-sched.c: Update copyright years.
36419         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
36420         in the advancing loop when we have issued issue_rate insns.
36421
36422 2011-01-12  Richard Henderson  <rth@redhat.com>
36423
36424         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
36425         (TARGET_MD_ASM_CLOBBERS): New.
36426
36427         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
36428         (TARGET_DELEGITIMIZE_ADDRESS): New.
36429
36430         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
36431         (clzsi2, *bsch): New patterns.
36432
36433         * config/mn10300/mn10300.md (INT): New mode iterator.
36434         (*mov<INT>_clr): New pattern, and peep2 to generate it.
36435
36436         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
36437         flag_split_wide_types.
36438
36439         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
36440         (mn10300_trampoline_init): Rewrite without a template, an immediate
36441         load and a direct branch.
36442         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
36443
36444 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
36445
36446         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
36447         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
36448         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
36449         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
36450
36451 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
36452
36453         PR debug/47209
36454         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
36455         of type.
36456
36457 2011-01-12  Jan Hubicka  <jh@suse.cz>
36458
36459         PR driver/47244
36460         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
36461         (PLUGIN_COND_CLOSE): New macro.
36462         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
36463
36464 2011-01-12  Richard Guenther  <rguenther@suse.de>
36465
36466         PR lto/47259
36467         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
36468         register variables in a MEM_REF.
36469
36470 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
36471
36472         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
36473         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
36474         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
36475         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
36476         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
36477         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
36478         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
36479         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
36480         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
36481         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
36482         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
36483         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
36484         * config/gnu-user.h: New.  Copied from linux.h.
36485         (LINUX_TARGET_STARTFILE_SPEC): Rename to
36486         GNU_USER_TARGET_STARTFILE_SPEC.
36487         (LINUX_TARGET_ENDFILE_SPEC): Rename to
36488         GNU_USER_TARGET_ENDFILE_SPEC.
36489         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
36490         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
36491         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
36492         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
36493         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
36494         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
36495         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
36496         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
36497         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
36498         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
36499         * config/arm/linux-eabi.h (CC1_SPEC): Use
36500         GNU_USER_TARGET_CC1_SPEC.
36501         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
36502         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
36503         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
36504         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
36505         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
36506         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
36507         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
36508         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
36509
36510 2011-01-12  Richard Guenther  <rguenther@suse.de>
36511
36512         PR other/46946
36513         * doc/invoke.texi (ffast-math): Document it is turned on
36514         with -Ofast.
36515
36516 2011-01-12  Jan Hubicka  <jh@suse.cz>
36517
36518         PR tree-optimization/47233
36519         * opts.c (common_handle_option): Disable ipa-reference with profile
36520         feedback.
36521
36522 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
36523
36524         * c-parser.c (c_parser_objc_at_property_declaration): Improved
36525         error message.
36526
36527 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
36528
36529         * c-parser.c (c_lex_one_token): Updated and reindented some
36530         comments.  No changes in code.
36531
36532 2011-01-11  Ian Lance Taylor  <iant@google.com>
36533
36534         * godump.c (go_output_var): Don't output the variable if there is
36535         already a type with the same name.
36536
36537 2011-01-11  Ian Lance Taylor  <iant@google.com>
36538
36539         * godump.c (go_format_type): Don't generate float80.
36540
36541 2011-01-11  Richard Henderson  <rth@redhat.com>
36542
36543         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
36544         declaration.  Rewrite for both speed and size.
36545         (mn10300_address_cost_1): Remove.
36546         (mn10300_register_move_cost): New.
36547         (mn10300_memory_move_cost): New.
36548         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
36549         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
36550         extensions, shifts, BSWAP, CLZ.
36551         (mn10300_wide_const_load_uses_clr): Remove.
36552         (TARGET_REGISTER_MOVE_COST): New.
36553         (TARGET_MEMORY_MOVE_COST): New.
36554         * config/mn10300/mn10300-protos.h: Update.
36555         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
36556
36557         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
36558         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
36559         * config/mn10300/mn10300-protos.h: Update.
36560         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
36561         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
36562         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
36563         (*test_int_bitfield, *test_byte_bitfield): Remove.
36564         (*bit_test, *subreg_bit_test): Remove.
36565         * config/mn10300/predicates.md (const_8bit_operand): Remove.
36566
36567         * config/mn10300/constraints.md ("c"): Rename from "A".
36568         ("A", "D"): New constraint letters.
36569         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
36570         (fmssf4, fnmasf4, fnmssf4): Likewise.
36571
36572         * config/mn10300/mn10300.md (isa): New attribute.
36573         (enabled): New attribute.
36574
36575         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
36576         (abssf2, negsf2): Define only for hardware fp.
36577         (sqrtsf2): Reformat.
36578         (addsf3, subsf3, mulsf3): Merge expander and insn.
36579
36580         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
36581         (DEBUGGER_AUTO_OFFSET): Remove.
36582         (DEBUGGER_ARG_OFFSET): Remove.
36583
36584         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
36585         Emit register stores with the same offsets as the hardware.
36586         (mn10300_store_multiple_operation): Don't check that the register
36587         save offsets are monotonic.
36588         * config/mn10300/mn10300-protos.h: Update.
36589
36590         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
36591
36592         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
36593         in terms of the value on the stack, not the MDR register.
36594
36595 2011-01-11  Jan Hubicka  <jh@suse.cz>
36596
36597         PR lto/45721
36598         PR lto/45375
36599         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
36600         (symbol_alias_set_destroy, symbol_alias_set_contains,
36601         propagate_aliases_backward): Declare.
36602         * lto-streamer-out.c (struct sets): New sturcture.
36603         (trivally_defined_alias): New function.
36604         (output_alias_pair_p): Rewrite.
36605         (output_unreferenced_globals): Fix output of alias pairs.
36606         (produce_symtab): Likewise.
36607         * ipa.c (function_and_variable_visibility): Set weak alias destination
36608         as needed in lto.
36609         * varasm.c (symbol_alias_set_t): Remove.
36610         (symbol_alias_set_destroy): Export.
36611         (propagate_aliases_forward, propagate_aliases_backward): New functions
36612         based on ...
36613         (compute_visible_aliases): ... this one; remove.
36614         (trivially_visible_alias): New
36615         (trivially_defined_alias): New.
36616         (remove_unreachable_alias_pairs): Rewrite.
36617         (finish_aliases_1): Reorganize code checking if alias is defined.
36618         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
36619         in LTO mode.
36620
36621 2011-01-11  Richard Guenther  <rguenther@suse.de>
36622
36623         PR tree-optimization/46076
36624         * tree-ssa.c (useless_type_conversion_p): Conversions from
36625         unprototyped to empty argument list function types are useless.
36626
36627 2011-01-11  Richard Guenther  <rguenther@suse.de>
36628
36629         PR middle-end/45235
36630         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
36631         volatile MEMs as MEM_READONLY_P.
36632
36633 2011-01-11  Richard Guenther  <rguenther@suse.de>
36634
36635         PR tree-optimization/47239
36636         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
36637
36638 2011-01-11  Jeff Law  <law@redhat.com>
36639
36640         PR tree-optimization/47086
36641         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
36642         IVs from statements that might throw.
36643
36644 2011-01-10  Jan Hubicka  <jh@suse.cz>
36645
36646         PR lto/45375
36647         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
36648
36649 2011-01-10  Jan Hubicka  <jh@suse.cz>
36650
36651         PR lto/45375
36652         * profile.c (read_profile_edge_counts): Ignore profile inconistency
36653         when correcting profile.
36654
36655 2011-01-10  Jan Hubicka  <jh@suse.cz>
36656
36657         PR lto/46083
36658         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
36659         DECL_FINI_PRIORITY.
36660         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
36661         Restore DECL_FINI_PRIORITY.
36662
36663 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36664
36665         * doc/gimple.texi: Fix quoting of multi-word return values in
36666         @deftypefn statements.  Ensure presence of return value.  Wrap
36667         overlong @deftypefn lines.
36668         (is_gimple_operand, is_gimple_min_invariant_address): Remove
36669         descriptions of removed functions.
36670         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
36671         of multi-word return value in @deftypefn statement.
36672
36673 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36674
36675         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
36676         (Conditional Expressions, Logical Operators)
36677         (Statement and operand traversals): Do not indent smallexample
36678         code.  Fix duplicate function argument in example.
36679
36680 2011-01-10  Jeff Law  <law@redhat.com>
36681
36682         PR tree-optimization/47141
36683         * ipa-split.c (split_function): Handle case where we are
36684         returning a value and the return block has a virtual operand phi.
36685
36686 2011-01-10  Jan Hubicka  <jh@suse.cz>
36687
36688         PR tree-optimization/47234
36689         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
36690         (pass_feedback_split_functions): Declare.
36691         * passes.c (init_optimization_passes): Add ipa-split as subpass of
36692         tree-profile.
36693         * ipa-split.c (gate_split_functions): Update comments; disable
36694         split-functions for profile_arc_flag and branch_probabilities.
36695         (gate_feedback_split_functions): New function.
36696         (execute_feedback_split_functions): New function.
36697         (pass_feedback_split_functions): New global var.
36698
36699 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
36700
36701         PR lto/46760
36702         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
36703         calling gimple_call_set_cannot_inline.
36704
36705 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
36706
36707         * config/darwin-sections.def: Remove unused section.
36708
36709 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
36710
36711         PR c++/47218
36712         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
36713
36714 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
36715
36716         PR objc/47232
36717         * c-parser.c (c_parser_declaration_or_fndef): Improved
36718         error message.
36719
36720 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
36721
36722         * config/i386/winnt.c (i386_pe_start_function): Make sure
36723         to switch back to function's section.
36724
36725 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
36726
36727         PR gcc/46902
36728         PR testsuite/46912
36729         * plugin.c: Move include of dlfcn.h from here...
36730         * system.h: ... to here.
36731
36732 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36733
36734         * doc/cpp.texi (C++ Named Operators): Fix markup for header
36735         file name.
36736         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
36737         two extra empty pages in PDF output.
36738
36739 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
36740
36741         PR objc/47078
36742         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
36743         for error recovery purposes behave as if it was not specified so
36744         that the default type is usd.
36745
36746 2011-01-07  Jan Hubicka  <jh@suse.cz>
36747
36748         PR tree-optmization/46469
36749         * ipa.c (function_and_variable_visibility): Clear needed flags on
36750         nodes with external decls; handle weakrefs merging correctly.
36751
36752 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
36753
36754         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
36755         not false.
36756
36757 2011-01-07  Jan Hubicka  <jh@suse.cz>
36758
36759         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
36760         and no longer claim that gold is required for linker plugin.
36761         * configure: Regenerate.
36762         * gcc.c (PLUGIN_COND): New macro.
36763         (LINK_COMMAND_SPEC): Use it.
36764         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
36765         * config.in (HAVE_LTO_PLUGIN): New.
36766         * configure.ac (--with-lto-plugin): New parameter; autodetect
36767         HAVE_LTO_PLUGIN.
36768
36769 2011-01-07  Jan Hubicka  <jh@suse.cz>
36770
36771         PR tree-optimization/46367
36772         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
36773         when we can update original.
36774         (cgraph_mark_inline_edge): Sanity check.
36775         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
36776
36777 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
36778
36779         * config/spu/spu.h (ASM_COMMENT_START): Define.
36780
36781 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
36782
36783         PR driver/42445
36784         * gcc.c (%>S): New.
36785         (SWITCH_KEEP_FOR_GCC): Likewise.
36786         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
36787         (do_spec_1): Handle "%>".
36788
36789         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
36790
36791 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
36792
36793         PR target/47201
36794         * config/i386/i386.c (ix86_delegitimize_address): If
36795         simplify_gen_subreg fails, return orig_x.
36796
36797         PR bootstrap/47187
36798         * value-prof.c (gimple_stringop_fixed_value): Handle
36799         lhs of the call properly.
36800
36801 2011-01-07  Jan Hubicka  <jh@suse.cz>
36802
36803         PR lto/45375
36804         * lto-opt.c (lto_reissue_options): Set flag_shlib.
36805
36806 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
36807
36808         * target.def (function_switched_text_sections): New hook.
36809         * doc/tm.texi: Regenerated.
36810         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
36811         * final.c (default_function_switched_text_sections): New.
36812         (final_scan_insn): Call function_switched_text_sections when a
36813         mid-function section change occurs.
36814         * output.h (default_function_switched_text_sections): Declare.
36815         * config/darwin-protos.h (darwin_function_switched_text_sections):
36816         Likewise.
36817         * config/darwin.c (darwin_function_switched_text_sections): New.
36818         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
36819
36820 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
36821
36822         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
36823         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
36824         the secondary code fragment when outputting for DWARF == 2.
36825
36826 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
36827
36828         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
36829         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
36830         Remove.
36831         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
36832         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
36833
36834 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
36835
36836         PR debug/46704
36837         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
36838         when it is not empty.
36839
36840 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
36841
36842         Bobcat Enablement
36843         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
36844         (case ${target}): Add btver1.
36845         * config/i386/driver-i386.c (host_detect_local_cpu): Let
36846         -march=native recognize btver1 processors.
36847         * config/i386/i386-c.c (ix86_target_macros_internal): Add
36848         btver1 def_and_undef
36849         * config/i386/i386.c (struct processor_costs btver1_cost): New
36850         btver1 cost table.
36851         (m_BTVER1): New definition.
36852         (m_AMD_MULTIPLE): Includes m_BTVER1.
36853         (initial_ix86_tune_features): Add btver1 tune.
36854         (processor_target_table): Add btver1 entry.
36855         (static const char *const cpu_names): Add btver1 entry.
36856         (software_prefetching_beneficial_p): Add btver1.
36857         (ix86_option_override_internal): Add btver1 instruction sets.
36858         (ix86_issue_rate): Add btver1.
36859         (ix86_adjust_cost): Add btver1.
36860         * config/i386/i386.h (TARGET_BTVER1): New definition.
36861         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
36862         (enum processor_type): Add PROCESSOR_BTVER1.
36863         * config/i386/i386.md (define_attr "cpu"): Add btver1.
36864
36865 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36866
36867         PR target/43309
36868         * config/i386/i386.c (legitimize_tls_address)
36869         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
36870         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
36871         (tls_initial_exec_64_sun): New pattern.
36872
36873 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
36874
36875         * doc/invoke.texi (Overall Options): Improve wording and markup
36876         of the description of -wrapper.
36877
36878 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
36879
36880         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
36881         rdynamic, threads): New Driver options.
36882
36883 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36884
36885         PR target/38118
36886         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
36887         if coming from .tdata.
36888         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
36889
36890 2011-01-06  Jan Hubicka  <jh@suse.cz>
36891
36892         PR lto/47188
36893         * collect2.c (main): Do not enable LTOmode when plugin is active.
36894
36895 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36896
36897         PR other/45915
36898         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
36899         --version output if supported.
36900         * configure: Regenerate.
36901
36902 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
36903
36904         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
36905         Driver options.
36906
36907 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
36908
36909         PR c/47150
36910         * c-convert.c (convert): When converting a complex expression
36911         other than COMPLEX_EXPR to a different complex type, ensure
36912         c_save_expr is called instead of save_expr, unless in_late_binary_op.
36913         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
36914         when converting COMPLEX_TYPE.
36915
36916 2011-01-06  Ira Rosen  <irar@il.ibm.com>
36917
36918         PR tree-optimization/47139
36919         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
36920         only the last reduction value is used outside the loop.  Update
36921         documentation.
36922
36923 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
36924
36925         * config/rtems.opt: New.
36926         * config.gcc (*-*-rtems*): Use rtems.opt.
36927
36928 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
36929
36930         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
36931         processors do not support 3DNow instructions.
36932
36933 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
36934
36935         * config/spu/spu.c (spu_option_override): Set parameter
36936         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
36937
36938 2011-01-05  Jan Hubicka  <jh@suse.cz>
36939
36940         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
36941         at the command line.
36942
36943 2011-01-05  Martin Jambor  <mjambor@suse.cz>
36944
36945         PR lto/47162
36946         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
36947         deltas on streamed outgoing edges.
36948         (output_node_opt_summary): Output info for outgoing edges only when
36949         the node is in new parameter set.
36950         (output_cgraph_opt_summary): New parameter set, passed to the two
36951         aforementioned functions.  Update its forward declaration and its
36952         callee too.
36953
36954 2011-01-05  Tom Tromey  <tromey@redhat.com>
36955
36956         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
36957         operator to c_finish_omp_atomic.
36958         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
36959         (build_unary_op): Update.
36960         (build_modify_expr): Update.
36961         (build_asm_expr): Update.
36962
36963 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
36964
36965         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
36966         newly inserted insns.
36967         (pad_bb): Likewise.
36968         (spu_emit_branch_hint): Likewise.
36969         (insert_hbrp_for_ilb_runout): Likewise.
36970         (spu_machine_dependent_reorg): Call df_finish_pass after
36971         schedule_insns returns.
36972
36973 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
36974
36975         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
36976
36977 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
36978
36979         PR tree-optimization/47005
36980         * tree-sra.c (struct access): Add 'non_addressable' bit.
36981         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
36982         (decide_one_param_reduction): Return 0 if the parameter is passed by
36983         reference and one of the accesses in the group is non_addressable.
36984
36985 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
36986
36987         PR tree-optimization/47056
36988         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
36989         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
36990         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
36991
36992 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
36993
36994         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
36995         initializer.  Skip view conversions from aggregate types.
36996
36997 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
36998
36999         PR bootstrap/47055
37000         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
37001
37002 2011-01-04  Philipp Thomas  <pth@suse.de>
37003
37004         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
37005         obvious typo.
37006
37007 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
37008
37009         * function.c (thread_prologue_and_epilogue_insns): Do not crash
37010         on empty epilogue sequences.
37011
37012 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
37013
37014         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
37015         non-static): New Driver options.
37016
37017 2011-01-04  Jie Zhang  <jie@codesourcery.com>
37018
37019         PR driver/47137
37020         * gcc.c (default_compilers[]): Set combinable field to 0
37021         for all assembly languages.
37022
37023 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
37024
37025         * config/mips/loongson3a.md: New file.
37026         * config/mips/mips.md: Include loongson3a.md.
37027         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
37028         TUNE_LOONGSON_3A.
37029
37030 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
37031
37032         PR middle-end/47017
37033         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
37034         instead of convert_memory_address_addr_space on the base expression.
37035
37036 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
37037
37038         * config/spu/spu.c (spu_option_override): Update error text
37039         for bad -march= / -mtune= values.
37040
37041 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
37042
37043         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
37044         if branch-hint optimization will be performed.
37045
37046 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
37047
37048         PR tree-optimization/47148
37049         * ipa-split.c (split_function): Convert arguments to
37050         DECL_ARG_TYPE if possible.
37051
37052         PR tree-optimization/47155
37053         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
37054         when computing uns.
37055
37056         PR rtl-optimization/47157
37057         * combine.c (try_combine): If undobuf.other_insn becomes
37058         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
37059         and set *new_direct_jump_p too.
37060
37061 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
37062
37063         PR tree-optimization/47021
37064         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
37065
37066 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
37067
37068         * gcc.c (process_command): Update copyright notice dates.
37069         * gcov.c (print_version): Likewise.
37070         * gcov-dump.c (print_version): Likewise.
37071         * mips-tfile.c (main): Likewise.
37072         * mips-tdump.c (main): Likewise.
37073
37074 2011-01-03  Martin Jambor  <mjambor@suse.cz>
37075
37076         PR tree-optimization/46801
37077         * tree-sra.c (type_internals_preclude_sra_p): Check whether
37078         aggregate fields start at byte boundary instead of the bit-field flag.
37079
37080 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
37081
37082         PR driver/47137
37083         * gcc.c (main): Revert revision 168407.
37084
37085 2011-01-03  Martin Jambor  <mjambor@suse.cz>
37086
37087         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
37088
37089 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
37090
37091         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
37092         vector optab to expand vector/scalar shift, update gimple to vector.
37093
37094 2011-01-03  Martin Jambor  <mjambor@suse.cz>
37095
37096         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
37097         a thunk.
37098
37099 2011-01-03  Martin Jambor  <mjambor@suse.cz>
37100
37101         PR tree-optimization/46984
37102         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
37103         HOST_WIDE_INT.
37104         (cgraph_create_indirect_edge): Fixed line length.
37105         (cgraph_indirect_call_info): Declare.
37106         (cgraph_make_edge_direct) Update declaration.
37107         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
37108         (cgraph_create_indirect_edge): Use it.
37109         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
37110         callees.
37111         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
37112         the new thunk_delta representation.
37113         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
37114         HOST_WIDE_INT.
37115         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
37116         (ipa_read_indirect_edge_info): Likewise.
37117         * lto-cgraph.c (output_edge_opt_summary): New function.
37118         (output_node_opt_summary): Call it on all outgoing edges.
37119         (input_edge_opt_summary): New function.
37120         (input_node_opt_summary): Call it on all outgoing edges.
37121
37122 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
37123
37124         PR driver/47137
37125         * gcc.c (main): Don't check have_o when settting combine_inputs.
37126
37127 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
37128
37129         * regrename.c: Add general comment describing the pass.
37130         (struct du_head): Remove 'length' field.
37131         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
37132         (regrename_optimize): Do not sort chains.  Rework comments, add others.
37133         Force renaming to the preferred class (if any) in the first pass and do
37134         not consider registers that belong to it in the second pass.
37135         (create_new_chain): Do not set 'length' field.
37136         (scan_rtx_reg): Likewise.
37137
37138 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
37139
37140         PR tree-optimization/47140
37141         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
37142         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
37143         to bit_value_binop.
37144
37145         PR rtl-optimization/47028
37146         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
37147         parm_birth_insn instead of at the beginning of first bb.
37148
37149 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
37150
37151         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
37152         Remove the word "see" before "@pxref".
37153         * doc/rtl.texi: Remove the word "see" before "@pxref".
37154
37155 2011-01-01  Jan Hubicka  <jh@suse.cz>
37156
37157         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
37158         memory.
37159
37160 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
37161
37162         PR target/38662
37163         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
37164
37165 \f
37166 Copyright (C) 2011 Free Software Foundation, Inc.
37167
37168 Copying and distribution of this file, with or without modification,
37169 are permitted in any medium without royalty provided the copyright
37170 notice and this notice are preserved.